Custom event.
More...
#include <EventCustom.h>
Inherits Event.
|
| EventCustom (std::string_view eventName) |
| Constructor.
|
|
void | setUserData (void *data) |
| Sets user data.
|
|
void * | getUserData () const |
| Gets user data.
|
|
std::string_view | getEventName () const |
| Gets event name.
|
|
| Event (Type type) |
| Constructor.
|
|
virtual | ~Event () |
| Destructor.
|
|
Type | getType () const |
| Gets the event type.
|
|
void | stopPropagation () |
| Stops propagation for current event.
|
|
bool | isStopped () const |
| Checks whether the event has been stopped.
|
|
Node * | getCurrentTarget () |
| Gets current target of the event.
|
|
void | retain () |
| Retains the ownership.
|
|
void | release () |
| Releases the ownership immediately.
|
|
Object * | autorelease () |
| Releases the ownership sometime soon automatically.
|
|
unsigned int | getReferenceCount () const |
| Returns the Object's current reference count.
|
|
virtual | ~Object () |
| Destructor.
|
|
|
enum class | Type |
| Type Event type.
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
◆ EventCustom()
Constructor.
- Parameters
-
eventName | A given name of the custom event. @js ctor |
◆ setUserData()
void setUserData |
( |
void * | data | ) |
|
|
inline |
Sets user data.
- Parameters
-
data | The user data pointer, it's a void*. |
◆ getUserData()
void * getUserData |
( |
| ) |
const |
|
inline |
Gets user data.
- Returns
- The user data pointer, it's a void*.
◆ getEventName()
std::string_view getEventName |
( |
| ) |
const |
|
inline |
Gets event name.
- Returns
- The name of the event.
The documentation for this class was generated from the following file: