gdk.device_tool

Module for [DeviceTool] class

Types 3

A physical tool associated to a [gdk.device.Device].

Methods
GType _gType() @property
DeviceTool self()Returns `this`, for use in `with` statements.
DeviceToolGidBuilder builder()Get builder for [gdk.device_tool.DeviceTool] Returns: New builder object
gdk.types.AxisFlags axes() @propertyGet `axes` property. Returns: The axes of the tool.
ulong hardwareId() @propertyGet `hardwareId` property. Returns: The hardware ID of the tool.
ulong serial() @propertyGet `serial` property. Returns: The serial number of the tool.
gdk.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 tool
ulong 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.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
T axes(gdk.types.AxisFlags propval)Set `axes` property. Params: propval = The axes of the tool. Returns: Builder instance for fluent chaining
T hardwareId(ulong propval)Set `hardwareId` property. Params: propval = The hardware ID of the tool. Returns: Builder instance for fluent chaining
T serial(ulong propval)Set `serial` property. Params: propval = The serial number of the tool. Returns: Builder instance for fluent chaining
T toolType(gdk.types.DeviceToolType propval)Set `toolType` property. Params: propval = The type of the tool. Returns: Builder instance for fluent chaining

Fluent builder for [gdk.device_tool.DeviceTool]

Methods