| 2868 | } |
| 2869 | |
| 2870 | static void AddWindowToRenderListSelectLayer(ImGuiWindow* window) |
| 2871 | { |
| 2872 | // FIXME: Generalize this with a proper layering system so e.g. user can draw in specific layers, below text, .. |
| 2873 | ImGuiContext& g = *GImGui; |
| 2874 | g.IO.MetricsActiveWindows++; |
| 2875 | if (window->Flags & ImGuiWindowFlags_Popup) |
| 2876 | AddWindowToRenderList(g.RenderDrawLists[1], window); |
| 2877 | else if (window->Flags & ImGuiWindowFlags_Tooltip) |
| 2878 | AddWindowToRenderList(g.RenderDrawLists[2], window); |
| 2879 | else |
| 2880 | AddWindowToRenderList(g.RenderDrawLists[0], window); |
| 2881 | } |
| 2882 | |
| 2883 | // When using this function it is sane to ensure that float are perfectly rounded to integer values, to that e.g. (int)(max.x-min.x) in user's render produce correct result. |
| 2884 | void ImGui::PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, bool intersect_with_current_clip_rect) |
no test coverage detected