MCPcopy Create free account
hub / github.com/clementgallet/libTAS / DebugNodeWindowsListByBeginStackParent

Method DebugNodeWindowsListByBeginStackParent

src/external/imgui/imgui.cpp:14862–14877  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

14860
14861// FIXME-OPT: This is technically suboptimal, but it is simpler this way.
14862void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack)
14863{
14864 for (int i = 0; i < windows_size; i++)
14865 {
14866 ImGuiWindow* window = windows[i];
14867 if (window->ParentWindowInBeginStack != parent_in_begin_stack)
14868 continue;
14869 char buf[20];
14870 ImFormatString(buf, IM_ARRAYSIZE(buf), "[%04d] Window", window->BeginOrderWithinContext);
14871 //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name);
14872 DebugNodeWindow(window, buf);
14873 Indent();
14874 DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window);
14875 Unindent();
14876 }
14877}
14878
14879//-----------------------------------------------------------------------------
14880// [SECTION] DEBUG LOG WINDOW

Callers

nothing calls this directly

Calls 1

ImFormatStringFunction · 0.85

Tested by

no test coverage detected