Cocos2d-x  v4
IMEDispatcher Class Reference

Input Method Edit Message Dispatcher. More...

Public Member Functions

 ~IMEDispatcher ()
 @js NA @lua NA
 
void dispatchInsertText (const char *text, size_t len)
 Dispatches the input text from IME. More...
 
void dispatchDeleteBackward ()
 Dispatches the delete-backward operation. More...
 
void dispatchControlKey (EventKeyboard::KeyCode keyCode)
 Dispatches the press control key operation. More...
 
const std::string & getContentText ()
 Get the content text from IMEDelegate, retrieved previously from IME. More...
 
void dispatchKeyboardWillShow (IMEKeyboardNotificationInfo &info)
 @lua NA
 
void dispatchKeyboardDidShow (IMEKeyboardNotificationInfo &info)
 @lua NA
 
void dispatchKeyboardWillHide (IMEKeyboardNotificationInfo &info)
 @lua NA
 
void dispatchKeyboardDidHide (IMEKeyboardNotificationInfo &info)
 @lua NA
 

Static Public Member Functions

static IMEDispatchersharedDispatcher ()
 Returns the shared IMEDispatcher object for the system. More...
 

Detailed Description

Input Method Edit Message Dispatcher.

Member Function Documentation

◆ sharedDispatcher()

static IMEDispatcher* sharedDispatcher ( )
static

Returns the shared IMEDispatcher object for the system.

@js NA @lua NA

◆ dispatchInsertText()

void dispatchInsertText ( const char *  text,
size_t  len 
)

Dispatches the input text from IME.

@lua NA

◆ dispatchDeleteBackward()

void dispatchDeleteBackward ( )

Dispatches the delete-backward operation.

@lua NA

◆ dispatchControlKey()

void dispatchControlKey ( EventKeyboard::KeyCode  keyCode)

Dispatches the press control key operation.

@lua NA

◆ getContentText()

const std::string& getContentText ( )

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

@lua NA


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