MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / AddWindowToSortBuffer

Function AddWindowToSortBuffer

plugins/Cardinal/src/DearImGui/imgui.cpp:4317–4331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4315}
4316
4317static void AddWindowToSortBuffer(ImVector<ImGuiWindow*>* out_sorted_windows, ImGuiWindow* window)
4318{
4319 out_sorted_windows->push_back(window);
4320 if (window->Active)
4321 {
4322 int count = window->DC.ChildWindows.Size;
4323 ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer);
4324 for (int i = 0; i < count; i++)
4325 {
4326 ImGuiWindow* child = window->DC.ChildWindows[i];
4327 if (child->Active)
4328 AddWindowToSortBuffer(out_sorted_windows, child);
4329 }
4330 }
4331}
4332
4333static void AddDrawListToDrawData(ImVector<ImDrawList*>* out_list, ImDrawList* draw_list)
4334{

Callers 1

EndFrameMethod · 0.85

Calls 2

ImQsortFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected