Enum input_sys::libinput_tablet_tool_type [] [src]

#[repr(u32)]
pub enum libinput_tablet_tool_type { LIBINPUT_TABLET_TOOL_TYPE_PEN, LIBINPUT_TABLET_TOOL_TYPE_ERASER, LIBINPUT_TABLET_TOOL_TYPE_BRUSH, LIBINPUT_TABLET_TOOL_TYPE_PENCIL, LIBINPUT_TABLET_TOOL_TYPE_AIRBRUSH, LIBINPUT_TABLET_TOOL_TYPE_MOUSE, LIBINPUT_TABLET_TOOL_TYPE_LENS, }

@ingroup device

Available tool types for a device with the @ref LIBINPUT_DEVICE_CAP_TABLET_TOOL 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 @ref LIBINPUT_TABLET_TOOL_TYPE_PEN. Use libinput_tablet_tool_get_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 @ref libinput_tablet_tool_type 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 @ref LIBINPUT_TABLET_TOOL_TYPE_PEN.

Variants

Trait Implementations

impl Debug for libinput_tablet_tool_type
[src]

Formats the value using the given formatter.

impl Copy for libinput_tablet_tool_type
[src]

impl Clone for libinput_tablet_tool_type
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

impl Hash for libinput_tablet_tool_type
[src]

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

Feeds a slice of this type into the state provided.