PopoverMenuBar


Object Hierarchy:

Gtk.PopoverMenuBar Gtk.PopoverMenuBar Gtk.PopoverMenuBar Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.PopoverMenuBar GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.PopoverMenuBar Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.PopoverMenuBar Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.PopoverMenuBar Gtk.ConstraintTarget->Gtk.Widget

Description:

[ CCode ( type_id = "gtk_popover_menu_bar_get_type ()" ) ]
public sealed class PopoverMenuBar : Widget, Accessible, Buildable, ConstraintTarget

`GtkPopoverMenuBar` presents a horizontal bar of items that pop up popover menus when clicked.

![An example GtkPopoverMenuBar](menubar.png)

The only way to create instances of `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 gtk_accessible_role_menu_bar role, the menu items use the gtk_accessible_role_menu_item role and the menus use the gtk_accessible_role_menu role.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget