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
PenA generic pen.
EraserEraser.
BrushA paintbrush-like tool.
PencilPhysical drawing tool, e.g. Wacom Inking Pen
AirbrushAn airbrush-like tool.
MouseA mouse bound to the tablet.
LensA mouse tool with a lens.
Trait Implementations
impl Debug for TabletToolType[src]
impl Clone for TabletToolType[src]
fn clone(&self) -> TabletToolType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for TabletToolType[src]
impl PartialEq for TabletToolType[src]
fn eq(&self, __arg_0: &TabletToolType) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for TabletToolType[src]
impl Hash for TabletToolType[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.