Struct input::event::tablet_tool::TabletToolTipEvent[][src]

pub struct TabletToolTipEvent { /* fields omitted */ }
Expand description

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.

Implementations

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

Receive a raw pointer representing this type.

Returns the underlying libinput context

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Convert into a general Event again

Return the device associated with this event. Read more

Create a new instance of this type from a raw pointer and it’s context. Read more

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The event time for this event

The event time for this event in microseconds

Check if the distance axis was updated in this event. Read more

Returns the current distance from the tablet’s sensor, normalized to the range [0, 1]. Read more

Return the delta between the last event and the current event. Read more

Return the delta between the last event and the current event. Read more

Check if the pressure axis was updated in this event. For TabletToolButtonEvents this function always returns false.

Returns the current pressure being applied on the tool in use, normalized to the range [0, 1]. Read more

Check if the z-rotation axis was updated in this event. Read more

Returns the current z rotation of the tool in degrees, clockwise from the tool’s logical neutral position. Read more

Check if the slider axis was updated in this event. Read more

Returns the current position of the slider on the tool, normalized to the range [-1, 1]. Read more

Check if the tilt x axis was updated in this event. Read more

Check if the tilt y axis was updated in this event. Read more

Returns the current tilt along the X axis of the tablet’s current logical orientation, in degrees off the tablet’s z axis. Read more

Returns the current tilt along the Y axis of the tablet’s current logical orientation, in degrees off the tablet’s z axis. Read more

Check if the size major axis was updated in this event. Read more

Check if the size minor axis was updated in this event. Read more

Returns the current size in mm along the major axis of the touching ellipse. This axis is not necessarily aligned with either x or y, the rotation must be taken into account. Read more

Returns the current size in mm along the minor axis of the touching ellipse. This axis is not necessarily aligned with either x or y, the rotation must be taken into account. Read more

Check if the wheel axis was updated in this event. Read more

Return the delta for the wheel in degrees.

Return the delta for the wheel in discrete steps (e.g. wheel clicks).

Check if the x axis was updated in this event. Read more

Check if the y axis was updated in this event. Read more

Returns the X coordinate of the tablet tool, in mm from the top left corner of the tablet in its current logical orientation. Read more

Returns the Y coordinate of the tablet tool, in mm from the top left corner of the tablet in its current logical orientation. Read more

Return the current absolute x coordinate of the tablet tool event, transformed to screen coordinates. Read more

Return the current absolute y coordinate of the tablet tool event, transformed to screen coordinates. Read more

Returns the tool that was in use during this event. Read more

Convert into a general TabletToolEvent again

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.