pub enum DragPhase {
Started {
position: Point,
button: PointerButton,
},
Moved {
position: Point,
delta: Vec2,
},
Ended {
position: Point,
},
}Expand description
Phase of a drag gesture, as delivered to an on_drag handler.
This is the public API for drag handlers — the raw GestureEvent::Drag*
variants are an implementation detail of the recognizer pipeline. A
handler only ever receives Started once, followed by zero or more
Moved, then exactly one Ended.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DragPhase
impl RefUnwindSafe for DragPhase
impl Send for DragPhase
impl Sync for DragPhase
impl Unpin for DragPhase
impl UnsafeUnpin for DragPhase
impl UnwindSafe for DragPhase
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