pub struct TouchPointSpec {
pub id: u8,
pub state: TouchStateSpec,
pub x: i32,
pub y: i32,
}Expand description
One contact point in a multi-touch frame.
Fields§
§id: u8Touch tracking ID (0–4).
state: TouchStateSpecPer-point event flag.
x: i32Horizontal coordinate.
y: i32Vertical coordinate.
Trait Implementations§
Source§impl Clone for TouchPointSpec
impl Clone for TouchPointSpec
Source§fn clone(&self) -> TouchPointSpec
fn clone(&self) -> TouchPointSpec
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 moreimpl Copy for TouchPointSpec
Source§impl Debug for TouchPointSpec
impl Debug for TouchPointSpec
Source§impl Default for TouchPointSpec
impl Default for TouchPointSpec
impl Eq for TouchPointSpec
Source§impl PartialEq for TouchPointSpec
impl PartialEq for TouchPointSpec
Source§fn eq(&self, other: &TouchPointSpec) -> bool
fn eq(&self, other: &TouchPointSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TouchPointSpec
Auto Trait Implementations§
impl Freeze for TouchPointSpec
impl RefUnwindSafe for TouchPointSpec
impl Send for TouchPointSpec
impl Sync for TouchPointSpec
impl Unpin for TouchPointSpec
impl UnsafeUnpin for TouchPointSpec
impl UnwindSafe for TouchPointSpec
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