[−][src]Struct input::event::tablet_pad::TabletPadButtonEvent
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]
fn as_raw(&self) -> *const libinput_event_tablet_pad
[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]
unsafe fn from_raw(
ffi: *mut libinput_event_tablet_pad,
context: &Libinput
) -> Self
[src]
ffi: *mut libinput_event_tablet_pad,
context: &Libinput
) -> Self
impl Hash for TabletPadButtonEvent
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TabletPadButtonEvent> for TabletPadButtonEvent
[src]
impl StructuralEq for TabletPadButtonEvent
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TabletPadButtonEvent
impl !Send for TabletPadButtonEvent
impl !Sync for TabletPadButtonEvent
impl Unpin for TabletPadButtonEvent
impl !UnwindSafe for TabletPadButtonEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> TabletPadEventTrait for T where
T: AsRaw<libinput_event_tablet_pad> + Context,
[src]
T: AsRaw<libinput_event_tablet_pad> + Context,
fn time(&self) -> u32
[src]
fn time_usec(&self) -> u64
[src]
fn mode(&self) -> u32
[src]
fn mode_group(&self) -> TabletPadModeGroup
[src]
fn into_tablet_pad_event(self) -> TabletPadEvent where
Self: Sized,
[src]
Self: Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,