get_active_layout_index


Description:

[ Version ( since = "4.18" ) ]
public int get_active_layout_index ()

Retrieves the index of the active layout of the keyboard.

If there is no valid active layout for the `GdkDevice`, this function will return -1;

This is only relevant for keyboard devices.

Parameters:

this

a `GdkDevice`

Returns:

The layout index of the active layout or -1.