Label
This function creates a label widget. A label is a non-interactive widget that displays a line of text.
You can set the boolean value
border to true to display a border around the label and increase the widget padding.
Syntax
- static Widget* Label(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 label.