Struct imgui::MenuItem [−][src]
pub struct MenuItem<Label, Shortcut = &'static str> { /* fields omitted */ }
Expand description
Builder for a menu item.
Implementations
Sets the menu item shortcut.
Shortcuts are displayed for convenience only and are not automatically handled.
Sets the selected state of the menu item.
Default: false
Builds the menu item.
Returns true if the menu item is activated.
Builds the menu item using a mutable reference to selected state.
Trait Implementations
Auto Trait Implementations
impl<Label, Shortcut> RefUnwindSafe for MenuItem<Label, Shortcut> where
Label: RefUnwindSafe,
Shortcut: RefUnwindSafe,
impl<Label, Shortcut> UnwindSafe for MenuItem<Label, Shortcut> where
Label: UnwindSafe,
Shortcut: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more