Cocos2d-x  v4
ScriptHandlerEntry Class Reference

This classes is wrapped to store the handler corresponding to the Lua function pointer and assign the handler a unique id @js NA. More...

Inherits Ref.

Inherited by SchedulerScriptHandlerEntry.

Public Member Functions

virtual ~ScriptHandlerEntry ()
 Destructor of ScriptHandlerEntry. More...
 
int getHandler ()
 Get the handler corresponding to the Lua function pointer. More...
 
int getEntryId ()
 Get the unique id corresponding to the handler. More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Static Public Member Functions

static ScriptHandlerEntrycreate (int handler)
 create a ScriptHandlerEntry instance by the handler. More...
 

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.
 

Detailed Description

This classes is wrapped to store the handler corresponding to the Lua function pointer and assign the handler a unique id @js NA.

Constructor & Destructor Documentation

◆ ~ScriptHandlerEntry()

virtual ~ScriptHandlerEntry ( )
virtual

Destructor of ScriptHandlerEntry.

@lua NA @js NA

Member Function Documentation

◆ create()

static ScriptHandlerEntry* create ( int  handler)
static

create a ScriptHandlerEntry instance by the handler.

Parameters
handlercorresponding to the Lua function pointer.
Returns
ScriptHandlerEntry instance. @lua NA @js NA

◆ getHandler()

int getHandler ( )
inline

Get the handler corresponding to the Lua function pointer.

Returns
the handler corresponding to the Lua function pointer. @lua NA @js NA

◆ getEntryId()

int getEntryId ( )
inline

Get the unique id corresponding to the handler.

Returns
the unique id corresponding to the handler. @lua NA @js NA

The documentation for this class was generated from the following file: