| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gtk.Objects.MenuBar
Contents
Description
- newtype MenuBar = MenuBar (ManagedPtr MenuBar)
- class GObject o => IsMenuBar o
- toMenuBar :: IsMenuBar o => o -> IO MenuBar
- noMenuBar :: Maybe MenuBar
- data MenuBarGetChildPackDirectionMethodInfo
- menuBarGetChildPackDirection :: (HasCallStack, MonadIO m, IsMenuBar a) => a -> m PackDirection
- data MenuBarGetPackDirectionMethodInfo
- menuBarGetPackDirection :: (HasCallStack, MonadIO m, IsMenuBar a) => a -> m PackDirection
- menuBarNew :: (HasCallStack, MonadIO m) => m MenuBar
- menuBarNewFromModel :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> m MenuBar
- data MenuBarSetChildPackDirectionMethodInfo
- menuBarSetChildPackDirection :: (HasCallStack, MonadIO m, IsMenuBar a) => a -> PackDirection -> m ()
- data MenuBarSetPackDirectionMethodInfo
- menuBarSetPackDirection :: (HasCallStack, MonadIO m, IsMenuBar a) => a -> PackDirection -> m ()
- data MenuBarChildPackDirectionPropertyInfo
- constructMenuBarChildPackDirection :: IsMenuBar o => PackDirection -> IO (GValueConstruct o)
- getMenuBarChildPackDirection :: (MonadIO m, IsMenuBar o) => o -> m PackDirection
- menuBarChildPackDirection :: AttrLabelProxy "childPackDirection"
- setMenuBarChildPackDirection :: (MonadIO m, IsMenuBar o) => o -> PackDirection -> m ()
- data MenuBarPackDirectionPropertyInfo
- constructMenuBarPackDirection :: IsMenuBar o => PackDirection -> IO (GValueConstruct o)
- getMenuBarPackDirection :: (MonadIO m, IsMenuBar o) => o -> m PackDirection
- menuBarPackDirection :: AttrLabelProxy "packDirection"
- setMenuBarPackDirection :: (MonadIO m, IsMenuBar o) => o -> PackDirection -> m ()
Exported types
Constructors
| MenuBar (ManagedPtr MenuBar) |
Instances
| GObject MenuBar Source # | |
| IsImplementorIface MenuBar Source # | |
| IsObject MenuBar Source # | |
| IsWidget MenuBar Source # | |
| IsMenuShell MenuBar Source # | |
| IsContainer MenuBar Source # | |
| IsBuildable MenuBar Source # | |
| IsMenuBar MenuBar Source # | |
| ((~) * info (ResolveMenuBarMethod t MenuBar), MethodInfo * info MenuBar p) => IsLabel t (MenuBar -> p) Source # | |
| ((~) * info (ResolveMenuBarMethod t MenuBar), MethodInfo * info MenuBar p) => IsLabelProxy t (MenuBar -> p) Source # | |
| HasAttributeList * MenuBar Source # | |
| type AttributeList MenuBar Source # | |
| type SignalList MenuBar Source # | |
Methods
getChildPackDirection
data MenuBarGetChildPackDirectionMethodInfo Source #
Instances
| ((~) * signature (m PackDirection), MonadIO m, IsMenuBar a) => MethodInfo * MenuBarGetChildPackDirectionMethodInfo a signature Source # | |
menuBarGetChildPackDirection Source #
Arguments
| :: (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
data MenuBarGetPackDirectionMethodInfo Source #
Instances
| ((~) * signature (m PackDirection), MonadIO m, IsMenuBar a) => MethodInfo * MenuBarGetPackDirectionMethodInfo a signature Source # | |
menuBarGetPackDirection Source #
Arguments
| :: (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
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.
Since: 3.4
setChildPackDirection
data MenuBarSetChildPackDirectionMethodInfo Source #
Instances
| ((~) * signature (PackDirection -> m ()), MonadIO m, IsMenuBar a) => MethodInfo * MenuBarSetChildPackDirectionMethodInfo a signature Source # | |
menuBarSetChildPackDirection Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMenuBar a) | |
| => a |
|
| -> PackDirection |
|
| -> m () |
Sets how widgets should be packed inside the children of a menubar.
Since: 2.8
setPackDirection
data MenuBarSetPackDirectionMethodInfo Source #
Instances
| ((~) * signature (PackDirection -> m ()), MonadIO m, IsMenuBar a) => MethodInfo * MenuBarSetPackDirectionMethodInfo a signature Source # | |
menuBarSetPackDirection Source #
Arguments
| :: (HasCallStack, MonadIO m, IsMenuBar a) | |
| => a |
|
| -> PackDirection |
|
| -> m () |
Sets how items should be packed inside a menubar.
Since: 2.8
Properties
childPackDirection
data MenuBarChildPackDirectionPropertyInfo Source #
Instances
constructMenuBarChildPackDirection :: IsMenuBar o => PackDirection -> IO (GValueConstruct o) Source #
getMenuBarChildPackDirection :: (MonadIO m, IsMenuBar o) => o -> m PackDirection Source #
menuBarChildPackDirection :: AttrLabelProxy "childPackDirection" Source #
setMenuBarChildPackDirection :: (MonadIO m, IsMenuBar o) => o -> PackDirection -> m () Source #
packDirection
data MenuBarPackDirectionPropertyInfo Source #
Instances
constructMenuBarPackDirection :: IsMenuBar o => PackDirection -> IO (GValueConstruct o) Source #
getMenuBarPackDirection :: (MonadIO m, IsMenuBar o) => o -> m PackDirection Source #
menuBarPackDirection :: AttrLabelProxy "packDirection" Source #
setMenuBarPackDirection :: (MonadIO m, IsMenuBar o) => o -> PackDirection -> m () Source #