pub struct TabletPadStripEvent { /* private fields */ }
Expand description
A status change on a strip on a device with the DeviceCapability::TabletPad
capability.
Implementations§
Source§impl TabletPadStripEvent
impl TabletPadStripEvent
Sourcepub fn number(&self) -> u32
pub fn number(&self) -> u32
Returns the number of the strip that has changed state, with 0 being the first strip.
On tablets with only one strip, this function always returns 0.
Sourcepub fn position(&self) -> f64
pub fn position(&self) -> f64
Returns the current position of the strip, normalized to the range [0, 1], with 0 being the top/left-most point in the tablet’s current logical orientation.
If the source is StripAxisSource::Finger
, libinput sends a terminating
event with a ring value of -1 when the finger is lifted from the ring. A
caller may use this information to e.g. determine if kinetic scrolling
should be triggered.
Sourcepub fn source(&self) -> StripAxisSource
pub fn source(&self) -> StripAxisSource
Returns the source of the interaction with the strip.
If the source is StripAxisSource::Finger
, libinput sends a strip
position value of -1 to terminate the current interaction
Trait Implementations§
Source§impl AsRaw<libinput_event_tablet_pad> for TabletPadStripEvent
impl AsRaw<libinput_event_tablet_pad> for TabletPadStripEvent
Source§fn as_raw(&self) -> *const libinput_event_tablet_pad
fn as_raw(&self) -> *const libinput_event_tablet_pad
Source§impl Context for TabletPadStripEvent
impl Context for TabletPadStripEvent
Source§impl Debug for TabletPadStripEvent
impl Debug for TabletPadStripEvent
Source§impl Drop for TabletPadStripEvent
impl Drop for TabletPadStripEvent
Source§impl EventTrait for TabletPadStripEvent
impl EventTrait for TabletPadStripEvent
Source§impl Hash for TabletPadStripEvent
impl Hash for TabletPadStripEvent
Source§impl PartialEq for TabletPadStripEvent
impl PartialEq for TabletPadStripEvent
impl Eq for TabletPadStripEvent
Auto Trait Implementations§
impl Freeze for TabletPadStripEvent
impl !RefUnwindSafe for TabletPadStripEvent
impl !Send for TabletPadStripEvent
impl !Sync for TabletPadStripEvent
impl Unpin for TabletPadStripEvent
impl !UnwindSafe for TabletPadStripEvent
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