RAII helper to push and pop a single ImGui style variable. Pushes the style var on construction, pops on destruction.
More...
#include <UI.h>
RAII helper to push and pop a single ImGui style variable. Pushes the style var on construction, pops on destruction.
◆ ScopedStyle() [1/2]
| Raven::UI::ScopedStyle::ScopedStyle |
( |
const ScopedStyle & | | ) |
|
|
delete |
◆ ScopedStyle() [2/2]
template<typename T>
| Raven::UI::ScopedStyle::ScopedStyle |
( |
ImGuiStyleVar | styleVar, |
|
|
T | value ) |
|
inline |
Construct and push a style variable.
- Template Parameters
-
| T | Type of the style value. |
- Parameters
-
| styleVar | ImGui style variable to push. |
| value | Value to set for the style variable. |
◆ ~ScopedStyle()
| Raven::UI::ScopedStyle::~ScopedStyle |
( |
| ) |
|
|
inline |
Pops the pushed style variable.
◆ operator=()
The documentation for this class was generated from the following file: