gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.MenuBar

Contents

Description

The MenuBar is a subclass of MenuShell which contains one or more GtkMenuItems. The result is a standard menu bar which can hold many menu items.

CSS nodes

GtkMenuBar has a single CSS node with name menubar.

Synopsis

Exported types

Methods

getChildPackDirection

menuBarGetChildPackDirection Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuBar a) 
=> a

menubar: a MenuBar

-> m PackDirection

Returns: the child pack direction

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

Since: 2.8

getPackDirection

menuBarGetPackDirection Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuBar a) 
=> a

menubar: a MenuBar

-> m PackDirection

Returns: the pack direction

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

Since: 2.8

new

menuBarNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m MenuBar

Returns: the new menu bar, as a Widget

Creates a new MenuBar

newFromModel

menuBarNewFromModel Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuModel a) 
=> a

model: a MenuModel

-> m MenuBar

Returns: a new MenuBar

Creates a new MenuBar and populates it with menu items and submenus according to model.

The created menu items are connected to actions found in the ApplicationWindow to which the menu bar belongs - typically by means of being contained within the GtkApplicationWindows widget hierarchy.

Since: 3.4

setChildPackDirection

menuBarSetChildPackDirection Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuBar a) 
=> a

menubar: a MenuBar

-> PackDirection

childPackDir: a new PackDirection

-> m () 

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

Since: 2.8

setPackDirection

menuBarSetPackDirection Source #

Arguments

:: (HasCallStack, MonadIO m, IsMenuBar a) 
=> a

menubar: a MenuBar

-> PackDirection

packDir: a new PackDirection

-> m () 

Sets how items should be packed inside a menubar.

Since: 2.8

Properties

childPackDirection

data MenuBarChildPackDirectionPropertyInfo Source #

Instances

AttrInfo MenuBarChildPackDirectionPropertyInfo Source # 
type AttrOrigin MenuBarChildPackDirectionPropertyInfo Source # 
type AttrLabel MenuBarChildPackDirectionPropertyInfo Source # 
type AttrLabel MenuBarChildPackDirectionPropertyInfo = "child-pack-direction"
type AttrGetType MenuBarChildPackDirectionPropertyInfo Source # 
type AttrBaseTypeConstraint MenuBarChildPackDirectionPropertyInfo Source # 
type AttrSetTypeConstraint MenuBarChildPackDirectionPropertyInfo Source # 
type AttrAllowedOps MenuBarChildPackDirectionPropertyInfo Source # 

packDirection

data MenuBarPackDirectionPropertyInfo Source #

Instances

AttrInfo MenuBarPackDirectionPropertyInfo Source # 
type AttrOrigin MenuBarPackDirectionPropertyInfo Source # 
type AttrLabel MenuBarPackDirectionPropertyInfo Source # 
type AttrGetType MenuBarPackDirectionPropertyInfo Source # 
type AttrBaseTypeConstraint MenuBarPackDirectionPropertyInfo Source # 
type AttrSetTypeConstraint MenuBarPackDirectionPropertyInfo Source # 
type AttrAllowedOps MenuBarPackDirectionPropertyInfo Source #