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
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
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
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
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
Receive a raw pointer representing this type.
impl PartialEq for TabletPadRingEvent[src]
fn eq(&self, other: &Self) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for TabletPadRingEvent[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl EventTrait for TabletPadRingEvent[src]
fn into_event(self) -> Event where Self: Sized
Convert into a general Event again
fn context(&self) -> Libinput
Get the libinput context from the event.
fn device(&self) -> Device
Return the device associated with this event. Read more