dioxus_lib::events

Trait HasTouchPointData

source
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§

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) -> Point2D<f64, ScreenSpace>

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 + 'static)

return self as Any

Implementors§