[][src]Function input_sys::libinput_tablet_tool_get_type

pub unsafe extern "C" fn libinput_tablet_tool_get_type(
    tool: *mut libinput_tablet_tool
) -> libinput_tablet_tool_type

@ingroup event_tablet

Return the high-level tool type for a tool object.

The high level tool describes general interaction expected with the tool. For example, a user would expect a tool of type @ref LIBINPUT_TABLET_TOOL_TYPE_PEN to interact with a graphics application taking pressure and tilt into account. The default virtual tool assigned should be a drawing tool, e.g. a virtual pen or brush. A tool of type @ref LIBINPUT_TABLET_TOOL_TYPE_ERASER would normally be mapped to an eraser-like virtual tool.

If supported by the hardware, a more specific tool id is always available, see libinput_tablet_tool_get_tool_id().

@param tool The libinput tool @return The tool type for this tool object

@see libinput_tablet_tool_get_tool_id

@since 1.2