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

NAME

6       Gtk2::MenuBar - wrapper for GtkMenuBar
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::MenuShell
15                                  +----Gtk2::MenuBar
16

INTERFACES

18         Glib::Object::_Unregistered::AtkImplementorIface
19         Gtk2::Buildable
20

METHODS

22   widget = Gtk2::MenuBar->new
23   packdirection = $menubar->get_child_pack_direction
24       Since: gtk+ 2.8
25
26   $menubar->set_child_pack_direction ($child_pack_dir)
27       •   $child_pack_dir (Gtk2::PackDirection)
28
29       Since: gtk+ 2.8
30
31   packdirection = $menubar->get_pack_direction
32       Since: gtk+ 2.8
33
34   $menubar->set_pack_direction ($pack_dir)
35       •   $pack_dir (Gtk2::PackDirection)
36
37       Since: gtk+ 2.8
38

PROPERTIES

40       'child-pack-direction' (Gtk2::PackDirection : default "ltr" : readable
41       / writable / private / static-nick / static-blurb)
42           The child pack direction of the menubar
43
44       'pack-direction' (Gtk2::PackDirection : default "ltr" : readable /
45       writable / private / static-nick / static-blurb)
46           The pack direction of the menubar
47

STYLE PROPERTIES

49       'internal-padding' (integer : default 1 : readable / private / static-
50       nick / static-blurb)
51           Amount of border space between the menubar shadow and the menu
52           items
53
54       'shadow-type' (Gtk2::ShadowType : default "out" : readable / private /
55       static-nick / static-blurb)
56           Style of bevel around the menubar
57

ENUMS AND FLAGS

59   enum Gtk2::PackDirection
60       •   'ltr' / 'GTK_PACK_DIRECTION_LTR'
61
62       •   'rtl' / 'GTK_PACK_DIRECTION_RTL'
63
64       •   'ttb' / 'GTK_PACK_DIRECTION_TTB'
65
66       •   'btt' / 'GTK_PACK_DIRECTION_BTT'
67

SEE ALSO

69       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget,
70       Gtk2::Container, Gtk2::MenuShell
71
73       Copyright (C) 2003-2011 by the gtk2-perl team.
74
75       This software is licensed under the LGPL.  See Gtk2 for a full notice.
76
77
78
79perl v5.34.0                      2021-07-22                  Gtk2::MenuBar(3)
Impressum