Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
EditBoxDelegate Class Referenceabstract

Editbox delgate class. More...

Public Member Functions

virtual void editBoxEditingDidBegin (EditBox *editBox)
 This method is called when an edit box gains focus after keyboard is shown. More...
 
virtual void editBoxEditingDidEnd (EditBox *editBox)
 This method is called when an edit box loses focus after keyboard is hidden. More...
 
virtual void editBoxTextChanged (EditBox *editBox, const std::string &text)
 This method is called when the edit box text was changed. More...
 
virtual void editBoxReturn (EditBox *editBox)=0
 This method is called when the return button was pressed or the outside area of keyboard was touched. More...
 

Detailed Description

Editbox delgate class.

It's useful when you want to do some customization duing Editbox input event

Member Function Documentation

virtual void editBoxEditingDidBegin ( EditBox editBox)
inlinevirtual

This method is called when an edit box gains focus after keyboard is shown.

The edit box object that generated the event.

virtual void editBoxEditingDidEnd ( EditBox editBox)
inlinevirtual

This method is called when an edit box loses focus after keyboard is hidden.

The edit box object that generated the event.

virtual void editBoxTextChanged ( EditBox editBox,
const std::string &  text 
)
inlinevirtual

This method is called when the edit box text was changed.

The edit box object that generated the event. The new text.

virtual void editBoxReturn ( EditBox editBox)
pure virtual

This method is called when the return button was pressed or the outside area of keyboard was touched.

The edit box object that generated the event.


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