Struct input::event::pointer::PointerMotionAbsoluteEvent
source · pub struct PointerMotionAbsoluteEvent { /* private fields */ }
Expand description
An event related to absolute pointer movement
Implementations
sourceimpl 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
sourceimpl AsRaw<libinput_event_pointer> for PointerMotionAbsoluteEvent
impl AsRaw<libinput_event_pointer> for PointerMotionAbsoluteEvent
sourcefn as_raw(&self) -> *const libinput_event_pointer
fn as_raw(&self) -> *const libinput_event_pointer
Receive a raw pointer representing this type.
sourceimpl Context for PointerMotionAbsoluteEvent
impl Context for PointerMotionAbsoluteEvent
sourceimpl Debug for PointerMotionAbsoluteEvent
impl Debug for PointerMotionAbsoluteEvent
sourceimpl Drop for PointerMotionAbsoluteEvent
impl Drop for PointerMotionAbsoluteEvent
sourceimpl Hash for PointerMotionAbsoluteEvent
impl Hash for PointerMotionAbsoluteEvent
sourceimpl PartialEq<PointerMotionAbsoluteEvent> for PointerMotionAbsoluteEvent
impl PartialEq<PointerMotionAbsoluteEvent> for PointerMotionAbsoluteEvent
impl Eq for PointerMotionAbsoluteEvent
impl StructuralEq for PointerMotionAbsoluteEvent
Auto Trait Implementations
impl !RefUnwindSafe for PointerMotionAbsoluteEvent
impl !Send for PointerMotionAbsoluteEvent
impl !Sync for PointerMotionAbsoluteEvent
impl Unpin for PointerMotionAbsoluteEvent
impl !UnwindSafe for PointerMotionAbsoluteEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> PointerEventTrait for Twhere
T: AsRaw<libinput_event_pointer> + Context,
impl<T> PointerEventTrait for Twhere
T: AsRaw<libinput_event_pointer> + Context,
sourcefn into_pointer_event(self) -> PointerEventwhere
Self: Sized,
fn into_pointer_event(self) -> PointerEventwhere
Self: Sized,
Convert into a general
TouchEvent
again