cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCTouchHandler Class Reference

CCTouchHandler Object than contains the delegate and priority of the event handler. More...

#include <CCTouchHandler.h>

Inheritance diagram for CCTouchHandler:
CCObject CCCopying CCStandardTouchHandler CCTargetedTouchHandler

Public Member Functions

virtual ~CCTouchHandler (void)
CCTouchDelegategetDelegate ()
 delegate More...
 
void setDelegate (CCTouchDelegate *pDelegate)
int getPriority (void)
 priority More...
 
void setPriority (int nPriority)
int getEnabledSelectors (void)
 enabled selectors More...
 
void setEnalbedSelectors (int nValue)
virtual bool initWithDelegate (CCTouchDelegate *pDelegate, int nPriority)
 initializes a TouchHandler with a delegate and a priority More...
 
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
virtual void update (float dt)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static CCTouchHandlerhandlerWithDelegate (CCTouchDelegate *pDelegate, int nPriority)
 allocates a TouchHandler with a delegate and a priority More...
 

Protected Attributes

CCTouchDelegatem_pDelegate
int m_nPriority
int m_nEnabledSelectors
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Detailed Description

CCTouchHandler Object than contains the delegate and priority of the event handler.

Constructor & Destructor Documentation

virtual ~CCTouchHandler ( void  )
virtual

Member Function Documentation

CCTouchDelegate* getDelegate ( )

delegate

int getEnabledSelectors ( void  )

enabled selectors

int getPriority ( void  )

priority

static CCTouchHandler*
handlerWithDelegate
( CCTouchDelegate pDelegate,
int  nPriority 
)
static

allocates a TouchHandler with a delegate and a priority

virtual bool initWithDelegate ( CCTouchDelegate pDelegate,
int  nPriority 
)
virtual

initializes a TouchHandler with a delegate and a priority

Reimplemented in CCStandardTouchHandler.

void setDelegate ( CCTouchDelegate pDelegate)
void setEnalbedSelectors ( int  nValue)
void setPriority ( int  nPriority)

Member Data Documentation

int m_nEnabledSelectors
protected
int m_nPriority
protected
CCTouchDelegate* m_pDelegate
protected

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