[][src]Struct kas::widget::MenuBar

pub struct MenuBar<D: Directional, W: Menu> {
    pub bar: List<D, SubMenu<D::Flipped, W>>,
    // some fields omitted
}

A menu-bar

This widget houses a sequence of menu buttons, allowing input actions across menus.

Fields

bar: List<D, SubMenu<D::Flipped, W>>

Methods

impl<D: Directional + Default, W: Menu> MenuBar<D, W>[src]

pub fn new(menus: Vec<SubMenu<D::Flipped, W>>) -> Self[src]

Construct

impl<D: Directional, W: Menu> MenuBar<D, W>[src]

pub fn new_with_direction(
    direction: D,
    menus: Vec<SubMenu<D::Flipped, W>>
) -> Self
[src]

Construct

Trait Implementations

impl<D: Clone + Directional, W: Clone + Menu> Clone for MenuBar<D, W> where
    D::Flipped: Clone
[src]

impl<D: Debug + Directional, W: Debug + Menu> Debug for MenuBar<D, W> where
    D::Flipped: Debug
[src]

impl<D: Directional, W: Menu<Msg = M>, M> Handler for MenuBar<D, W>[src]

type Msg = M

Type of message returned by this widget Read more

impl<D: Directional, W: Menu> Layout for MenuBar<D, W>[src]

impl<D: Directional, W: Menu> Menu for MenuBar<D, W>[src]

impl<D: Directional, W: Menu> SendEvent for MenuBar<D, W>[src]

impl<D: Directional, W: Menu> Widget for MenuBar<D, W>[src]

impl<D: Directional, W: Menu> WidgetChildren for MenuBar<D, W>[src]

impl<D: Directional, W: Menu> WidgetConfig for MenuBar<D, W>[src]

impl<D: Directional, W: Menu> WidgetCore for MenuBar<D, W>[src]

Auto Trait Implementations

impl<D, W> RefUnwindSafe for MenuBar<D, W> where
    D: RefUnwindSafe,
    W: RefUnwindSafe,
    <D as Directional>::Flipped: RefUnwindSafe

impl<D, W> Send for MenuBar<D, W> where
    D: Send,
    W: Send,
    <D as Directional>::Flipped: Send

impl<D, W> Sync for MenuBar<D, W> where
    D: Sync,
    W: Sync,
    <D as Directional>::Flipped: Sync

impl<D, W> Unpin for MenuBar<D, W> where
    D: Unpin,
    W: Unpin,
    <D as Directional>::Flipped: Unpin

impl<D, W> UnwindSafe for MenuBar<D, W> where
    D: UnwindSafe,
    W: UnwindSafe,
    <D as Directional>::Flipped: UnwindSafe

Blanket Implementations

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

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

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

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

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<T> ConvUtil for T[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

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<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.

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<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.