#[non_exhaustive]pub enum TabletPadEvent {
Button(TabletPadButtonEvent),
Ring(TabletPadRingEvent),
Strip(TabletPadStripEvent),
Key(TabletPadKeyEvent),
}
Expand description
A tablet-pad related Event
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Button(TabletPadButtonEvent)
A button pressed on a device with the DeviceCapability::TabletPad
capability.
A Button-Event differs from a Key
-Event (available with feature="libinput_1_15"
)
in that buttons are sequentially indexed from 0 and do not carry any other information.
Keys have a specific functionality assigned to them. The key code thus carries a
semantic meaning, a button number does not.
This event is not to be confused with the button events emitted by tools
on a tablet. See TabletToolButtonEvent
.
Ring(TabletPadRingEvent)
A status change on a tablet ring with the DeviceCapability::TabletPad
capability.
Strip(TabletPadStripEvent)
A status change on a strip on a device with the
DeviceCapability::TabletPad
capability.
Key(TabletPadKeyEvent)
A key pressed on a device with the DeviceCapability::TabletPad
capability.
A Key
-Event differs from a Button
-Event in that keys have a specific
functionality assigned to them (buttons are sequencially ordered). A key code
thus carries a semantic meaning, a button number does not.
Trait Implementations§
Source§impl AsRaw<libinput_event_tablet_pad> for TabletPadEvent
impl AsRaw<libinput_event_tablet_pad> for TabletPadEvent
Source§fn as_raw(&self) -> *const libinput_event_tablet_pad
fn as_raw(&self) -> *const libinput_event_tablet_pad
Source§impl Context for TabletPadEvent
impl Context for TabletPadEvent
Source§impl Debug for TabletPadEvent
impl Debug for TabletPadEvent
Source§impl EventTrait for TabletPadEvent
impl EventTrait for TabletPadEvent
Source§impl Hash for TabletPadEvent
impl Hash for TabletPadEvent
Source§impl PartialEq for TabletPadEvent
impl PartialEq for TabletPadEvent
impl Eq for TabletPadEvent
impl StructuralPartialEq for TabletPadEvent
Auto Trait Implementations§
impl Freeze for TabletPadEvent
impl !RefUnwindSafe for TabletPadEvent
impl !Send for TabletPadEvent
impl !Sync for TabletPadEvent
impl Unpin for TabletPadEvent
impl !UnwindSafe for TabletPadEvent
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
Source§impl<T> TabletPadEventTrait for T
impl<T> TabletPadEventTrait for T
Source§fn mode(&self) -> u32
fn mode(&self) -> u32
Source§fn mode_group(&self) -> TabletPadModeGroup
fn mode_group(&self) -> TabletPadModeGroup
Source§fn into_tablet_pad_event(self) -> TabletPadEventwhere
Self: Sized,
fn into_tablet_pad_event(self) -> TabletPadEventwhere
Self: Sized,
TabletPadEvent
again