Custom event. More...
Inherits Event.
Inherited by EventAssetsManagerEx, and PhysicsContact.
Public Member Functions | |
EventCustom (const std::string &eventName) | |
Constructor. More... | |
void | setUserData (void *data) |
Sets user data. More... | |
var | setUserData ( var data) |
Sets user data. More... | |
local | setUserData ( local data) |
Sets user data. More... | |
void * | getUserData () const |
Gets user data. More... | |
var | getUserData () |
Gets user data. More... | |
local | getUserData () |
Gets user data. More... | |
const std::string & | getEventName () const |
Gets event name. More... | |
Public Member Functions inherited from Event | |
virtual | ~Event () |
Destructor. | |
Type | getType () const |
Gets the event type. More... | |
var | getType () |
Gets the event type. More... | |
local | getType () |
Gets the event type. More... | |
void | stopPropagation () |
Stops propagation for current event. | |
var | stopPropagation () |
Stops propagation for current event. | |
local | stopPropagation () |
Stops propagation for current event. | |
bool | isStopped () const |
Checks whether the event has been stopped. More... | |
var | isStopped () |
Checks whether the event has been stopped. More... | |
local | isStopped () |
Checks whether the event has been stopped. More... | |
Node * | getCurrentTarget () |
Gets current target of the event. More... | |
var | getCurrentTarget () |
Gets current target of the event. More... | |
local | getCurrentTarget () |
Gets current target of the event. 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... | |
Ref * | autorelease () |
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. | |
Additional Inherited Members | |
Public Types inherited from Event | |
enum | Type |
Type Event type. | |
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... | |
Protected Member Functions inherited from Event | |
Event (Type type) | |
Constructor. | |
Event ( var type) | |
Constructor. | |
Event ( local type) | |
Constructor. | |
Custom event.
EventCustom | ( | const std::string & | eventName | ) |
Constructor.
A given name of the custom event.
var ctor | ( | var | eventName | ) |
Constructor.
A given name of the custom event.
local EventCustom | ( | local | eventName | ) |
Constructor.
A given name of the custom event.
|
inline |
Sets user data.
The user data pointer, it's a void*.
|
inline |
Sets user data.
The user data pointer, it's a void*.
|
inline |
Sets user data.
The user data pointer, it's a void*.
|
inline |
Gets user data.
The user data pointer, it's a void*.
|
inline |
Gets user data.
The user data pointer, it's a void*.
|
inline |
Gets user data.
The user data pointer, it's a void*.
|
inline |
Gets event name.
The name of the event.
|
inline |
Gets event name.
The name of the event.
|
inline |
Gets event name.
The name of the event.