---
name: "Gtk2::MenuBar"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::MenuBar"
---

# Gtk2::MenuBar(3pm)

wrapper for GtkMenuBar

## NAME

Gtk2::MenuBar - wrapper for GtkMenuBar

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::MenuShell
                           +----Gtk2::MenuBar
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
```

## METHODS

### widget = Gtk2::MenuBar-\>new

### packdirection = $menubar-\>get\_child\_pack\_direction

Since: gtk+ 2.8

### $menubar-\>set\_child\_pack\_direction ($child\_pack\_dir)

- •

  `$child_pack_dir` (Gtk2::PackDirection)

Since: gtk+ 2.8

### packdirection = $menubar-\>get\_pack\_direction

Since: gtk+ 2.8

### $menubar-\>set\_pack\_direction ($pack\_dir)

- •

  `$pack_dir` (Gtk2::PackDirection)

Since: gtk+ 2.8

## PROPERTIES

- 'child-pack-direction' (Gtk2::PackDirection : default "ltr" : readable / writable / private)

  The child pack direction of the menubar

- 'pack-direction' (Gtk2::PackDirection : default "ltr" : readable / writable / private)

  The pack direction of the menubar

## STYLE PROPERTIES

- 'internal-padding' (integer : default 1 : readable / private)

  Amount of border space between the menubar shadow and the menu items

- 'shadow-type' (Gtk2::ShadowType : default "out" : readable / private)

  Style of bevel around the menubar

## ENUMS AND FLAGS

### enum Gtk2::PackDirection

- •

  'ltr' / 'GTK\_PACK\_DIRECTION\_LTR'

- •

  'rtl' / 'GTK\_PACK\_DIRECTION\_RTL'

- •

  'ttb' / 'GTK\_PACK\_DIRECTION\_TTB'

- •

  'btt' / 'GTK\_PACK\_DIRECTION\_BTT'

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::MenuShell

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
