Struct input::event::tablet_pad::TabletPadButtonEvent [] [src]

pub struct TabletPadButtonEvent { /* fields omitted */ }

A button pressed on a device with the DeviceCapability::TabletPad capability.

This event is not to be confused with the button events emitted by tools on a tablet. See TabletToolButtonEvent.

Methods

impl TabletPadButtonEvent
[src]

Return the button number that triggered this event, starting at 0.

Note that the number returned is a generic sequential button number and not a semantic button code as defined in linux/input.h. See Tablet pad button numbers for more details.

Return the button state of the event.

Trait Implementations

impl Eq for TabletPadButtonEvent
[src]

impl Debug for TabletPadButtonEvent
[src]

Formats the value using the given formatter.

impl FromRaw<libinput_event_tablet_pad> for TabletPadButtonEvent
[src]

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

impl AsRaw<libinput_event_tablet_pad> for TabletPadButtonEvent
[src]

Receive a raw pointer representing this type.

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

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