Class Seat

All Implemented Interfaces:
PointerInterface

public class Seat extends Object
The `GdkSeat` object represents a collection of input devices
that belong to a user.

https://docs.gtk.org/gdk4/class.Seat.html

  • Field Details

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getCapabilities

      public int getCapabilities()
      Returns the capabilities this `GdkSeat` currently has.
      Returns:
      the seat capabilities
    • getDevices

      public List getDevices(int capabilities)
      Returns the devices that match the given capabilities.
      Parameters:
      capabilities - 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.
    • getDisplay

      public Display getDisplay()
      Returns the `GdkDisplay` this seat belongs to.
      Returns:
      a `GdkDisplay`. This object is owned by GTK and must not be freed.
    • getKeyboard

      public Device getKeyboard()
      Returns the device that routes keyboard events.
      Returns:
      a `GdkDevice` with keyboard capabilities. This object is owned by GTK and must not be freed.
    • getPointer

      public Device getPointer()
      Returns the device that routes pointer events.
      Returns:
      a `GdkDevice` with pointer capabilities. This object is owned by GTK and must not be freed.
    • getTools

      public List getTools()
      Returns all `GdkDeviceTools` that are known to the application.
      Returns:
      A list of tools. Free with g_list_free().
    • onDeviceAdded

      public SignalHandler onDeviceAdded(Seat.OnDeviceAdded signal)
      Connect to signal "device-added".
      See Seat.OnDeviceAdded.onDeviceAdded(ch.bailu.gtk.gdk.Device) for signal description.
      Field SIGNAL_ON_DEVICE_ADDED contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onDeviceRemoved

      public SignalHandler onDeviceRemoved(Seat.OnDeviceRemoved signal)
      Connect to signal "device-removed".
      See Seat.OnDeviceRemoved.onDeviceRemoved(ch.bailu.gtk.gdk.Device) for signal description.
      Field SIGNAL_ON_DEVICE_REMOVED contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onToolAdded

      public SignalHandler onToolAdded(Seat.OnToolAdded signal)
      Connect to signal "tool-added".
      See Seat.OnToolAdded.onToolAdded(ch.bailu.gtk.gdk.DeviceTool) for signal description.
      Field SIGNAL_ON_TOOL_ADDED contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onToolRemoved

      public SignalHandler onToolRemoved(Seat.OnToolRemoved signal)
      Connect to signal "tool-removed".
      See Seat.OnToolRemoved.onToolRemoved(ch.bailu.gtk.gdk.DeviceTool) for signal description.
      Field SIGNAL_ON_TOOL_REMOVED contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()