[−][src]Struct input::event::tablet_pad::TabletPadRingEvent
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]
fn as_raw(&self) -> *const libinput_event_tablet_pad
[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]
unsafe fn from_raw(
ffi: *mut libinput_event_tablet_pad,
context: &Libinput
) -> Self
[src]
ffi: *mut libinput_event_tablet_pad,
context: &Libinput
) -> Self
impl Hash for TabletPadRingEvent
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TabletPadRingEvent> for TabletPadRingEvent
[src]
impl StructuralEq for TabletPadRingEvent
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> TabletPadEventTrait for T where
T: AsRaw<libinput_event_tablet_pad> + Context,
[src]
T: AsRaw<libinput_event_tablet_pad> + Context,
fn time(&self) -> u32
[src]
fn time_usec(&self) -> u64
[src]
fn mode(&self) -> u32
[src]
fn mode_group(&self) -> TabletPadModeGroup
[src]
fn into_tablet_pad_event(self) -> TabletPadEvent where
Self: Sized,
[src]
Self: Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,