Struct rg3d_ui::menu::MenuItemBuilder[][src]

pub struct MenuItemBuilder<'a, 'b, M: MessageData, C: Control<M, C>> { /* fields omitted */ }

Implementations

impl<'a, 'b, M: MessageData, C: Control<M, C>> MenuItemBuilder<'a, 'b, M, C>[src]

pub fn new(widget_builder: WidgetBuilder<M, C>) -> Self[src]

pub fn with_content(self, content: MenuItemContent<'a, 'b, M, C>) -> Self[src]

pub fn with_items(self, items: Vec<Handle<UINode<M, C>>>) -> Self[src]

pub fn with_back(self, handle: Handle<UINode<M, C>>) -> Self[src]

Allows you to specify the background content. Background node is only for decoration purpose, it can be any kind of node, by default it is Decorator.

pub fn build(self, ctx: &mut BuildContext<'_, M, C>) -> Handle<UINode<M, C>>[src]

Auto Trait Implementations

impl<'a, 'b, M, C> !RefUnwindSafe for MenuItemBuilder<'a, 'b, M, C>

impl<'a, 'b, M, C> !Send for MenuItemBuilder<'a, 'b, M, C>

impl<'a, 'b, M, C> !Sync for MenuItemBuilder<'a, 'b, M, C>

impl<'a, 'b, M, C> Unpin for MenuItemBuilder<'a, 'b, M, C> where
    C: Unpin,
    M: Unpin

impl<'a, 'b, M, C> !UnwindSafe for MenuItemBuilder<'a, 'b, M, C>

Blanket Implementations

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

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

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

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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<V, T> VZip<V> for T where
    V: MultiLane<T>,