:right-sidebar: True Seat =================================================================== .. currentmodule:: gi.repository.Gdk .. class:: Seat(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: Seat(**properties) Methods ------- .. rst-class:: interim-class .. class:: Seat :no-index: .. method:: get_capabilities() -> ~gi.repository.Gdk.SeatCapabilities Returns the capabilities this ``GdkSeat`` currently has. .. method:: get_devices(capabilities: ~gi.repository.Gdk.SeatCapabilities) -> list[~gi.repository.Gdk.Device] Returns the devices that match the given capabilities. :param capabilities: capabilities to get devices for .. method:: get_display() -> ~gi.repository.Gdk.Display Returns the ``GdkDisplay`` this seat belongs to. .. method:: get_keyboard() -> ~gi.repository.Gdk.Device | None Returns the device that routes keyboard events. .. method:: get_pointer() -> ~gi.repository.Gdk.Device | None Returns the device that routes pointer events. .. method:: get_tools() -> list[~gi.repository.Gdk.DeviceTool] Returns all ``GdkDeviceTools`` that are known to the application. Properties ---------- .. rst-class:: interim-class .. class:: Seat :no-index: .. attribute:: props.display :type: ~gi.repository.Gdk.Display ``GdkDisplay`` of this seat. Signals ------- .. rst-class:: interim-class .. class:: Seat.signals :no-index: .. method:: device_added(device: ~gi.repository.Gdk.Device) -> None Emitted when a new input device is related to this seat. :param device: the newly added ``GdkDevice``. .. method:: device_removed(device: ~gi.repository.Gdk.Device) -> None Emitted when an input device is removed (e.g. unplugged). :param device: the just removed ``GdkDevice``. .. method:: tool_added(tool: ~gi.repository.Gdk.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 :obj:`~gi.repository.Gdk.Device.signals.tool_changed` signal accordingly. A same tool may be used by several devices. :param tool: the new ``GdkDeviceTool`` known to the seat .. method:: tool_removed(tool: ~gi.repository.Gdk.DeviceTool) -> None Emitted whenever a tool is no longer known to this ``seat``. :param tool: the just removed ``GdkDeviceTool`` Fields ------ .. rst-class:: interim-class .. class:: Seat :no-index: .. attribute:: parent_instance