FIXME-OPT: This is technically suboptimal, but it is simpler this way.
| 12890 | |
| 12891 | // FIXME-OPT: This is technically suboptimal, but it is simpler this way. |
| 12892 | void 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) |
nothing calls this directly
no test coverage detected