pub struct PointerData {
pub x: f32,
pub y: f32,
pub pressure: f32,
pub pointer_id: u64,
}Expand description
Pointer sample used by drag and gesture systems.
Fields§
§x: f32Pointer x coordinate.
y: f32Pointer y coordinate.
pressure: f32Pointer pressure, usually in [0.0, 1.0].
pointer_id: u64Stable pointer identifier supplied by the input backend.
Implementations§
Trait Implementations§
Source§impl Clone for PointerData
impl Clone for PointerData
Source§fn clone(&self) -> PointerData
fn clone(&self) -> PointerData
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 PointerData
impl Debug for PointerData
Source§impl PartialEq for PointerData
impl PartialEq for PointerData
Source§fn eq(&self, other: &PointerData) -> bool
fn eq(&self, other: &PointerData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PointerData
impl StructuralPartialEq for PointerData
Auto Trait Implementations§
impl Freeze for PointerData
impl RefUnwindSafe for PointerData
impl Send for PointerData
impl Sync for PointerData
impl Unpin for PointerData
impl UnsafeUnpin for PointerData
impl UnwindSafe for PointerData
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