Enum input_sys::libinput_switch_state [] [src]

#[repr(u32)]
pub enum libinput_switch_state { LIBINPUT_SWITCH_STATE_OFF, LIBINPUT_SWITCH_STATE_ON, }

@ingroup device

The state of a switch. The default state of a switch is @ref LIBINPUT_SWITCH_STATE_OFF and no event is sent to confirm a switch in the off position. If a switch is logically on during initialization, libinput sends an event of type @ref LIBINPUT_EVENT_SWITCH_TOGGLE with a state @ref LIBINPUT_SWITCH_STATE_ON.

Variants

Trait Implementations

impl Debug for libinput_switch_state
[src]

Formats the value using the given formatter.

impl Copy for libinput_switch_state
[src]

impl Clone for libinput_switch_state
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for libinput_switch_state
[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 libinput_switch_state
[src]

impl Hash for libinput_switch_state
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.