Added PushID(size_t sz) helper (may not be useful/meaningful for non C/C++ languages).

This commit is contained in:
omar
2019-01-27 15:44:57 +01:00
parent e55678adec
commit 20bc06af70
3 changed files with 9 additions and 0 deletions

View File

@ -357,6 +357,7 @@ namespace ImGui
IMGUI_API void PushID(const char* str_id); // push string into the ID stack (will hash string).
IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); // push string into the ID stack (will hash string).
IMGUI_API void PushID(const void* ptr_id); // push pointer into the ID stack (will hash pointer).
IMGUI_API void PushID(size_t int_id); // push pointer into the ID stack (will hash integer).
IMGUI_API void PushID(int int_id); // push integer into the ID stack (will hash integer).
IMGUI_API void PopID(); // pop from the ID stack.
IMGUI_API ImGuiID GetID(const char* str_id); // calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself