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

Input Method Edit Message Dispatcher. More...

#include <CCIMEDispatcher.h>

Public Member Functions

 ~CCIMEDispatcher ()
void dispatchInsertText (const char *pText, int nLen)
 Releases all CCIMEDelegates from the shared dispatcher. More...
 
void dispatchDeleteBackward ()
 Dispatches the delete-backward operation. More...
 
const char * getContentText ()
 Get the content text from CCIMEDelegate, retrieved previously from IME. More...
 
void dispatchKeyboardWillShow (CCIMEKeyboardNotificationInfo &info)
void dispatchKeyboardDidShow (CCIMEKeyboardNotificationInfo &info)
void dispatchKeyboardWillHide (CCIMEKeyboardNotificationInfo &info)
void dispatchKeyboardDidHide (CCIMEKeyboardNotificationInfo &info)

Static Public Member Functions

static CCIMEDispatchersharedDispatcher ()
 Returns the shared CCIMEDispatcher object for the system. More...
 

Protected Member Functions

void addDelegate (CCIMEDelegate *pDelegate)
 Add delegate to receive IME messages. More...
 
bool attachDelegateWithIME (CCIMEDelegate *pDelegate)
 Attach the pDelegate to the IME. More...
 
bool detachDelegateWithIME (CCIMEDelegate *pDelegate)
void removeDelegate (CCIMEDelegate *pDelegate)
 Remove the delegate from the delegates which receive IME messages. More...
 

Friends

class CCIMEDelegate

Detailed Description

Input Method Edit Message Dispatcher.

Constructor & Destructor Documentation

Member Function Documentation

void addDelegate ( CCIMEDelegate pDelegate)
protected

Add delegate to receive IME messages.

bool attachDelegateWithIME ( CCIMEDelegate pDelegate)
protected

Attach the pDelegate to the IME.

Returns
If the old delegate can detach from the IME, and the new delegate can attach to the IME, return true, otherwise false.
bool detachDelegateWithIME ( CCIMEDelegate pDelegate)
protected
void dispatchDeleteBackward ( )

Dispatches the delete-backward operation.

void dispatchInsertText ( const char *  pText,
int  nLen 
)

Releases all CCIMEDelegates from the shared dispatcher.

Dispatches the input text from IME.

void dispatchKeyboardDidHide ( CCIMEKeyboardNotificationInfo info)
void dispatchKeyboardDidShow ( CCIMEKeyboardNotificationInfo info)
void dispatchKeyboardWillHide ( CCIMEKeyboardNotificationInfo info)
void dispatchKeyboardWillShow ( CCIMEKeyboardNotificationInfo info)
const char* getContentText ( )

Get the content text from CCIMEDelegate, retrieved previously from IME.

void removeDelegate ( CCIMEDelegate pDelegate)
protected

Remove the delegate from the delegates which receive IME messages.

static CCIMEDispatcher*
sharedDispatcher
( )
static

Returns the shared CCIMEDispatcher object for the system.

Friends And Related Function Documentation

friend class CCIMEDelegate
friend

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