gtk.menu_bar

Module for [MenuBar] class

Types 3

The #GtkMenuBar is a subclass of #GtkMenuShell 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.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
MenuBar self() nothrowReturns `this`, for use in `with` statements.
MenuBarGidBuilder builder() static nothrowGet builder for [gtk.menu_bar.MenuBar] Returns: New builder object
gtk.types.PackDirection childPackDirection() @property nothrowGet `childPackDirection` property. Returns: The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged.
void childPackDirection(gtk.types.PackDirection propval) @property nothrowSet `childPackDirection` property. Params: propval = The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged.
gtk.types.PackDirection packDirection() @property nothrowGet `packDirection` property. Returns: The pack direction of the menubar. It determines how menuitems are arranged in the menubar.
void packDirection(gtk.types.PackDirection propval) @property nothrowSet `packDirection` property. Params: propval = The pack direction of the menubar. It determines how menuitems are arranged in the menubar.
gtk.menu_bar.MenuBar newFromModel(gio.menu_model.MenuModel model) static nothrowCreates a new #GtkMenuBar and populates it with menu items and submenus according to model.
gtk.types.PackDirection getChildPackDirection() nothrowRetrieves the current child pack direction of the menubar. See [gtk.menu_bar.MenuBar.setChildPackDirection]. Returns: the child pack direction
gtk.types.PackDirection getPackDirection() nothrowRetrieves the current pack direction of the menubar. See [gtk.menu_bar.MenuBar.setPackDirection]. Returns: the pack direction
void setChildPackDirection(gtk.types.PackDirection childPackDir) nothrowSets how widgets should be packed inside the children of a menubar.
void setPackDirection(gtk.types.PackDirection packDir) nothrowSets how items should be packed inside a menubar.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GtkMenuBar Returns: the new menu bar, as a #GtkWidget

Fluent builder implementation template for gtk.menu_bar.MenuBar

Methods
T childPackDirection(gtk.types.PackDirection propval) nothrowSet `childPackDirection` property. Params: propval = The child pack direction of the menubar. It determines how the widgets contained in child menuitems are arranged. Returns: Builder instance for ...
T packDirection(gtk.types.PackDirection propval) nothrowSet `packDirection` property. Params: propval = The pack direction of the menubar. It determines how menuitems are arranged in the menubar. Returns: Builder instance for fluent chaining

Fluent builder for gtk.menu_bar.MenuBar

Methods
MenuBar build() nothrowCreate object from builder. Returns: New object