pub struct TabletPadButtonEvent { /* private fields */ }
Expand description
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
.
Implementations§
Source§impl TabletPadButtonEvent
impl TabletPadButtonEvent
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§
Source§impl AsRaw<libinput_event_tablet_pad> for TabletPadButtonEvent
impl AsRaw<libinput_event_tablet_pad> for TabletPadButtonEvent
Source§fn as_raw(&self) -> *const libinput_event_tablet_pad
fn as_raw(&self) -> *const libinput_event_tablet_pad
Receive a raw pointer representing this type.
Source§impl Context for TabletPadButtonEvent
impl Context for TabletPadButtonEvent
Source§impl Debug for TabletPadButtonEvent
impl Debug for TabletPadButtonEvent
Source§impl Drop for TabletPadButtonEvent
impl Drop for TabletPadButtonEvent
Source§impl EventTrait for TabletPadButtonEvent
impl EventTrait for TabletPadButtonEvent
Source§impl Hash for TabletPadButtonEvent
impl Hash for TabletPadButtonEvent
Source§impl PartialEq for TabletPadButtonEvent
impl PartialEq for TabletPadButtonEvent
impl Eq for TabletPadButtonEvent
Auto Trait Implementations§
impl Freeze for TabletPadButtonEvent
impl !RefUnwindSafe for TabletPadButtonEvent
impl !Send for TabletPadButtonEvent
impl !Sync for TabletPadButtonEvent
impl Unpin for TabletPadButtonEvent
impl !UnwindSafe for TabletPadButtonEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> TabletPadEventTrait for T
impl<T> TabletPadEventTrait for T
Source§fn mode(&self) -> u32
fn mode(&self) -> u32
Returns the mode the button, ring, or strip that triggered this event is in, at the time of the event. Read more
Source§fn mode_group(&self) -> TabletPadModeGroup
fn mode_group(&self) -> TabletPadModeGroup
Returns the mode group that the button, ring, or strip that triggered this
event is considered in. Read more
Source§fn into_tablet_pad_event(self) -> TabletPadEventwhere
Self: Sized,
fn into_tablet_pad_event(self) -> TabletPadEventwhere
Self: Sized,
Convert into a general
TabletPadEvent
again