RAII helper to push and pop multiple ImGui style variables in one go. Expects a list of pairs: (ImGuiStyleVar, Value).
More...
#include <UI.h>
RAII helper to push and pop multiple ImGui style variables in one go. Expects a list of pairs: (ImGuiStyleVar, Value).
◆ ScopedStyleStack() [1/2]
◆ ScopedStyleStack() [2/2]
template<typename ValueType, typename... OtherStylePairs>
| Raven::UI::ScopedStyleStack::ScopedStyleStack |
( |
ImGuiStyleVar | firstStyleVar, |
|
|
ValueType | firstValue, |
|
|
OtherStylePairs &&... | otherStylePairs ) |
|
inline |
Construct and push multiple style variables.
- Template Parameters
-
| ValueType | Type of the first style value. |
| OtherStylePairs | Variadic template for remaining pairs. |
- Parameters
-
| firstStyleVar | First ImGuiStyleVar to push. |
| firstValue | Value of the first style var. |
| otherStylePairs | Remaining pairs of (ImGuiStyleVar, Value) (must be even count). |
◆ ~ScopedStyleStack()
| Raven::UI::ScopedStyleStack::~ScopedStyleStack |
( |
| ) |
|
|
inline |
Pops all pushed style vars at destruction.
◆ operator=()
The documentation for this class was generated from the following file: