#[non_exhaustive]pub enum TabletToolType {
Pen,
Eraser,
Brush,
Pencil,
Airbrush,
Mouse,
Lens,
Totem,
}
Expand description
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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Pen
A generic pen.
Eraser
Eraser.
Brush
A paintbrush-like tool.
Pencil
Physical drawing tool, e.g. Wacom Inking Pen
Airbrush
An airbrush-like tool.
Mouse
A mouse bound to the tablet.
Lens
A mouse tool with a lens.
Totem
A rotary device with positional and rotation data
Trait Implementations§
Source§impl Clone for TabletToolType
impl Clone for TabletToolType
Source§fn clone(&self) -> TabletToolType
fn clone(&self) -> TabletToolType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more