1Gtk2::AccelMap(3) User Contributed Perl Documentation Gtk2::AccelMap(3)
2
3
4
6 Gtk2::AccelMap - wrapper for GtkAccelMap
7
9 Glib::Object
10 +----Gtk2::AccelMap
11
13 Gtk2::AccelMap->add_entry ($accel_path, $accel_key, $accel_mods)
14 · $accel_path (string)
15
16 · $accel_key (integer)
17
18 · $accel_mods (Gtk2::Gdk::ModifierType)
19
20 Gtk2::AccelMap->add_filter ($filter_pattern)
21 · $filter_pattern (string)
22
23 boolean = Gtk2::AccelMap->change_entry ($accel_path, $accel_key,
24 $accel_mods, $replace)
25 · $accel_path (string)
26
27 · $accel_key (integer)
28
29 · $accel_mods (Gtk2::Gdk::ModifierType)
30
31 · $replace (boolean)
32
33 Gtk2::AccelMap->foreach ($data, $foreach_func)
34 · $data (scalar)
35
36 · $foreach_func (scalar)
37
38 Gtk2::AccelMap->foreach_unfiltered ($data, $foreach_func)
39 · $data (scalar)
40
41 · $foreach_func (scalar)
42
43 accelmap = Gtk2::AccelMap->get
44 Since: gtk+ 2.4
45
46 Gtk2::AccelMap->load ($file_name)
47 · $file_name (string)
48
49 Gtk2::AccelMap->load_fd ($fd)
50 · $fd (integer)
51
52 Gtk2::AccelMap->lock_path ($accel_path)
53 · $accel_path (string)
54
55 Since: gtk+ 2.4
56
57 (accel_key, accel_mods, accel_flags) = Gtk2::AccelMap->lookup_entry
58 ($accel_path)
59 · $accel_path (string)
60
61 Returns empty if no accelerator is found for the given path, accel_key
62 (integer), accel_mods (Gtk2::Gdk::ModifierType), and accel_flags
63 (integer) otherwise.
64
65 Gtk2::AccelMap->save ($file_name)
66 · $file_name (string)
67
68 Gtk2::AccelMap->save_fd ($fd)
69 · $fd (integer)
70
71 Gtk2::AccelMap->unlock_path ($accel_path)
72 · $accel_path (string)
73
74 Since: gtk+ 2.4
75
77 The foreach callbacks ignore any returned values and the following
78 parameters are passed to the callback any modifications are ignored.
79
80 accel_path (string)
81 accel_key (integer)
82 GdkModifierType accel_mods (Gtk2::Gdk::ModifierType)
83 changed (boolean)
84 user_date (scalar)
85
87 changed (Gtk2::AccelMap, string, Glib::UInt, Gtk2::Gdk::ModifierType)
88
90 flags Gtk2::Gdk::ModifierType
91 · 'shift-mask' / 'GDK_SHIFT_MASK'
92
93 · 'lock-mask' / 'GDK_LOCK_MASK'
94
95 · 'control-mask' / 'GDK_CONTROL_MASK'
96
97 · 'mod1-mask' / 'GDK_MOD1_MASK'
98
99 · 'mod2-mask' / 'GDK_MOD2_MASK'
100
101 · 'mod3-mask' / 'GDK_MOD3_MASK'
102
103 · 'mod4-mask' / 'GDK_MOD4_MASK'
104
105 · 'mod5-mask' / 'GDK_MOD5_MASK'
106
107 · 'button1-mask' / 'GDK_BUTTON1_MASK'
108
109 · 'button2-mask' / 'GDK_BUTTON2_MASK'
110
111 · 'button3-mask' / 'GDK_BUTTON3_MASK'
112
113 · 'button4-mask' / 'GDK_BUTTON4_MASK'
114
115 · 'button5-mask' / 'GDK_BUTTON5_MASK'
116
117 · 'super-mask' / 'GDK_SUPER_MASK'
118
119 · 'hyper-mask' / 'GDK_HYPER_MASK'
120
121 · 'meta-mask' / 'GDK_META_MASK'
122
123 · 'release-mask' / 'GDK_RELEASE_MASK'
124
125 · 'modifier-mask' / 'GDK_MODIFIER_MASK'
126
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.28.0 2018-07-18 Gtk2::AccelMap(3)