Package ch.bailu.gtk.gdk
Class Seat
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gdk.Seat
- All Implemented Interfaces:
PointerInterface
The `GdkSeat` object represents a collection of input devices
that belong to a user.
that belong to a user.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the capabilities this `GdkSeat` currently has.static ClassHandler
getDevices
(int capabilities) Returns the devices that match the given capabilities.Returns the `GdkDisplay` this seat belongs to.static int
Returns the device that routes keyboard events.static long
static TypeSystem.TypeSize
Returns the device that routes pointer events.getTools()
Returns all `GdkDeviceTools` that are known to the application.static long
static TypeSystem.TypeSize
onDeviceAdded
(Seat.OnDeviceAdded signal) Connect to signal "device-added".onDeviceRemoved
(Seat.OnDeviceRemoved signal) Connect to signal "device-removed".onToolAdded
(Seat.OnToolAdded signal) Connect to signal "tool-added".onToolRemoved
(Seat.OnToolRemoved signal) Connect to signal "tool-removed".Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
SIGNAL_ON_DEVICE_ADDED
- See Also:
-
SIGNAL_ON_DEVICE_REMOVED
- See Also:
-
SIGNAL_ON_TOOL_ADDED
- See Also:
-
SIGNAL_ON_TOOL_REMOVED
- See Also:
-
-
Constructor Details
-
Seat
-
-
Method Details
-
getClassHandler
-
getCapabilities
public int getCapabilities()Returns the capabilities this `GdkSeat` currently has.- Returns:
- the seat capabilities
-
getDevices
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
Returns the `GdkDisplay` this seat belongs to.- Returns:
- a `GdkDisplay`. This object is owned by GTK and must not be freed.
-
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
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
Returns all `GdkDeviceTools` that are known to the application.- Returns:
- A list of tools. Free with g_list_free().
-
onDeviceAdded
Connect to signal "device-added".
SeeSeat.OnDeviceAdded.onDeviceAdded(ch.bailu.gtk.gdk.Device)
for signal description.
FieldSIGNAL_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
Connect to signal "device-removed".
SeeSeat.OnDeviceRemoved.onDeviceRemoved(ch.bailu.gtk.gdk.Device)
for signal description.
FieldSIGNAL_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
Connect to signal "tool-added".
SeeSeat.OnToolAdded.onToolAdded(ch.bailu.gtk.gdk.DeviceTool)
for signal description.
FieldSIGNAL_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
Connect to signal "tool-removed".
SeeSeat.OnToolRemoved.onToolRemoved(ch.bailu.gtk.gdk.DeviceTool)
for signal description.
FieldSIGNAL_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
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-