TextInput
Inherited: None
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
Frame * |
background () const |
backgroundColor () const |
|
hoverColor () const |
|
pressedColor () const |
|
void |
setBackground (Frame * frame) |
void |
setBackgroundColor (Vector4 color) |
void |
setHoverColor (Vector4 color) |
void |
setPressedColor (Vector4 color) |
void |
setText (const std::string text) |
void |
setTextColor (Vector4 color) |
void |
setTextComponent (Label * label) |
std::string |
text () const |
textColor () const |
|
Label * |
textComponent () const |
Static Methods
None
Methods Description
Frame * TextInput::background () const
Returns the background frame component.
See also setBackground().
Vector4 TextInput::backgroundColor () const
Returns the color of the background.
See also setBackgroundColor().
Vector4 TextInput::hoverColor () const
Returns the color of the background in hover state.
See also setHoverColor().
Vector4 TextInput::pressedColor () const
Returns the color of the background in pressed state.
See also setPressedColor().
void TextInput::setBackground (Frame * frame)
Sets the background frame component.
See also background().
void TextInput::setBackgroundColor (Vector4 color)
Sets the color of the background.
See also backgroundColor().
void TextInput::setHoverColor (Vector4 color)
Sets the color of the background in hover state.
See also hoverColor().
void TextInput::setPressedColor (Vector4 color)
Sets the color of the background in pressed state.
See also pressedColor().
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().
Label * TextInput::textComponent () const
Returns the text label component.
See also setTextComponent().