Module rstk::menu

source ·
Expand description

Menu widget - for building menubars and menus.

The menu widget is a versatile widget. It can take on any of these roles:

  • a window’s menubar, containing several menus, such as “File”, “Edit”, “Help” etc.
  • a menu containing menu items, such as “Open File”, or submenus, such as “Recent files…”.
  • a menu button, which can be clicked to invoke an action. This button can act as a button, a check button, or a radio button.

This library uses separate structs for the different types of menu which can be added to an existing menu. These are built up in standard “builder” style, before being added or inserted.

Structs

Functions

  • Creates an instance of a menu widget in given parent.