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 class Menu : MenuModel

Menu is a simple implementation of MenuModel.

You populate a Menu by adding MenuItem instances to it.

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


Namespace: GLib
Package: gio-2.0

Content:

Constants:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object



2022 vala-language.org