pub struct PaneMotionVector {
pub delta_x: i32,
pub delta_y: i32,
pub speed: f64,
pub direction_changes: u16,
}Expand description
Pointer motion summary used by pressure-sensitive policies.
Fields§
§delta_x: i32§delta_y: i32§speed: f64Cells per second.
direction_changes: u16Number of direction sign flips observed in this gesture window.
Implementations§
Trait Implementations§
Source§impl Clone for PaneMotionVector
impl Clone for PaneMotionVector
Source§fn clone(&self) -> PaneMotionVector
fn clone(&self) -> PaneMotionVector
Returns a duplicate 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 PaneMotionVector
impl Debug for PaneMotionVector
Source§impl PartialEq for PaneMotionVector
impl PartialEq for PaneMotionVector
impl Copy for PaneMotionVector
impl StructuralPartialEq for PaneMotionVector
Auto Trait Implementations§
impl Freeze for PaneMotionVector
impl RefUnwindSafe for PaneMotionVector
impl Send for PaneMotionVector
impl Sync for PaneMotionVector
impl Unpin for PaneMotionVector
impl UnsafeUnpin for PaneMotionVector
impl UnwindSafe for PaneMotionVector
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