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

Input method editor delegate. More...

#include <CCIMEDelegate.h>

Inheritance diagram for IMEDelegate:
TextFieldTTF EditBox UICCTextField

Public Member Functions

virtual ~IMEDelegate ()
virtual bool attachWithIME ()
virtual bool detachWithIME ()

Protected Member Functions

virtual bool canAttachWithIME ()
 Decide if the delegate instance is ready to receive an IME message. More...
 
virtual void didAttachWithIME ()
 When the delegate detaches from the IME, this method is called by IMEDispatcher. More...
 
virtual bool canDetachWithIME ()
 Decide if the delegate instance can stop receiving IME messages. More...
 
virtual void didDetachWithIME ()
 When the delegate detaches from the IME, this method is called by IMEDispatcher. More...
 
virtual void insertText (const char *text, size_t len)
 Called by IMEDispatcher when text input received from the IME. More...
 
virtual void deleteBackward ()
 Called by IMEDispatcher after the user clicks the backward key. More...
 
virtual const std::string & getContentText ()
 Called by IMEDispatcher for text stored in delegate. More...
 
virtual void keyboardWillShow (IMEKeyboardNotificationInfo &info)
virtual void keyboardDidShow (IMEKeyboardNotificationInfo &info)
virtual void keyboardWillHide (IMEKeyboardNotificationInfo &info)
virtual void keyboardDidHide (IMEKeyboardNotificationInfo &info)
 IMEDelegate ()

Friends

class IMEDispatcher

Detailed Description

Input method editor delegate.

Constructor & Destructor Documentation

virtual ~IMEDelegate ( )
virtual
IMEDelegate ( )
protected

Member Function Documentation

virtual bool attachWithIME ( )
virtual

Reimplemented in TextFieldTTF.

virtual bool canAttachWithIME ( )
inlineprotectedvirtual

Decide if the delegate instance is ready to receive an IME message.

Called by IMEDispatcher.

Reimplemented in TextFieldTTF.

virtual bool canDetachWithIME ( )
inlineprotectedvirtual

Decide if the delegate instance can stop receiving IME messages.

Reimplemented in TextFieldTTF.

virtual void deleteBackward ( )
inlineprotectedvirtual

Called by IMEDispatcher after the user clicks the backward key.

Reimplemented in TextFieldTTF, and UICCTextField.

virtual bool detachWithIME ( )
virtual

Reimplemented in TextFieldTTF.

virtual void didAttachWithIME ( )
inlineprotectedvirtual

When the delegate detaches from the IME, this method is called by IMEDispatcher.

virtual void didDetachWithIME ( )
inlineprotectedvirtual

When the delegate detaches from the IME, this method is called by IMEDispatcher.

virtual const std::string&
getContentText
( )
inlineprotectedvirtual

Called by IMEDispatcher for text stored in delegate.

Reimplemented in TextFieldTTF.

virtual void insertText ( const char *  text,
size_t  len 
)
inlineprotectedvirtual

Called by IMEDispatcher when text input received from the IME.

Reimplemented in TextFieldTTF, and UICCTextField.

virtual void keyboardDidHide ( IMEKeyboardNotificationInfo info)
inlineprotectedvirtual

Reimplemented in EditBox.

virtual void keyboardDidShow ( IMEKeyboardNotificationInfo info)
inlineprotectedvirtual

Reimplemented in EditBox.

virtual void keyboardWillHide ( IMEKeyboardNotificationInfo info)
inlineprotectedvirtual

Reimplemented in EditBox.

virtual void keyboardWillShow ( IMEKeyboardNotificationInfo info)
inlineprotectedvirtual

Reimplemented in EditBox.

Friends And Related Function Documentation

friend class IMEDispatcher
friend
var IMEDispatcher
friend
local IMEDispatcher
friend

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