gtk-0.13.9: Binding to the Gtk+ graphical user interface library.

Maintainergtk2hs-users@lists.sourceforge.net
Stabilityprovisional
Portabilityportable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

Graphics.UI.Gtk.MenuComboToolbar.MenuBar

Contents

Description

A subclass widget for MenuShell which holds MenuItem widgets

Synopsis

Detail

The MenuBar is a subclass of MenuShell which contains one to many MenuItem. The result is a standard menu bar which can hold many menu items.

Class Hierarchy

| GObject
| +----Object
| +----Widget
| +----Container
| +----MenuShell
| +----MenuBar

Types

data PackDirection Source

Determines how to pack a menu bar: left-to-right, right-to-left, top-to-bottom or bottom-to-top.

Constructors

menuBarNew :: IO MenuBar Source

Creates the new MenuBar

Methods

menuBarSetPackDirection Source

Arguments

:: MenuBarClass self 
=> self 
-> PackDirection

packDir - a new PackDirection.

-> IO () 

Sets how items should be packed inside a menubar.

  • Available since Gtk+ version 2.8

menuBarGetPackDirection Source

Arguments

:: MenuBarClass self 
=> self 
-> IO PackDirection

returns the pack direction

Retrieves the current pack direction of the menubar. See menuBarSetPackDirection.

  • Available since Gtk+ version 2.8

menuBarSetChildPackDirection Source

Arguments

:: MenuBarClass self 
=> self 
-> PackDirection

childPackDir - a new PackDirection.

-> IO () 

Sets how widgets should be packed inside the children of a menubar.

  • Available since Gtk+ version 2.8

menuBarGetChildPackDirection Source

Arguments

:: MenuBarClass self 
=> self 
-> IO PackDirection

returns the child pack direction

Retrieves the current child pack direction of the menubar. See menuBarSetChildPackDirection.

  • Available since Gtk+ version 2.8

Attributes

menuBarPackDirection :: MenuBarClass self => Attr self PackDirection Source

The pack direction of the menubar. It determines how menuitems are arranged in the menubar.

Default value: PackDirectionLtr

menuBarChildPackDirection :: MenuBarClass self => Attr self PackDirection Source

The pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged.

Default value: PackDirectionLtr