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
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the capabilities this `GdkSeat` currently has.static ClassHandlergetDevices(int capabilities) Returns the devices that match the given capabilities.Returns the `GdkDisplay` this seat belongs to.static intReturns the device that routes keyboard events.static longstatic TypeSystem.TypeSizeReturns the device that routes pointer events.getTools()Returns all `GdkDeviceTools` that are known to the application.static longstatic TypeSystem.TypeSizeonDeviceAdded(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, weakUnrefMethods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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_ADDEDcontains 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_REMOVEDcontains 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_ADDEDcontains 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_REMOVEDcontains 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()
-