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

RAII guard for ImGui::PushID / ImGui::PopID. More...

#include <style_guard.h>

Public Member Functions

 IdScope (const char *str_id)
 
 IdScope (int int_id)
 
 IdScope (const void *ptr_id)
 
 ~IdScope ()
 
 IdScope (const IdScope &)=delete
 
IdScope & operator= (const IdScope &)=delete
 

Detailed Description

RAII guard for ImGui::PushID / ImGui::PopID.

Usage: for (int i = 0; i < count; ++i) { IdScope id(i); ImGui::Button("Delete"); // A different ID on every row. }

Definition at line 125 of file style_guard.h.

Constructor & Destructor Documentation

◆ IdScope() [1/4]

yaze::gui::IdScope::IdScope ( const char * str_id)
inlineexplicit

Definition at line 127 of file style_guard.h.

◆ IdScope() [2/4]

yaze::gui::IdScope::IdScope ( int int_id)
inlineexplicit

Definition at line 128 of file style_guard.h.

◆ IdScope() [3/4]

yaze::gui::IdScope::IdScope ( const void * ptr_id)
inlineexplicit

Definition at line 129 of file style_guard.h.

◆ ~IdScope()

yaze::gui::IdScope::~IdScope ( )
inline

Definition at line 131 of file style_guard.h.

◆ IdScope() [4/4]

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

Member Function Documentation

◆ operator=()

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

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