cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EventTouch Class Reference

#include <CCEventTouch.h>

Inheritance diagram for EventTouch:
Event

Public Types

enum  EventCode { BEGAN, MOVED, ENDED, CANCELLED }
 

Public Member Functions

 EventTouch ()
EventCode getEventCode ()
local getEventCode ()
std::vector< Touch * > getTouches ()
var getTouches ()
local getTouches ()
void setEventCode (EventCode eventCode)
void setTouches (const std::vector< Touch * > &touches)
- Public Member Functions inherited from Event
virtual ~Event ()
 Destructor. More...
 
const std::string & 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...
 
NodegetCurrentTarget ()
 Gets current target of the event. More...
 

Static Public Attributes

static const char * EVENT_TYPE
var EVENT_TYPE
local EVENT_TYPE
static const int MAX_TOUCHES = 5
var MAX_TOUCHES = 5
local MAX_TOUCHES = 5

Friends

class EGLViewProtocol

Additional Inherited Members

- Protected Member Functions inherited from Event
 Event (const std::string &type)
 Constructor. More...
 
void setCurrentTarget (Node *target)
 Sets current target. More...
 
- Protected Attributes inherited from Event
std::string _type
 Event type. More...
 
bool _isStopped
 whether the event has been stopped. More...
 
Node_currentTarget
 Current target. More...
 
var _currentTarget
 Current target. More...
 
local _currentTarget
 Current target. More...
 

Member Enumeration Documentation

enum EventCode
strong
Enumerator
BEGAN 
MOVED 
ENDED 
CANCELLED 
var EventCode
strong
Enumerator
BEGAN 
MOVED 
ENDED 
CANCELLED 
local EventCode
strong
Enumerator
BEGAN 
MOVED 
ENDED 
CANCELLED 

Constructor & Destructor Documentation

EventTouch ( )
inline
var ( )
inline
local EventTouch ( )
inline

Member Function Documentation

EventCode getEventCode ( )
inline
var getEventCode ( )
inline
local getEventCode ( )
inline
std::vector<Touch*> getTouches ( )
inline
var getTouches ( )
inline
local getTouches ( )
inline
void setEventCode ( EventCode  eventCode)
inline
var setEventCode ( var  eventCode)
inline
local setEventCode ( local  eventCode)
inline
void setTouches ( const std::vector< Touch * > &  touches)
inline
var setTouches ( var  touches)
inline
local setTouches ( local  touches)
inline

Friends And Related Function Documentation

friend class EGLViewProtocol
friend
var EGLViewProtocol
friend
local EGLViewProtocol
friend

Member Data Documentation

const char* EVENT_TYPE
static
var EVENT_TYPE
static
local EVENT_TYPE
static
const int MAX_TOUCHES = 5
static
var MAX_TOUCHES = 5
static
local MAX_TOUCHES = 5
static

The documentation for this class was generated from the following file: