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

NAME

6       Gtk2::AccelGroup - wrapper for GtkAccelGroup
7

SYNOPSIS

9         my $win = Gtk2::Window->new;
10         my $accel = Gtk2::AccelGroup->new;
11         $accel->connect (42, ['control-mask'], ['visible'],
12                          sub { # do something });
13         $win->add_accel_group ($accel);
14

HIERARCHY

16         Glib::Object
17         +----Gtk2::AccelGroup
18

METHODS

20   accelgroup = Gtk2::AccelGroup->new
21   boolean = Gtk2::AccelGroups->activate ($object, $accel_key, $accel_mods)
22       •   $object (Glib::Object)
23
24       •   $accel_key (integer)
25
26       •   $accel_mods (Gtk2::Gdk::ModifierType)
27
28   $accel_group->connect ($accel_key, $accel_mods, $accel_flags, $func)
29       •   $accel_key (integer)
30
31       •   $accel_mods (Gtk2::Gdk::ModifierType)
32
33       •   $accel_flags (Gtk2::AccelFlags)
34
35       •   $func (scalar)
36
37   $accel_group->connect_by_path ($accel_path, $func)
38       •   $accel_path (string)
39
40       •   $func (scalar)
41
42   boolean = $accel_group->disconnect ($func)
43       •   $func (scalar)
44
45   boolean = $accel_group->disconnect_key ($accel_key, $accel_mods)
46       •   $accel_key (integer)
47
48       •   $accel_mods (Gtk2::Gdk::ModifierType)
49
50   list = Gtk2::AccelGroups->from_object ($object)
51       •   $object (Glib::Object)
52
53       Returns a list of Gtk2::AccelGroup's.
54
55   boolean = $accel_group->get_is_locked
56       Since: gtk+ 2.14
57
58   $accel_group->lock
59   modifiertype = $accel_group->get_modifier_mask
60       Since: gtk+ 2.14
61
62   $accel_group->unlock

PROPERTIES

64       'is-locked' (boolean : default false : readable)
65           Is the accel group locked
66
67       'modifier-mask' (Gtk2::Gdk::ModifierType : default
68       shift-mask,control-mask,mod1-mask,super-mask,hyper-mask,meta-mask :
69       readable)
70           Modifier Mask
71

SIGNALS

73       boolean = accel-activate (Gtk2::AccelGroup, Glib::Object, Glib::UInt,
74       Gtk2::Gdk::ModifierType)
75       accel-changed (Gtk2::AccelGroup, Glib::UInt, Gtk2::Gdk::ModifierType,
76       GClosure)
77

ENUMS AND FLAGS

79   flags Gtk2::AccelFlags
80       •   'visible' / 'GTK_ACCEL_VISIBLE'
81
82       •   'locked' / 'GTK_ACCEL_LOCKED'
83
84       •   'mask' / 'GTK_ACCEL_MASK'
85
86   flags Gtk2::Gdk::ModifierType
87       •   'shift-mask' / 'GDK_SHIFT_MASK'
88
89       •   'lock-mask' / 'GDK_LOCK_MASK'
90
91       •   'control-mask' / 'GDK_CONTROL_MASK'
92
93       •   'mod1-mask' / 'GDK_MOD1_MASK'
94
95       •   'mod2-mask' / 'GDK_MOD2_MASK'
96
97       •   'mod3-mask' / 'GDK_MOD3_MASK'
98
99       •   'mod4-mask' / 'GDK_MOD4_MASK'
100
101       •   'mod5-mask' / 'GDK_MOD5_MASK'
102
103       •   'button1-mask' / 'GDK_BUTTON1_MASK'
104
105       •   'button2-mask' / 'GDK_BUTTON2_MASK'
106
107       •   'button3-mask' / 'GDK_BUTTON3_MASK'
108
109       •   'button4-mask' / 'GDK_BUTTON4_MASK'
110
111       •   'button5-mask' / 'GDK_BUTTON5_MASK'
112
113       •   'super-mask' / 'GDK_SUPER_MASK'
114
115       •   'hyper-mask' / 'GDK_HYPER_MASK'
116
117       •   'meta-mask' / 'GDK_META_MASK'
118
119       •   'release-mask' / 'GDK_RELEASE_MASK'
120
121       •   'modifier-mask' / 'GDK_MODIFIER_MASK'
122

SEE ALSO

124       Gtk2, Glib::Object
125
127       Copyright (C) 2003-2011 by the gtk2-perl team.
128
129       This software is licensed under the LGPL.  See Gtk2 for a full notice.
130
131
132
133perl v5.38.0                      2023-07-20               Gtk2::AccelGroup(3)
Impressum