gdk.device_tool

Module for DeviceTool class

Types 3

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
ulong hardwareId() @property
ulong serial() @property
ulong 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 hardware_id, 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 tool
gdk.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.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gdk.device_tool.DeviceTool

Methods
T hardwareId(ulong propval)
T serial(ulong propval)

Fluent builder for gdk.device_tool.DeviceTool

Methods
DeviceTool build()Create object from builder. Returns: New object