pub struct TouchPoint { /* private fields */ }Available on crate feature
Input only.Implementations§
Source§impl TouchPoint
impl TouchPoint
pub fn builder() -> TouchPointBuilder
Sourcepub fn x(&self) -> f64
pub fn x(&self) -> f64
X coordinate of the event relative to the main frame’s viewport in CSS pixels.
Sourcepub fn y(&self) -> f64
pub fn y(&self) -> f64
Y coordinate of the event relative to the main frame’s viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
Sourcepub fn rotation_angle(&self) -> Option<&f64>
pub fn rotation_angle(&self) -> Option<&f64>
Rotation angle (default: 0.0).
Sourcepub fn tangential_pressure(&self) -> Option<&f64>
Available on crate feature experimental only.
pub fn tangential_pressure(&self) -> Option<&f64>
experimental only.The normalized tangential pressure, which has a range of [-1,1] (default: 0).
Sourcepub fn tilt_x(&self) -> Option<&u32>
Available on crate feature experimental only.
pub fn tilt_x(&self) -> Option<&u32>
experimental only.The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
Sourcepub fn tilt_y(&self) -> Option<&u32>
Available on crate feature experimental only.
pub fn tilt_y(&self) -> Option<&u32>
experimental only.The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
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<'de> Deserialize<'de> for TouchPoint
impl<'de> Deserialize<'de> for TouchPoint
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 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