pub struct TouchContact {
pub id: u64,
pub phase: TouchPhase,
pub x: f64,
pub y: f64,
}Expand description
A single touch contact point.
The id field uniquely identifies a finger across its lifecycle
(started → moved → ended). Coordinates are in logical pixels.
Fields§
§id: u64Unique identifier for this finger (stable across phases).
phase: TouchPhasePhase of the touch event.
x: f64X position in logical pixels.
y: f64Y position in logical pixels.
Trait Implementations§
Source§impl Clone for TouchContact
impl Clone for TouchContact
Source§fn clone(&self) -> TouchContact
fn clone(&self) -> TouchContact
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 TouchContact
impl Debug for TouchContact
Source§impl PartialEq for TouchContact
impl PartialEq for TouchContact
impl Copy for TouchContact
impl StructuralPartialEq for TouchContact
Auto Trait Implementations§
impl Freeze for TouchContact
impl RefUnwindSafe for TouchContact
impl Send for TouchContact
impl Sync for TouchContact
impl Unpin for TouchContact
impl UnsafeUnpin for TouchContact
impl UnwindSafe for TouchContact
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