Gdk.DeviceTool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Tool axes |
||
r/w/co |
Hardware ID |
||
r/w/co |
Serial number |
||
r/w/co |
Tool type |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gdk.DeviceTool(**kwargs)¶
- Bases:
- Abstract:
No
- get_hardware_id()[source]¶
- Returns:
The hardware identificator of this tool.
- Return type:
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 will have different serial numbers (see
Gdk.DeviceTool.get_serial
()).This is a more concrete (and device specific) method to identify a
Gdk.DeviceTool
thanGdk.DeviceTool.get_tool_type
(), as a tablet may support multiple devices with the sameGdk.DeviceToolType
, but having different hardware identificators.New in version 3.22.
- get_serial()[source]¶
- Returns:
The serial ID for this tool
- Return type:
Gets the serial of this tool, this value can be used to identify a physical tool (eg. a tablet pen) across program executions.
New in version 3.22.
- get_tool_type()[source]¶
- 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.
- Return type:
Gets the
Gdk.DeviceToolType
of the tool.New in version 3.22.
Property Details¶
- Gdk.DeviceTool.props.axes¶
- Name:
axes
- Type:
- Default Value:
0
- Flags:
Tool axes
- Gdk.DeviceTool.props.hardware_id¶
- Name:
hardware-id
- Type:
- Default Value:
0
- Flags:
Hardware ID
- Gdk.DeviceTool.props.serial¶
- Name:
serial
- Type:
- Default Value:
0
- Flags:
Serial number
- Gdk.DeviceTool.props.tool_type¶
- Name:
tool-type
- Type:
- Default Value:
- Flags:
Tool type