pub enum PanEvent {
Start {
local: Point,
},
Update {
local: Point,
delta: Point,
},
End {
velocity: Point,
},
}Expand description
One moment of a drag on a GestureDetector, as the shell reports it through
Widget::on_pan.
Variants§
Start
The drag began: the pointer went down at local (in the detector’s own coordinates)
and has since moved far enough to be a drag rather than a tap.
Update
The pointer moved by delta and is now at local. Along a PanAxis that is not
free, the other component of delta is zero.
Fields
End
The pointer lifted, moving at velocity (logical pixels per second).
Trait Implementations§
impl Copy for PanEvent
impl StructuralPartialEq for PanEvent
Auto Trait Implementations§
impl Freeze for PanEvent
impl RefUnwindSafe for PanEvent
impl Send for PanEvent
impl Sync for PanEvent
impl Unpin for PanEvent
impl UnsafeUnpin for PanEvent
impl UnwindSafe for PanEvent
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