#[repr(C)]pub struct MenuEntry {
pub title: SharedString,
pub id: SharedString,
pub has_sub_menu: bool,
}
Expand description
An item in the menu of a menu bar or context menu
Fields§
§title: SharedString
The text of the menu entry
id: SharedString
an opaque id that can be used to identify the menu entry
Sub menu
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