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]

[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.

[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.

[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]

[src]

Formats the value using the given formatter.

impl FromRaw<libinput_event_tablet_pad> for TabletPadRingEvent
[src]

[src]

Create a new instance of this type from a raw pointer. Read more

impl AsRaw<libinput_event_tablet_pad> for TabletPadRingEvent
[src]

[src]

Receive a raw pointer representing this type.

impl PartialEq for TabletPadRingEvent
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Hash for TabletPadRingEvent
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl EventTrait for TabletPadRingEvent
[src]

[src]

Convert into a general Event again

[src]

Get the libinput context from the event.

[src]

Return the device associated with this event. Read more

impl Drop for TabletPadRingEvent
[src]

[src]

Executes the destructor for this type. Read more