Keyboard Layouts

Keyboard Layouts — Control the keyboard layout

Synopsis

#include <lightdm.h>

GList *             lightdm_get_layouts                 (void);
LightDMLayout *     lightdm_get_layout                  (void);
void                lightdm_set_layout                  (LightDMLayout *layout);
const gchar *       lightdm_layout_get_name             (LightDMLayout *layout);
const gchar *       lightdm_layout_get_short_description
                                                        (LightDMLayout *layout);
const gchar *       lightdm_layout_get_description      (LightDMLayout *layout);

Description

LightDMLayout is an object that describes a keyboard that is available on the system.

Details

lightdm_get_layouts ()

GList *             lightdm_get_layouts                 (void);

Get a list of keyboard layouts to present to the user.

Returns :

A list of LightDMLayout that should be presented to the user. [element-type LightDMLayout][transfer none]

lightdm_get_layout ()

LightDMLayout *     lightdm_get_layout                  (void);

Get the current keyboard layout.

Returns :

The currently active layout for this user. [transfer none]

lightdm_set_layout ()

void                lightdm_set_layout                  (LightDMLayout *layout);

Set the layout for this session.

layout :

The layout to use

lightdm_layout_get_name ()

const gchar *       lightdm_layout_get_name             (LightDMLayout *layout);

Get the name of a layout.

layout :

A LightDMLayout

Returns :

The name of the layout

lightdm_layout_get_short_description ()

const gchar *       lightdm_layout_get_short_description
                                                        (LightDMLayout *layout);

Get the short description of a layout.

layout :

A LightDMLayout

Returns :

A short description of the layout

lightdm_layout_get_description ()

const gchar *       lightdm_layout_get_description      (LightDMLayout *layout);

Get the long description of a layout.

layout :

A LightDMLayout

Returns :

A long description of the layout