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 |
Synopsis
- newtype MenuBar = MenuBar (ManagedPtr MenuBar)
- class (GObject o, IsDescendantOf MenuBar o) => IsMenuBar o
- toMenuBar :: (MonadIO m, IsMenuBar o) => o -> m MenuBar
- menuBarGetChildPackDirection :: (HasCallStack, MonadIO m, IsMenuBar a) => a -> m PackDirection
- menuBarGetPackDirection :: (HasCallStack, MonadIO m, IsMenuBar a) => a -> m PackDirection
- menuBarNew :: (HasCallStack, MonadIO m) => m MenuBar
- menuBarNewFromModel :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> m MenuBar
- menuBarSetChildPackDirection :: (HasCallStack, MonadIO m, IsMenuBar a) => a -> PackDirection -> m ()
- menuBarSetPackDirection :: (HasCallStack, MonadIO m, IsMenuBar a) => a -> PackDirection -> m ()
- constructMenuBarChildPackDirection :: (IsMenuBar o, MonadIO m) => PackDirection -> m (GValueConstruct o)
- getMenuBarChildPackDirection :: (MonadIO m, IsMenuBar o) => o -> m PackDirection
- setMenuBarChildPackDirection :: (MonadIO m, IsMenuBar o) => o -> PackDirection -> m ()
- constructMenuBarPackDirection :: (IsMenuBar o, MonadIO m) => PackDirection -> m (GValueConstruct o)
- getMenuBarPackDirection :: (MonadIO m, IsMenuBar o) => o -> m PackDirection
- setMenuBarPackDirection :: (MonadIO m, IsMenuBar o) => o -> PackDirection -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq MenuBar Source # | |
IsGValue MenuBar Source # | Convert |
ManagedPtrNewtype MenuBar Source # | |
Defined in GI.Gtk.Objects.MenuBar toManagedPtr :: MenuBar -> ManagedPtr MenuBar # | |
TypedObject MenuBar Source # | |
Defined in GI.Gtk.Objects.MenuBar | |
GObject MenuBar Source # | |
Defined in GI.Gtk.Objects.MenuBar | |
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
getChildPackDirection
menuBarGetChildPackDirection Source #
:: (HasCallStack, MonadIO m, IsMenuBar a) | |
=> a |
|
-> m PackDirection | Returns: the child pack direction |
Retrieves the current child pack direction of the menubar.
See menuBarSetChildPackDirection
.
Since: 2.8
getPackDirection
menuBarGetPackDirection Source #
:: (HasCallStack, MonadIO m, IsMenuBar a) | |
=> a |
|
-> m PackDirection | Returns: the pack direction |
Retrieves the current pack direction of the menubar.
See menuBarSetPackDirection
.
Since: 2.8
new
:: (HasCallStack, MonadIO m) | |
=> m MenuBar | Returns: the new menu bar, as a |
Creates a new MenuBar
newFromModel
:: (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.
Since: 3.4
setChildPackDirection
menuBarSetChildPackDirection Source #
:: (HasCallStack, MonadIO m, IsMenuBar a) | |
=> a |
|
-> PackDirection |
|
-> m () |
Sets how widgets should be packed inside the children of a menubar.
Since: 2.8
setPackDirection
menuBarSetPackDirection Source #
:: (HasCallStack, MonadIO m, IsMenuBar a) | |
=> a |
|
-> PackDirection |
|
-> m () |
Sets how items should be packed inside a menubar.
Since: 2.8
Properties
childPackDirection
The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged.
Since: 2.8
constructMenuBarChildPackDirection :: (IsMenuBar o, MonadIO m) => PackDirection -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “child-pack-direction
” property. This is rarely needed directly, but it is used by new
.
getMenuBarChildPackDirection :: (MonadIO m, IsMenuBar o) => o -> m PackDirection Source #
Get the value of the “child-pack-direction
” property.
When overloading is enabled, this is equivalent to
get
menuBar #childPackDirection
setMenuBarChildPackDirection :: (MonadIO m, IsMenuBar o) => o -> PackDirection -> m () Source #
Set the value of the “child-pack-direction
” property.
When overloading is enabled, this is equivalent to
set
menuBar [ #childPackDirection:=
value ]
packDirection
The pack direction of the menubar. It determines how menuitems are arranged in the menubar.
Since: 2.8
constructMenuBarPackDirection :: (IsMenuBar o, MonadIO m) => PackDirection -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “pack-direction
” property. This is rarely needed directly, but it is used by new
.
getMenuBarPackDirection :: (MonadIO m, IsMenuBar o) => o -> m PackDirection Source #
Get the value of the “pack-direction
” property.
When overloading is enabled, this is equivalent to
get
menuBar #packDirection
setMenuBarPackDirection :: (MonadIO m, IsMenuBar o) => o -> PackDirection -> m () Source #
Set the value of the “pack-direction
” property.
When overloading is enabled, this is equivalent to
set
menuBar [ #packDirection:=
value ]