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

Input Method Edit Message Dispatcher. More...

#include <CCIMEDispatcher.h>

Public Member Functions

 ~CCIMEDispatcher ()
 
void dispatchInsertText (const char *pText, int nLen)
 Dispatches the input text from IME. 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.

NA NA

Constructor & Destructor Documentation

◆ ~CCIMEDispatcher()

Member Function Documentation

◆ addDelegate()

void addDelegate ( CCIMEDelegate pDelegate)
protected

Add delegate to receive IME messages.

◆ attachDelegateWithIME()

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.

◆ detachDelegateWithIME()

bool detachDelegateWithIME ( CCIMEDelegate pDelegate)
protected

◆ dispatchDeleteBackward()

void dispatchDeleteBackward ( )

Dispatches the delete-backward operation.

◆ dispatchInsertText()

void dispatchInsertText ( const char *  pText,
int  nLen 
)

Dispatches the input text from IME.

◆ dispatchKeyboardDidHide()

void dispatchKeyboardDidHide ( CCIMEKeyboardNotificationInfo info)

◆ dispatchKeyboardDidShow()

void dispatchKeyboardDidShow ( CCIMEKeyboardNotificationInfo info)

◆ dispatchKeyboardWillHide()

void dispatchKeyboardWillHide ( CCIMEKeyboardNotificationInfo info)

◆ dispatchKeyboardWillShow()

void dispatchKeyboardWillShow ( CCIMEKeyboardNotificationInfo info)

◆ getContentText()

const char * getContentText ( )

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

◆ removeDelegate()

void removeDelegate ( CCIMEDelegate pDelegate)
protected

Remove the delegate from the delegates which receive IME messages.

◆ sharedDispatcher()

static CCIMEDispatcher * sharedDispatcher ( )
static

Returns the shared CCIMEDispatcher object for the system.

Friends And Related Function Documentation

◆ CCIMEDelegate

friend class CCIMEDelegate
friend

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