DeviceSignalName
public enum DeviceSignalName : String, SignalNameProtocol
Undocumented
-
Emitted either when the the number of either axes or keys changes.
On X11 this will normally happen when the physical device routing events through the logical device changes (for example, user switches from the USB mouse to a tablet); in that case the logical device will change to reflect the axes and keys on the new physical device.
Declaration
Swift
case changed = "changed"
-
The notify signal is emitted on an object when one of its properties has its value set through
g_object_set_property()
,g_object_set()
, et al.Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with
G_PARAM_EXPLICIT_NOTIFY
, then any call tog_object_set_property()
results innotify
being emitted, even if the new value is the same as the old. If they did passG_PARAM_EXPLICIT_NOTIFY
, then this signal is emitted only when they explicitly callg_object_notify()
org_object_notify_by_pspec()
, and common practice is to do that only when the value has actually changed.This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the
g_signal_connect()
call, like this: (C Language Example):g_signal_connect (text_view->buffer, "notify::paste-target-list", G_CALLBACK (gtk_text_view_target_list_notify), text_view)
It is important to note that you must use canonical parameter names as detail strings for the notify signal.
Declaration
Swift
case notify = "notify"
-
Emitted on pen/eraser devices whenever tools enter or leave proximity.
Declaration
Swift
case toolChanged = "tool-changed"
-
Whether Caps Lock is on.
This is only relevant for keyboard devices.
Declaration
Swift
case notifyCapsLockState = "notify::caps-lock-state"
-
The direction of the current layout.
This is only relevant for keyboard devices.
Declaration
Swift
case notifyDirection = "notify::direction"
-
The
GdkDisplay
theGdkDevice
pertains to.Declaration
Swift
case notifyDisplay = "notify::display"
-
Whether the device has both right-to-left and left-to-right layouts.
This is only relevant for keyboard devices.
Declaration
Swift
case notifyHasBidiLayouts = "notify::has-bidi-layouts"
-
Whether the device is represented by a cursor on the screen.
Declaration
Swift
case notifyHasCursor = "notify::has-cursor"
-
The current modifier state of the device.
This is only relevant for keyboard devices.
Declaration
Swift
case notifyModifierState = "notify::modifier-state"
-
Number of axes in the device.
Declaration
Swift
case notifyNAxes = "notify::n-axes"
-
The device name.
Declaration
Swift
case notifyName = "notify::name"
-
Whether Num Lock is on.
This is only relevant for keyboard devices.
Declaration
Swift
case notifyNumLockState = "notify::num-lock-state"
-
The maximal number of concurrent touches on a touch device.
Will be 0 if the device is not a touch device or if the number of touches is unknown.
Declaration
Swift
case notifyNumTouches = "notify::num-touches"
-
Product ID of this device.
See [method
Gdk.Device.get_product_id
].Declaration
Swift
case notifyProductId = "notify::product-id"
-
Whether Scroll Lock is on.
This is only relevant for keyboard devices.
Declaration
Swift
case notifyScrollLockState = "notify::scroll-lock-state"
-
GdkSeat
of this device.Declaration
Swift
case notifySeat = "notify::seat"
-
Source type for the device.
Declaration
Swift
case notifySource = "notify::source"
-
The
GdkDeviceTool
that is currently used with this device.Declaration
Swift
case notifyTool = "notify::tool"
-
Vendor ID of this device.
See [method
Gdk.Device.get_vendor_id
].Declaration
Swift
case notifyVendorId = "notify::vendor-id"