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 |
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.
|
inlineexplicit |
Definition at line 127 of file style_guard.h.
|
inlineexplicit |
Definition at line 128 of file style_guard.h.
|
inlineexplicit |
Definition at line 129 of file style_guard.h.
|
inline |
Definition at line 131 of file style_guard.h.
|
delete |