gdk.device_tool
Module for [DeviceTool] class
Types 3
A physical tool associated to a [gdk.device.Device].
Methods
DeviceTool self()Returns `this`, for use in `with` statements.DeviceToolGidBuilder builder()Get builder for [gdk.device_tool.DeviceTool] Returns: New builder objectgdk.types.DeviceToolType toolType() @propertyGet `toolType` property. Returns: The type of the tool.gdk.types.AxisFlags getAxes()Gets the axes of the tool. Returns: the axes of toolulong getHardwareId()Gets the hardware ID of this tool, or 0 if it's not known.ulong getSerial()Gets the serial number of this tool.gdk.types.DeviceToolType getToolType()Gets the [gdk.types.DeviceToolType] 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)Set `axes` property. Params: propval = The axes of the tool. Returns: Builder instance for fluent chainingT hardwareId(ulong propval)Set `hardwareId` property. Params: propval = The hardware ID of the tool. Returns: Builder instance for fluent chainingT serial(ulong propval)Set `serial` property. Params: propval = The serial number of the tool. Returns: Builder instance for fluent chainingT toolType(gdk.types.DeviceToolType propval)Set `toolType` property. Params: propval = The type of the tool. Returns: Builder instance for fluent chainingFluent builder for [gdk.device_tool.DeviceTool]
Methods