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

pub struct TabletPadStripEvent { /* fields omitted */ }

A status change on a strip on a device with the DeviceCapability::TabletPad capability.

Methods

impl TabletPadStripEvent
[src]

Returns the number of the strip that has changed state, with 0 being the first strip.

On tablets with only one strip, this function always returns 0.

Returns the current position of the strip, normalized to the range [0, 1], with 0 being the top/left-most point in the tablet's current logical orientation.

If the source is StripAxisSource::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.

Returns the source of the interaction with the strip.

If the source is StripAxisSource::Finger, libinput sends a strip position value of -1 to terminate the current interaction

Trait Implementations

impl Eq for TabletPadStripEvent
[src]

impl Debug for TabletPadStripEvent
[src]

Formats the value using the given formatter.

impl FromRaw<libinput_event_tablet_pad> for TabletPadStripEvent
[src]

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

impl AsRaw<libinput_event_tablet_pad> for TabletPadStripEvent
[src]

Receive a raw pointer representing this type.

impl PartialEq for TabletPadStripEvent
[src]

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

This method tests for !=.

impl Hash for TabletPadStripEvent
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl EventTrait for TabletPadStripEvent
[src]

Convert into a general Event again

Get the libinput context from the event.

Return the device associated with this event. Read more

impl Drop for TabletPadStripEvent
[src]

A method called when the value goes out of scope. Read more