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]
fn number(&self) -> u32
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.
fn position(&self) -> f64
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.
fn source(&self) -> StripAxisSource
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]
impl FromRaw<libinput_event_tablet_pad> for TabletPadStripEvent[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 TabletPadStripEvent[src]
fn as_raw(&self) -> *const libinput_event_tablet_pad
Receive a raw pointer representing this type.
impl PartialEq for TabletPadStripEvent[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 TabletPadStripEvent[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 TabletPadStripEvent[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