Module tray_icon_ex::menu
source · Expand description
Re-export of muda crate and used for tray context menu.
Modules
- Accelerators describe keyboard shortcuts for menu items.
Structs
- Application metadata for the
PredefinedMenuItem::about
. - A builder type for
AboutMetadata
. - A builder type for
CheckMenuItem
- An icon used for the window titlebar, taskbar, etc.
- A builder type for
IconMenuItem
- A position represented in logical pixels.
- A root menu that can be added to a Window on Windows and Linux and used as the app global menu on macOS.
- Describes a menu event emitted when a menu item is activated
- An unique id that is associated with a menu or a menu item.
- A builder type for
MenuItem
- A position represented in physical pixels.
- A predefined (native) menu item which has a predfined behavior by the OS or by this crate.
- A builder type for
Submenu
Enums
- An error produced when using
Icon::from_rgba
with invalid arguments. - Errors returned by muda.
- An enumeration of all available menu types, useful to match against the items returned from
Menu::items
orSubmenu::items
- A native Icon to be used for the menu item
- A position that’s either physical or logical.
Traits
- A helper trait with methods to help creating a context menu.
- A trait that defines a generic item in a menu, which may be one of
MenuItemKind
Functions
- Checks that the scale factor is a normal positive
f64
.
Type Aliases
- A reciever that could be used to listen to menu events.
- Convenient type alias of Result type for muda.