The goog.ui.emoji.SpriteInfo Class

goog.ui.emoji.SpriteInfo(cssClass, opt_url, opt_width, opt_height, opt_xOffset, opt_yOffset, opt_animated)

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.

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.

.getCssClass()

Returns the css class of the sprited image.

returns {?string}
Name of the CSS class to properly display the sprited image.

.getHeightCssValue()

Returns the height of the image being sprited, appropriate for a CSS value.

returns {string}
The height of the image being sprited.

.getUrl()

Returns the url of the sprite image.

returns {?string}
Url of the sprite image.

.getWidthCssValue()

Returns the width of the image being sprited, appropriate for a CSS value.

returns {string}
The width of the image being sprited.

.getXOffsetCssValue()

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.

.getYOffsetCssValue()

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.

.isAnimated()

Returns whether the emoji specified by this sprite is animated.

returns {boolean}
Whether the emoji is animated.