FIXME-OPT: This is technically suboptimal, but it is simpler this way.
| 17782 | |
| 17783 | // FIXME-OPT: This is technically suboptimal, but it is simpler this way. |
| 17784 | void ImGui::DebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack) |
| 17785 | { |
| 17786 | for (int i = 0; i < windows_size; i++) |
| 17787 | { |
| 17788 | ImGuiWindow* window = windows[i]; |
| 17789 | if (window->ParentWindowInBeginStack != parent_in_begin_stack) |
| 17790 | continue; |
| 17791 | char buf[20]; |
| 17792 | ImFormatString(buf, IM_COUNTOF(buf), "[%04d] Window", window->BeginOrderWithinContext); |
| 17793 | //BulletText("[%04d] Window '%s'", window->BeginOrderWithinContext, window->Name); |
| 17794 | DebugNodeWindow(window, buf); |
| 17795 | TreePush(buf); |
| 17796 | DebugNodeWindowsListByBeginStackParent(windows + i + 1, windows_size - i - 1, window); |
| 17797 | TreePop(); |
| 17798 | } |
| 17799 | } |
| 17800 | |
| 17801 | //----------------------------------------------------------------------------- |
| 17802 | // [SECTION] DEBUG LOG WINDOW |
nothing calls this directly
no test coverage detected