MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / AddWindowToSortBuffer

Function AddWindowToSortBuffer

include/imgui/imgui.cpp:5818–5832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5816}
5817
5818static void AddWindowToSortBuffer(ImVector<ImGuiWindow*>* out_sorted_windows, ImGuiWindow* window)
5819{
5820 out_sorted_windows->push_back(window);
5821 if (window->Active)
5822 {
5823 int count = window->DC.ChildWindows.Size;
5824 ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer);
5825 for (int i = 0; i < count; i++)
5826 {
5827 ImGuiWindow* child = window->DC.ChildWindows[i];
5828 if (child->Active)
5829 AddWindowToSortBuffer(out_sorted_windows, child);
5830 }
5831 }
5832}
5833
5834static void AddWindowToDrawData(ImGuiWindow* window, int layer)
5835{

Callers 1

EndFrameMethod · 0.85

Calls 2

ImQsortFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected