Struct input::event::pointer::PointerMotionAbsoluteEvent
[−]
[src]
pub struct PointerMotionAbsoluteEvent { /* fields omitted */ }An event related to absolute pointer movement
Methods
impl PointerMotionAbsoluteEvent[src]
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.
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.
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
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
impl Eq for PointerMotionAbsoluteEvent[src]
impl Debug for PointerMotionAbsoluteEvent[src]
impl FromRaw<libinput_event_pointer> for PointerMotionAbsoluteEvent[src]
unsafe fn from_raw(ffi: *mut libinput_event_pointer) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_pointer> for PointerMotionAbsoluteEvent[src]
fn as_raw(&self) -> *const libinput_event_pointer
Receive a raw pointer representing this type.
impl PartialEq for PointerMotionAbsoluteEvent[src]
fn eq(&self, other: &Self) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for PointerMotionAbsoluteEvent[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl EventTrait for PointerMotionAbsoluteEvent[src]
fn into_event(self) -> Event where Self: Sized
Convert into a general Event again
fn context(&self) -> Libinput
Get the libinput context from the event.
fn device(&self) -> Device
Return the device associated with this event. Read more