FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target.
| 15096 | |
| 15097 | // FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target. |
| 15098 | void ImGui::RenderDragDropTargetRectForItem(const ImRect& bb) |
| 15099 | { |
| 15100 | ImGuiContext& g = *GImGui; |
| 15101 | ImGuiWindow* window = g.CurrentWindow; |
| 15102 | ImRect bb_display = bb; |
| 15103 | bb_display.ClipWith(g.DragDropTargetClipRect); // Clip THEN expand so we have a way to visualize that target is not entirely visible. |
| 15104 | bb_display.Expand(g.Style.DragDropTargetPadding); |
| 15105 | bool push_clip_rect = !window->ClipRect.Contains(bb_display); |
| 15106 | if (push_clip_rect) |
| 15107 | window->DrawList->PushClipRectFullScreen(); |
| 15108 | RenderDragDropTargetRectEx(window->DrawList, bb_display); |
| 15109 | if (push_clip_rect) |
| 15110 | window->DrawList->PopClipRect(); |
| 15111 | } |
| 15112 | |
| 15113 | void ImGui::RenderDragDropTargetRectEx(ImDrawList* draw_list, const ImRect& bb) |
| 15114 | { |
nothing calls this directly
no test coverage detected