Type Definition input_sys::libinput_tablet_tool_type[][src]

pub type libinput_tablet_tool_type = c_uint;
Expand description

@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.

@since 1.2