pub struct TabletPadRingEvent { /* private fields */ }
Expand description
A status change on a tablet ring with the DeviceCapability::TabletPad
capability.
Implementations§
Source§impl 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§
Source§impl AsRaw<libinput_event_tablet_pad> for TabletPadRingEvent
impl AsRaw<libinput_event_tablet_pad> for TabletPadRingEvent
Source§fn as_raw(&self) -> *const libinput_event_tablet_pad
fn as_raw(&self) -> *const libinput_event_tablet_pad
Source§impl Context for TabletPadRingEvent
impl Context for TabletPadRingEvent
Source§impl Debug for TabletPadRingEvent
impl Debug for TabletPadRingEvent
Source§impl Drop for TabletPadRingEvent
impl Drop for TabletPadRingEvent
Source§impl EventTrait for TabletPadRingEvent
impl EventTrait for TabletPadRingEvent
Source§impl Hash for TabletPadRingEvent
impl Hash for TabletPadRingEvent
Source§impl PartialEq for TabletPadRingEvent
impl PartialEq for TabletPadRingEvent
impl Eq for TabletPadRingEvent
Auto Trait Implementations§
impl Freeze for TabletPadRingEvent
impl !RefUnwindSafe for TabletPadRingEvent
impl !Send for TabletPadRingEvent
impl !Sync for TabletPadRingEvent
impl Unpin for TabletPadRingEvent
impl !UnwindSafe for TabletPadRingEvent
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