#[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: SharedStringThe text of the menu entry
icon: Imagethe icon associated with the menu entry
id: SharedStringan opaque id that can be used to identify the menu entry
enabled: boolwhether the menu entry is enabled
checkable: boolwhether the menu entry is checkable
checked: boolwhether the menu entry is checked
Sub menu
is_separator: boolThe 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