MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / AddWindowToSortBuffer

Function AddWindowToSortBuffer

Source/ThirdParty/imgui/imgui.cpp:4047–4062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4045}
4046
4047static void AddWindowToSortBuffer(ImVector<ImGuiWindow*>* out_sorted_windows, ImGuiWindow* window)
4048{
4049 out_sorted_windows->push_back(window);
4050 if (window->Active)
4051 {
4052 int count = window->DC.ChildWindows.Size;
4053 if (count > 1)
4054 ImQsort(window->DC.ChildWindows.Data, (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer);
4055 for (int i = 0; i < count; i++)
4056 {
4057 ImGuiWindow* child = window->DC.ChildWindows[i];
4058 if (child->Active)
4059 AddWindowToSortBuffer(out_sorted_windows, child);
4060 }
4061 }
4062}
4063
4064static void AddDrawListToDrawData(ImVector<ImDrawList*>* out_list, ImDrawList* draw_list)
4065{

Callers 1

EndFrameMethod · 0.85

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected