#include <CCEventTouch.h>
Public Types | |
enum | EventCode { BEGAN, MOVED, ENDED, CANCELLED } |
![]() | |
enum | Type { TOUCH, KEYBOARD, ACCELERATION, MOUSE, FOCUS, CUSTOM } |
Public Member Functions | |
EventTouch () | |
EventCode | getEventCode () const |
const std::vector< Touch * > & | getTouches () const |
void | setEventCode (EventCode eventCode) |
void | setTouches (const std::vector< Touch * > &touches) |
![]() | |
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 () |
Static Public Attributes | |
static const int | MAX_TOUCHES = 5 |
Friends | |
class | GLViewProtocol |
Additional Inherited Members | |
![]() | |
Event (Type type) | |
Constructor. More... | |
void | setCurrentTarget (Node *target) |
Sets current target. More... | |
![]() | |
Ref () | |
Constructor. More... | |
![]() | |
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... | |
|
strong |
EventTouch | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
static |