Struct imgui::MenuItem [] [src]

#[must_use]
pub struct MenuItem<'ui, 'p> {
    // some fields omitted
}

Methods

impl<'ui, 'p> MenuItem<'ui, 'p>
[src]

fn new(label: ImStr<'p>) -> Self

fn shortcut(self, shortcut: ImStr<'p>) -> Self

fn selected(self, selected: &'p mut bool) -> Self

fn enabled(self, enabled: bool) -> Self

fn build(self) -> bool