Struct dioxus_mobile::wry::application::menu::MenuBar [−]
pub struct MenuBar(_);
Expand description
Object that allows you to create a MenuBar
, menu.
Platform-specific
macOs: The menu will show in the Menu Bar. Linux / Windows: The menu will be show at the top of the window.
Implementations
impl MenuBar
impl MenuBar
Add a submenu.
pub fn add_item(&mut self, item: MenuItemAttributes<'_>) -> CustomMenuItem
pub fn add_item(&mut self, item: MenuItemAttributes<'_>) -> CustomMenuItem
Add new item to this menu.
pub fn add_native_item(&mut self, item: MenuItem) -> Option<CustomMenuItem>
pub fn add_native_item(&mut self, item: MenuItem) -> Option<CustomMenuItem>
Add new item to this menu.