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

CCTargetedTouchHandler Object than contains the claimed touches and if it swallows touches. More...

#include <CCTouchHandler.h>

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

Public Member Functions

 ~CCTargetedTouchHandler (void)
 
bool isSwallowsTouches (void)
 whether or not the touches are swallowed More...
 
void setSwallowsTouches (bool bSwallowsTouches)
 
CCSetgetClaimedTouches (void)
 MutableSet that contains the claimed touches. More...
 
bool initWithDelegate (CCTouchDelegate *pDelegate, int nPriority, bool bSwallow)
 initializes a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not More...
 
- Public Member Functions inherited from CCTouchHandler
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 CCTargetedTouchHandlerhandlerWithDelegate (CCTouchDelegate *pDelegate, int nPriority, bool bSwallow)
 allocates a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not More...
 
- Static Public Member Functions inherited from CCTouchHandler
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

bool m_bSwallowsTouches
 
CCSetm_pClaimedTouches
 
- Protected Attributes inherited from CCTouchHandler
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

CCTargetedTouchHandler Object than contains the claimed touches and if it swallows touches.

Used internally by TouchDispatcher NA NA

Constructor & Destructor Documentation

◆ ~CCTargetedTouchHandler()

Member Function Documentation

◆ getClaimedTouches()

CCSet * getClaimedTouches ( void  )

MutableSet that contains the claimed touches.

◆ handlerWithDelegate()

static CCTargetedTouchHandler * handlerWithDelegate ( CCTouchDelegate pDelegate,
int  nPriority,
bool  bSwallow 
)
static

allocates a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not

◆ initWithDelegate()

bool initWithDelegate ( CCTouchDelegate pDelegate,
int  nPriority,
bool  bSwallow 
)

initializes a TargetedTouchHandler with a delegate, a priority and whether or not it swallows touches or not

◆ isSwallowsTouches()

bool isSwallowsTouches ( void  )

whether or not the touches are swallowed

◆ setSwallowsTouches()

void setSwallowsTouches ( bool  bSwallowsTouches)

Member Data Documentation

◆ m_bSwallowsTouches

bool m_bSwallowsTouches
protected

◆ m_pClaimedTouches

CCSet* m_pClaimedTouches
protected

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