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§
Sourcefn identifier(&self) -> i32
fn identifier(&self) -> i32
A unique identifier for this touch point that will be the same for the duration of the touch
Sourcefn radius(&self) -> ScreenPoint
fn radius(&self) -> ScreenPoint
the radius of the touch