yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::StyleVarGuard Class Reference

RAII guard for ImGui style vars. More...

#include <style_guard.h>

Classes

struct  Entry
 

Public Member Functions

 StyleVarGuard (ImGuiStyleVar idx, float val)
 
 StyleVarGuard (ImGuiStyleVar idx, const ImVec2 &val)
 
 StyleVarGuard (std::initializer_list< Entry > entries)
 
 ~StyleVarGuard ()
 
 StyleVarGuard (const StyleVarGuard &)=delete
 
StyleVarGuardoperator= (const StyleVarGuard &)=delete
 

Private Attributes

int count_
 

Detailed Description

RAII guard for ImGui style vars.

Usage: StyleVarGuard guard(ImGuiStyleVar_WindowPadding, ImVec2(0, 8)); StyleVarGuard guard({{ImGuiStyleVar_WindowPadding, ImVec2(0, 8)}, {ImGuiStyleVar_WindowBorderSize, 1.0f}});

Definition at line 68 of file style_guard.h.

Constructor & Destructor Documentation

◆ StyleVarGuard() [1/4]

yaze::gui::StyleVarGuard::StyleVarGuard ( ImGuiStyleVar idx,
float val )
inline

Definition at line 75 of file style_guard.h.

◆ StyleVarGuard() [2/4]

yaze::gui::StyleVarGuard::StyleVarGuard ( ImGuiStyleVar idx,
const ImVec2 & val )
inline

Definition at line 79 of file style_guard.h.

◆ StyleVarGuard() [3/4]

yaze::gui::StyleVarGuard::StyleVarGuard ( std::initializer_list< Entry > entries)
inline

Definition at line 83 of file style_guard.h.

◆ ~StyleVarGuard()

yaze::gui::StyleVarGuard::~StyleVarGuard ( )
inline

Definition at line 94 of file style_guard.h.

References count_.

◆ StyleVarGuard() [4/4]

yaze::gui::StyleVarGuard::StyleVarGuard ( const StyleVarGuard & )
delete

Member Function Documentation

◆ operator=()

StyleVarGuard & yaze::gui::StyleVarGuard::operator= ( const StyleVarGuard & )
delete

Member Data Documentation

◆ count_

int yaze::gui::StyleVarGuard::count_
private

Definition at line 102 of file style_guard.h.

Referenced by ~StyleVarGuard().


The documentation for this class was generated from the following file: