|
imgui-platform-kit 2.0.0
Cross-platform Dear ImGui application framework
|
Main application object: owns the platform window, the rendering backend and the registered UserInterfaceWindow instances. More...
#include <win32_dx12_user_interface.h>
Public Member Functions | |
| UserInterface () | |
| Constructs the interface with default UserInterfaceParameters. | |
| UserInterface (UserInterfaceParameters parameters) | |
| Constructs the interface with the given parameters. | |
| ~UserInterface ()=default | |
| void | initialize () |
| Creates the platform window, sets up the rendering backend and the ImGui/ImPlot/node-editor contexts, and applies the configured style, fonts, icon and background image. | |
| void | render () |
| Renders one frame: processes platform events and calls render() on every registered window. | |
| void | shutdown () |
| Destroys the rendering backend, the ImGui contexts and the platform window. | |
| bool | isShutdownRequested () const |
| Returns true once the user has requested to close the window. | |
| template<typename T , typename... Args> | |
| void | addWindow (Args &&... args) |
Constructs a window of type T and registers it for rendering. | |
Main application object: owns the platform window, the rendering backend and the registered UserInterfaceWindow instances.
Typical usage:
| imgui_kit::UserInterface::UserInterface | ( | ) |
Constructs the interface with default UserInterfaceParameters.
|
explicit |
Constructs the interface with the given parameters.
| parameters | Window, font, style, icon and background image settings. |
|
default |
|
inline |
Constructs a window of type T and registers it for rendering.
| T | A subclass of UserInterfaceWindow. |
| Args | Types of the constructor arguments. |
| args | Arguments forwarded to the constructor of T. |
| void imgui_kit::UserInterface::initialize | ( | ) |
Creates the platform window, sets up the rendering backend and the ImGui/ImPlot/node-editor contexts, and applies the configured style, fonts, icon and background image.
Must be called once before render().
| bool imgui_kit::UserInterface::isShutdownRequested | ( | ) | const |
Returns true once the user has requested to close the window.
| void imgui_kit::UserInterface::render | ( | ) |
Renders one frame: processes platform events and calls render() on every registered window.
Call repeatedly in a loop until isShutdownRequested() returns true.
| void imgui_kit::UserInterface::shutdown | ( | ) |
Destroys the rendering backend, the ImGui contexts and the platform window.
Call once after the render loop ends.