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]

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]

Formats the value using the given formatter.

impl FromRaw<libinput_event_tablet_tool> for TabletToolTipEvent
[src]

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

impl AsRaw<libinput_event_tablet_tool> for TabletToolTipEvent
[src]

Receive a raw pointer representing this type.

impl PartialEq for TabletToolTipEvent
[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 TabletToolTipEvent
[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 TabletToolTipEvent
[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 TabletToolTipEvent
[src]

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