Enum input::event::switch::SwitchEvent
[−]
[src]
pub enum SwitchEvent { Toggle(SwitchToggleEvent), }
A switch related Event
Variants
Toggle(SwitchToggleEvent)
An event related a switch, that was toggled
Trait Implementations
impl Debug for SwitchEvent
[src]
impl PartialEq for SwitchEvent
[src]
fn eq(&self, __arg_0: &SwitchEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SwitchEvent) -> bool
This method tests for !=
.
impl Eq for SwitchEvent
[src]
impl Hash for SwitchEvent
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl EventTrait for SwitchEvent
[src]
fn into_event(self) -> Event where
Self: Sized,
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_switch> for SwitchEvent
[src]
unsafe fn from_raw(event: *mut libinput_event_switch) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_switch> for SwitchEvent
[src]
fn as_raw(&self) -> *const libinput_event_switch
Receive a raw pointer representing this type.