GuiTextCtrl

Engine/source/gui/controls/guiTextCtrl.h

More...

Public Types

enum
Constants {  MAX_STRING_LENGTH = 1024
}

Private Types

Parent 

Public Functions

DECLARE_CATEGORY("Gui Text" )
DECLARE_DESCRIPTION("A <a href="/coding/file/guieditctrl_8cpp/#guieditctrl_8cpp_1abb04e3738c4c5a96b3ade6fa47013a6c">control</a> that displays <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> single line of text." )
displayText(S32 xOffset, S32 yOffset)
const char *

Returns the value of the variable bound to this object.

const char *

Called after any property of the object is changed in the world editor.

bool

Called when this object is added to the scene.

Do special pre-render processing.

onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

bool

Called when this object is asked to wake up returns true if it's actually awake at the end.

setScriptValue(const char * value)

Sets the value of the variable bound to this object.

setText(const char * txt)
setTextID(const char * id)

Public Static Functions

const char *
getTextProperty(void * obj, const char * data)
bool
setText(void * object, const char * index, const char * data)

Detailed Description

Public Types

Constants

Enumerator

MAX_STRING_LENGTH = 1024

Private Types

typedef GuiContainer Parent 

Protected Attributes

StringTableEntry mInitialText 
StringTableEntry mInitialTextID 
S32 mMaxStrLen 
UTF8 mText [MAX_STRING_LENGTH+1]

Public Functions

GuiTextCtrl()

autoResize()

DECLARE_CATEGORY("Gui Text" )

DECLARE_CONOBJECT(GuiTextCtrl )

DECLARE_DESCRIPTION("A <a href="/coding/file/guieditctrl_8cpp/#guieditctrl_8cpp_1abb04e3738c4c5a96b3ade6fa47013a6c">control</a> that displays <a href="/coding/file/pointer_8h/#pointer_8h_1aeeddce917cf130d62c370b8f216026dd">a</a> single line of text." )

displayText(S32 xOffset, S32 yOffset)

getScriptValue()

Reimplemented from: GuiControl

Reimplemented by: GuiTextEditCtrl, GuiProgressBitmapCtrl, GuiProgressCtrl

getText()

inspectPostApply()

Reimplemented from: SimObject

onAdd()

Reimplemented from: GuiControl

Reimplemented by: GuiTextEditCtrl

onPreRender()

Reimplemented from: GuiContainer

Reimplemented by: GuiTextEditCtrl, GuiTextEditSliderBitmapCtrl, GuiTextEditSliderCtrl, GuiProgressBitmapCtrl, GuiProgressCtrl

onRender(Point2I offset, const RectI & updateRect)

Reimplemented from: GuiControl

Reimplemented by: GuiTextEditCtrl, GuiTextEditSliderBitmapCtrl, GuiTextEditSliderCtrl, GuiProgressBitmapCtrl, GuiProgressCtrl

onWake()

Reimplemented from: GuiControl

Reimplemented by: GuiPopUpMenuCtrl, GuiPopUpMenuCtrlEx, GuiTabPageCtrl, GuiTextEditSliderBitmapCtrl, GuiProgressBitmapCtrl

setScriptValue(const char * value)

Reimplemented from: GuiControl

Reimplemented by: GuiTextEditCtrl, GuiProgressBitmapCtrl, GuiProgressCtrl

setText(const char * txt)

Reimplemented by: GuiTextEditSliderBitmapCtrl, GuiTextEditSliderCtrl, GuiTabPageCtrl

setTextID(const char * id)

setTextID(S32 id)

Public Static Functions

getTextProperty(void * obj, const char * data)

initPersistFields()

setText(void * object, const char * index, const char * data)