FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target.
| 15186 | |
| 15187 | // FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target. |
| 15188 | void ImGui::RenderDragDropTargetRectForItem(const ImRect& bb) |
| 15189 | { |
| 15190 | ImGuiContext& g = *GImGui; |
| 15191 | ImGuiWindow* window = g.CurrentWindow; |
| 15192 | ImRect bb_display = bb; |
| 15193 | bb_display.ClipWith(g.DragDropTargetClipRect); // Clip THEN expand so we have a way to visualize that target is not entirely visible. |
| 15194 | bb_display.Expand(g.Style.DragDropTargetPadding); |
| 15195 | bool push_clip_rect = !window->ClipRect.Contains(bb_display); |
| 15196 | if (push_clip_rect) |
| 15197 | window->DrawList->PushClipRectFullScreen(); |
| 15198 | RenderDragDropTargetRectEx(window->DrawList, bb_display, g.Style.DragDropTargetRounding); |
| 15199 | if (push_clip_rect) |
| 15200 | window->DrawList->PopClipRect(); |
| 15201 | } |
| 15202 | |
| 15203 | void ImGui::RenderDragDropTargetRectEx(ImDrawList* draw_list, const ImRect& bb, float rounding) |
| 15204 | { |
nothing calls this directly
no test coverage detected