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

Method DebugNodeWindowsListByBeginStackParent

include/imgui/imgui.cpp:17693–17708  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

17691
17692// FIXME-OPT: This is technically suboptimal, but it is simpler this way.
17693void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack)
17694{
17695 for (int i = 0; i < windows_size; i++)
17696 {
17697 ImGuiWindow* window = windows[i];
17698 if (window->ParentWindowInBeginStack != parent_in_begin_stack)
17699 continue;
17700 char buf[20];
17701 ImFormatString(buf, IM_COUNTOF(buf), "[%04d] Window", window->BeginOrderWithinContext);
17702 //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name);
17703 DebugNodeWindow(window, buf);
17704 TreePush(buf);
17705 DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window);
17706 TreePop();
17707 }
17708}
17709
17710//-----------------------------------------------------------------------------
17711// [SECTION] DEBUG LOG WINDOW

Callers

nothing calls this directly

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected