Lines Matching refs:icon
26 * image file. This list must be ordered the same as the icon images
36 * The size of an individual icon. Note that icons must be square.
45 * The horizontal offset of the icon images in the inconset src image.
55 * The vertical offset of the icon images in the inconset src image.
114 * `icon` and `theme`. It's uncommon to call this method. It is useful,
119 * @param {String|Number} icon The name of the icon or the index of the
120 * icon within in the icon image.
122 * @returns {Object} An object specifying the offset of the given icon
123 * within the icon resource file; `offsetX` is the horizontal offset and
126 getOffset: function(icon, theme) {
127 var i = this.iconMap[icon];
129 var n = this.iconNames[Number(icon)];
143 * Applies an icon to the given element as a css background image. This
150 * @param {String|Number} icon The name or index of the icon to apply.
152 * with which the icon can be magnified.
153 * @return {Element} The icon element.
155 applyIcon: function(element, icon, scale) {
156 var offset = this.getOffset(icon);
159 var icon = element._icon || document.createElement('div');
160 var style = icon.style;
166 if (icon.parentNode !== element) {
167 element.appendChild(icon);
169 return icon;