Trait HasTouchData

Source
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;
}

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

return self as Any

Implementors§