MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / DebugNodeWindowsListByBeginStackParent

Method DebugNodeWindowsListByBeginStackParent

KBotExt/imgui/imgui.cpp:14544–14559  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

14542
14543// FIXME-OPT: This is technically suboptimal, but it is simpler this way.
14544void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack)
14545{
14546 for (int i = 0; i < windows_size; i++)
14547 {
14548 ImGuiWindow* window = windows[i];
14549 if (window->ParentWindowInBeginStack != parent_in_begin_stack)
14550 continue;
14551 char buf[20];
14552 ImFormatString(buf, IM_ARRAYSIZE(buf), "[%04d] Window", window->BeginOrderWithinContext);
14553 //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name);
14554 DebugNodeWindow(window, buf);
14555 Indent();
14556 DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window);
14557 Unindent();
14558 }
14559}
14560
14561//-----------------------------------------------------------------------------
14562// [SECTION] DEBUG LOG WINDOW

Callers

nothing calls this directly

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected