Top | ![]() |
![]() |
![]() |
![]() |
GdkDisplay * | gdk_seat_get_display () |
GdkSeatCapabilities | gdk_seat_get_capabilities () |
GdkDevice * | gdk_seat_get_pointer () |
GdkDevice * | gdk_seat_get_keyboard () |
GList * | gdk_seat_get_slaves () |
GList * | gdk_seat_get_master_pointers () |
void | device-added | Run Last |
void | device-removed | Run Last |
void | tool-added | Run Last |
void | tool-removed | Run Last |
GdkDisplay *
gdk_seat_get_display (GdkSeat *seat
);
Returns the GdkDisplay this seat belongs to.
GdkSeatCapabilities
gdk_seat_get_capabilities (GdkSeat *seat
);
Returns the capabilities this GdkSeat currently has.
GdkDevice *
gdk_seat_get_pointer (GdkSeat *seat
);
Returns the master device that routes pointer events.
a master GdkDevice with pointer capabilities. This object is owned by GTK and must not be freed.
[transfer none][nullable]
GdkDevice *
gdk_seat_get_keyboard (GdkSeat *seat
);
Returns the master device that routes keyboard events.
a master GdkDevice with keyboard capabilities. This object is owned by GTK and must not be freed.
[transfer none][nullable]
GList * gdk_seat_get_slaves (GdkSeat *seat
,GdkSeatCapabilities capabilities
);
Returns the slave devices that match the given capabilities.
GList * gdk_seat_get_master_pointers (GdkSeat *seat
,GdkSeatCapabilities capabilities
);
Returns all master pointers with the given capabilities driven by this seat
.
On most backends this function will return a list with a single element (meaning
that all input devices drive the same onscreen cursor).
In other backends where there can possibly be multiple foci (eg. wayland), this function will return all master GdkDevices that represent these.
typedef struct _GdkSeat GdkSeat;
The GdkSeat struct contains only private fields and should not be accessed directly.
Flags describing the seat capabilities.
“display”
property“display” GdkDisplay *
GdkDisplay of this seat.
Owner: GdkSeat
Flags: Read / Write / Construct Only
“device-added”
signalvoid user_function (GdkSeat *seat, GdkDevice *device, gpointer user_data)
The ::device-added signal is emitted when a new input device is related to this seat.
seat |
the object on which the signal is emitted |
|
device |
the newly added GdkDevice. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“device-removed”
signalvoid user_function (GdkSeat *seat, GdkDevice *device, gpointer user_data)
The ::device-removed signal is emitted when an input device is removed (e.g. unplugged).
seat |
the object on which the signal is emitted |
|
device |
the just removed GdkDevice. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“tool-added”
signalvoid user_function (GdkSeat *seat, GdkDeviceTool *tool, gpointer user_data)
The ::tool-added signal is 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.
seat |
the object on which the signal is emitted |
|
tool |
the new GdkDeviceTool known to the seat |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“tool-removed”
signalvoid user_function (GdkSeat *seat, GdkDeviceTool *tool, gpointer user_data)
This signal is emitted whenever a tool is no longer known
to this seat
.
seat |
the object on which the signal is emitted |
|
tool |
the just removed GdkDeviceTool |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last