[][src]Struct kas::widget::SubMenu

pub struct SubMenu<D: Directional, W: Menu> {
    pub list: MenuFrame<Column<W>>,
    // some fields omitted
}

A sub-menu

Fields

list: MenuFrame<Column<W>>

Methods

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

pub fn new<S: Into<AccelString>>(label: S, list: Vec<W>) -> Self[src]

Construct a sub-menu

impl<W: Menu> SubMenu<Right, W>[src]

pub fn right<S: Into<AccelString>>(label: S, list: Vec<W>) -> Self[src]

Construct a sub-menu, opening to the right

impl<W: Menu> SubMenu<Down, W>[src]

pub fn down<S: Into<AccelString>>(label: S, list: Vec<W>) -> Self[src]

Construct a sub-menu, opening downwards

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

pub fn new_with_direction<S: Into<AccelString>>(
    direction: D,
    label: S,
    list: Vec<W>
) -> Self
[src]

Construct a sub-menu

Trait Implementations

impl<D: Clone + Directional, W: Clone + Menu> Clone for SubMenu<D, W>[src]

impl<D: Debug + Directional, W: Debug + Menu> Debug for SubMenu<D, W>[src]

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

type Msg = M

Type of message returned by this widget Read more

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

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

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

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

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

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

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

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

Auto Trait Implementations

impl<D, W> RefUnwindSafe for SubMenu<D, W> where
    D: RefUnwindSafe,
    W: RefUnwindSafe

impl<D, W> Send for SubMenu<D, W> where
    D: Send,
    W: Send

impl<D, W> Sync for SubMenu<D, W> where
    D: Sync,
    W: Sync

impl<D, W> Unpin for SubMenu<D, W> where
    D: Unpin,
    W: Unpin

impl<D, W> UnwindSafe for SubMenu<D, W> where
    D: UnwindSafe,
    W: 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.