gtk.popover_menu_bar
Module for [PopoverMenuBar] class
Types 3
gtk.popover_menu_bar.PopoverMenuBar presents a horizontal bar of items that pop up popover menus when clicked.
The only way to create instances of gtk.popover_menu_bar.PopoverMenuBar is from a gio.menu_model.MenuModel.
CSS nodes
menubar
├── item[.active]
┊ ╰── popover
╰── item
╰── popovergtk.popover_menu_bar.PopoverMenuBar has a single CSS node with name menubar, below which each item has its CSS node, and below that the corresponding popover.
The item whose popover is currently open gets the .active style class.
Accessibility
gtk.popover_menu_bar.PopoverMenuBar uses the gtk.types.AccessibleRole.MenuBar role, the menu items use the gtk.types.AccessibleRole.MenuItem role and the menus use the gtk.types.AccessibleRole.Menu role.
PopoverMenuBarGidBuilder builder() static nothrowGet builder for [gtk.popover_menu_bar.PopoverMenuBar] Returns: New builder objectgio.menu_model.MenuModel menuModel() @property nothrowGet `menuModel` property. Returns: The [gio.menu_model.MenuModel] from which the menu bar is created.void menuModel(gio.menu_model.MenuModel propval) @property nothrowSet `menuModel` property. Params: propval = The [gio.menu_model.MenuModel] from which the menu bar is created.gtk.popover_menu_bar.PopoverMenuBar newFromModel(gio.menu_model.MenuModel model = null) static nothrowCreates a [gtk.popover_menu_bar.PopoverMenuBar] from a [gio.menu_model.MenuModel].bool addChild(gtk.widget.Widget child, string id) nothrowAdds a custom widget to a generated menubar.gio.menu_model.MenuModel getMenuModel() nothrowReturns the model from which the contents of bar are taken. Returns: a [gio.menu_model.MenuModel]bool removeChild(gtk.widget.Widget child) nothrowRemoves a widget that has previously been added with [gtk.popover_menu_bar.PopoverMenuBar.addChild].void setMenuModel(gio.menu_model.MenuModel model = null) nothrowSets a menu model from which bar should take its contents.Fluent builder implementation template for gtk.popover_menu_bar.PopoverMenuBar
T menuModel(gio.menu_model.MenuModel propval) nothrowSet `menuModel` property. Params: propval = The [gio.menu_model.MenuModel] from which the menu bar is created.Fluent builder for gtk.popover_menu_bar.PopoverMenuBar