[][src]Struct input::event::tablet_pad::TabletPadRingEvent

pub struct TabletPadRingEvent { /* fields omitted */ }

A status change on a tablet ring with the DeviceCapability::TabletPad capability.

Methods

impl TabletPadRingEvent[src]

pub fn number(&self) -> u32[src]

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.

pub fn position(&self) -> f64[src]

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.

pub fn source(&self) -> RingAxisSource[src]

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

impl AsRaw<libinput_event_tablet_pad> for TabletPadRingEvent[src]

impl Context for TabletPadRingEvent[src]

impl Debug for TabletPadRingEvent[src]

impl Drop for TabletPadRingEvent[src]

impl Eq for TabletPadRingEvent[src]

impl EventTrait for TabletPadRingEvent[src]

impl FromRaw<libinput_event_tablet_pad> for TabletPadRingEvent[src]

impl Hash for TabletPadRingEvent[src]

impl PartialEq<TabletPadRingEvent> for TabletPadRingEvent[src]

impl StructuralEq for TabletPadRingEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> TabletPadEventTrait for T where
    T: AsRaw<libinput_event_tablet_pad> + Context
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.