pub struct PanEvent {
pub cancelled: bool,
pub origin: Point<Points>,
pub translation: Point<Points>,
pub velocity_x: f32,
pub velocity_y: f32,
pub value_x: Option<f32>,
pub value_y: Option<f32>,
}Expand description
A drag (on_pan_start / on_pan_end): where it started, translation
since then and velocity, in points (per second).
Fields§
§cancelled: boolThe system cancelled the drag rather than releasing it.
origin: Point<Points>Where the finger (or the pointer) went down, in the surface’s points
as a touch’s page: the same at the start and at the end.
translation: Point<Points>The translation.
velocity_x: f32Horizontal velocity.
velocity_y: f32Vertical velocity.
value_x: Option<f32>The bound horizontal animated value now (Interactive::pan; the
values an app binds are of any quantity).
value_y: Option<f32>The bound vertical animated value now.
Trait Implementations§
impl Copy for PanEvent
impl StructuralPartialEq for PanEvent
Auto Trait Implementations§
impl Forget for PanEvent
impl Freeze for PanEvent
impl Move 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