Class CCTextFieldTTF

#include <Geode/cocos/text_input_node/CCTextFieldTTF.h>
classCCTextFieldTTF:publiccocos2d::CCLabelTTF,publiccocos2d::CCIMEDelegate{ ... }

A simple text input field with TTF font.

Examples0
Public static methods2
staticcocos2d::CCTextFieldTTF*textFieldWithPlaceHolder(
charconst*placeholder
,,,
charconst*fontName
,
floatfontSize
)

creates a CCTextFieldTTF from a fontname, alignment, dimension and font size

staticcocos2d::CCTextFieldTTF*textFieldWithPlaceHolder(
charconst*placeholder
,
charconst*fontName
,
floatfontSize
)

creates a CCLabelTTF from a fontname and font size

Public member functions15
boolinitWithPlaceHolder(
charconst*placeholder
,,,
charconst*fontName
,
floatfontSize
)

initializes the CCTextFieldTTF with a font name, alignment, dimension and font size

boolinitWithPlaceHolder(
charconst*placeholder
,
charconst*fontName
,
floatfontSize
)

initializes the CCTextFieldTTF with a font name and font size

virtualboolattachWithIME()

Open keyboard and receive input text.

virtualbooldetachWithIME()

End text input and close keyboard.

cocos2d::CCTextFieldDelegate*getDelegate()const

//////////////////////////////////////////////////////////////////////////

voidsetDelegate()

//////////////////////////////////////////////////////////////////////////

virtualintgetCharCount()const
No description provided
virtualcocos2d::ccColor3Bconst&getColorSpaceHolder()
No description provided
virtualvoidsetColorSpaceHolder()
No description provided
virtualvoidsetString()
No description provided
virtualcharconst*getString()
No description provided
virtualvoidsetPlaceHolder()
No description provided
virtualcharconst*getPlaceHolder()
No description provided
virtualvoidsetSecureTextEntry(
boolvalue
)
No description provided
virtualboolisSecureTextEntry()
No description provided
Fields1
intm_uCursorPos
;
No description provided
Protected member functions6
virtualvoiddraw()
No description provided
virtualboolcanAttachWithIME()

//////////////////////////////////////////////////////////////////////////

virtualboolcanDetachWithIME()
No description provided
virtualvoidinsertText(,
intlen
,)
No description provided
virtualvoiddeleteBackward()
No description provided
virtualcharconst*getContentText()
No description provided
Protected fields6
;

//////////////////////////////////////////////////////////////////////////

intm_nCharCount
;
No description provided
gd::string*m_pInputText
;
No description provided
gd::string*m_pPlaceHolder
;
No description provided
cocos2d::ccColor3Bm_ColorSpaceHolder
;
No description provided
boolm_bSecureTextEntry
;
No description provided