Struct input::event::tablet_pad::TabletPadRingEvent
[−]
[src]
pub struct TabletPadRingEvent { /* fields omitted */ }
A status change on a tablet ring with the DeviceCapability::TabletPad
capability.
Methods
impl TabletPadRingEvent
[src]
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.
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.
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 Eq for TabletPadRingEvent
[src]
impl Debug for TabletPadRingEvent
[src]
impl FromRaw<libinput_event_tablet_pad> for TabletPadRingEvent
[src]
unsafe fn from_raw(ffi: *mut libinput_event_tablet_pad) -> Self
[src]
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_tablet_pad> for TabletPadRingEvent
[src]
fn as_raw(&self) -> *const libinput_event_tablet_pad
[src]
Receive a raw pointer representing this type.
impl PartialEq for TabletPadRingEvent
[src]
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Hash for TabletPadRingEvent
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl EventTrait for TabletPadRingEvent
[src]
fn into_event(self) -> Event where
Self: Sized,
[src]
Self: Sized,
Convert into a general Event
again
fn context(&self) -> Libinput
[src]
Get the libinput context from the event.
fn device(&self) -> Device
[src]
Return the device associated with this event. Read more