Struct minifb::Menu
[−]
[src]
pub struct Menu<'a> { pub name: &'a str, pub id: usize, pub key: Key, pub modifier: usize, pub mac_mod: usize, pub enabled: bool, pub sub_menu: Option<&'a Vec<Menu<'a>>>, }
Used to hold the data for creating menus for the Application
Fields
name: &'a str
Name of the menu item
id: usize
User-defined Id thot will be sent back to the application in [get_menu_event]
key: Key
Shortcut key for the menu item
modifier: usize
Modifier on Windows for the menu
mac_mod: usize
Modifier on Mac OS
enabled: bool
Menu item should be enabled on grayed out
Sub-menu. Vector of a sub-menu, otherwise None if no sub-menu