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]

Formats the value using the given formatter.

impl FromRaw<libinput_event_pointer> for PointerButtonEvent
[src]

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

impl AsRaw<libinput_event_pointer> for PointerButtonEvent
[src]

Receive a raw pointer representing this type.

impl PartialEq for PointerButtonEvent
[src]

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

This method tests for !=.

impl Hash for PointerButtonEvent
[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 PointerButtonEvent
[src]

Convert into a general Event again

Get the libinput context from the event.

Return the device associated with this event. Read more

impl Drop for PointerButtonEvent
[src]

A method called when the value goes out of scope. Read more