// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImGuiApi { public partial class ImGui { public unsafe partial class PInvoke { /// /// /// call after submitting an item that may receive a payload. If this returns true, you can call /// AcceptDragDropPayload() + EndDragDropTarget() /// /// /// C++: /// imgui.h:999 /// , /// imgui.cpp:15381 ///
bool BeginDragDropTarget() ///
///
/// /// /// Drag and Drop /// - On source items, call BeginDragDropSource(), if it returns true also call SetDragDropPayload() + EndDragDropSource(). /// - On target candidates, call BeginDragDropTarget(), if it returns true also call AcceptDragDropPayload() + EndDragDropTarget(). /// - If you stop calling BeginDragDropSource() the payload is preserved however it won't have a preview tooltip (we currently display a fallback "..." tooltip, see #1725) /// - An item can be both drag source and drop target. /// /// /// We don't use BeginDragDropTargetCustom() and duplicate its code because: /// 1) we use LastItemData's ImGuiItemStatusFlags_HoveredRect which handles items that push a temporarily clip rectangle in their code. Calling BeginDragDropTargetCustom(LastItemRect) would not handle them. /// 2) and it's faster. as this code may be very frequently called, we want to early out as fast as we can. /// Also note how the HoveredWindow test is positioned differently in both functions (in both functions we optimize for the cheapest early out case) /// /// [LibraryImport("imgui")] public static unsafe partial Bool8 BeginDragDropTarget(); } } }