Struct imgui_sys::ImGuiDragDropFlags[]

#[repr(C)]
pub struct ImGuiDragDropFlags { /* fields omitted */ }

Flags for igBeginDragDropSource(), igAcceptDragDropPayload()

Methods

impl ImGuiDragDropFlags

SourceNoPreviewTooltip: ImGuiDragDropFlags = ImGuiDragDropFlags{bits: 1 << 0,}

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

SourceNoDisableHover: ImGuiDragDropFlags = ImGuiDragDropFlags{bits: 1 << 1,}

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

SourceNoHoldToOpenOthers: ImGuiDragDropFlags = ImGuiDragDropFlags{bits: 1 << 2,}

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

SourceAllowNullID: ImGuiDragDropFlags = ImGuiDragDropFlags{bits: 1 << 3,}

Allow items such as igText(), igImage() 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: ImGuiDragDropFlags = ImGuiDragDropFlags{bits: 1 << 4,}

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

AcceptBeforeDelivery: ImGuiDragDropFlags = ImGuiDragDropFlags{bits: 1 << 10,}

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

AcceptNoDrawDefaultRect: ImGuiDragDropFlags = ImGuiDragDropFlags{bits: 1 << 11,}

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

AcceptPeekOnly: ImGuiDragDropFlags = ImGuiDragDropFlags{bits:
                       <ImGuiDragDropFlags>::AcceptBeforeDelivery.bits |
                           <ImGuiDragDropFlags>::AcceptNoDrawDefaultRect.bits,}

For peeking ahead and inspecting the payload before delivery.

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Copy for ImGuiDragDropFlags

impl PartialEq for ImGuiDragDropFlags

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ImGuiDragDropFlags

impl Clone for ImGuiDragDropFlags

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialOrd for ImGuiDragDropFlags

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for ImGuiDragDropFlags

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for ImGuiDragDropFlags

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for ImGuiDragDropFlags

Formats the value using the given formatter. Read more

impl Binary for ImGuiDragDropFlags

Formats the value using the given formatter.

impl Octal for ImGuiDragDropFlags

Formats the value using the given formatter.

impl LowerHex for ImGuiDragDropFlags

Formats the value using the given formatter.

impl UpperHex for ImGuiDragDropFlags

Formats the value using the given formatter.

impl BitOr for ImGuiDragDropFlags

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for ImGuiDragDropFlags

Adds the set of flags.

impl BitXor for ImGuiDragDropFlags

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign for ImGuiDragDropFlags

Toggles the set of flags.

impl BitAnd for ImGuiDragDropFlags

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for ImGuiDragDropFlags

Disables all flags disabled in the set.

impl Sub for ImGuiDragDropFlags

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for ImGuiDragDropFlags

Disables all flags enabled in the set.

impl Not for ImGuiDragDropFlags

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<ImGuiDragDropFlags> for ImGuiDragDropFlags

Extends a collection with the contents of an iterator. Read more

impl FromIterator<ImGuiDragDropFlags> for ImGuiDragDropFlags

Creates a value from an iterator. Read more

Auto Trait Implementations