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

Dispatch the keypad message from the phone. More...

#include <CCKeypadDispatcher.h>

Inheritance diagram for CCKeypadDispatcher:
CCObject CCCopying

Public Member Functions

 CCKeypadDispatcher ()
 ~CCKeypadDispatcher ()
void addDelegate (CCKeypadDelegate *pDelegate)
 add delegate to concern keypad msg More...
 
void removeDelegate (CCKeypadDelegate *pDelegate)
 remove the delegate from the delegates who concern keypad msg More...
 
void forceAddDelegate (CCKeypadDelegate *pDelegate)
 force add the delegate More...
 
void forceRemoveDelegate (CCKeypadDelegate *pDelegate)
 force remove the delegate More...
 
bool dispatchKeypadMSG (ccKeypadMSGType nMsgType)
 dispatch the key pad msg 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)

Protected Attributes

CCArraym_pDelegates
bool m_bLocked
bool m_bToAdd
bool m_bToRemove
struct _ccCArray * m_pHandlersToAdd
struct _ccCArray * m_pHandlersToRemove
- 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

Dispatch the keypad message from the phone.

Constructor & Destructor Documentation

Member Function Documentation

void addDelegate ( CCKeypadDelegate pDelegate)

add delegate to concern keypad msg

bool dispatchKeypadMSG ( ccKeypadMSGType  nMsgType)

dispatch the key pad msg

void forceAddDelegate ( CCKeypadDelegate pDelegate)

force add the delegate

void forceRemoveDelegate ( CCKeypadDelegate pDelegate)

force remove the delegate

void removeDelegate ( CCKeypadDelegate pDelegate)

remove the delegate from the delegates who concern keypad msg

Member Data Documentation

bool m_bLocked
protected
bool m_bToAdd
protected
bool m_bToRemove
protected
CCArray* m_pDelegates
protected
struct _ccCArray* m_pHandlersToAdd
protected
struct _ccCArray*
m_pHandlersToRemove
protected

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