Enum input::event::touch::TouchEvent
[−]
[src]
pub enum TouchEvent {
Down(TouchDownEvent),
Up(TouchUpEvent),
Motion(TouchMotionEvent),
Cancel(TouchCancelEvent),
Frame(TouchFrameEvent),
}A touch related Event
Variants
Down(TouchDownEvent)An event related to resting the finger on the screen
Up(TouchUpEvent)An event related to lifting the finger on the screen
Motion(TouchMotionEvent)An event related to moving a finger on the screen
Cancel(TouchCancelEvent)An event cancelling previous events on this slot
Frame(TouchFrameEvent)Signals the end of a set of touchpoints at one device sample time.
Trait Implementations
impl Debug for TouchEvent[src]
impl PartialEq for TouchEvent[src]
fn eq(&self, __arg_0: &TouchEvent) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TouchEvent) -> bool
This method tests for !=.
impl Eq for TouchEvent[src]
impl Hash for TouchEvent[src]
fn hash<__H: Hasher>(&self, __arg_0: &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 TouchEvent[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 FromRaw<libinput_event_touch> for TouchEvent[src]
unsafe fn from_raw(event: *mut libinput_event_touch) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_touch> for TouchEvent[src]
fn as_raw(&self) -> *const libinput_event_touch
Receive a raw pointer representing this type.