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

RAII guard for ImGui::PushItemFlag / ImGui::PopItemFlag. More...

#include <style_guard.h>

Public Member Functions

 ItemFlagScope (ImGuiItemFlags option, bool enabled)
 
 ~ItemFlagScope ()
 
 ItemFlagScope (const ItemFlagScope &)=delete
 
ItemFlagScope & operator= (const ItemFlagScope &)=delete
 

Detailed Description

RAII guard for ImGui::PushItemFlag / ImGui::PopItemFlag.

Usage: ItemFlagScope no_tab(ImGuiItemFlags_NoTabStop, true); ItemFlagScope repeat(ImGuiItemFlags_ButtonRepeat, true);

Definition at line 168 of file style_guard.h.

Constructor & Destructor Documentation

◆ ItemFlagScope() [1/2]

yaze::gui::ItemFlagScope::ItemFlagScope ( ImGuiItemFlags option,
bool enabled )
inline

Definition at line 170 of file style_guard.h.

◆ ~ItemFlagScope()

yaze::gui::ItemFlagScope::~ItemFlagScope ( )
inline

Definition at line 174 of file style_guard.h.

◆ ItemFlagScope() [2/2]

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

Member Function Documentation

◆ operator=()

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

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