atelier.ui.gui_manager

Gui Manager

Members

Functions

appendRoot
void appendRoot(GuiElement gui)

Add a gui as a top gui (not a child of anything).

drawRoots
void drawRoots()

Draw all the guis from the root.

drawRoots
void drawRoots(GuiElement gui)

Renders a gui and all its children.

getRoots
GuiElement[] getRoots()

Get all the root gui.

handleGuiElementEvent
void handleGuiElementEvent(Event event)

Dispatch global events on the guis from the root. \ Called by the main event loop.

prependRoot
void prependRoot(GuiElement gui)

Add a gui as a top gui (not a child of anything).

removeRoot
void removeRoot(GuiElement gui)

Remove the specified gui from roots.

removeRoot
void removeRoot(size_t index)

Remove the gui at the specified index from roots.

removeRoots
void removeRoots()

Remove all the top gui (that aren't a child of anything).

setDebugGui
void setDebugGui(bool isDebug)

Show every the hitbox of every gui element.

setFocusedElement
void setFocusedElement(GuiElement gui)
Undocumented in source. Be warned that the author may not have intended to support it.
setRoots
void setRoots(GuiElement[] widgets)

Set those gui as the top guis (replacing the previous ones).

updateRoots
void updateRoots(float deltaTime)

Update all the guis from the root.

updateRoots
void updateRoots(GuiElement gui, GuiElement parent)

Update all children of a gui. \ Called by the application itself.

Meta

License

Zlib

Authors

Enalye