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

NAME

6       Gtk2::UIManager - wrapper for GtkUIManager
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::UIManager
11

INTERFACES

13         Gtk2::Buildable
14

METHODS

16   uimanager = Gtk2::UIManager->new
17   integer = $self->new_merge_id
18   accelgroup = $self->get_accel_group
19   action = $self->get_action ($path)
20       •   $path (string)
21
22   list = $self->get_action_groups
23   boolean = $self->get_add_tearoffs
24   $self->set_add_tearoffs ($add_tearoffs)
25       •   $add_tearoffs (boolean)
26
27   $self->add_ui ($merge_id, $path, $name, $action, $type, $top)
28       •   $merge_id (integer)
29
30       •   $path (string)
31
32       •   $name (string)
33
34       •   $action (string or undef)
35
36       •   $type (Gtk2::UIManagerItemType)
37
38       •   $top (boolean)
39
40   integer = $self->add_ui_from_file ($filename)
41       •   $filename (string)
42
43       May croak with a Glib::Error in $@ on failure.
44
45   integer = $self->add_ui_from_string ($buffer)
46       •   $buffer (string)
47
48       May croak with a Glib::Error in $@ on failure.
49
50   $self->ensure_update
51   $self->insert_action_group ($action_group, $pos)
52       •   $action_group (Gtk2::ActionGroup)
53
54       •   $pos (integer)
55
56   $self->remove_action_group ($action_group)
57       •   $action_group (Gtk2::ActionGroup)
58
59   $self->remove_ui ($merge_id)
60       •   $merge_id (integer)
61
62   list = $self->get_toplevels ($types)
63       •   $types (Gtk2::UIManagerItemType)
64
65   string = $self->get_ui
66   widget = $self->get_widget ($path)
67       •   $path (string)
68

PROPERTIES

70       'add-tearoffs' (boolean : default false : readable / writable / private
71       / static-nick / static-blurb)
72           Whether tearoff menu items should be added to menus
73
74       'ui' (string : default "<ui>\n</ui>\n" : readable / private / static-
75       nick / static-blurb)
76           An XML string describing the merged UI
77

SIGNALS

79       actions-changed (Gtk2::UIManager)
80       add-widget (Gtk2::UIManager, Gtk2::Widget)
81       connect-proxy (Gtk2::UIManager, Gtk2::Action, Gtk2::Widget)
82       disconnect-proxy (Gtk2::UIManager, Gtk2::Action, Gtk2::Widget)
83       post-activate (Gtk2::UIManager, Gtk2::Action)
84       pre-activate (Gtk2::UIManager, Gtk2::Action)
85

ENUMS AND FLAGS

87   flags Gtk2::UIManagerItemType
88       •   'auto' / 'GTK_UI_MANAGER_AUTO'
89
90       •   'menubar' / 'GTK_UI_MANAGER_MENUBAR'
91
92       •   'menu' / 'GTK_UI_MANAGER_MENU'
93
94       •   'toolbar' / 'GTK_UI_MANAGER_TOOLBAR'
95
96       •   'placeholder' / 'GTK_UI_MANAGER_PLACEHOLDER'
97
98       •   'popup' / 'GTK_UI_MANAGER_POPUP'
99
100       •   'menuitem' / 'GTK_UI_MANAGER_MENUITEM'
101
102       •   'toolitem' / 'GTK_UI_MANAGER_TOOLITEM'
103
104       •   'separator' / 'GTK_UI_MANAGER_SEPARATOR'
105
106       •   'accelerator' / 'GTK_UI_MANAGER_ACCELERATOR'
107
108       •   'popup-with-accels' / 'GTK_UI_MANAGER_POPUP_WITH_ACCELS'
109

SEE ALSO

111       Gtk2, Glib::Object
112
114       Copyright (C) 2003-2011 by the gtk2-perl team.
115
116       This software is licensed under the LGPL.  See Gtk2 for a full notice.
117
118
119
120perl v5.38.0                      2023-07-20                Gtk2::UIManager(3)
Impressum