gdk.device_tool
Module for [DeviceTool] class
Types 3
Methods
DeviceTool self()Returns `this`, for use in `with` statements.DeviceToolGidBuilder builder()Get builder for [gdk.device_tool.DeviceTool] Returns: New builder objectgdk.types.AxisFlags axes() @propertyulong hardwareId() @propertyulong serial() @propertygdk.types.DeviceToolType toolType() @propertyulong getHardwareId()Gets the hardware ID of this tool, or 0 if it's not known. When non-zero, the identificator is unique for the given tool model, meaning that two identical tools will share the same hardwareid, but ...ulong getSerial()Gets the serial of this tool, this value can be used to identify a physical tool (eg. a tablet pen) across program executions. Returns: The serial ID for this toolgdk.types.DeviceToolType getToolType()Gets the #GdkDeviceToolType of the tool. Returns: The physical type for this tool. This can be used to figure out what sort of pen is being used, such as an airbrush or a pencil.Methods
T axes(gdk.types.AxisFlags propval)T hardwareId(ulong propval)T serial(ulong propval)T toolType(gdk.types.DeviceToolType propval)Fluent builder for [gdk.device_tool.DeviceTool]
Methods