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
LIBINPUT_TABLET_TOOL_TYPE_PENLIBINPUT_TABLET_TOOL_TYPE_ERASERLIBINPUT_TABLET_TOOL_TYPE_BRUSHLIBINPUT_TABLET_TOOL_TYPE_PENCILLIBINPUT_TABLET_TOOL_TYPE_AIRBRUSHLIBINPUT_TABLET_TOOL_TYPE_MOUSELIBINPUT_TABLET_TOOL_TYPE_LENSTrait Implementations
impl Debug for libinput_tablet_tool_type[src]
impl Copy for libinput_tablet_tool_type[src]
impl Clone for libinput_tablet_tool_type[src]
fn clone(&self) -> libinput_tablet_tool_type
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 PartialEq for libinput_tablet_tool_type[src]
fn eq(&self, __arg_0: &libinput_tablet_tool_type) -> 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 libinput_tablet_tool_type[src]
impl Hash for libinput_tablet_tool_type[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.