Enum input::event::switch::SwitchEvent [] [src]

pub enum SwitchEvent {
    Toggle(SwitchToggleEvent),
}

A switch related Event

Variants

An event related a switch, that was toggled

Trait Implementations

impl Debug for SwitchEvent
[src]

Formats the value using the given formatter.

impl PartialEq for SwitchEvent
[src]

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

This method tests for !=.

impl Eq for SwitchEvent
[src]

impl Hash for SwitchEvent
[src]

Feeds this value into the given [Hasher]. Read more

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

impl EventTrait for SwitchEvent
[src]

Convert into a general Event again

Get the libinput context from the event.

Return the device associated with this event. Read more

impl FromRaw<libinput_event_switch> for SwitchEvent
[src]

Create a new instance of this type from a raw pointer. Read more

impl AsRaw<libinput_event_switch> for SwitchEvent
[src]

Receive a raw pointer representing this type.