[][src]Struct qt_core::DropAction

#[repr(transparent)]pub struct DropAction(_);

The DropActions type is a typedef for QFlags<DropAction>. It stores an OR combination of DropAction values.

C++ enum: Qt::DropAction.

C++ documentation:

The DropActions type is a typedef for QFlags<DropAction>. It stores an OR combination of DropAction values.

Methods

impl DropAction[src]

pub fn to_int(&self) -> c_int[src]

impl DropAction[src]

pub const CopyAction: DropAction[src]

Copy the data to the target. (C++ enum variant: CopyAction = 1)

pub const MoveAction: DropAction[src]

Move the data from the source to the target. (C++ enum variant: MoveAction = 2)

pub const LinkAction: DropAction[src]

Create a link from the source to the target. (C++ enum variant: LinkAction = 4)

pub const ActionMask: DropAction[src]

  (C++ enum variant: ActionMask = 255)

pub const TargetMoveAction: DropAction[src]

On Windows, this value is used when the ownership of the D&D data should be taken over by the target application, i.e., the source application should not delete the data. On X11 this value is used to do a move. TargetMoveAction is not used on the Mac. (C++ enum variant: TargetMoveAction = 32770)

pub const IgnoreAction: DropAction[src]

Ignore the action (do nothing with the data). (C++ enum variant: IgnoreAction = 0)

Trait Implementations

impl<T: Into<QFlags<DropAction>>> BitOr<T> for DropAction[src]

type Output = QFlags<DropAction>

The resulting type after applying the | operator.

impl Clone for DropAction[src]

impl Copy for DropAction[src]

impl Debug for DropAction[src]

impl Eq for DropAction[src]

impl From<DropAction> for c_int[src]

impl From<DropAction> for QFlags<DropAction>[src]

impl From<i32> for DropAction[src]

impl PartialEq<DropAction> for DropAction[src]

impl StructuralEq for DropAction[src]

impl StructuralPartialEq for DropAction[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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

impl<T> StaticUpcast<T> for 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.