#[non_exhaustive]pub enum Event {
Device(DeviceEvent),
Keyboard(KeyboardEvent),
Pointer(PointerEvent),
Touch(TouchEvent),
Tablet(TabletToolEvent),
TabletPad(TabletPadEvent),
Gesture(GestureEvent),
Switch(SwitchEvent),
}
Expand description
A libinput 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.
Device(DeviceEvent)
A device related Event
Keyboard(KeyboardEvent)
A keyboard related Event
Pointer(PointerEvent)
A pointer related Event
Touch(TouchEvent)
A touch related Event
Tablet(TabletToolEvent)
A tablet related Event
TabletPad(TabletPadEvent)
A tabled pad related Event
Gesture(GestureEvent)
A gesture related Event
Switch(SwitchEvent)
A switch related Event
Trait Implementations§
Source§impl AsRaw<libinput_event> for Event
impl AsRaw<libinput_event> for Event
Source§fn as_raw(&self) -> *const libinput_event
fn as_raw(&self) -> *const libinput_event
Receive a raw pointer representing this type.
Source§impl EventTrait for Event
impl EventTrait for Event
Source§impl FromRaw<libinput_event> for Event
impl FromRaw<libinput_event> for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl !Send for Event
impl !Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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