Base class of all kinds of events.
More...
#include <Event.h>
Inherits Object.
Inherited by EventAcceleration, EventCustom, EventFocus, EventKeyboard, EventMouse, and EventTouch.
|
| 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.
|
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
Base class of all kinds of events.
◆ getType()
Gets the event type.
- Returns
- The event type.
◆ isStopped()
Checks whether the event has been stopped.
- Returns
- True if the event has been stopped.
◆ getCurrentTarget()
Node * getCurrentTarget |
( |
| ) |
|
|
inline |
Gets current target of the event.
- Returns
- The target with which the event associates.
- Note
- It's only available when the event listener is associated with node. It returns 0 when the listener is associated with fixed priority.
The documentation for this class was generated from the following file: