Trait HasTouchPointData

Source
pub trait HasTouchPointData: InteractionLocation + Any {
    // Required methods
    fn identifier(&self) -> i32;
    fn force(&self) -> f64;
    fn radius(&self) -> ScreenPoint;
    fn rotation(&self) -> f64;
    fn as_any(&self) -> &dyn Any;
}
Expand description

A trait for touch point data

Required Methods§

Source

fn identifier(&self) -> i32

A unique identifier for this touch point that will be the same for the duration of the touch

Source

fn force(&self) -> f64

the pressure of the touch

Source

fn radius(&self) -> ScreenPoint

the radius of the touch

Source

fn rotation(&self) -> f64

the rotation of the touch in degrees between 0 and 90

Source

fn as_any(&self) -> &dyn Any

return self as Any

Implementors§