cocos2d-x
3.3
|
#include <CCEventCustom.h>
Public Member Functions | |
EventCustom (const std::string &eventName) | |
Constructor. More... | |
void | setUserData (void *data) |
Sets user data. More... | |
void * | getUserData () const |
Gets user data. More... | |
const std::string & | getEventName () const |
Gets event name. More... | |
![]() | |
virtual | ~Event () |
Destructor. More... | |
Type | getType () const |
Gets the event type. More... | |
void | stopPropagation () |
Stops propagation for current event. More... | |
bool | isStopped () const |
Checks whether the event has been stopped. More... | |
Node * | getCurrentTarget () |
Gets current target of the event. More... | |
![]() | |
void | 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... | |
virtual | ~Ref () |
NA NA More... | |
Protected Attributes | |
void * | _userData |
User data. More... | |
std::string | _eventName |
![]() | |
Type | _type |
Event type. More... | |
bool | _isStopped |
whether the event has been stopped. More... | |
Node * | _currentTarget |
Current target. More... | |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
Additional Inherited Members | |
![]() | |
enum | Type { TOUCH, KEYBOARD, ACCELERATION, MOUSE, FOCUS, GAME_CONTROLLER, CUSTOM } |
![]() | |
CC_CONSTRUCTOR_ACCESS | __pad0__: Event(Type type) |
![]() | |
void | setCurrentTarget (Node *target) |
Sets current target. More... | |
![]() | |
Ref () | |
Constructor. More... | |
EventCustom | ( | const std::string & | eventName | ) |
Constructor.
|
inline |
Gets event name.
|
inline |
Gets user data.
|
inline |
Sets user data.
|
protected |
|
protected |
User data.