MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / RenderDragDropTargetRectForItem

Method RenderDragDropTargetRectForItem

3rdparty/imgui/src/imgui.cpp:15188–15201  ·  view source on GitHub ↗

FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target.

Source from the content-addressed store, hash-verified

15186
15187// FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target.
15188void 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
15203void ImGui::RenderDragDropTargetRectEx(ImDrawList* draw_list, const ImRect& bb, float rounding)
15204{

Callers

nothing calls this directly

Calls 4

ExpandMethod · 0.45
ContainsMethod · 0.45
PopClipRectMethod · 0.45

Tested by

no test coverage detected