[][src]Struct imgui::MenuItem

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

Methods

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

pub fn new(_: &Ui<'ui>, label: &'p ImStr) -> Self[src]

pub fn shortcut(self, shortcut: &'p ImStr) -> Self[src]

pub fn selected(self, selected: &'p mut bool) -> Self[src]

pub fn enabled(self, enabled: bool) -> Self[src]

pub fn build(self) -> bool[src]

Auto Trait Implementations

impl<'ui, 'p> !Send for MenuItem<'ui, 'p>

impl<'ui, 'p> Unpin for MenuItem<'ui, 'p>

impl<'ui, 'p> !Sync for MenuItem<'ui, 'p>

impl<'ui, 'p> !UnwindSafe for MenuItem<'ui, 'p>

impl<'ui, 'p> !RefUnwindSafe for MenuItem<'ui, 'p>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]