1Gtk2::Gdk::Keymap(3)  User Contributed Perl Documentation Gtk2::Gdk::Keymap(3)
2
3
4

NAME

6       Gtk2::Gdk::Keymap
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::Gdk::Keymap
11

METHODS

13   keymap = Gtk2::Gdk::Keymap->get_default
14   direction = $keymap->get_direction
15   ({ key1, keyval1 }, { ... }) = $keymap->get_entries_for_keycode
16       (hardware_keycode)
17           ·   $hardware_keycode (integer)
18
19           Returns a list of hash references, each with two keys: "key"
20           pointing to a GdkKeymapKey and "keyval" pointing to the
21           corresponding key value.
22
23   keys = $keymap->get_entries_for_keyval (keyval)
24           ·   $keyval (integer)
25
26           Returns a list of GdkKeymapKeys.
27
28           Obtains a list of keycode/group/level combinations that will
29           generate $keyval.  Groups and levels are two kinds of keyboard
30           mode; in general, the level determines whether the top or bottom
31           symbol on a key is used, and the group determines whether the left
32           or right symbol is used.  On US keyboards, the shift key changes
33           the keyboard level, and there are no groups.  A group switch key
34           might convert a keyboard between Hebrew to English modes, for
35           example.  Gtk2::Gdk::Event::Key contains a group field that
36           indicates the active keyboard group.  The level is computed from
37           the modifier mask.
38
39   keymap = Gtk2::Gdk::Keymap->get_for_display ($display)
40           ·   $display (Gtk2::Gdk::Display)
41
42           Since: gtk+ 2.2
43
44   boolean = $keymap->have_bidi_layouts
45           Since: gtk+ 2.12
46
47   integer = $keymap->lookup_key ($key)
48           ·   $key (scalar)
49
50   (keyval, effective_group, level, consumed_modifiers) =
51       $keymap->translate_keyboard_state (hardware_keycode, state, group)
52           ·   $hardware_keycode (integer)
53
54           ·   $state (Gtk2::Gdk::ModifierType)
55
56           ·   $group (integer)
57

SIGNALS

59       state-changed (Gtk2::Gdk::Keymap)
60       direction-changed (Gtk2::Gdk::Keymap)
61       keys-changed (Gtk2::Gdk::Keymap)
62

ENUMS AND FLAGS

64   flags Gtk2::Gdk::ModifierType
65       ·   'shift-mask' / 'GDK_SHIFT_MASK'
66
67       ·   'lock-mask' / 'GDK_LOCK_MASK'
68
69       ·   'control-mask' / 'GDK_CONTROL_MASK'
70
71       ·   'mod1-mask' / 'GDK_MOD1_MASK'
72
73       ·   'mod2-mask' / 'GDK_MOD2_MASK'
74
75       ·   'mod3-mask' / 'GDK_MOD3_MASK'
76
77       ·   'mod4-mask' / 'GDK_MOD4_MASK'
78
79       ·   'mod5-mask' / 'GDK_MOD5_MASK'
80
81       ·   'button1-mask' / 'GDK_BUTTON1_MASK'
82
83       ·   'button2-mask' / 'GDK_BUTTON2_MASK'
84
85       ·   'button3-mask' / 'GDK_BUTTON3_MASK'
86
87       ·   'button4-mask' / 'GDK_BUTTON4_MASK'
88
89       ·   'button5-mask' / 'GDK_BUTTON5_MASK'
90
91       ·   'super-mask' / 'GDK_SUPER_MASK'
92
93       ·   'hyper-mask' / 'GDK_HYPER_MASK'
94
95       ·   'meta-mask' / 'GDK_META_MASK'
96
97       ·   'release-mask' / 'GDK_RELEASE_MASK'
98
99       ·   'modifier-mask' / 'GDK_MODIFIER_MASK'
100
101   enum Gtk2::Pango::Direction
102       ·   'ltr' / 'PANGO_DIRECTION_LTR'
103
104       ·   'rtl' / 'PANGO_DIRECTION_RTL'
105
106       ·   'ttb-ltr' / 'PANGO_DIRECTION_TTB_LTR'
107
108       ·   'ttb-rtl' / 'PANGO_DIRECTION_TTB_RTL'
109
110       ·   'weak-ltr' / 'PANGO_DIRECTION_WEAK_LTR'
111
112       ·   'weak-rtl' / 'PANGO_DIRECTION_WEAK_RTL'
113
114       ·   'neutral' / 'PANGO_DIRECTION_NEUTRAL'
115

SEE ALSO

117       Gtk2, Glib::Object
118
120       Copyright (C) 2003-2008 by the gtk2-perl team.
121
122       This software is licensed under the LGPL.  See Gtk2 for a full notice.
123
124
125
126perl v5.12.0                      2010-05-02              Gtk2::Gdk::Keymap(3)
Impressum