cocos2d-x  2.2.3-gd2.113-rev1ec524e
Loading...
Searching...
No Matches
CCTouchHandler Class Reference

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

#include <CCTouchHandler.h>

Inheritance diagram for CCTouchHandler:
[legend]
Collaboration diagram for CCTouchHandler:
[legend]

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)
 NA. More...
 
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)
 
 CCObject (const CCObject &)
 
CCObjectoperator= (const CCObject &)
 
virtual void encodeWithCoder (DS_Dictionary *)
 
virtual bool canEncode ()
 
CCObjectType getObjType () const
 
virtual int getTag () const
 
virtual void setTag (int nTag)
 
void setObjType (CCObjectType)
 
- 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...
 
- Static Public Member Functions inherited from CCObject
static CCObjectcreateWithCoder (DS_Dictionary *)
 

Protected Attributes

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

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.

NA NA

Constructor & Destructor Documentation

◆ ~CCTouchHandler()

virtual ~CCTouchHandler ( void  )
virtual

Member Function Documentation

◆ getDelegate()

CCTouchDelegate * getDelegate ( )

delegate

◆ getEnabledSelectors()

int getEnabledSelectors ( void  )

enabled selectors

◆ getPriority()

int getPriority ( void  )

priority

◆ handlerWithDelegate()

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

allocates a TouchHandler with a delegate and a priority

◆ initWithDelegate()

virtual bool initWithDelegate ( CCTouchDelegate pDelegate,
int  nPriority 
)
virtual

initializes a TouchHandler with a delegate and a priority

Reimplemented in CCStandardTouchHandler.

◆ setDelegate()

void setDelegate ( CCTouchDelegate pDelegate)

◆ setEnalbedSelectors()

void setEnalbedSelectors ( int  nValue)

◆ setPriority()

void setPriority ( int  nPriority)

Member Data Documentation

◆ m_nEnabledSelectors

int m_nEnabledSelectors
protected

◆ m_nPriority

int m_nPriority
protected

◆ m_pDelegate

CCTouchDelegate* m_pDelegate
protected

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