Basics
Guides
API Reference
Basics
Guides
API Reference
[213:14] static extends: object
Generated metadata helpers for PopoverMenuBar class surfaces.
properties ()
Returns property metadata for
PopoverMenuBar.
A list.[22:7] extends: object
Presents a horizontal bar of items that pop up menus when clicked.
GtkPopoverMenuBar is from a GMenuModel. # CSS
nodes menubar ├── item[.active] ┊ ╰── popover ╰── item ╰── popover
GtkPopoverMenuBar 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
GtkPopoverMenuBar uses the [enum@Gtk.AccessibleRole.menu_bar] role, the
menu items use the [enum@Gtk.AccessibleRole.menu_item] role and the menus use
the [enum@Gtk.AccessibleRole.menu] role.
PopoverMenuBar (model = null)
Creates a
GtkPopoverMenuBarfrom aGMenuModel.
model is a GMenuModel.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setMenumodel (object Value)
The
GMenuModelfrom which the menu bar is created. The model should only contain submenus as toplevel elements.
Value is the new property value.None.add_child (object child, string id)
Adds a custom widget to a generated menubar. For this to work, the menu model of @bar must have an item with a
customattribute that matches
child is the GtkWidget to add.id is the ID to insert @child at.get_menu_model ()
Returns the model from which the contents of @bar are taken.
remove_child (object child)
Removes a widget that has previously been added with gtk_popover_menu_bar_add_child().
child is the GtkWidget to remove.set_menu_model (object model)
Sets a menu model from which @bar should take its contents.
model is a GMenuModel.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.