ui.emoji.SpriteInfo Extends
Creates a SpriteInfo object with the specified properties. If the image is sprited via CSS, then only the first parameter needs a value. If the image is sprited via metadata, then the first parameter should be left null.

Inheritance

Constructor

goog.ui.emoji.SpriteInfo(cssClassopt_urlopt_widthopt_heightopt_xOffsetopt_yOffsetopt_animated)

Parameters

cssClass : ?string
CSS class to properly display the sprited image.
opt_url : string=
Url of the sprite image.
opt_width : number=
Width of the image being sprited.
opt_height : number=
Height of the image being sprited.
opt_xOffset : number=
Positive x offset of the image being sprited within the sprite.
opt_yOffset : number=
Positive y offset of the image being sprited within the sprite.
opt_animated : boolean=
Whether the sprite is animated.

Instance Methods

Public Protected Private
getCssClass() ?string
Returns the css class of the sprited image.
Returns: ?string  Name of the CSS class to properly display the sprited image.
code »
getHeightCssValue() string
Returns the height of the image being sprited, appropriate for a CSS value.
Returns: string  The height of the image being sprited.
code »
getUrl() ?string
Returns the url of the sprite image.
Returns: ?string  Url of the sprite image.
code »
getWidthCssValue() string
Returns the width of the image being sprited, appropriate for a CSS value.
Returns: string  The width of the image being sprited.
code »
getXOffsetCssValue() string
Returns the x offset of the image being sprited within the sprite, appropriate for a CSS value.
Returns: string  The x offset of the image being sprited within the sprite.
code »
getYOffsetCssValue() string
Returns the positive y offset of the image being sprited within the sprite, appropriate for a CSS value.
Returns: string  The y offset of the image being sprited within the sprite.
code »
isAnimated() boolean
Returns whether the emoji specified by this sprite is animated.
Returns: boolean  Whether the emoji is animated.
code »

Instance Properties

animated_ :
Whether the emoji specified by the sprite is animated.
Code »
cssClass_ :
Name of the CSS class to properly display the sprited image.
Code »
height_ :
Height of the image being sprited.
Code »
url_ :
Url of the sprite image.
Code »
width_ :
Width of the image being sprited.
Code »
xOffset_ :
Positive x offset of the image being sprited within the sprite.
Code »
yOffset_ :
Positive y offset of the image being sprited within the sprite.
Code »

Static Methods

goog.ui.emoji.SpriteInfo.getCssPixelValue_(value) string
Returns a string appropriate for use as a CSS value. If the value is zero, then there is no unit appended.
Arguments:
value : number | undefined
A number to be turned into a CSS size/location value.
Returns: string  A string appropriate for use as a CSS value.
code »
goog.ui.emoji.SpriteInfo.getOffsetCssValue_(posOffset) string
Returns a string appropriate for use as a CSS value for a position offset, such as the position argument for sprites.
Arguments:
posOffset : number | undefined
A positive offset for a position.
Returns: string  A string appropriate for use as a CSS value.
code »

Package ui.emoji

Package Reference