1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-02-06 04:20:08 +00:00

Added GetID(int) variant for consistency. (#7111)

This commit is contained in:
ocornut 2024-07-26 15:14:37 +02:00
parent b3ba6b3095
commit 692bee5f22
3 changed files with 7 additions and 0 deletions

View file

@ -8380,6 +8380,11 @@ ImGuiID ImGui::GetID(const void* ptr_id)
return window->GetID(ptr_id);
}
ImGuiID ImGui::GetID(int int_id)
{
ImGuiWindow* window = GImGui->CurrentWindow;
return window->GetID(int_id);
}
//-----------------------------------------------------------------------------
// [SECTION] INPUTS
//-----------------------------------------------------------------------------