Class
WPEPlatformKeymap
Description [src]
abstract class WPEPlatform.Keymap : GObject.Object
{
WPEKeymapPrivate* priv
}
A keyboard mapping.
WPEKeymap is an abstract class that platform implementations derive to
translate between hardware keycodes and key symbols, and to track the state
of modifier keys. Get the keymap of a display with wpe_display_get_keymap().
Use wpe_keymap_get_entries_for_keyval() and
wpe_keymap_translate_keyboard_state() to convert between keycodes and
key symbols.
Instance methods
wpe_keymap_get_entries_for_keyval
Get the keymap list of keycode/group/level combinations that will generate keyval.
wpe_keymap_translate_keyboard_state
Translate keycode, modifiers and group into a keyval, effective group and level.
Modifiers that affected the translation are returned in consumed_modifiers.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct WPEPlatformKeymapClass {
GObjectClass parent_class;
gboolean (* get_entries_for_keyval) (
WPEKeymap* keymap,
guint keyval,
WPEKeymapEntry** entries,
guint* n_entries
);
gboolean (* translate_keyboard_state) (
WPEKeymap* keymap,
guint keycode,
WPEModifiers modifiers,
int group,
guint* keyval,
int* effective_group,
int* level,
WPEModifiers* consumed_modifiers
);
WPEModifiers (* get_modifiers) (
WPEKeymap* keymap
);
gpointer padding;
}
No description available.
Class members
parent_class: GObjectClassNo description available.
get_entries_for_keyval: gboolean (* get_entries_for_keyval) ( WPEKeymap* keymap, guint keyval, WPEKeymapEntry** entries, guint* n_entries )No description available.
translate_keyboard_state: gboolean (* translate_keyboard_state) ( WPEKeymap* keymap, guint keycode, WPEModifiers modifiers, int group, guint* keyval, int* effective_group, int* level, WPEModifiers* consumed_modifiers )No description available.
get_modifiers: WPEModifiers (* get_modifiers) ( WPEKeymap* keymap )No description available.
padding: gpointerNo description available.
Virtual methods
WPEPlatform.KeymapClass.get_entries_for_keyval
Get the keymap list of keycode/group/level combinations that will generate keyval.
WPEPlatform.KeymapClass.translate_keyboard_state
Translate keycode, modifiers and group into a keyval, effective group and level.
Modifiers that affected the translation are returned in consumed_modifiers.