Struct input::event::touch::TouchMotionEvent
[−]
[src]
pub struct TouchMotionEvent { /* fields omitted */ }
An event related to moving a finger on the screen
Trait Implementations
impl Eq for TouchMotionEvent
[src]
impl Debug for TouchMotionEvent
[src]
impl FromRaw<libinput_event_touch> for TouchMotionEvent
[src]
unsafe fn from_raw(ffi: *mut libinput_event_touch) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_touch> for TouchMotionEvent
[src]
fn as_raw(&self) -> *const libinput_event_touch
Receive a raw pointer representing this type.
impl PartialEq for TouchMotionEvent
[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) -> bool
1.0.0
This method tests for !=
.
impl Hash for TouchMotionEvent
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl EventTrait for TouchMotionEvent
[src]
fn into_event(self) -> Event where
Self: Sized,
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
impl Drop for TouchMotionEvent
[src]
impl TouchEventSlot for TouchMotionEvent
[src]
fn seat_slot(&self) -> u32
Get the seat slot of the touch event. Read more
fn slot(&self) -> Option<u32>
Get the slot of this touch event. Read more
impl TouchEventPosition for TouchMotionEvent
[src]
fn x(&self) -> f64
Return the current absolute x coordinate of the touch event, in mm from the top left corner of the device. Read more
fn y(&self) -> f64
Return the current absolute y coordinate of the touch event, in mm from the top left corner of the device. Read more
fn x_transformed(&self, width: u32) -> f64
Return the current absolute x coordinate of the touch event, transformed to screen coordinates. Read more
fn y_transformed(&self, height: u32) -> f64
Return the current absolute y coordinate of the touch event, transformed to screen coordinates. Read more