Enum input::event::Event[][src]

#[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)

Tuple Fields

A device related Event

Keyboard(KeyboardEvent)

Tuple Fields

A keyboard related Event

Pointer(PointerEvent)

Tuple Fields

A pointer related Event

Touch(TouchEvent)

Tuple Fields

A touch related Event

Tablet(TabletToolEvent)

Tuple Fields

A tablet related Event

TabletPad(TabletPadEvent)

Tuple Fields

A tabled pad related Event

Gesture(GestureEvent)

Tuple Fields

A gesture related Event

Switch(SwitchEvent)

Tuple Fields

A switch related Event

Trait Implementations

Receive a raw pointer representing this type.

Returns the underlying libinput context

Formats the value using the given formatter. Read more

Convert into a general Event again

Return the device associated with this event. Read more

Create a new instance of this type from a raw pointer and it’s context. If the type of the struct is a valid libinput type, but is unknown to this library, it panics instead. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.