Button
This function creates a button widget.
The
style value of the script can be set to any of the following:
- Push (default)
- Checkbox
- Link
Syntax
- static Widget* Button(const std::string& text, const int x, const int y, const int width, const int height, Widget* parent)
Parameters
- text: text to display on the widget.
- 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 button.