#[repr(C)]pub struct TouchPoint {
pub id: u64,
pub position: LogicalPosition,
pub force: f32,
}Expand description
Single touch point (finger, stylus, etc.)
Fields§
§id: u64Unique identifier for this touch point (persists across move events)
position: LogicalPositionCurrent position of the touch point in logical coordinates
force: f32Force/pressure of the touch (0.0 = no pressure, 1.0 = maximum pressure) Set to 0.5 if pressure is not available
Trait Implementations§
Source§impl Clone for TouchPoint
impl Clone for TouchPoint
Source§fn clone(&self) -> TouchPoint
fn clone(&self) -> TouchPoint
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 TouchPoint
impl Debug for TouchPoint
Source§impl FromIterator<TouchPoint> for TouchPointVec
impl FromIterator<TouchPoint> for TouchPointVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = TouchPoint>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = TouchPoint>,
Creates a value from an iterator. Read more
Source§impl PartialEq for TouchPoint
impl PartialEq for TouchPoint
Source§impl PartialOrd for TouchPoint
impl PartialOrd for TouchPoint
impl Copy for TouchPoint
impl StructuralPartialEq for TouchPoint
Auto Trait Implementations§
impl Freeze for TouchPoint
impl RefUnwindSafe for TouchPoint
impl Send for TouchPoint
impl Sync for TouchPoint
impl Unpin for TouchPoint
impl UnwindSafe for TouchPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more