MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / RenderDragDropTargetRectForItem

Method RenderDragDropTargetRectForItem

include/imgui/imgui.cpp:15098–15111  ·  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

15096
15097// FIXME-STYLE FIXME-DRAGDROP: Settle on a proper default visuals for drop target.
15098void 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
15113void ImGui::RenderDragDropTargetRectEx(ImDrawList* draw_list, const ImRect& bb)
15114{

Callers

nothing calls this directly

Calls 3

ContainsMethod · 0.45
PopClipRectMethod · 0.45

Tested by

no test coverage detected