gi-gtk-4.0.1: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.MenuBar

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

newtype MenuBar Source #

Memory-managed wrapper type.

Constructors

MenuBar (ManagedPtr MenuBar) 

Instances

Instances details
Eq MenuBar Source # 
Instance details

Defined in GI.Gtk.Objects.MenuBar

Methods

(==) :: MenuBar -> MenuBar -> Bool #

(/=) :: MenuBar -> MenuBar -> Bool #

IsGValue MenuBar Source #

Convert MenuBar to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.MenuBar

GObject MenuBar Source # 
Instance details

Defined in GI.Gtk.Objects.MenuBar

Methods

gobjectType :: IO GType #

HasParentTypes MenuBar Source # 
Instance details

Defined in GI.Gtk.Objects.MenuBar

type ParentTypes MenuBar Source # 
Instance details

Defined in GI.Gtk.Objects.MenuBar

class (GObject o, IsDescendantOf MenuBar o) => IsMenuBar o Source #

Type class for types which can be safely cast to MenuBar, for instance with toMenuBar.

Instances

Instances details
(GObject o, IsDescendantOf MenuBar o) => IsMenuBar o Source # 
Instance details

Defined in GI.Gtk.Objects.MenuBar

toMenuBar :: (MonadIO m, IsMenuBar o) => o -> m MenuBar Source #

Cast to MenuBar, for types for which this is known to be safe. For general casts, use castTo.

noMenuBar :: Maybe MenuBar Source #

A convenience alias for Nothing :: Maybe MenuBar.

Methods

Overloaded methods

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.