mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-28 02:50:06 +00:00
TestEngine: Added PushID() hooks.
This commit is contained in:
parent
b0e9092d6f
commit
9f9ff84ba1
3 changed files with 43 additions and 10 deletions
|
|
@ -5493,10 +5493,12 @@ void ImGui::TreePush(const void* ptr_id)
|
|||
|
||||
void ImGui::TreePushOverrideID(ImGuiID id)
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
ImGuiContext& g = *GImGui;
|
||||
ImGuiWindow* window = g.CurrentWindow;
|
||||
Indent();
|
||||
window->DC.TreeDepth++;
|
||||
window->IDStack.push_back(id);
|
||||
IMGUI_TEST_ENGINE_PUSH_ID(id, ImGuiDataType_ID, NULL);
|
||||
}
|
||||
|
||||
void ImGui::TreePop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue