Trait smithay::backend::input::TouchMotionEvent[][src]

pub trait TouchMotionEvent<B: InputBackend>: Event<B> {
    fn slot(&self) -> Option<TouchSlot>;
fn x(&self) -> f64;
fn y(&self) -> f64;
fn x_transformed(&self, width: i32) -> f64;
fn y_transformed(&self, height: i32) -> f64; fn position(&self) -> Point<f64, Raw> { ... }
fn position_transformed(
        &self,
        coordinate_space: Size<i32, Logical>
    ) -> Point<f64, Logical> { ... } }
Expand description

Trait for touch events regarding movement on the screen

Required methods

TouchSlot, if the device has multi-touch capabilities

Touch event’s x-coordinate in the device’s native coordinate space

The actual format is defined by the implementation.

Touch event’s x-coordinate in the device’s native coordinate space

The actual format is defined by the implementation.

Touch event’s x position converted to the targets coordinate space’s width. E.g. the focused output’s width.

Touch event’s y position converted to the targets coordinate space’s width. E.g. the focused output’s width.

Provided methods

Touch position in the device’s native coordinate space

The actual format is defined by the implementation.

Touch position converted into the target coordinate space. E.g. the focused output’s resolution.

Implementations on Foreign Types

Implementors