Gdk.DeviceTool¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gdk.DeviceTool(**kwargs)¶
- Bases:
- Abstract:
No
A physical tool associated to a
GdkDevice.- get_hardware_id()[source]¶
- Returns:
The hardware identifier of this tool.
- Return type:
Gets the hardware ID of this tool, or 0 if it’s not known.
When non-zero, the identifier 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 [method`Gdk`.DeviceTool.get_serial]).
This is a more concrete (and device specific) method to identify a
GdkDeviceToolthan [method`Gdk`.DeviceTool.get_tool_type], as a tablet may support multiple devices with the sameGdkDeviceToolType, but different hardware identifiers.
- get_serial()[source]¶
- Returns:
The serial ID for this tool
- Return type:
Gets the serial number of this tool.
This value can be used to identify a physical tool (eg. a tablet pen) across program executions.
Property Details¶
- Gdk.DeviceTool.props.axes¶
- Name:
axes- Type:
- Default Value:
0- Flags:
The axes of the tool.
- Gdk.DeviceTool.props.hardware_id¶
- Name:
hardware-id- Type:
- Default Value:
0- Flags:
The hardware ID of the tool.
- Gdk.DeviceTool.props.serial¶
- Name:
serial- Type:
- Default Value:
0- Flags:
The serial number of the tool.
- Gdk.DeviceTool.props.tool_type¶
- Name:
tool-type- Type:
- Default Value:
- Flags:
The type of the tool.