Classes | |
struct | DisplayedEventInfo |
Public Member Functions | |
SpriteFrame * | getSpriteFrame () const |
Return a SpriteFrameName to be used. More... | |
void | setSpriteFrame (SpriteFrame *frame) |
Set the SpriteFrame. More... | |
float | getDelayUnits () const |
Gets the units of time the frame takes. More... | |
void | setDelayUnits (float delayUnits) |
Sets the units of time the frame takes. More... | |
const ValueMap & | getUserInfo () const |
Gets user information A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo. More... | |
void | setUserInfo (const ValueMap &userInfo) |
Sets user information. More... | |
virtual AnimationFrame * | clone () const override |
Returns a copy of the Ref. | |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Destructor. More... | |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable () |
@js NA @lua NA | |
Static Public Member Functions | |
static AnimationFrame * | create (SpriteFrame *spriteFrame, float delayUnits, const ValueMap &userInfo) |
Creates the animation frame with a spriteframe, number of delay units and a notification user info. More... | |
Protected Member Functions | |
AnimationFrame () | |
@js ctor | |
virtual | ~AnimationFrame () |
@js NA @lua NA | |
bool | initWithSpriteFrame (SpriteFrame *spriteFrame, float delayUnits, const ValueMap &userInfo) |
initializes the animation frame with a spriteframe, number of delay units and a notification user info | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
void * | _scriptObject |
scriptObject, support for swift | |
bool | _rooted |
When true, it means that the object was already rooted. | |
A frame of the animation. It contains information like:
|
static |
Creates the animation frame with a spriteframe, number of delay units and a notification user info.
spriteFrame | The animation frame with a spriteframe. |
delayUnits | Number of delay units. |
userInfo | A notification user info. |
|
inline |
Return a SpriteFrameName to be used.
|
inline |
Set the SpriteFrame.
frame | A SpriteFrame will be used. |
|
inline |
Gets the units of time the frame takes.
|
inline |
Sets the units of time the frame takes.
delayUnits | The units of time the frame takes. |
|
inline |
Gets user information A AnimationFrameDisplayedNotification notification will be broadcast when the frame is displayed with this dictionary as UserInfo.
If UserInfo is nil, then no notification will be broadcast.
|
inline |
Sets user information.
userInfo | A dictionary as UserInfo. |