API reference
Preparing search index…

ImGui.AcceptDragDropPayload

  • Accept contents of a given type.

    Parameters

    type
    string | Uint8Array

    Drag/drop payload type identifier (at most 32 characters); names starting with _ are reserved.

    flags
    number = 0

    ImGuiDragDropFlags options controlling this operation; combine compatible flag bits with |.

    Returns

    Borrowed matching payload, or null when none is accepted. With ImGuiDragDropFlags.AcceptBeforeDelivery, check Payload_IsDelivery(payload) on a non-null result before committing the drop.

    If ImGuiDragDropFlags.AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released.

    Source & inheritance

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