Enum input::event::Event
[−]
[src]
pub enum Event {
Device(DeviceEvent),
Keyboard(KeyboardEvent),
Pointer(PointerEvent),
Touch(TouchEvent),
Tablet(TabletToolEvent),
TabletPad(TabletPadEvent),
Gesture(GestureEvent),
Switch(SwitchEvent),
}A libinput Event
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
impl Debug for Event[src]
impl PartialEq for Event[src]
fn eq(&self, __arg_0: &Event) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Event) -> bool
This method tests for !=.
impl Eq for Event[src]
impl Hash for Event[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 Event[src]
fn as_raw_event(&self) -> *mut libinput_event
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> for Event[src]
unsafe fn from_raw(event: *mut libinput_event) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event> for Event[src]
fn as_raw(&self) -> *const libinput_event
Receive a raw pointer representing this type.