pub struct DropAction(/* private fields */);
Expand description
Implementations§
Source§impl DropAction
impl DropAction
Sourcepub const CopyAction: DropAction
pub const CopyAction: DropAction
Copy the data to the target. (C++ enum variant: CopyAction = 1
)
Sourcepub const MoveAction: DropAction
pub const MoveAction: DropAction
Move the data from the source to the target. (C++ enum variant: MoveAction = 2
)
Sourcepub const LinkAction: DropAction
pub const LinkAction: DropAction
Create a link from the source to the target. (C++ enum variant: LinkAction = 4
)
Sourcepub const ActionMask: DropAction
pub const ActionMask: DropAction
(C++ enum variant: ActionMask = 255
)
Sourcepub const TargetMoveAction: DropAction
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
)
Sourcepub const IgnoreAction: DropAction
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
impl<T: Into<QFlags<DropAction>>> BitOr<T> for DropAction
Source§impl Clone for DropAction
impl Clone for DropAction
Source§fn clone(&self) -> DropAction
fn clone(&self) -> DropAction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DropAction
impl Debug for DropAction
Source§impl From<DropAction> for QFlags<DropAction>
impl From<DropAction> for QFlags<DropAction>
Source§fn from(value: DropAction) -> Self
fn from(value: DropAction) -> Self
Converts to this type from the input type.
Source§impl From<DropAction> for c_int
impl From<DropAction> for c_int
Source§fn from(value: DropAction) -> Self
fn from(value: DropAction) -> Self
Converts to this type from the input type.
Source§impl From<i32> for DropAction
impl From<i32> for DropAction
Source§impl PartialEq for DropAction
impl PartialEq for DropAction
impl Copy for DropAction
impl Eq for DropAction
impl StructuralPartialEq for DropAction
Auto Trait Implementations§
impl Freeze for DropAction
impl RefUnwindSafe for DropAction
impl Send for DropAction
impl Sync for DropAction
impl Unpin for DropAction
impl UnwindSafe for DropAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more