Struct input::event::tablet_pad::TabletPadStripEvent
source · pub struct TabletPadStripEvent { /* private fields */ }
Expand description
A status change on a strip on a device with the DeviceCapability::TabletPad
capability.
Implementations
sourceimpl 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
sourceimpl AsRaw<libinput_event_tablet_pad> for TabletPadStripEvent
impl AsRaw<libinput_event_tablet_pad> for TabletPadStripEvent
sourcefn as_raw(&self) -> *const libinput_event_tablet_pad
fn as_raw(&self) -> *const libinput_event_tablet_pad
sourceimpl Context for TabletPadStripEvent
impl Context for TabletPadStripEvent
sourceimpl Debug for TabletPadStripEvent
impl Debug for TabletPadStripEvent
sourceimpl Drop for TabletPadStripEvent
impl Drop for TabletPadStripEvent
sourceimpl EventTrait for TabletPadStripEvent
impl EventTrait for TabletPadStripEvent
sourceimpl Hash for TabletPadStripEvent
impl Hash for TabletPadStripEvent
sourceimpl PartialEq<TabletPadStripEvent> for TabletPadStripEvent
impl PartialEq<TabletPadStripEvent> for TabletPadStripEvent
impl Eq for TabletPadStripEvent
impl StructuralEq for TabletPadStripEvent
Auto Trait Implementations
impl !RefUnwindSafe for TabletPadStripEvent
impl !Send for TabletPadStripEvent
impl !Sync for TabletPadStripEvent
impl Unpin for TabletPadStripEvent
impl !UnwindSafe for TabletPadStripEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> TabletPadEventTrait for Twhere
T: AsRaw<libinput_event_tablet_pad> + Context,
impl<T> TabletPadEventTrait for Twhere
T: AsRaw<libinput_event_tablet_pad> + Context,
sourcefn mode(&self) -> u32
fn mode(&self) -> u32
sourcefn mode_group(&self) -> TabletPadModeGroup
fn mode_group(&self) -> TabletPadModeGroup
sourcefn into_tablet_pad_event(self) -> TabletPadEventwhere
Self: Sized,
fn into_tablet_pad_event(self) -> TabletPadEventwhere
Self: Sized,
TabletPadEvent
again