Struct wry::application::menu::MenuItemAttributes
source · [−]pub struct MenuItemAttributes<'a> { /* private fields */ }
Expand description
A custom menu item.
Implementations
sourceimpl<'a> MenuItemAttributes<'a>
impl<'a> MenuItemAttributes<'a>
sourcepub fn new(title: &'a str) -> MenuItemAttributes<'a>
pub fn new(title: &'a str) -> MenuItemAttributes<'a>
sourcepub fn with_id(self, id: MenuId) -> MenuItemAttributes<'a>
pub fn with_id(self, id: MenuId) -> MenuItemAttributes<'a>
Assign a custom menu id.
sourcepub fn with_accelerators(
self,
keyboard_accelerators: &Accelerator
) -> MenuItemAttributes<'a>
pub fn with_accelerators(
self,
keyboard_accelerators: &Accelerator
) -> MenuItemAttributes<'a>
sourcepub fn with_enabled(self, enabled: bool) -> MenuItemAttributes<'a>
pub fn with_enabled(self, enabled: bool) -> MenuItemAttributes<'a>
Assign default menu state.
sourcepub fn with_selected(self, selected: bool) -> MenuItemAttributes<'a>
pub fn with_selected(self, selected: bool) -> MenuItemAttributes<'a>
Assign default checkbox style.
Auto Trait Implementations
impl<'a> RefUnwindSafe for MenuItemAttributes<'a>
impl<'a> Send for MenuItemAttributes<'a>
impl<'a> Sync for MenuItemAttributes<'a>
impl<'a> Unpin for MenuItemAttributes<'a>
impl<'a> UnwindSafe for MenuItemAttributes<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more