Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PopoverMenuBarMeta

[213:14] static extends: object

Generated metadata helpers for PopoverMenuBar class surfaces.

Methods

  • properties ()

    Returns property metadata for PopoverMenuBar.

    • @r A list.

class: PopoverMenuBar

[22:7] extends: object

Presents a horizontal bar of items that pop up menus when clicked. An example GtkPopoverMenuBar 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 [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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • PopoverMenuBar (model = null)

    Creates a GtkPopoverMenuBar from a GMenuModel.

    • @p 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asWidget ()

    Wraps this handle as Widget.

    • @r A Widget object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r 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 GMenuModel from which the menu bar is created. The model should only contain submenus as toplevel elements.

    • @p Value is the new property value.
    • @r 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 custom attribute that matches

    • @id. ``
    • @p child is the GtkWidget to add.
    • @p 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().

    • @p child is the GtkWidget to remove.
  • set_menu_model (object model)

    Sets a menu model from which @bar should take its contents.

    • @p model is a GMenuModel.
    • @r None.