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

NAME

6       Gtk2::Gdk::Keymap - wrapper for GdkKeymap
7

HIERARCHY

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

METHODS

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

SIGNALS

70       direction-changed (Gtk2::Gdk::Keymap)
71       keys-changed (Gtk2::Gdk::Keymap)
72       state-changed (Gtk2::Gdk::Keymap)
73

ENUMS AND FLAGS

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

SEE ALSO

128       Gtk2, Glib::Object
129
131       Copyright (C) 2003-2011 by the gtk2-perl team.
132
133       This software is licensed under the LGPL.  See Gtk2 for a full notice.
134
135
136
137perl v5.38.0                      2023-07-20              Gtk2::Gdk::Keymap(3)
Impressum