1.37 <GdkSeat>

Class: <GdkSeat>

It derives from <GObject>.

Represents a collection of input devices that belong to a user.

Fields

parent-instance

Properties

Property: seat:display self

<GdkDisplay> of this seat.

Its value is a <GdkDisplay>, or #f.

It can only be set when the object is made, with #:display.

Procedures

Method: seat:get-capabilities self ⇒ %return
Method: get-capabilities self ⇒ %return

Returns the capabilities this <GdkSeat> currently has.

self

Passed: a <GdkSeat>.

a <GdkSeat>

%return

Returned: a <GdkSeatCapabilities>.

the seat capabilities

Method: seat:get-devices self capabilities ⇒ %return
Method: get-devices self capabilities ⇒ %return

Returns the devices that match the given capabilities.

self

Passed: a <GdkSeat>.

a <GdkSeat>

capabilities

Passed: a <GdkSeatCapabilities>, or a list of its symbols, or one of them.

capabilities to get devices for

%return

Returned: a list, each a <GdkDevice>.

A list of GdkDevices. The list must be freed with g_list_free(), the elements are owned by GTK and must not be freed.

Method: seat:get-display self ⇒ %return
Method: get-display self ⇒ %return

Returns the <GdkDisplay> this seat belongs to.

self

Passed: a <GdkSeat>.

a <GdkSeat>

%return

Returned: a <GdkDisplay>.

a <GdkDisplay>. This object is owned by GTK and must not be freed.

Method: seat:get-keyboard self ⇒ %return
Method: get-keyboard self ⇒ %return

Returns the device that routes keyboard events.

self

Passed: a <GdkSeat>.

a <GdkSeat>

%return

Returned: a <GdkDevice>, or #f.

a <GdkDevice> with keyboard capabilities. This object is owned by GTK and must not be freed.

Method: seat:get-pointer self ⇒ %return
Method: get-pointer self ⇒ %return

Returns the device that routes pointer events.

self

Passed: a <GdkSeat>.

a <GdkSeat>

%return

Returned: a <GdkDevice>, or #f.

a <GdkDevice> with pointer capabilities. This object is owned by GTK and must not be freed.

Method: seat:get-tools self ⇒ %return
Method: get-tools self ⇒ %return

Returns all GdkDeviceTools that are known to the application.

self

Passed: a <GdkSeat>.

a <GdkSeat>

%return

Returned: a list, each a <GdkDeviceTool>.

A list of tools. Free with g_list_free().

Signals

Signal: seat:device-added

Connect a handler with (connect object seat:device-added handler). It is called as (handler self device).

Emitted when a new input device is related to this seat.

self

Passed: a <GdkSeat>.

device

Passed: a <GdkDevice>.

the newly added <GdkDevice>.

Signal: seat:device-removed

Connect a handler with (connect object seat:device-removed handler). It is called as (handler self device).

Emitted when an input device is removed (e.g. unplugged).

self

Passed: a <GdkSeat>.

device

Passed: a <GdkDevice>.

the just removed <GdkDevice>.

Signal: seat:tool-added

Connect a handler with (connect object seat:tool-added handler). It is called as (handler self tool).

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 device:tool-changed signal accordingly.

A same tool may be used by several devices.

self

Passed: a <GdkSeat>.

tool

Passed: a <GdkDeviceTool>.

the new <GdkDeviceTool> known to the seat

Signal: seat:tool-removed

Connect a handler with (connect object seat:tool-removed handler). It is called as (handler self tool).

Emitted whenever a tool is no longer known to this seat.

self

Passed: a <GdkSeat>.

tool

Passed: a <GdkDeviceTool>.

the just removed <GdkDeviceTool>