#[non_exhaustive]pub struct Touch {
pub identifier: i64,
pub x: f64,
pub y: f64,
pub page_x: f64,
pub page_y: f64,
pub client_x: f64,
pub client_y: f64,
}Expand description
A single active touch point inside a TouchEvent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.identifier: i64Stable id for the lifetime of one finger’s touch sequence.
x: f64Position in the touched element’s coordinate space.
y: f64§page_x: f64Position in LynxView coordinates.
page_y: f64§client_x: f64Position in window coordinates.
client_y: f64Trait Implementations§
impl Copy for Touch
Source§impl<'de> Deserialize<'de> for Touch
impl<'de> Deserialize<'de> for Touch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Touch
impl RefUnwindSafe for Touch
impl Send for Touch
impl Sync for Touch
impl Unpin for Touch
impl UnsafeUnpin for Touch
impl UnwindSafe for Touch
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