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.

Instance Method Summary

Instance Method Detail

def accept_before_delivery? #

[View source]
def accept_no_draw_default_rect? #

[View source]
def accept_no_preview_tooltip? #

[View source]
def accept_peek_only? #

[View source]
def none? #

[View source]
def source_allow_null_id? #

[View source]
def source_auto_expire_payload? #

[View source]
def source_extern? #

[View source]
def source_no_disable_hover? #

[View source]
def source_no_hold_to_open_others? #

[View source]
def source_no_preview_tooltip? #

[View source]