alias ImGui::TopLevel::ImGuiDragDropFlags

Alias Definition

ImGui::ImGuiDragDropFlags

Defined in:

types.cr

Constant Summary

AcceptBeforeDelivery = 1024

AcceptDragDropPayload() will returns true even before the mouse button is released. You can then call IsDelivery() to test if the payload needs to be delivered.

AcceptNoDrawDefaultRect = 2048

Do not draw the default highlight rectangle when hovering over target.

AcceptNoPreviewTooltip = 4096

Request hiding the BeginDragDropSource tooltip from the BeginDragDropTarget site.

AcceptPeekOnly = 3072

For peeking ahead and inspecting the payload before delivery.

All = 7231
None = 0
SourceAllowNullID = 8

Allow items such as Text(), Image() that have no unique identifier to be used as drag source, by manufacturing a temporary identifier based on their window-relative position. This is extremely unusual within the dear imgui ecosystem and so we made it explicit.

SourceAutoExpirePayload = 32

Automatically expire the payload if the source cease to be submitted (otherwise payloads are persisting while being dragged)

SourceExtern = 16

External source (from outside of dear imgui), won't attempt to read current item/window info. Will always return true. Only one Extern source can be active simultaneously.

SourceNoDisableHover = 2

By default, when dragging we clear data so that IsItemHovered() will return false, to avoid subsequent user code submitting tooltips. This flag disables this behavior so you can still call IsItemHovered() on the source item.

SourceNoHoldToOpenOthers = 4

Disable the behavior that allows to open tree nodes and collapsing header by holding over them while dragging a source item.

SourceNoPreviewTooltip = 1

Disable preview tooltip. By default, a successful call to BeginDragDropSource opens a tooltip so you can display a preview or description of the source contents. This flag disables this behavior.