Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::UI::ScopedStyle Class Reference

RAII helper to push and pop a single ImGui style variable. Pushes the style var on construction, pops on destruction. More...

#include <UI.h>

Public Member Functions

 ScopedStyle (const ScopedStyle &)=delete
ScopedStyle operator= (const ScopedStyle &)=delete
template<typename T>
 ScopedStyle (ImGuiStyleVar styleVar, T value)
 Construct and push a style variable.
 ~ScopedStyle ()
 Pops the pushed style variable.

Detailed Description

RAII helper to push and pop a single ImGui style variable. Pushes the style var on construction, pops on destruction.

Constructor & Destructor Documentation

◆ 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
TType of the style value.
Parameters
styleVarImGui style variable to push.
valueValue to set for the style variable.

◆ ~ScopedStyle()

Raven::UI::ScopedStyle::~ScopedStyle ( )
inline

Pops the pushed style variable.

Member Function Documentation

◆ operator=()

ScopedStyle Raven::UI::ScopedStyle::operator= ( const ScopedStyle & )
delete

The documentation for this class was generated from the following file:
  • Framework/src/UI/UI.h