API reference
Preparing search index…

ImGui.ImGuiDragDropFlags

Const
ImGuiDragDropFlags: Readonly<
    {
        AcceptBeforeDelivery: 1024;
        AcceptNoDrawDefaultRect: 2048;
        AcceptNoPreviewTooltip: 4096;
        AcceptPeekOnly: 3072;
        None: 0;
        PayloadAutoExpire: 32;
        PayloadNoCrossContext: 64;
        PayloadNoCrossProcess: 128;
        SourceAllowNullID: 8;
        SourceAutoExpirePayload: 32;
        SourceExtern: 16;
        SourceNoDisableHover: 2;
        SourceNoHoldToOpenOthers: 4;
        SourceNoPreviewTooltip: 1;
    },
> = ...

Drag source, payload lifetime and target acceptance options.

Type declaration

  • ReadonlyAcceptBeforeDelivery: 1024

    Accept before mouse release; use Payload_IsDelivery(payload) on a non-null payload to detect actual delivery.

  • ReadonlyAcceptNoDrawDefaultRect: 2048

    Do not draw the default target highlight rectangle.

  • ReadonlyAcceptNoPreviewTooltip: 4096

    Target requests that the source preview tooltip be hidden.

  • ReadonlyAcceptPeekOnly: 3072

    Inspect before delivery without drawing the target highlight rectangle.

  • ReadonlyNone: 0

    Use default drag-and-drop behavior.

  • ReadonlyPayloadAutoExpire: 32

    Expire the payload when its source stops being submitted.

  • ReadonlyPayloadNoCrossContext: 64

    Hint that the payload must not be copied outside this ImGui context.

  • ReadonlyPayloadNoCrossProcess: 128

    Hint that the payload must not be copied outside this process.

  • ReadonlySourceAllowNullID: 8

    Give an ID-less source a temporary ID based on its window-relative position.

  • ReadonlySourceAutoExpirePayload: 32

    Legacy alias of PayloadAutoExpire: expire when source submission stops.

  • ReadonlySourceExtern: 16

    External source: ignore current item/window; only one can be active.

  • ReadonlySourceNoDisableHover: 2

    Keep IsItemHovered() working on the source while dragging.

  • ReadonlySourceNoHoldToOpenOthers: 4

    Do not open tree nodes or headers by holding a drag over them.

  • ReadonlySourceNoPreviewTooltip: 1

    Do not create the source preview tooltip.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0