src/aria/widgets/AriaSkinInterface.js
function (sprite, icon) {
            var curSprite = this.getSkinObject("Icon", sprite, true), iconContent, iconLeft = 0, iconTop = 0;
            if (curSprite && (iconContent = curSprite.content[icon]) !== undefined) {
                if (curSprite.biDimensional) {
                    var XY = iconContent.split("_");
                    iconLeft = (curSprite.iconWidth + curSprite.spriteSpacing) * XY[0];
                    iconTop = (curSprite.iconHeight + curSprite.spriteSpacing) * XY[1];
                } else if (curSprite.direction === "x") {
                    iconLeft = (curSprite.iconWidth + curSprite.spriteSpacing) * iconContent;
                } else if (curSprite.direction === "y") {
                    iconTop = (curSprite.iconHeight + curSprite.spriteSpacing) * iconContent;
                }
                return {
                    "iconLeft" : iconLeft,
                    "iconTop" : iconTop,
                    "cssClass" : "xICN" + sprite,
                    "spriteURL" : curSprite.spriteURL,
                    "width" : curSprite.iconWidth,
                    "height" : curSprite.iconHeight,
                    "borderLeft" : curSprite.borderLeft,
                    "borderRight" : curSprite.borderRight,
                    "borderTop" : curSprite.borderTop,
                    "borderBottom" : curSprite.borderBottom
                };
            }
            return false;
        }
function (sprite, icon) {
            var curSprite = this.getSkinObject("Icon", sprite, true), iconContent, iconLeft = 0, iconTop = 0;
            if (curSprite && (iconContent = curSprite.content[icon]) !== undefined) {
                if (curSprite.biDimensional) {
                    var XY = iconContent.split("_");
                    iconLeft = (curSprite.iconWidth + curSprite.spriteSpacing) * XY[0];
                    iconTop = (curSprite.iconHeight + curSprite.spriteSpacing) * XY[1];
                } else if (curSprite.direction === "x") {
                    iconLeft = (curSprite.iconWidth + curSprite.spriteSpacing) * iconContent;
                } else if (curSprite.direction === "y") {
                    iconTop = (curSprite.iconHeight + curSprite.spriteSpacing) * iconContent;
                }
                return {
                    "iconLeft" : iconLeft,
                    "iconTop" : iconTop,
                    "cssClass" : "xICN" + sprite,
                    "spriteURL" : curSprite.spriteURL,
                    "width" : curSprite.iconWidth,
                    "height" : curSprite.iconHeight,
                    "borderLeft" : curSprite.borderLeft,
                    "borderRight" : curSprite.borderRight,
                    "borderTop" : curSprite.borderTop,
                    "borderBottom" : curSprite.borderBottom
                };
            }
            return false;
        }
function ( sprite , icon ) { var curSprite = this . getSkinObject ( "Icon" , sprite , true ) , iconContent , iconLeft = 0 , iconTop = 0 ; if ( curSprite && ( iconContent = curSprite . content [ icon ] ) !== undefined ) { if ( curSprite . biDimensional ) { var XY = iconContent . split ( "_" ) ; iconLeft = ( curSprite . iconWidth + curSprite . spriteSpacing ) * XY [ 0 ] ; iconTop = ( curSprite . iconHeight + curSprite . spriteSpacing ) * XY [ 1 ] ; } else if ( curSprite . direction === "x" ) { iconLeft = ( curSprite . iconWidth + curSprite . spriteSpacing ) * iconContent ; } else if ( curSprite . direction === "y" ) { iconTop = ( curSprite . iconHeight + curSprite . spriteSpacing ) * iconContent ; } return { "iconLeft" : iconLeft , "iconTop" : iconTop , "cssClass" : "xICN" + sprite , "spriteURL" : curSprite . spriteURL , "width" : curSprite . iconWidth , "height" : curSprite . iconHeight , "borderLeft" : curSprite . borderLeft , "borderRight" : curSprite . borderRight , "borderTop" : curSprite . borderTop , "borderBottom" : curSprite . borderBottom } ; } return false ; }
Return icon information for given sprite and icon name
@param {String} sprite
@param {String} icon
@return {Object}
Return icon information for given sprite and icon name