Seat
Superclasses: Object
The GdkSeat
object represents a collection of input devices
that belong to a user.
Methods
- class Seat
- get_capabilities() SeatCapabilities
Returns the capabilities this
GdkSeat
currently has.
- get_devices(capabilities: SeatCapabilities) list[Device]
Returns the devices that match the given capabilities.
- Parameters:
capabilities – capabilities to get devices for
- get_tools() list[DeviceTool]
Returns all
GdkDeviceTools
that are known to the application.
Properties
Signals
- class Seat.signals
- device_added(device: Device) None
Emitted when a new input device is related to this seat.
- Parameters:
device – the newly added
GdkDevice
.
- device_removed(device: Device) None
Emitted when an input device is removed (e.g. unplugged).
- Parameters:
device – the just removed
GdkDevice
.
- tool_added(tool: DeviceTool) None
Emitted whenever a new tool is made known to the seat.
The tool may later be assigned to a device (i.e. on proximity with a tablet). The device will emit the
tool_changed
signal accordingly.A same tool may be used by several devices.
- Parameters:
tool – the new
GdkDeviceTool
known to the seat
- tool_removed(tool: DeviceTool) None
Emitted whenever a tool is no longer known to this
seat
.- Parameters:
tool – the just removed
GdkDeviceTool
Fields
- class Seat
- parent_instance