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

@ -6450,6 +6450,13 @@ void ImGui::PushID(const void* ptr_id)
window->IDStack.push_back(window->GetIDNoKeepAlive(ptr_id));
}
void ImGui::PushID(size_t int_id)
{
const void* ptr_id = (void*)int_id;
ImGuiWindow* window = GImGui->CurrentWindow;
window->IDStack.push_back(window->GetIDNoKeepAlive(ptr_id));
}
void ImGui::PushID(int int_id)
{
const void* ptr_id = (void*)(intptr_t)int_id;