Package: gdk

Accessor gdk:device-active-layout-index

Lambda List

gdk:device-active-layout-index (object)

Syntax

(gdk:device-active-layout-index object) => index

Arguments

object -- a gdk:device object
index -- an integer for the layout index of the active layout, or -1.

Details

Accessor of the active-layout-index slot of the gdk:device class. The gdk:device-active-layout-index function retrieves the index of the active layout of the keyboard. If there is no valid active layout for the device, this function will return -1. This is only relevant for keyboard devices.

Since 4.18
 

See also

2025-3-31