Struct qt_core::DropAction
source · 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
§type Output = QFlags<DropAction>
type Output = QFlags<DropAction>
The resulting type after applying the
|
operator.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
source§fn eq(&self, other: &DropAction) -> bool
fn eq(&self, other: &DropAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DropAction
impl Eq for DropAction
impl StructuralEq for DropAction
impl StructuralPartialEq for DropAction
Auto Trait Implementations§
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