enum ImGui::ImGuiDragDropFlags

Overview

enum ImGuiDragDropFlags_

Defined in:

types.cr

Enum Members

None = 0
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.

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.

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.

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.

SourceAutoExpirePayload = 32

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

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

Instance Method Summary

Instance Method Detail

def accept_before_delivery? #

Returns true if this enum value contains AcceptBeforeDelivery


[View source]
def accept_no_draw_default_rect? #

Returns true if this enum value contains AcceptNoDrawDefaultRect


[View source]
def accept_no_preview_tooltip? #

Returns true if this enum value contains AcceptNoPreviewTooltip


[View source]
def accept_peek_only? #

Returns true if this enum value contains AcceptPeekOnly


[View source]
def none? #

Returns true if this enum value contains None


[View source]
def source_allow_null_id? #

Returns true if this enum value contains SourceAllowNullID


[View source]
def source_auto_expire_payload? #

Returns true if this enum value contains SourceAutoExpirePayload


[View source]
def source_extern? #

Returns true if this enum value contains SourceExtern


[View source]
def source_no_disable_hover? #

Returns true if this enum value contains SourceNoDisableHover


[View source]
def source_no_hold_to_open_others? #

Returns true if this enum value contains SourceNoHoldToOpenOthers


[View source]
def source_no_preview_tooltip? #

Returns true if this enum value contains SourceNoPreviewTooltip


[View source]