MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / DebugNodeWindowsListByBeginStackParent

Method DebugNodeWindowsListByBeginStackParent

include/imgui/imgui.cpp:17784–17799  ·  view source on GitHub ↗

FIXME-OPT: This is technically suboptimal, but it is simpler this way.

Source from the content-addressed store, hash-verified

17782
17783// FIXME-OPT: This is technically suboptimal, but it is simpler this way.
17784void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack)
17785{
17786 for (int i = 0; i < windows_size; i++)
17787 {
17788 ImGuiWindow* window = windows[i];
17789 if (window->ParentWindowInBeginStack != parent_in_begin_stack)
17790 continue;
17791 char buf[20];
17792 ImFormatString(buf, IM_COUNTOF(buf), "[%04d] Window", window->BeginOrderWithinContext);
17793 //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name);
17794 DebugNodeWindow(window, buf);
17795 TreePush(buf);
17796 DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window);
17797 TreePop();
17798 }
17799}
17800
17801//-----------------------------------------------------------------------------
17802// [SECTION] DEBUG LOG WINDOW

Callers

nothing calls this directly

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected