Cocos2d-x  v3.11
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
ScriptHandlerEntry Class Reference

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

Inherits Ref.

Inherited by SchedulerScriptHandlerEntry.

Public Member Functions

virtual ~ScriptHandlerEntry ()
 Destructor of ScriptHandlerEntry.
 
int getHandler (void)
 Get the handler corresponding to the Lua function pointer. More...
 
int getEntryId (void)
 Get the unique id corresponding to the handler. More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
local 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...
 
local getReferenceCount ()
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor.
 

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
 
local _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
local _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
local _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 
local _rooted
 When true, it means that the object was already rooted.
 
bool _scriptOwned
 The life of the object is scrolled by the scripting engine. More...
 
local _scriptOwned
 The life of the object is scrolled by the scripting engine. More...
 

Detailed Description

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

Member Function Documentation

static ScriptHandlerEntry* create ( int  handler)
static

create a ScriptHandlerEntry instance by the handler.

corresponding to the Lua function pointer. ScriptHandlerEntry instance.

int getHandler ( void  )
inline

Get the handler corresponding to the Lua function pointer.

the handler corresponding to the Lua function pointer.

int getEntryId ( void  )
inline

Get the unique id corresponding to the handler.

the unique id corresponding to the handler.


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