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

Input method editor delegate. More...

#include <CCIMEDelegate.h>

Inheritance diagram for CCIMEDelegate:
CCTextFieldTTF CCEditBox UICCTextField

Public Member Functions

virtual ~CCIMEDelegate ()
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 CCIMEDispatcher. 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 CCIMEDispatcher. More...
 
virtual void insertText (const char *text, int len)
 Called by CCIMEDispatcher when text input received from the IME. More...
 
virtual void deleteBackward ()
 Called by CCIMEDispatcher after the user clicks the backward key. More...
 
virtual const char * getContentText ()
 Called by CCIMEDispatcher for text stored in delegate. More...
 
virtual void keyboardWillShow (CCIMEKeyboardNotificationInfo &info)
virtual void keyboardDidShow (CCIMEKeyboardNotificationInfo &info)
virtual void keyboardWillHide (CCIMEKeyboardNotificationInfo &info)
virtual void keyboardDidHide (CCIMEKeyboardNotificationInfo &info)
 CCIMEDelegate ()

Friends

class CCIMEDispatcher

Detailed Description

Input method editor delegate.

Constructor & Destructor Documentation

virtual ~CCIMEDelegate ( )
virtual
CCIMEDelegate ( )
protected

Member Function Documentation

virtual bool attachWithIME ( )
virtual

Reimplemented in CCTextFieldTTF.

virtual bool canAttachWithIME ( )
inlineprotectedvirtual

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

Called by CCIMEDispatcher.

Reimplemented in CCTextFieldTTF.

virtual bool canDetachWithIME ( )
inlineprotectedvirtual

Decide if the delegate instance can stop receiving IME messages.

Reimplemented in CCTextFieldTTF.

virtual void deleteBackward ( )
inlineprotectedvirtual

Called by CCIMEDispatcher after the user clicks the backward key.

Reimplemented in CCTextFieldTTF, and UICCTextField.

virtual bool detachWithIME ( )
virtual

Reimplemented in CCTextFieldTTF.

virtual void didAttachWithIME ( )
inlineprotectedvirtual

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

virtual void didDetachWithIME ( )
inlineprotectedvirtual

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

virtual const char* getContentText ( )
inlineprotectedvirtual

Called by CCIMEDispatcher for text stored in delegate.

Reimplemented in CCTextFieldTTF.

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

Called by CCIMEDispatcher when text input received from the IME.

Reimplemented in CCTextFieldTTF, and UICCTextField.

virtual void keyboardDidHide ( CCIMEKeyboardNotificationInfo info)
inlineprotectedvirtual

Reimplemented in CCEditBox.

virtual void keyboardDidShow ( CCIMEKeyboardNotificationInfo info)
inlineprotectedvirtual

Reimplemented in CCEditBox.

virtual void keyboardWillHide ( CCIMEKeyboardNotificationInfo info)
inlineprotectedvirtual

Reimplemented in CCEditBox.

virtual void keyboardWillShow ( CCIMEKeyboardNotificationInfo info)
inlineprotectedvirtual

Reimplemented in CCEditBox.

Friends And Related Function Documentation

friend class CCIMEDispatcher
friend

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