get_layout_info


Description:

[ Version ( since = "3.6" ) ]
public bool get_layout_info (string id, out unowned string? display_name, out unowned string? short_name, out unowned string? xkb_layout, out unowned string? xkb_variant)

Retrieves information about a layout.

Both display_name and short_name are suitable to show in UIs and might be localized if translations are available.

Some layouts don't provide a short name (2 or 3 letters) or don't specify a XKB variant, in those cases short_name or xkb_variant are empty strings, i.e. "".

If the given layout doesn't exist the return value is false and all the (out) parameters are set to null.

Parameters:

this

a XkbInfo

id

layout's identifier about which to retrieve the info

display_name

location to store the layout's display name, or null

short_name

location to store the layout's short name, or null

xkb_layout

location to store the layout's XKB name, or null

xkb_variant

location to store the layout's XKB variant, or null

Returns:

true if the layout exists or false otherwise.