A WsGUI widget displaying non-editable text.
Create new instance and add it to the window immediately.
Create new instance without adding it to the window. Use this when using WsLayout.
wsWindow |
An instance of |
bounds |
A NOTE: Currently a relative measurement is used: 1 for full window width, 1 for full window height, e.g. Rect(0, 0, 1, 1) would occupy whole window. |
an instance of the widget
function |
A function to be performed when the widget is interacted with. Function is being passed current instance. |
Current function.
color |
Background color of the widget. Should be an instance of a NOTE: Background is transparent by default, but setting transparency is not currently supported; once the color is set, there's no way to revert back to transparency.
|
current color
color |
Text color of the widget. Should be an instance of a |
current color
Get/set a text content for applicable widgets.
thisString |
A string to be set. |
current string
Change alignment of the text.
align |
Can be |
Current alignment.
Change the font of the text for applicable widgets.
font |
An instance of |
Current font.
Add to window/page specified in *init.
Removes the widget from the window.