Available on
desktop only.Expand description
Menu types and utilities.
Structs§
- About
Metadata - Application metadata for the
PredefinedMenuItem::about. - About
Metadata Builder - A builder type for
AboutMetadata. - Check
Menu Item - A menu item inside a
MenuorSubmenuand usually contains a text and a check mark or a similar toggle that corresponds to a checked and unchecked states. - Check
Menu Item Builder - A builder type for
CheckMenuItem - Icon
Menu Item - A menu item inside a
MenuorSubmenuand usually contains an icon and a text. - Icon
Menu Item Builder - A builder type for
IconMenuItem - Menu
- A type that is either a menu bar on the window on Windows and Linux or as a global menu in the menubar on macOS.
- Menu
Builder - A builder type for
Menu - Menu
Event - Describes a menu event emitted when a menu item is activated
- MenuId
- An unique id that is associated with a menu or a menu item.
- Menu
Item - A menu item inside a
MenuorSubmenuand contains only text. - Menu
Item Builder - A builder type for
MenuItem - Predefined
Menu Item - A predefined (native) menu item which has a predefined behavior by the OS or by this crate.
- Submenu
- A type that is a submenu inside a
MenuorSubmenu - Submenu
Builder - A builder type for
Submenu
Enums§
- Menu
Item Kind - An enumeration of all menu item kinds that could be added to
a
MenuorSubmenu - Native
Icon - A native Icon to be used for the menu item
Constants§
- HELP_
SUBMENU_ ID - Expected submenu id of the Help menu for macOS.
- WINDOW_
SUBMENU_ ID - Expected submenu id of the Window menu for macOS.
Traits§
- Context
Menu - A helper trait with methods to help creating a context menu.
- IsMenu
Item - A trait that defines a generic item in a menu, which may be one of
MenuItemKind