Drag & drop : Possibility to show all possible drop locations ?
Author: olivier-gerardCreated Sep 10, 2026Updated Sep 11, 2026
Labelsdrag drop
Version/Branch of Dear ImGui:
Version 1.92.9b, Branch: docking
Back-ends:
imgui_impl_GLFW.cpp + imgui_impl_Vulkan.cpp
Compiler, OS:
Windows 11 + MSVC 2022
Full config/build information:
No response
Details:
My Question:
How can I show all possible drop locations once a drag is started ? I would like to display all the yellow rectangles (maybe dashed or with thiner borders) of widgets that would accept the current payload.
To give some context, in my application there are different drag sources, and each source has a few possible destinations. In the drag tooltip I tell where the user can drop, but it would be much more intuitive if the destinations were visible
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
// Here's some code anyone can copy and paste to reproduce your issue
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();
Source: ocornut/imgui