Struct imgui::drag_drop::DragDropFlags[][src]

#[repr(transparent)]pub struct DragDropFlags { /* fields omitted */ }

Flags for igBeginDragDropSource(), igAcceptDragDropPayload()

Implementations

impl DragDropFlags[src]

pub const SOURCE_NO_PREVIEW_TOOLTIP: DragDropFlags[src]

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.

pub const SOURCE_NO_DISABLE_HOVER: DragDropFlags[src]

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

pub const SOURCE_NO_HOLD_TO_OPEN_OTHERS: DragDropFlags[src]

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

pub const SOURCE_ALLOW_NULL_ID: DragDropFlags[src]

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.

pub const SOURCE_EXTERN: DragDropFlags[src]

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.

pub const SOURCE_AUTO_EXPIRE_PAYLOAD: DragDropFlags[src]

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

pub const ACCEPT_BEFORE_DELIVERY: DragDropFlags[src]

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.

pub const ACCEPT_NO_DRAW_DEFAULT_RECT: DragDropFlags[src]

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

pub const ACCEPT_NO_PREVIEW_TOOLTIP: DragDropFlags[src]

Request hiding the igBeginDragDropSource tooltip from the igBeginDragDropTarget site.

pub const ACCEPT_PEEK_ONLY: DragDropFlags[src]

For peeking ahead and inspecting the payload before delivery. This is just a convenience flag for the intersection of ACCEPT_BEFORE_DELIVERY and ACCEPT_NO_DRAW_DEFAULT_RECT

pub const fn empty() -> DragDropFlags[src]

Returns an empty set of flags

pub const fn all() -> DragDropFlags[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<DragDropFlags>[src]

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

pub const fn from_bits_truncate(bits: u32) -> DragDropFlags[src]

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

pub const unsafe fn from_bits_unchecked(bits: u32) -> DragDropFlags[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: DragDropFlags) -> bool[src]

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

pub const fn contains(&self, other: DragDropFlags) -> bool[src]

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

pub fn insert(&mut self, other: DragDropFlags)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: DragDropFlags)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: DragDropFlags)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: DragDropFlags, value: bool)[src]

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

Trait Implementations

impl Binary for DragDropFlags[src]

impl BitAnd<DragDropFlags> for DragDropFlags[src]

type Output = DragDropFlags

The resulting type after applying the & operator.

fn bitand(self, other: DragDropFlags) -> DragDropFlags[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<DragDropFlags> for DragDropFlags[src]

fn bitand_assign(&mut self, other: DragDropFlags)[src]

Disables all flags disabled in the set.

impl BitOr<DragDropFlags> for DragDropFlags[src]

type Output = DragDropFlags

The resulting type after applying the | operator.

fn bitor(self, other: DragDropFlags) -> DragDropFlags[src]

Returns the union of the two sets of flags.

impl BitOrAssign<DragDropFlags> for DragDropFlags[src]

fn bitor_assign(&mut self, other: DragDropFlags)[src]

Adds the set of flags.

impl BitXor<DragDropFlags> for DragDropFlags[src]

type Output = DragDropFlags

The resulting type after applying the ^ operator.

fn bitxor(self, other: DragDropFlags) -> DragDropFlags[src]

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

impl BitXorAssign<DragDropFlags> for DragDropFlags[src]

fn bitxor_assign(&mut self, other: DragDropFlags)[src]

Toggles the set of flags.

impl Clone for DragDropFlags[src]

impl Copy for DragDropFlags[src]

impl Debug for DragDropFlags[src]

impl Eq for DragDropFlags[src]

impl Extend<DragDropFlags> for DragDropFlags[src]

impl FromIterator<DragDropFlags> for DragDropFlags[src]

impl Hash for DragDropFlags[src]

impl LowerHex for DragDropFlags[src]

impl Not for DragDropFlags[src]

type Output = DragDropFlags

The resulting type after applying the ! operator.

fn not(self) -> DragDropFlags[src]

Returns the complement of this set of flags.

impl Octal for DragDropFlags[src]

impl Ord for DragDropFlags[src]

impl PartialEq<DragDropFlags> for DragDropFlags[src]

impl PartialOrd<DragDropFlags> for DragDropFlags[src]

impl StructuralEq for DragDropFlags[src]

impl StructuralPartialEq for DragDropFlags[src]

impl Sub<DragDropFlags> for DragDropFlags[src]

type Output = DragDropFlags

The resulting type after applying the - operator.

fn sub(self, other: DragDropFlags) -> DragDropFlags[src]

Returns the set difference of the two sets of flags.

impl SubAssign<DragDropFlags> for DragDropFlags[src]

fn sub_assign(&mut self, other: DragDropFlags)[src]

Disables all flags enabled in the set.

impl UpperHex for DragDropFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.