pub trait HasTouchPointData: InteractionLocation + Any {
// Required methods
fn identifier(&self) -> i32;
fn force(&self) -> f64;
fn radius(&self) -> Point2D<f64, ScreenSpace>;
fn rotation(&self) -> f64;
fn as_any(&self) -> &(dyn Any + 'static);
}
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) -> Point2D<f64, ScreenSpace>
fn radius(&self) -> Point2D<f64, ScreenSpace>
the radius of the touch