#[repr(C)]pub struct MenuEntry {
pub title: SharedString,
pub icon: Image,
pub id: SharedString,
pub enabled: bool,
pub checkable: bool,
pub checked: bool,
pub has_sub_menu: bool,
pub is_separator: bool,
}
Expand description
An item in the menu of a menu bar or context menu
Fields§
§title: SharedString
The text of the menu entry
icon: Image
the icon associated with the menu entry
id: SharedString
an opaque id that can be used to identify the menu entry
enabled: bool
whether the menu entry is enabled
checkable: bool
whether the menu entry is checkable
checked: bool
whether the menu entry is checked
Sub menu
is_separator: bool
The menu entry is a separator
Trait Implementations§
impl StructuralPartialEq for MenuEntry
Auto Trait Implementations§
impl Freeze for MenuEntry
impl !RefUnwindSafe for MenuEntry
impl !Send for MenuEntry
impl !Sync for MenuEntry
impl Unpin for MenuEntry
impl !UnwindSafe for MenuEntry
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