pub trait HasTouchData: ModifiersInteraction + Any {
    // Required methods
    fn touches(&self) -> Vec<TouchPoint>;
    fn touches_changed(&self) -> Vec<TouchPoint>;
    fn target_touches(&self) -> Vec<TouchPoint>;
    fn as_any(&self) -> &(dyn Any + 'static);
}
Available on crate feature html only.

Required Methods§

source

fn touches(&self) -> Vec<TouchPoint>

Get the touches that are currently down

source

fn touches_changed(&self) -> Vec<TouchPoint>

Get the touches that have changed since the last event

source

fn target_touches(&self) -> Vec<TouchPoint>

Get the touches that started and stayed on the element that triggered this event

source

fn as_any(&self) -> &(dyn Any + 'static)

return self as Any

Implementors§