TextField
This function creates a textfield widget. A textfield is an editable line of text the user may modify with keyboard input.
Syntax
- static Widget* TextField(const std::string& text, const int x, const int y, const int width, const int height, Widget* parent)
Parameters
- text: default text to display
- x: X position of the widget, in logical units.
- y: Y position of the widget, in logical units.
- width: width of the widget, in logical units.
- height: height of the widget, in logical units.
Returns
Returns a new textfield.