mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-29 03:00:05 +00:00
Internals: Using more explicit PushOverrideID() helper + renamed equivalent internal tree helper.
This commit is contained in:
parent
1ca6e5b59f
commit
59a3f0476d
3 changed files with 19 additions and 9 deletions
|
|
@ -6682,6 +6682,13 @@ void ImGui::PushID(int int_id)
|
|||
window->IDStack.push_back(window->GetIDNoKeepAlive(ptr_id));
|
||||
}
|
||||
|
||||
// Push a given id value ignoring the ID stack as a seed.
|
||||
void ImGui::PushOverrideID(ImGuiID id)
|
||||
{
|
||||
ImGuiWindow* window = GImGui->CurrentWindow;
|
||||
window->IDStack.push_back(id);
|
||||
}
|
||||
|
||||
void ImGui::PopID()
|
||||
{
|
||||
ImGuiWindow* window = GImGui->CurrentWindow;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue