#[non_exhaustive]pub enum TouchEvent {
Down(TouchDownEvent),
Up(TouchUpEvent),
Motion(TouchMotionEvent),
Cancel(TouchCancelEvent),
Frame(TouchFrameEvent),
}
Expand description
A touch related Event
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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§
Source§impl AsRaw<libinput_event_touch> for TouchEvent
impl AsRaw<libinput_event_touch> for TouchEvent
Source§fn as_raw(&self) -> *const libinput_event_touch
fn as_raw(&self) -> *const libinput_event_touch
Receive a raw pointer representing this type.
Source§impl Context for TouchEvent
impl Context for TouchEvent
Source§impl Debug for TouchEvent
impl Debug for TouchEvent
Source§impl EventTrait for TouchEvent
impl EventTrait for TouchEvent
Source§impl FromRaw<libinput_event_touch> for TouchEvent
impl FromRaw<libinput_event_touch> for TouchEvent
Source§impl Hash for TouchEvent
impl Hash for TouchEvent
Source§impl PartialEq for TouchEvent
impl PartialEq for TouchEvent
impl Eq for TouchEvent
impl StructuralPartialEq for TouchEvent
Auto Trait Implementations§
impl Freeze for TouchEvent
impl !RefUnwindSafe for TouchEvent
impl !Send for TouchEvent
impl !Sync for TouchEvent
impl Unpin for TouchEvent
impl !UnwindSafe for TouchEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more