Module tao::menu [−][src]
Expand description
UNSTABLE – The Menu
struct and associated types.
ContextMenu is used to created a tray menu.
MenuBar is used to created a Window menu on Windows and Linux. On macOS it’s used in the menubar.
ⓘ
let mut root_menu = MenuBar::new(); let mut file_menu = MenuBar::new(); file_menu.add_item(MenuItemAttributes::new("My menu item")); root_menu.add_submenu("File", true, file_menu);
Structs
Object that allows you to create a ContextMenu
.
Custom menu item, when clicked an event is emitted in the EventLoop.
Object that allows you to create a MenuBar
, menu.
Identifier of a custom menu item.
A custom menu item.