Cocos2d-x
4.0.0
|
Inherits Event.
Public Types | |
enum | EventCode |
EventCode Touch event code. More... | |
![]() | |
enum | Type |
Type Event type. More... | |
Public Member Functions | |
EventTouch () | |
Constructor. | |
EventCode | getEventCode () const |
Get event code. | |
const std::vector< Touch * > & | getTouches () const |
Get the touches. | |
void | setEventCode (EventCode eventCode) |
Set the event code. | |
void | setTouches (const std::vector< Touch * > &touches) |
Set the touches. | |
![]() | |
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. | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. | |
virtual | ~Ref () |
Destructor. | |
Additional Inherited Members | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
void * | _scriptObject |
scriptObject, support for swift | |
bool | _rooted |
When true, it means that the object was already rooted. | |
![]() | |
Event (Type type) | |
Constructor. | |
Touch event.
EventTouch | ( | ) |
Constructor.
NA
|
inline |
Get event code.
|
inline |
Get the touches.
|
inline |
Set the event code.
eventCode | A given EventCode. |
|
inline |
Set the touches.
touches | A given touches vector. |