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

pub trait PointerMotionAbsoluteEvent<B: InputBackend>: Event<B> {
    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 pointer events generated by absolute device positioning.

Required methods

Device x position in it’s original coordinate space.

The format is defined by the backend implementation.

Device y position in it’s original coordinate space.

The format is defined by the backend implementation.

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

Device y position converted to the targets coordinate space’s height. E.g. the focused output’s height.

Provided methods

Device position in it’s original coordinate space.

The format is defined by the backend implementation.

Device position converted to the targets coordinate space. E.g. the focused output’s resolution.

Implementations on Foreign Types

Implementors