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

pub struct TabletTool { /* fields omitted */ }

An object representing a tool being used by a device with the DeviceCapability::TabletTool capability.

Tablet events generated by such a device are bound to a specific tool rather than coming from the device directly. Depending on the hardware it is possible to track the same physical tool across multiple Devices, see Tracking unique tools.

Methods

impl TabletTool
[src]

Return the serial number of a tool.

If the tool does not report a serial number, this function returns zero. See Tracking unique tools for details.

Return the tool ID for a tool object.

If nonzero, this number identifies the specific type of the tool with more precision than the type returned in tool_type, see Vendor-specific tablet tool types. Not all tablets support a tool ID.

Tablets known to support tool IDs include the Wacom Intuos 3, 4, 5, Wacom Cintiq and Wacom Intuos Pro series.

Return the tool type for a tool object, see Vendor-specific tablet tool types for details.

Check if a tablet tool has a button with the passed-in code (see linux/input.h).

Return whether the tablet tool supports distance.

Return whether the tablet tool supports pressure.

Return whether the tablet tool supports z-rotation.v

Return whether the tablet tool has a slider axis.

Return whether the tablet tool supports tilt.

Return whether the tablet tool has a relative wheel.

Returns true if the physical tool can be uniquely identified by libinput, or false otherwise.

If a tool can be uniquely identified, keeping a reference to the tool allows tracking the tool across proximity out sequences and across compatible tablets. See Tracking unique tools for more details.

Trait Implementations

impl Eq for TabletTool
[src]

impl Debug for TabletTool
[src]

Formats the value using the given formatter.

impl FromRaw<libinput_tablet_tool> for TabletTool
[src]

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

impl AsRaw<libinput_tablet_tool> for TabletTool
[src]

Receive a raw pointer representing this type.

impl Userdata for TabletTool
[src]

Receive a reference to the attached userdata, if one exists. Read more

Receive a mutable reference to the attached userdata, if one exists. Read more

Set userdata and receive the currently set userdata Read more

impl Clone for TabletTool
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for TabletTool
[src]

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

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

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

Feeds a slice of this type into the state provided.