Initialize the label with given text.
Set wrap on for this node.
Set wrap off for this node
If true, the content of the label should not be wrapped into new lines if it's too long to fit into one.
Text of this label.
Node core constructor parameters, to be passed from node to node.
Represents a node's layout
Node core constructor parameters, to be passed from node to node.
This node defines a single style, style, which also works as a default style for all other nodes. However, rather than for that, the purpose of this style is to define the convention of style being the node's default, idle style.
Tree data for the node. Note: requires at least one draw before this will work.
Layout for this node.
If true, this node will be removed from the tree on the next draw.
If true, mouse focus will be disabled for this node, so mouse signals will "go through" to its parents, as if the node wasn't there. The node will still detect hover like normal.
Minimum size of the node.
Get the current theme.
Set the theme.
Check if the node is hidden.
Set the visibility
Show the node.
Hide the node.
Disable this node.
Enable this node.
Toggle the node's visibility.
Remove this node from the tree before the next draw.
Check if this node is hovered.
Check if this node is disabled.
Checks if the node is disabled, either by self, or by any of its ancestors. Updated when drawn.
Queue an action to perform within this node's branch.
Recalculate the window size before next draw.
Draw this node as a root node.
Switch to the previous or next focused item
Switch focus towards a specified direction.
Draw this node at the specified location from within of another (parent) node.
Recalculate the minimum node size and update the minSize property.
Ditto
Draw this node.
Check if the node is hovered.
Get the current style.
// Label takes just a single argument: the text to display auto myLabel = label("Hello, World!"); // You can access and change label text myLabel.text ~= " It's a nice day today!"; // Text will automatically wrap if it's too long to fit, but you can toggle it off myLabel.isWrapDisabled = true;
A label can be used to display text on the screen.
Styles: