◆ Manager()
oe::gui::Manager::Manager |
( |
| ) |
|
◆ applyTheme()
void oe::gui::Manager::applyTheme |
( |
| ) |
|
Apply theme settings before generating GUI.
- Note
- You need to call this function only if you have made any changes to the theme or font (including before first generation)
◆ bindToWindow()
Allow the UI to send events / take control of specific application window
- Parameters
-
window | Window to take control, use nullptr to disable |
@Note Used to let the UI move/show/hide the cursor and access the clipboard
◆ createComponent()
template<typename T , typename... Args>
T * oe::gui::Manager::createComponent |
( |
Args &&... |
args | ) |
|
|
inline |
◆ createWindow()
component::Window * oe::gui::Manager::createWindow |
( |
const std::string & |
name, |
|
|
const std::string & |
title, |
|
|
const glm::vec2 & |
pos, |
|
|
const glm::vec2 & |
size, |
|
|
const int & |
options = DEFAULT_WINDOW_FLAGS |
|
) |
| |
◆ generate()
void oe::gui::Manager::generate |
( |
| ) |
|
Helper to let the event handler automaticaly fill setMouseScroll() and onCharacterPress() Generate UI content (no render performed)
◆ getRenderer()
Renderer & oe::gui::Manager::getRenderer |
( |
| ) |
|
|
inline |
Get ui renderer (for example: to change the shader)
◆ getTheme()
Theme & oe::gui::Manager::getTheme |
( |
| ) |
|
|
inline |
Get theme handler (for example: to make color / fonts edits)
◆ getWindow()
Get an existing window by name
◆ handleEvents()
Transmit event states to UI
◆ render()
void oe::gui::Manager::render |
( |
| ) |
|
◆ dimensions
glm::ivec2 oe::gui::Manager::dimensions = glm::ivec2(0) |
The documentation for this class was generated from the following file:
- OxygenEngine/gui/manager.h