pub enum DragAction {
Press {
position: Vec2,
capture_id: u64,
kind: PointerKind,
modifiers: Modifiers,
},
Move {
position: Vec2,
modifiers: Modifiers,
},
Release {
position: Vec2,
modifiers: Modifiers,
},
Cancel,
}Expand description
Low-level drag-and-drop actions dispatched by the platform. The framework handles gesture detection (mouse drag vs touch long press) and the DnD state machine internally.
Variants§
Press
Pointer button pressed (mouse down / touch start).
Move
Pointer moved while button is pressed or touch is active.
Release
Pointer released.
Cancel
Drag cancelled (e.g. Escape key).
Trait Implementations§
Source§impl Clone for DragAction
impl Clone for DragAction
Source§fn clone(&self) -> DragAction
fn clone(&self) -> DragAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DragAction
impl Debug for DragAction
Source§impl PartialEq for DragAction
impl PartialEq for DragAction
impl StructuralPartialEq for DragAction
Auto Trait Implementations§
impl Freeze for DragAction
impl RefUnwindSafe for DragAction
impl Send for DragAction
impl Sync for DragAction
impl Unpin for DragAction
impl UnsafeUnpin for DragAction
impl UnwindSafe for DragAction
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