MCPcopy Create free account
hub / github.com/Raais/ImStudio / DebugNodeWindowsListByBeginStackParent

Method DebugNodeWindowsListByBeginStackParent

src/third-party/imgui/imgui.cpp:12892–12907  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

12890
12891// FIXME-OPT: This is technically suboptimal, but it is simpler this way.
12892void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack)
12893{
12894 for (int i = 0; i < windows_size; i++)
12895 {
12896 ImGuiWindow* window = windows[i];
12897 if (window->ParentWindowInBeginStack != parent_in_begin_stack)
12898 continue;
12899 char buf[20];
12900 ImFormatString(buf, IM_ARRAYSIZE(buf), "[%04d] Window", window->BeginOrderWithinContext);
12901 //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name);
12902 DebugNodeWindow(window, buf);
12903 Indent();
12904 DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window);
12905 Unindent();
12906 }
12907}
12908
12909//-----------------------------------------------------------------------------
12910// [SECTION] OTHER DEBUG TOOLS (ITEM PICKER, STACK TOOL)

Callers

nothing calls this directly

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected