Gdk.Seat¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when a new input device is related to this seat. |
|
Emitted when an input device is removed (e.g. |
|
Emitted whenever a new tool is made known to the seat. |
|
Emitted whenever a tool is no longer known to this seat. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gdk.Seat(**kwargs)¶
- Bases:
- Abstract:
Yes
The
GdkSeat
object represents a collection of input devices that belong to a user.- get_capabilities()[source]¶
- Returns:
the seat capabilities
- Return type:
Returns the capabilities this
GdkSeat
currently has.
- get_devices(capabilities)[source]¶
- Parameters:
capabilities (
Gdk.SeatCapabilities
) – capabilities to get devices for- Returns:
A list of
GdkDevices
. The list must be freed with g_list_free(), the elements are owned by GTK and must not be freed.- Return type:
Returns the devices that match the given capabilities.
- get_display()[source]¶
- Returns:
a
GdkDisplay
. This object is owned by GTK and must not be freed.- Return type:
Returns the
GdkDisplay
this seat belongs to.
- get_keyboard()[source]¶
- Returns:
a
GdkDevice
with keyboard capabilities. This object is owned by GTK and must not be freed.- Return type:
Gdk.Device
orNone
Returns the device that routes keyboard events.
- get_pointer()[source]¶
- Returns:
a
GdkDevice
with pointer capabilities. This object is owned by GTK and must not be freed.- Return type:
Gdk.Device
orNone
Returns the device that routes pointer events.
Signal Details¶
- Gdk.Seat.signals.device_added(seat, device)¶
- Signal Name:
device-added
- Flags:
- Parameters:
seat (
Gdk.Seat
) – The object which received the signaldevice (
Gdk.Device
) – the newly addedGdkDevice
.
Emitted when a new input device is related to this seat.
- Gdk.Seat.signals.device_removed(seat, device)¶
- Signal Name:
device-removed
- Flags:
- Parameters:
seat (
Gdk.Seat
) – The object which received the signaldevice (
Gdk.Device
) – the just removedGdkDevice
.
Emitted when an input device is removed (e.g. unplugged).
- Gdk.Seat.signals.tool_added(seat, tool)¶
- Signal Name:
tool-added
- Flags:
- Parameters:
seat (
Gdk.Seat
) – The object which received the signaltool (
Gdk.DeviceTool
) – the newGdkDeviceTool
known to the seat
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 [signal`Gdk`.Device::tool-changed] signal accordingly.
A same tool may be used by several devices.
- Gdk.Seat.signals.tool_removed(seat, tool)¶
- Signal Name:
tool-removed
- Flags:
- Parameters:
seat (
Gdk.Seat
) – The object which received the signaltool (
Gdk.DeviceTool
) – the just removedGdkDeviceTool
Emitted whenever a tool is no longer known to this seat.
Property Details¶
- Gdk.Seat.props.display¶
- Name:
display
- Type:
- Default Value:
- Flags:
GdkDisplay
of this seat.