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

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]

pub fn button_number(&self) -> u32[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.

pub fn button_state(&self) -> ButtonState[src]

Return the button state of the event.

Trait Implementations

impl AsRaw<libinput_event_tablet_pad> for TabletPadButtonEvent[src]

impl Context for TabletPadButtonEvent[src]

impl Debug for TabletPadButtonEvent[src]

impl Drop for TabletPadButtonEvent[src]

impl Eq for TabletPadButtonEvent[src]

impl EventTrait for TabletPadButtonEvent[src]

impl FromRaw<libinput_event_tablet_pad> for TabletPadButtonEvent[src]

impl Hash for TabletPadButtonEvent[src]

impl PartialEq<TabletPadButtonEvent> for TabletPadButtonEvent[src]

impl StructuralEq for TabletPadButtonEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> TabletPadEventTrait for T where
    T: AsRaw<libinput_event_tablet_pad> + Context
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.