| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.MenuBar
Description
Synopsis
- newtype MenuBar = MenuBar (ManagedPtr MenuBar)
- class (GObject o, IsDescendantOf MenuBar o) => IsMenuBar o
- toMenuBar :: (MonadIO m, IsMenuBar o) => o -> m MenuBar
- noMenuBar :: Maybe MenuBar
- menuBarNew :: (HasCallStack, MonadIO m) => m MenuBar
- menuBarNewFromModel :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> m MenuBar
Exported types
Memory-managed wrapper type.
Constructors
| MenuBar (ManagedPtr MenuBar) |
Instances
| Eq MenuBar Source # | |
| IsGValue MenuBar Source # | Convert |
| GObject MenuBar Source # | |
Defined in GI.Gtk.Objects.MenuBar Methods gobjectType :: IO GType # | |
| HasParentTypes MenuBar Source # | |
Defined in GI.Gtk.Objects.MenuBar | |
| type ParentTypes MenuBar Source # | |
Defined in GI.Gtk.Objects.MenuBar | |
class (GObject o, IsDescendantOf MenuBar o) => IsMenuBar o Source #
Instances
| (GObject o, IsDescendantOf MenuBar o) => IsMenuBar o Source # | |
Defined in GI.Gtk.Objects.MenuBar | |
Methods
Overloaded methods
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m MenuBar | Returns: the new menu bar, as a |
Creates a new MenuBar
newFromModel
Arguments
| :: (HasCallStack, MonadIO m, IsMenuModel a) | |
| => a |
|
| -> m MenuBar | Returns: a new |
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.