Struct input::event::touch::TouchDownEvent
[−]
[src]
pub struct TouchDownEvent { /* fields omitted */ }An event related to resting the finger on the screen
Trait Implementations
impl Eq for TouchDownEvent[src]
impl Debug for TouchDownEvent[src]
impl FromRaw<libinput_event_touch> for TouchDownEvent[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 TouchDownEvent[src]
fn as_raw(&self) -> *const libinput_event_touch
Receive a raw pointer representing this type.
impl PartialEq for TouchDownEvent[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 TouchDownEvent[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 TouchDownEvent[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
impl Drop for TouchDownEvent[src]
impl TouchEventSlot for TouchDownEvent[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 TouchDownEvent[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