Manages the lifecycle of the GLFW window and ImGui context.
More...
#include <UIManager.h>
|
| | UIManager () |
| |
| | ~UIManager () |
| |
| void | beginFrame () |
| | Prepares for a new frame (polls events, starts ImGui frame).
|
| |
| void | endFrame () |
| | Finalizes the frame (renders ImGui, swaps buffers).
|
| |
| GLFWwindow * | getWindow () const |
| |
| void | renderDockspace () |
| | Renders the master dockspace that fills the entire window.
|
| |
| bool | shouldClose () const |
| | Checks if the window should close (e.g., user clicked X).
|
| |
| bool | start (const std::string &title, int width, int height) |
| | Initializes GLFW, creates the window, and sets up ImGui.
|
| |
| void | stop () |
| | Shuts down ImGui and GLFW, destroying the window.
|
| |
Manages the lifecycle of the GLFW window and ImGui context.
◆ UIManager()
| client_ui::UIManager::UIManager |
( |
| ) |
|
◆ ~UIManager()
| client_ui::UIManager::~UIManager |
( |
| ) |
|
◆ beginFrame()
| void client_ui::UIManager::beginFrame |
( |
| ) |
|
Prepares for a new frame (polls events, starts ImGui frame).
◆ endFrame()
| void client_ui::UIManager::endFrame |
( |
| ) |
|
Finalizes the frame (renders ImGui, swaps buffers).
◆ getWindow()
| GLFWwindow * client_ui::UIManager::getWindow |
( |
| ) |
const |
|
inline |
◆ renderDockspace()
| void client_ui::UIManager::renderDockspace |
( |
| ) |
|
Renders the master dockspace that fills the entire window.
◆ shouldClose()
| bool client_ui::UIManager::shouldClose |
( |
| ) |
const |
Checks if the window should close (e.g., user clicked X).
◆ start()
| bool client_ui::UIManager::start |
( |
const std::string & |
title, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Initializes GLFW, creates the window, and sets up ImGui.
- Parameters
-
| title | Window title. |
| width | Initial width. |
| height | Initial height. |
- Returns
- true if successful.
◆ stop()
| void client_ui::UIManager::stop |
( |
| ) |
|
Shuts down ImGui and GLFW, destroying the window.
◆ mImGuiContext
| ImGuiContext* client_ui::UIManager::mImGuiContext = nullptr |
|
private |
◆ mWindow
| GLFWwindow* client_ui::UIManager::mWindow = nullptr |
|
private |
The documentation for this class was generated from the following files: