DeviceTool#
Superclasses: Object
A physical tool associated to a GdkDevice.
Methods#
- class DeviceTool
-
- get_hardware_id() int#
Gets the hardware ID of this tool, or 0 if it’s not known.
When non-zero, the identifier is unique for the given tool model, meaning that two identical tools will share the same
hardware_id, but will have different serial numbers (seeget_serial).This is a more concrete (and device specific) method to identify a
GdkDeviceToolthanget_tool_type, as a tablet may support multiple devices with the sameGdkDeviceToolType, but different hardware identifiers.
- get_serial() int#
Gets the serial number of this tool.
This value can be used to identify a physical tool (eg. a tablet pen) across program executions.
- get_tool_type() DeviceToolType#
Gets the
GdkDeviceToolTypeof the tool.