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

Function AddWindowToSortBuffer

src/external/imgui/imgui.cpp:4823–4837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4821}
4822
4823static void AddWindowToSortBuffer(ImVector<ImGuiWindow*>* out_sorted_windows, ImGuiWindow* window)
4824{
4825 out_sorted_windows->push_back(window);
4826 if (window->Active)
4827 {
4828 int count = window->DC.ChildWindows.Size;
4829 ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer);
4830 for (int i = 0; i < count; i++)
4831 {
4832 ImGuiWindow* child = window->DC.ChildWindows[i];
4833 if (child->Active)
4834 AddWindowToSortBuffer(out_sorted_windows, child);
4835 }
4836 }
4837}
4838
4839static void AddWindowToDrawData(ImGuiWindow* window, int layer)
4840{

Callers 1

EndFrameMethod · 0.85

Calls 1

ImQsortFunction · 0.85

Tested by

no test coverage detected