TextInput

Inherited: Frame

Description

The TextInput class provides a user interface for text input, supporting text editing, cursor positioning, and input handling. It inherits functionality from the Widget class and extends it to handle text-related features and animations.

Public Methods

void

setText (const std::string text)

void

setTextColor (Vector4 color)

void

setTextComponent (Label * label)

std::string

text () const

Vector4

textColor () const

Label *

textComponent () const

Static Methods

None

Methods Description

void TextInput::setText (std::string text)

Sets the text in the TextInput.

See also *text*().


void TextInput::setTextColor (Vector4 color)

Sets the color of the text.

See also textColor().


void TextInput::setTextComponent (Label * label)

Sets the text label component.

See also textComponent().


std::string TextInput::text () const

Returns the current text entered into the TextInput.

See also setText().


Vector4 TextInput::textColor () const

Returns the color of the text.

See also setTextColor().


:ref:`Label<api_Label>`* TextInput::textComponent () const

Returns the text label component.

See also setTextComponent().