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 _gType() @property
MenuBar self()Returns `this`, for use in `with` statements.
MenuBarGidBuilder builder()Get builder for [gtk.menu_bar.MenuBar] Returns: New builder object
gtk.types.PackDirection childPackDirection() @propertyGet `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) @propertySet `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() @propertyGet `packDirection` property. Returns: The pack direction of the menubar. It determines how menuitems are arranged in the menubar.
void packDirection(gtk.types.PackDirection propval) @propertySet `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)Creates a new #GtkMenuBar and populates it with menu items and submenus according to model.
gtk.types.PackDirection getChildPackDirection()Retrieves the current child pack direction of the menubar. See [gtk.menu_bar.MenuBar.setChildPackDirection]. Returns: the child pack direction
gtk.types.PackDirection getPackDirection()Retrieves the current pack direction of the menubar. See [gtk.menu_bar.MenuBar.setPackDirection]. Returns: the pack direction
void setChildPackDirection(gtk.types.PackDirection childPackDir)Sets how widgets should be packed inside the children of a menubar.
void setPackDirection(gtk.types.PackDirection packDir)Sets 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
Methods
T childPackDirection(gtk.types.PackDirection propval)Set `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)Set `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