Struct qt_core::DropAction

source ·
pub struct DropAction(/* private fields */);
Expand description

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.

Implementations§

source§

impl DropAction

source

pub fn to_int(&self) -> c_int

source§

impl DropAction

source

pub const CopyAction: DropAction = _

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

source

pub const MoveAction: DropAction = _

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

source

pub const LinkAction: DropAction = _

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

source

pub const ActionMask: DropAction = _

  (C++ enum variant: ActionMask = 255)

source

pub const TargetMoveAction: DropAction = _

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)

source

pub const IgnoreAction: DropAction = _

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

Trait Implementations§

source§

impl<T: Into<QFlags<DropAction>>> BitOr<T> for DropAction

§

type Output = QFlags<DropAction>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: T) -> QFlags<DropAction>

Performs the | operation. Read more
source§

impl Clone for DropAction

source§

fn clone(&self) -> DropAction

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DropAction

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<DropAction> for QFlags<DropAction>

source§

fn from(value: DropAction) -> Self

Converts to this type from the input type.
source§

impl From<DropAction> for c_int

source§

fn from(value: DropAction) -> Self

Converts to this type from the input type.
source§

impl From<i32> for DropAction

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for DropAction

source§

fn eq(&self, other: &DropAction) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for DropAction

source§

impl Eq for DropAction

source§

impl StructuralEq for DropAction

source§

impl StructuralPartialEq for DropAction

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.