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

A input protocol for TextField. More...

Inherited by UICCTextField.

Public Member Functions

virtual ~TextFieldDelegate ()
 Destructor for TextFieldDelegate.
 
local ~TextFieldDelegate ()
 Destructor for TextFieldDelegate.
 
virtual bool onTextFieldAttachWithIME (TextFieldTTF *sender)
 The callback method of IME attached on the TextField. More...
 
var onTextFieldAttachWithIME ( var sender)
 The callback method of IME attached on the TextField. More...
 
local onTextFieldAttachWithIME ( local sender)
 The callback method of IME attached on the TextField. More...
 
virtual bool onTextFieldDetachWithIME (TextFieldTTF *sender)
 The callback method of IME detached on the TextField. More...
 
virtual bool onTextFieldInsertText (TextFieldTTF *sender, const char *text, size_t nLen)
 The callback method of text inserted on the TextField. More...
 
local onTextFieldInsertText ( local sender, local text, local nLen)
 The callback method of text inserted on the TextField. More...
 
virtual bool onTextFieldDeleteBackward (TextFieldTTF *sender, const char *delText, size_t nLen)
 The callback method of text will be delete on the TextField. More...
 
var onTextFieldDeleteBackward ( var sender, var delText, var nLen)
 The callback method of text will be delete on the TextField. More...
 
local onTextFieldDeleteBackward ( local sender, local delText, local nLen)
 The callback method of text will be delete on the TextField. More...
 
virtual bool onVisit (TextFieldTTF *sender, Renderer *renderer, const Mat4 &transform, uint32_t flags)
 The callback method of the TextField will be drawn. More...
 

Detailed Description

A input protocol for TextField.

Member Function Documentation

virtual bool
onTextFieldAttachWithIME
( TextFieldTTF sender)
inlinevirtual

The callback method of IME attached on the TextField.

The TextField object. If the sender doesn't want to attach to the IME, return true.

Reimplemented in UICCTextField.

var onTextFieldAttachWithIME ( var  sender)
inlinevirtual

The callback method of IME attached on the TextField.

The TextField object. If the sender doesn't want to attach to the IME, return true.

Reimplemented in UICCTextField.

local onTextFieldAttachWithIME ( local  sender)
inlinevirtual

The callback method of IME attached on the TextField.

The TextField object. If the sender doesn't want to attach to the IME, return true.

Reimplemented in UICCTextField.

virtual bool
onTextFieldDetachWithIME
( TextFieldTTF sender)
inlinevirtual

The callback method of IME detached on the TextField.

The TextField object. If the sender doesn't want to attach to the IME, return true.

Reimplemented in UICCTextField.

var onTextFieldDetachWithIME ( var  sender)
inlinevirtual

The callback method of IME detached on the TextField.

The TextField object. If the sender doesn't want to attach to the IME, return true.

Reimplemented in UICCTextField.

local onTextFieldDetachWithIME ( local  sender)
inlinevirtual

The callback method of IME detached on the TextField.

The TextField object. If the sender doesn't want to attach to the IME, return true.

Reimplemented in UICCTextField.

virtual bool onTextFieldInsertText ( TextFieldTTF sender,
const char *  text,
size_t  nLen 
)
inlinevirtual

The callback method of text inserted on the TextField.

The TextField object. The text will be inserted. The length of the inserted text. If the sender doesn't want to insert text, return true.

Reimplemented in UICCTextField.

var onTextFieldInsertText ( var  sender,
var  text,
var  nLen 
)
inlinevirtual

The callback method of text inserted on the TextField.

The TextField object. The text will be inserted. The length of the inserted text. If the sender doesn't want to insert text, return true.

Reimplemented in UICCTextField.

local onTextFieldInsertText ( local  sender,
local  text,
local  nLen 
)
inlinevirtual

The callback method of text inserted on the TextField.

The TextField object. The text will be inserted. The length of the inserted text. If the sender doesn't want to insert text, return true.

Reimplemented in UICCTextField.

virtual bool
onTextFieldDeleteBackward
( TextFieldTTF sender,
const char *  delText,
size_t  nLen 
)
inlinevirtual

The callback method of text will be delete on the TextField.

The TextField object. The text will be deleted. The length of the deleted text. If the sender doesn't want to delete text, return true.

Reimplemented in UICCTextField.

var onTextFieldDeleteBackward ( var  sender,
var  delText,
var  nLen 
)
inlinevirtual

The callback method of text will be delete on the TextField.

The TextField object. The text will be deleted. The length of the deleted text. If the sender doesn't want to delete text, return true.

Reimplemented in UICCTextField.

local onTextFieldDeleteBackward ( local  sender,
local  delText,
local  nLen 
)
inlinevirtual

The callback method of text will be delete on the TextField.

The TextField object. The text will be deleted. The length of the deleted text. If the sender doesn't want to delete text, return true.

Reimplemented in UICCTextField.

virtual bool onVisit ( TextFieldTTF sender,
Renderer *  renderer,
const Mat4 transform,
uint32_t  flags 
)
inlinevirtual

The callback method of the TextField will be drawn.

The TextField object. The renderer will render the TextField. The transform matrix used for renderer. The flags for the renderer. If you don't want to render the TextField, return true.

var onVisit ( var  sender,
var  renderer,
var  transform,
var  flags 
)
inlinevirtual

The callback method of the TextField will be drawn.

The TextField object. The renderer will render the TextField. The transform matrix used for renderer. The flags for the renderer. If you don't want to render the TextField, return true.

local onVisit ( local  sender,
local  renderer,
local  transform,
local  flags 
)
inlinevirtual

The callback method of the TextField will be drawn.

The TextField object. The renderer will render the TextField. The transform matrix used for renderer. The flags for the renderer. If you don't want to render the TextField, return true.


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