SuperclassesDocumented SubclassesDirect Slotsactive-layout-indexThe active-layout-index property of type :int (Read)
The index of the keyboard active layout of a device. Will be -1 if there is
no valid active layout. This is only relevant for keyboard devices. Since 4.18 Default value: 0 caps-lock-stateThe caps-lock-state property of type :boolean (Read) Whether the keyboard caps lock is on. Default value: false directionThe direction property of type pango:direction (Read) The direction of the current layout of the keyboard. Default value: :neutral displayThe display property of type gdk:display (Read / Write / Construct Only) The display the device pertains to. has-bidi-layoutsThe has-bidi-layouts property of type :boolean (Read) Whether the keyboard has bidi layouts. Default value: false has-cursorThe cursor property of type :boolean (Read / Write / Contstruct Only) Whether the device is represented by a cursor on the screen. Default value: false layout-namesThe layout-names property of type g:strv-t (Read)
The names of the keyboard layouts of a device. This is only relevant for keyboard devices. Since 4.18 modifier-stateThe modifier-state property of type gdk:modifier-type (Read) The modifier state of the keyboard. n-axesThe n-axes property of type :uint (Read) The number of axes in the device. Default value: 0 nameThe name property of type :string (Read / Write / Construct Only) The device name. Default value: nil num-lock-stateThe num-lock-state property of type :boolean (Read) Whether the keyboard num lock is on. Default value: false num-touchesThe num-touches property of type :uint (Read / Write / Construct Only)
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. Default value: 0 product-idThe product-id property of type :string (Read / Write / Construct Only) The product ID of the device. Default value: nil scroll-lock-stateThe scroll-lock-state property of type :boolean (Read) Whether the keyboard scroll lock is on. Default value: false seatThe seat property of type gdk:seat (Read / Write) The seat of the device. sourceThe source property of type gdk:input-source (Read / Write / Construct Only) The source type of the device. Default value: :mouse toolThe tool property of type gdk:device-tool (Read) The tool that is currently used with the device. vendor-idThe vendor-id property of type :string (Read / Write / Construct Only) The vendor ID of this device. Default value: nil Details The gdk:device object represents a single input device, such as a
keyboard, a mouse, a touchpad, etc. See the gdk:seat documentation for more information about the various
kinds of devices, and their relationships. Signal Details
The "changed" signal
lambda (device) :run-last The signal is emitted either when the gdk:device object has
changed the number of either axes or keys. For example In X 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. |
| Slot Access FunctionsInherited Slot Access FunctionsSee also |