Struct input::event::tablet_tool::TabletToolTipEvent
[−]
[src]
pub struct TabletToolTipEvent { /* fields omitted */ }Signals that a tool has come in contact with the surface of a device with the
DeviceCapability::TabletTool capability.
On devices without distance proximity detection, the TabletToolTipEvent is sent
immediately after TabletToolProximityEvent for the tip down event, and
immediately before for the tip up event.
The decision when a tip touches the surface is device-dependent and may be
derived from pressure data or other means. If the tip state is changed by axes
changing state, the TabletToolTipEvent includes the changed axes and no
additional axis event is sent for this state change. In other words, a caller
must look at both TabletToolAxisEvent and TabletToolTipEvent events to know
the current state of the axes.
If a button state change occurs at the same time as a tip state change, the order of events is device-dependent.
Methods
impl TabletToolTipEvent[src]
fn tip_state(&self) -> TipState
Returns the new tip state of a tool from a tip event.
Used to check whether or not a tool came in contact with the tablet surface or
left contact with the tablet surface during an TabletToolTipEvent.
Trait Implementations
impl Eq for TabletToolTipEvent[src]
impl Debug for TabletToolTipEvent[src]
impl FromRaw<libinput_event_tablet_tool> for TabletToolTipEvent[src]
unsafe fn from_raw(ffi: *mut libinput_event_tablet_tool) -> Self
Create a new instance of this type from a raw pointer. Read more
impl AsRaw<libinput_event_tablet_tool> for TabletToolTipEvent[src]
fn as_raw(&self) -> *const libinput_event_tablet_tool
Receive a raw pointer representing this type.
impl PartialEq for TabletToolTipEvent[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 TabletToolTipEvent[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 TabletToolTipEvent[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