pub struct MenuBarItem<Key: Hash + Copy + PartialEq + Eq + Debug> { /* private fields */ }
Implementations§
Source§impl<Key: Hash + Copy + PartialEq + Eq + Debug> MenuBarItem<Key>
impl<Key: Hash + Copy + PartialEq + Eq + Debug> MenuBarItem<Key>
Menu item that can be clicked
Sourcepub fn new_checkable(id: Key, name: &str, default: bool) -> Self
pub fn new_checkable(id: Key, name: &str, default: bool) -> Self
Menu item that can be toggled on or off use MenuBar::is_checked to check state
pub fn new_options( id: Key, name: &str, children: &[(Key, &str)], default: usize, ) -> Self
Menu item with children that all act like buttons
pub fn new(id: Key, name: &str, children: Vec<MenuBarItem<Key>>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<Key> Freeze for MenuBarItem<Key>where
Key: Freeze,
impl<Key> RefUnwindSafe for MenuBarItem<Key>where
Key: RefUnwindSafe,
impl<Key> Send for MenuBarItem<Key>where
Key: Send,
impl<Key> Sync for MenuBarItem<Key>where
Key: Sync,
impl<Key> Unpin for MenuBarItem<Key>where
Key: Unpin,
impl<Key> UnwindSafe for MenuBarItem<Key>where
Key: UnwindSafe,
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