Struct input::event::tablet_pad::TabletPadRingEvent
source · pub struct TabletPadRingEvent { /* private fields */ }
Expand description
A status change on a tablet ring with the DeviceCapability::TabletPad
capability.
Implementations
sourceimpl TabletPadRingEvent
impl TabletPadRingEvent
sourcepub fn number(&self) -> u32
pub fn number(&self) -> u32
Returns the number of the ring that has changed state, with 0 being the first ring.
On tablets with only one ring, this function always returns 0.
sourcepub fn position(&self) -> f64
pub fn position(&self) -> f64
Returns the current position of the ring, in degrees counterclockwise from the northern-most point of the ring in the tablet’s current logical orientation.
If the source is RingAxisSource::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) -> RingAxisSource
pub fn source(&self) -> RingAxisSource
Returns the source of the interaction with the ring.
If the source is RingAxisSource::Finger
, libinput sends a ring position
value of -1 to terminate the current interaction.
Trait Implementations
sourceimpl AsRaw<libinput_event_tablet_pad> for TabletPadRingEvent
impl AsRaw<libinput_event_tablet_pad> for TabletPadRingEvent
sourcefn as_raw(&self) -> *const libinput_event_tablet_pad
fn as_raw(&self) -> *const libinput_event_tablet_pad
sourceimpl Context for TabletPadRingEvent
impl Context for TabletPadRingEvent
sourceimpl Debug for TabletPadRingEvent
impl Debug for TabletPadRingEvent
sourceimpl Drop for TabletPadRingEvent
impl Drop for TabletPadRingEvent
sourceimpl EventTrait for TabletPadRingEvent
impl EventTrait for TabletPadRingEvent
sourceimpl Hash for TabletPadRingEvent
impl Hash for TabletPadRingEvent
sourceimpl PartialEq<TabletPadRingEvent> for TabletPadRingEvent
impl PartialEq<TabletPadRingEvent> for TabletPadRingEvent
impl Eq for TabletPadRingEvent
impl StructuralEq for TabletPadRingEvent
Auto Trait Implementations
impl !RefUnwindSafe for TabletPadRingEvent
impl !Send for TabletPadRingEvent
impl !Sync for TabletPadRingEvent
impl Unpin for TabletPadRingEvent
impl !UnwindSafe for TabletPadRingEvent
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