search

goog.ui.emoji.SpriteInfo

Provided By

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.

new SpriteInfo( cssClass, opt_url, opt_width, opt_height, opt_xOffset, opt_yOffset, opt_animated )

Parameters
cssClass(string|null)

CSS class to properly display the sprited image.

opt_urlstring=

Url of the sprite image.

opt_widthnumber=

Width of the image being sprited.

opt_heightnumber=

Height of the image being sprited.

opt_xOffsetnumber=

Positive x offset of the image being sprited within the sprite.

opt_yOffsetnumber=

Positive y offset of the image being sprited within the sprite.

opt_animatedboolean=

Whether the sprite is animated.

Instance Methods