photonui.SpriteSheet Class
Sprite sheet (to use with SpriteIcon).
Constructor
photonui.SpriteSheet
()
Item Index
Methods
Methods
_bindEvent
(
private
-
id
-
element
-
evName
-
callback
-
[options]
Javascript event binding (for internal use).
Parameters:
_callCallbacks
(
private
-
wEvent
-
params
Call all callbacks for the given wEvent.
NOTE: the first argument passed to the callback is the current widget.
NOTEĀ²: if the thisArg of the callback is null, this will be binded to the current widget.
_updateProperties
(
deprecated
private
-
properties
Force the update of the given properties.
This method is deprecated.
One should use '@photonui-update' abitbol's annotation on concerned properties.
Parameters:
-
properties
ArrayThe properties to update.
addIcon
(
-
iconName
-
x
-
y
Add an icon (set its position).
destroy
()
Destroy the class.
getIconCss
(
String
-
iconName
Get the right CSS for the given icon.
Parameters:
-
iconName
String
Returns:
String:
the CSS.
getIconPosition
(
Object
-
iconName
Get icon position.
Parameters:
-
iconName
String
Returns:
Object:
{x: Number, y: Number}
registerCallback
(
-
id
-
wEvent
-
callback
-
thisArg
Register a callback for any PhotonUI/Widget event (called wEvent).
Callback signature:
function (Object(Base/Widget) [, arg1 [, arg2 [, ...]]])
Properties
__events
Object
private
Object containing references javascript events binding (for widget
internal use).