Struct input::event::pointer::PointerButtonEvent
[−]
[src]
pub struct PointerButtonEvent { /* fields omitted */ }
An event related to button pressed on a pointer device
Methods
impl PointerButtonEvent
[src]
Return the button that triggered this event.
For the button returns the total number of buttons pressed on all devices on the associated seat after the event was triggered.
Return the button state that triggered this event.
Trait Implementations
impl Eq for PointerButtonEvent
[src]
impl Debug for PointerButtonEvent
[src]
impl FromRaw<libinput_event_pointer> for PointerButtonEvent
[src]
unsafe fn from_raw(ffi: *mut libinput_event_pointer) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_pointer> for PointerButtonEvent
[src]
fn as_raw(&self) -> *const libinput_event_pointer
Receive a raw pointer representing this type.
impl PartialEq for PointerButtonEvent
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Hash for PointerButtonEvent
[src]
fn hash<H: Hasher>(&self, state: &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 PointerButtonEvent
[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