Package: gdk

Class gdk:device

Superclasses

gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

Direct Slots

caps-lock-state
The caps-lock-state property of type :boolean (Read)
Whether the keyboard caps lock is on.
Default value: false
direction
The direction property of type pango:direction (Read)
The direction of the current layout of the keyboard.
Default value: :neutral
display
The display property of type gdk:display (Read / Write / Construct Only)
The display the device pertains to.
has-bidi-layouts
The has-bidi-layouts property of type :boolean (Read)
Whether the keyboard has bidi layouts.
Default value: false
has-cursor
The cursor property of type :boolean (Read / Write / Contstruct Only)
Whether the device is represented by a cursor on the screen.
Default value: false
modifier-state
The modifier-state property of type gdk:modifier-type (Read)
The modifier state of the keyboard.
n-axes
The n-axes property of type :uint (Read)
The number of axes in the device.
Default value: 0
name
The name property of type :string (Read / Write / Construct Only)
The device name.
Default value: nil
num-lock-state
The num-lock-state property of type :boolean (Read)
Whether the keyboard num lock is on.
Default value: false
num-touches
The 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-id
The product-id property of type :string (Read / Write / Construct Only)
The product ID of the device.
Default value: nil
scroll-lock-state
The scroll-lock-state property of type :boolean (Read)
Whether the keyboard scroll lock is on.
Default value: false
seat
The seat property of type gdk:seat (Read / Write)
The seat of the device.
source
The source property of type gdk:input-source (Read / Write / Construct Only)
The source type of the device.
Default value: :mouse
tool
The tool property of type gdk:device-tool (Read)
The tool that is currently used with the device.
vendor-id
The 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      
device
The gdk:device object that changed.
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.
The "tool-changed" signal
lambda (device tool)    :run-last      
device
The gdk:device object that changed.
tool
The new gdk:device-tool current device tool.
The signal is emitted on pen/eraser devices whenever tools enter or leave proximity.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2024-7-12