Enum input::event::tablet_tool::TabletToolType [] [src]

pub enum TabletToolType {
    Pen,
    Eraser,
    Brush,
    Pencil,
    Airbrush,
    Mouse,
    Lens,
}

Available tool types for a device with the DeviceCapability::TabletTool capability.

The tool type defines the default usage of the tool as advertised by the manufacturer. Multiple different physical tools may share the same tool type, e.g. a Wacom Classic Pen, Wacom Pro Pen and a Wacom Grip Pen are all of type TabletToolType::Pen. Use TabletTool::tool_id to get a specific model where applicable.

Note that on some device, the eraser tool is on the tail end of a pen device. On other devices, e.g. MS Surface 3, the eraser is the pen tip while a button is held down.

Note

The TabletToolType can only describe the default physical type of the device. For devices with adjustable physical properties the tool type remains the same, i.e. putting a Wacom stroke nib into a classic pen leaves the tool type as TabletToolType::Pen.

Variants

A generic pen.

Eraser.

A paintbrush-like tool.

Physical drawing tool, e.g. Wacom Inking Pen

An airbrush-like tool.

A mouse bound to the tablet.

A mouse tool with a lens.

Trait Implementations

impl Debug for TabletToolType
[src]

Formats the value using the given formatter.

impl Clone for TabletToolType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for TabletToolType
[src]

impl PartialEq for TabletToolType
[src]

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

This method tests for !=.

impl Eq for TabletToolType
[src]

impl Hash for TabletToolType
[src]

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

Feeds a slice of this type into the state provided.