Default ctor.
Gui initialization options
Add a new state to the list.
Add a gui as a child of this one.
Start a transition from the current state to the specified state.
Override this to render the gui itself. \ If the canvas is set, the coordinate are those *inside* the canvas.
Override this to render things above the gui. \ If the canvas is set, the coordinate are those *outside* the canvas.
Returns the alignment relative to its parent.
Current state name or currently transitioning to.
Is it inside the gui ?
Is it inside the gui and the gui is interactable ? \ Used to capture events.
Called when the opacity change.
Called when the anchor is changed.
Called when the angle change.
Any callback set to this gui will call this.
Fired upon cancelling.
Called when the center of the gui moved.
Called when the color change.
Called when the anchor is changed. \ The delta value is the difference with the last anchor.
Called when the position is changed. \ The delta value is the difference with the last position.
Called when the size is changed. \ The delta value is the difference with the last size.
Fired when going down.
With the eventHook, receive all events. \ Useful if you want to control like for text input.
Called when the focus state is changed.
Called when the hover state is changed.
Called when the interactable state is changed.
Fired when going left.
Called when the lock state is changed.
Called when the movable state is changed.
Fired on the next tab event.
Called when the padding change.
Called when the position is changed.
Fired on the previous tab event.
Fired when the application is exiting. \ Every gui in the tree receive this.
Fired when going right.
Called when the select state is changed.
Called when the size is changed.
Fired when clicked on.
Fired when going up.
Add a gui as a child of this one.
Remove the specified child.
Remove the child at the specified index.
Remove all the children.
Unregister itself from its parent or root.
Sets the alignment relative to its parent. \ Position will be calculated from the specified alignement.
Set an id that will be sent to the specified gui when **triggerCallback()** is fired.
Does this gui receive events (with **onEvent()**) ?
Update the hint (Text that appear when hovering the gui) of the gui.
Default ctor.
The gui is set *immediately* to the specified state without transition.
Send a previously set (with **setCallback()**) id to the previously specified gui.
Override this to set the gui logic. The deltaTime is the time ratio for the last frame to the next. It is equivallent to Actual framerate / Nominal framerate. Ideally, it's equal to 1. ___ If the canvas is set, the coordinate are those *inside* the canvas.
Alpha of the actual state (GuiState) of the gui. \ Call **onAlpha()** on change.
Alpha of the actual state (GuiState) of the gui. \ Call **onAlpha()** on change.
The anchor of the gui. (I don't think it's used right now). \ Call **onAnchor()** and **onDeltaAnchor()** and **onCenter()** on change.
The anchor of the gui. (I don't think it's used right now). \ Call **onAnchor()** and **onDeltaAnchor()** and **onCenter()** on change.
Angle of the actual state (GuiState) of the gui.
If set, the canvas used to be rendered on.
Center of the gui. \ If the canvas is set, only drawOverlay have the coordinate of its parent, the rest are in a relative coordinate.
The number of children it currently has.
The list of all its children.
The list of all its children.
Color of the actual state (GuiState) of the gui. \ Call **onColor()** on change.
Return the first child gui.
Is this GUI using a canvas ?
Is this GUI using a canvas ?
Does this gui has focus ? \ Call **onFocus()** on change.
Does this gui has focus ? \ Call **onFocus()** on change.
The hint window to be shown when hovering this GUI.
Is this gui clicked ?
Is this gui clicked ?
Is this gui hovered ? \ Call **onHover()** on change. (<- Not for now)
Is this gui hovered ? \ Call **onHover()** on change. (<- Not for now)
Is this gui interactable ? \ Call **onInteractable()** on change.
Is this gui interactable ? \ Call **onInteractable()** on change.
Is this gui locked ? \ Call **onLock()** on change.
Is this gui locked ? \ Call **onLock()** on change.
Is this gui movable ? \ Call **onMovable()** on change.
Is this gui movable ? \ Call **onMovable()** on change.
Is this gui selected ? \ Call **onSelect()** on change.
Is this gui selected ? \ Call **onSelect()** on change.
Return the last child gui.
The list of all its own children.
The top left corner of the gui. \ If the canvas is set, only drawOverlay have the coordinate of its parent, the rest are in a relative coordinate.
Extra space on top of its size. \ Call **onPadding()** and update the gui size.
The gui position relative to its parent and alignment. \ Call **onPosition()** and **onDeltaPosition()** and **onCenter()** on change.
The gui position relative to its parent and alignment. \ Call **onPosition()** and **onDeltaPosition()** and **onCenter()** on change.
The scale of the gui (changed by GuiState).
The total size (size + scale) of the gui.
The unscaled size of the gui. \ Call **onSize()** and **onDeltaSize()** and **onCenter()** on change. \ Resize the canvas if it was set (It reallocate the canvas, so be careful).
Base class of all GUI elements.