Next:
Gtk2::Gdk::Keysyms
Previous:
Gtk2::Gdk::Input
 [Gtk2-Perl - Table of Contents][Gtk2-Perl - Index]

Gtk2::Gdk::Keymap



NAME

Gtk2::Gdk::Keymap

HIERARCHY

  Glib::Object
  +----Gtk2::Gdk::Keymap

METHODS

keymap = Gtk2::Gdk::Keymap->get_default

direction = $keymap->get_direction

({ key1, keyval1 }, { ... }) = $keymap->get_entries_for_keycode (hardware_keycode)

Returns a list of hash references, each with two keys: "key" pointing to a GdkKeymapKey and "keyval" pointing to the corresponding key value.

keys = $keymap->get_entries_for_keyval (keyval)

Returns a list of GdkKeymapKeys.

Obtains a list of keycode/group/level combinations that will generate $keyval. Groups and levels are two kinds of keyboard mode; in general, the level determines whether the top or bottom symbol on a key is used, and the group determines whether the left or right symbol is used. On US keyboards, the shift key changes the keyboard level, and there are no groups. A group switch key might convert a keyboard between Hebrew to English modes, for example. Gtk2::Gdk::Event::Key contains a group field that indicates the active keyboard group. The level is computed from the modifier mask.

keymap = Gtk2::Gdk::Keymap->get_for_display ($display)

Since: gtk+ 2.2

boolean = $keymap->have_bidi_layouts

Since: gtk+ 2.12

integer = $keymap->lookup_key ($key)

(keyval, effective_group, level, consumed_modifiers) = $keymap->translate_keyboard_state (hardware_keycode, state, group)

SIGNALS

direction-changed (Gtk2::Gdk::Keymap)
keys-changed (Gtk2::Gdk::Keymap)

ENUMS AND FLAGS

flags Gtk2::Gdk::ModifierType

enum Pango::Direction

SEE ALSO

Gtk2, Glib::Object

COPYRIGHT

Copyright (C) 2003-2008 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


[Top] Generated by Marek::Pod::HTML 0.49 on Wed Dec 16 23:01:51 2009