pub struct PointerMotionAbsoluteEvent { /* private fields */ }
Expand description
An event related to absolute pointer movement
Implementations§
Source§impl PointerMotionAbsoluteEvent
impl PointerMotionAbsoluteEvent
Sourcepub fn absolute_x(&self) -> f64
pub fn absolute_x(&self) -> f64
Return the current absolute x coordinate of the pointer event, in mm from the top left corner of the device.
To get the corresponding output screen coordinate, use
absolute_x_transformed
.
Sourcepub fn absolute_y(&self) -> f64
pub fn absolute_y(&self) -> f64
Return the current absolute y coordinate of the pointer event, in mm from the top left corner of the device.
To get the corresponding output screen coordinate, use
absolute_y_transformed
.
Sourcepub fn absolute_x_transformed(&self, width: u32) -> f64
pub fn absolute_x_transformed(&self, width: u32) -> f64
Return the current absolute x coordinate of the pointer event, transformed to screen coordinates.
§Arguments
- width - The current output screen width
Sourcepub fn absolute_y_transformed(&self, height: u32) -> f64
pub fn absolute_y_transformed(&self, height: u32) -> f64
Return the current absolute y coordinate of the pointer event, transformed to screen coordinates.
§Arguments
- height - The current output screen height
Trait Implementations§
Source§impl AsRaw<libinput_event_pointer> for PointerMotionAbsoluteEvent
impl AsRaw<libinput_event_pointer> for PointerMotionAbsoluteEvent
Source§fn as_raw(&self) -> *const libinput_event_pointer
fn as_raw(&self) -> *const libinput_event_pointer
Receive a raw pointer representing this type.
Source§impl Context for PointerMotionAbsoluteEvent
impl Context for PointerMotionAbsoluteEvent
Source§impl Debug for PointerMotionAbsoluteEvent
impl Debug for PointerMotionAbsoluteEvent
Source§impl Drop for PointerMotionAbsoluteEvent
impl Drop for PointerMotionAbsoluteEvent
Source§impl Hash for PointerMotionAbsoluteEvent
impl Hash for PointerMotionAbsoluteEvent
impl Eq for PointerMotionAbsoluteEvent
Auto Trait Implementations§
impl Freeze for PointerMotionAbsoluteEvent
impl !RefUnwindSafe for PointerMotionAbsoluteEvent
impl !Send for PointerMotionAbsoluteEvent
impl !Sync for PointerMotionAbsoluteEvent
impl Unpin for PointerMotionAbsoluteEvent
impl !UnwindSafe for PointerMotionAbsoluteEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more