Struct workflow_nw::menu::MenubarBuilder
source · pub struct MenubarBuilder {
pub mac_options: MacOptions,
pub app_name: String,
pub menubar: Menu,
pub menu_items: Vec<MenuItem>,
pub is_macos: bool,
}Expand description
Provides a builder pattern for building application menus.
For usage example please refer to Examples
Fields§
§mac_options: MacOptions§app_name: String§is_macos: boolImplementations§
source§impl MenubarBuilder
impl MenubarBuilder
pub fn new(app_name: &str, is_macos: bool) -> Self
sourcepub fn mac_hide_edit(self, hide: bool) -> Self
pub fn mac_hide_edit(self, hide: bool) -> Self
(Mac) do not populate the Edit menu
sourcepub fn mac_hide_window(self, hide: bool) -> Self
pub fn mac_hide_window(self, hide: bool) -> Self
(Mac) do not populate the Window menu
Auto Trait Implementations§
impl Freeze for MenubarBuilder
impl RefUnwindSafe for MenubarBuilder
impl !Send for MenubarBuilder
impl !Sync for MenubarBuilder
impl Unpin for MenubarBuilder
impl UnwindSafe for MenubarBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more