Represents a collection of input devices that belong to a user.
All_Capabilities : constant Seat_Capabilities := 31;
All_Pointing : constant Seat_Capabilities := 7;
type Cb_Gdk_Seat_Gdk_Device_Tool_Void is not null access procedure
(Self : access Gdk_Seat_Record'Class;
Tool : not null access Gdk.Device_Tool.Gdk_Device_Tool_Record'Class);
type Cb_Gdk_Seat_Gdk_Device_Void is not null access procedure
(Self : access Gdk_Seat_Record'Class;
Device : not null access Gdk.Device.Gdk_Device_Record'Class);
type Cb_GObject_Gdk_Device_Tool_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Tool : not null access Gdk.Device_Tool.Gdk_Device_Tool_Record'Class);
type Cb_GObject_Gdk_Device_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Device : not null access Gdk.Device.Gdk_Device_Record'Class);
function Convert (R : Gdk.Gdk_Seat) return System.Address
function Convert (R : System.Address) return Gdk.Gdk_Seat
Display_Property : constant Glib.Properties.Property_Boxed;
Type: Display GdkDisplay of this seat.
subtype Gdk_Seat is Gdk.Gdk_Seat;
type Gdk_Seat_Record is new GObject_Record with null record;
function Get_Capabilities
(Self : not null access Gdk_Seat_Record) return Seat_Capabilities
Returns the capabilities this GdkSeat currently has.
the seat capabilities
function Get_Devices
(Self : not null access Gdk_Seat_Record;
Capabilities : Seat_Capabilities) return Gdk.Device.Device_List.Glist
Returns the devices that match the given capabilities.
capabilities to get devices for
A list of GdkDevices. The list must be freed with g_list_free, the elements are owned by GTK and must not be freed.
function Get_Display
(Self : not null access Gdk_Seat_Record) return Gdk.Gdk_Display
Returns the GdkDisplay this seat belongs to.
a GdkDisplay. This object is owned by GTK and must not be freed. Has transfer-ownership='none'.
function Get_Keyboard
(Self : not null access Gdk_Seat_Record) return Gdk.Gdk_Device
Returns the device that routes keyboard events.
a GdkDevice with keyboard capabilities. This object is owned by GTK and must not be freed. Has transfer-ownership='none'.
function Get_Pointer
(Self : not null access Gdk_Seat_Record) return Gdk.Gdk_Device
Returns the device that routes pointer events.
a GdkDevice with pointer capabilities. This object is owned by GTK and must not be freed. Has transfer-ownership='none'.
function Get_Tools
(Self : not null access Gdk_Seat_Record)
return Gdk.Device_Tool.Device_Tool_List.Glist
Returns all GdkDeviceTools that are known to the application.
A list of tools. Free with g_list_free.
function Get_Type return Glib.GType
Keyboard : constant Seat_Capabilities := 8;
None : constant Seat_Capabilities := 0;
procedure On_Device_Added
(Self : not null access Gdk_Seat_Record;
Call : Cb_Gdk_Seat_Gdk_Device_Void;
After : Boolean := False)
Emitted when a new input device is related to this seat.
procedure On_Device_Added
(Self : not null access Gdk_Seat_Record;
Call : Cb_GObject_Gdk_Device_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted when a new input device is related to this seat.
procedure On_Device_Removed
(Self : not null access Gdk_Seat_Record;
Call : Cb_Gdk_Seat_Gdk_Device_Void;
After : Boolean := False)
Emitted when an input device is removed (e.g. unplugged).
procedure On_Device_Removed
(Self : not null access Gdk_Seat_Record;
Call : Cb_GObject_Gdk_Device_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted when an input device is removed (e.g. unplugged).
procedure On_Tool_Added
(Self : not null access Gdk_Seat_Record;
Call : Cb_Gdk_Seat_Gdk_Device_Tool_Void;
After : Boolean := False)
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 [signalGdk.Device::tool-changed] signal accordingly.
A same tool may be used by several devices.
procedure On_Tool_Added
(Self : not null access Gdk_Seat_Record;
Call : Cb_GObject_Gdk_Device_Tool_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
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 [signalGdk.Device::tool-changed] signal accordingly.
A same tool may be used by several devices.
procedure On_Tool_Removed
(Self : not null access Gdk_Seat_Record;
Call : Cb_Gdk_Seat_Gdk_Device_Tool_Void;
After : Boolean := False)
Emitted whenever a tool is no longer known to this Seat.
procedure On_Tool_Removed
(Self : not null access Gdk_Seat_Record;
Call : Cb_GObject_Gdk_Device_Tool_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted whenever a tool is no longer known to this Seat.
Pointer : constant Seat_Capabilities := 1;
type Property_Seat_Capabilities is new Seat_Capabilities_Properties.Property;
type Seat_Capabilities is mod 2 ** Integer'Size;
Flags describing the seat capabilities.
package Seat_Capabilities_Properties is
new Generic_Internal_Flags_Property (Seat_Capabilities);
package Seat_List is new Generic_List (Gdk.Gdk_Seat);
Signal_Device_Added : constant Glib.Signal_Name := "device-added";
Emitted when a new input device is related to this seat.
Signal_Device_Removed : constant Glib.Signal_Name := "device-removed";
Emitted when an input device is removed (e.g. unplugged).
Signal_Tool_Added : constant Glib.Signal_Name := "tool-added";
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 [signalGdk.Device::tool-changed] signal accordingly.
A same tool may be used by several devices.
Signal_Tool_Removed : constant Glib.Signal_Name := "tool-removed";
Emitted whenever a tool is no longer known to this Seat.
Tablet_Pad : constant Seat_Capabilities := 16;
Tablet_Stylus : constant Seat_Capabilities := 4;
Touch : constant Seat_Capabilities := 2;