1Gtk2::Gdk::Keymap(3) User Contributed Perl Documentation Gtk2::Gdk::Keymap(3)
2
3
4
6 Gtk2::Gdk::Keymap
7
9 Glib::Object
10 +----Gtk2::Gdk::Keymap
11
13 keymap = Gtk2::Gdk::Keymap->get_default
14
15 direction = $keymap->get_direction
16
17 ({ key1, keyval1 }, { ... }) = $keymap->get_entries_for_keycode (hard‐
18 ware_keycode)
19
20 * $hardware_keycode (integer)
21
22 Returns a list of hash references, each with two keys: "key" point‐
23 ing to a GdkKeymapKey and "keyval" pointing to the corresponding
24 key value.
25
26 keys = $keymap->get_entries_for_keyval (keyval)
27
28 * $keyval (integer)
29
30 Returns a list of GdkKeymapKeys.
31
32 Obtains a list of keycode/group/level combinations that will gener‐
33 ate $keyval. Groups and levels are two kinds of keyboard mode; in
34 general, the level determines whether the top or bottom symbol on a
35 key is used, and the group determines whether the left or right
36 symbol is used. On US keyboards, the shift key changes the key‐
37 board level, and there are no groups. A group switch key might
38 convert a keyboard between Hebrew to English modes, for example.
39 Gtk2::Gdk::Event::Key contains a group field that indicates the
40 active keyboard group. The level is computed from the modifier
41 mask.
42
43 keymap = Gtk2::Gdk::Keymap->get_for_display ($display)
44
45 * $display (Gtk2::Gdk::Display)
46
47 integer = $keymap->lookup_key ($key)
48
49 * $key (scalar)
50
51 (keyval, effective_group, level, consumed_modifiers) = $keymap->trans‐
52 late_keyboard_state (hardware_keycode, state, group)
53
54 * $hardware_keycode (integer)
55 * $state (Gtk2::Gdk::ModifierType)
56 * $group (integer)
57
59 direction-changed (Gtk2::Gdk::Keymap)
60 keys-changed (Gtk2::Gdk::Keymap)
61
63 flags Gtk2::Gdk::ModifierType
64
65 * 'shift-mask' / 'GDK_SHIFT_MASK'
66 * 'lock-mask' / 'GDK_LOCK_MASK'
67 * 'control-mask' / 'GDK_CONTROL_MASK'
68 * 'mod1-mask' / 'GDK_MOD1_MASK'
69 * 'mod2-mask' / 'GDK_MOD2_MASK'
70 * 'mod3-mask' / 'GDK_MOD3_MASK'
71 * 'mod4-mask' / 'GDK_MOD4_MASK'
72 * 'mod5-mask' / 'GDK_MOD5_MASK'
73 * 'button1-mask' / 'GDK_BUTTON1_MASK'
74 * 'button2-mask' / 'GDK_BUTTON2_MASK'
75 * 'button3-mask' / 'GDK_BUTTON3_MASK'
76 * 'button4-mask' / 'GDK_BUTTON4_MASK'
77 * 'button5-mask' / 'GDK_BUTTON5_MASK'
78 * 'super-mask' / 'GDK_SUPER_MASK'
79 * 'hyper-mask' / 'GDK_HYPER_MASK'
80 * 'meta-mask' / 'GDK_META_MASK'
81 * 'release-mask' / 'GDK_RELEASE_MASK'
82 * 'modifier-mask' / 'GDK_MODIFIER_MASK'
83
84 enum Gtk2::Pango::Direction
85
86 * 'ltr' / 'PANGO_DIRECTION_LTR'
87 * 'rtl' / 'PANGO_DIRECTION_RTL'
88 * 'ttb-ltr' / 'PANGO_DIRECTION_TTB_LTR'
89 * 'ttb-rtl' / 'PANGO_DIRECTION_TTB_RTL'
90 * 'weak-ltr' / 'PANGO_DIRECTION_WEAK_LTR'
91 * 'weak-rtl' / 'PANGO_DIRECTION_WEAK_RTL'
92 * 'neutral' / 'PANGO_DIRECTION_NEUTRAL'
93
95 Gtk2, Glib::Object
96
98 Copyright (C) 2003-2007 by the gtk2-perl team.
99
100 This software is licensed under the LGPL. See Gtk2 for a full notice.
101
102
103
104perl v5.8.8 2007-03-18 Gtk2::Gdk::Keymap(3)