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

NAME

6       Gtk2::AccelGroup
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
22       boolean = Gtk2::AccelGroups->activate ($object, $accel_key,
23       $accel_mods)
24
25           * $object (Glib::Object)
26           * $accel_key (integer)
27           * $accel_mods (Gtk2::Gdk::ModifierType)
28
29       $accel_group->connect ($accel_key, $accel_mods, $accel_flags, $func)
30
31           * $accel_key (integer)
32           * $accel_mods (Gtk2::Gdk::ModifierType)
33           * $accel_flags (Gtk2::AccelFlags)
34           * $func (scalar)
35
36       $accel_group->connect_by_path ($accel_path, $func)
37
38           * $accel_path (string)
39           * $func (scalar)
40
41       boolean = $accel_group->disconnect ($func)
42
43           * $func (scalar)
44
45       boolean = $accel_group->disconnect_key ($accel_key, $accel_mods)
46
47           * $accel_key (integer)
48           * $accel_mods (Gtk2::Gdk::ModifierType)
49
50       list = Gtk2::AccelGroups->from_object ($object)
51
52           * $object (Glib::Object)
53
54           Returns a list of Gtk2::AccelGroup's.
55
56       $accel_group->lock
57
58       $accel_group->unlock
59

SIGNALS

61       boolean = accel-activate (Gtk2::AccelGroup, Glib::Object, Glib::UInt,
62       Gtk2::Gdk::ModifierType)
63       accel-changed (Gtk2::AccelGroup, Glib::UInt, Gtk2::Gdk::ModifierType,
64       GClosure)
65

ENUMS AND FLAGS

67       flags Gtk2::AccelFlags
68
69       * 'visible' / 'GTK_ACCEL_VISIBLE'
70       * 'locked' / 'GTK_ACCEL_LOCKED'
71       * 'mask' / 'GTK_ACCEL_MASK'
72
73       flags Gtk2::Gdk::ModifierType
74
75       * 'shift-mask' / 'GDK_SHIFT_MASK'
76       * 'lock-mask' / 'GDK_LOCK_MASK'
77       * 'control-mask' / 'GDK_CONTROL_MASK'
78       * 'mod1-mask' / 'GDK_MOD1_MASK'
79       * 'mod2-mask' / 'GDK_MOD2_MASK'
80       * 'mod3-mask' / 'GDK_MOD3_MASK'
81       * 'mod4-mask' / 'GDK_MOD4_MASK'
82       * 'mod5-mask' / 'GDK_MOD5_MASK'
83       * 'button1-mask' / 'GDK_BUTTON1_MASK'
84       * 'button2-mask' / 'GDK_BUTTON2_MASK'
85       * 'button3-mask' / 'GDK_BUTTON3_MASK'
86       * 'button4-mask' / 'GDK_BUTTON4_MASK'
87       * 'button5-mask' / 'GDK_BUTTON5_MASK'
88       * 'super-mask' / 'GDK_SUPER_MASK'
89       * 'hyper-mask' / 'GDK_HYPER_MASK'
90       * 'meta-mask' / 'GDK_META_MASK'
91       * 'release-mask' / 'GDK_RELEASE_MASK'
92       * 'modifier-mask' / 'GDK_MODIFIER_MASK'
93

SEE ALSO

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::AccelGroup(3)
Impressum