Menu


Object Hierarchy:

GLib.Menu GLib.Menu GLib.Menu GLib.MenuModel GLib.MenuModel GLib.MenuModel->GLib.Menu GLib.Object GLib.Object GLib.Object->GLib.MenuModel

Description:

[ CCode ( type_id = "g_menu_get_type ()" ) ]
[ Version ( since = "2.32" ) ]
public sealed class Menu : MenuModel

`GMenu` is a simple implementation of [class@Gio.

MenuModel]. You populate a `GMenu` by adding [class@Gio.MenuItem] instances to it.

There are some convenience functions to allow you to directly add items (avoiding [class@Gio.MenuItem]) for the common cases. To add a regular item, use [method@Gio.Menu.insert]. To add a section, use [method@Gio.Menu.insert_section]. To add a submenu, use [ method@Gio.Menu.insert_submenu].


Namespace: GLib
Package: gio-2.0

Content:

Constants:

Creation methods:

Methods:

Inherited Members: