pub struct TouchPointBuilder { /* private fields */ }Implementations§
Source§impl TouchPointBuilder
impl TouchPointBuilder
Sourcepub fn rotationAngle(self, rotationAngle: f64) -> Self
pub fn rotationAngle(self, rotationAngle: f64) -> Self
Rotation angle (default: 0.0).
Sourcepub fn tangentialPressure(self, tangentialPressure: f64) -> Self
pub fn tangentialPressure(self, tangentialPressure: f64) -> Self
The normalized tangential pressure, which has a range of [-1,1] (default: 0).
Sourcepub fn tiltX(self, tiltX: f64) -> Self
pub fn tiltX(self, tiltX: f64) -> Self
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 tiltY(self, tiltY: f64) -> Self
pub fn tiltY(self, tiltY: f64) -> Self
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).
Sourcepub fn twist(self, twist: i64) -> Self
pub fn twist(self, twist: i64) -> Self
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
Sourcepub fn id(self, id: f64) -> Self
pub fn id(self, id: f64) -> Self
Identifier used to track touch sources between events, must be unique within an event.
pub fn build(self) -> TouchPoint
Auto Trait Implementations§
impl Freeze for TouchPointBuilder
impl RefUnwindSafe for TouchPointBuilder
impl Send for TouchPointBuilder
impl Sync for TouchPointBuilder
impl Unpin for TouchPointBuilder
impl UnsafeUnpin for TouchPointBuilder
impl UnwindSafe for TouchPointBuilder
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