pub struct TouchPoint {
pub x: f64,
pub y: f64,
pub radius_x: Option<f64>,
pub radius_y: Option<f64>,
pub rotation_angle: Option<f64>,
pub force: Option<f64>,
pub id: Option<i32>,
}Expand description
A single touch point.
Fields§
§x: f64X coordinate of the touch point.
y: f64Y coordinate of the touch point.
radius_x: Option<f64>Touch point radius in X direction (default 1.0).
radius_y: Option<f64>Touch point radius in Y direction (default 1.0).
rotation_angle: Option<f64>Rotation angle (default 0.0).
force: Option<f64>Force (default 1.0).
id: Option<i32>Touch point id. Useful for multi-touch.
Implementations§
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
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