-
-
Notifications
You must be signed in to change notification settings - Fork 53
GetText
Otavio edited this page Dec 5, 2022
·
3 revisions
This functions returns the current typed text from a widget.
This function returns a std::string
.
This function can be used to get the current text from a TextBox.
List of widgets that are using this function:
- TextBox
Let's say I want to draw what I'm typing on the screen:
// This will render a string on the screen with the text typed in the TextBox.
FGUI::REBDER.Text(10, 10, myFont, TextBox->GetText())
Next you will learn about the GetState function.
You can also read the library comments/functions for additional info.