[][src]Struct kas_theme::MultiTheme

pub struct MultiTheme<Draw> { /* fields omitted */ }

Wrapper around mutliple themes, supporting run-time switching

Feature gated: this is only available with feature stack_dst.

Methods

impl<Draw> MultiTheme<Draw>[src]

pub fn builder() -> MultiThemeBuilder<Draw>[src]

Construct with builder pattern

Trait Implementations

impl<Draw: 'static> Theme<Draw> for MultiTheme<Draw>[src]

type Window = StackDst<dyn WindowDst<Draw>>

The associated Window implementation.

type DrawHandle = StackDst<dyn DrawHandle>

The associated DrawHandle implementation.

impl<Draw> ThemeApi for MultiTheme<Draw>[src]

Auto Trait Implementations

impl<Draw> !RefUnwindSafe for MultiTheme<Draw>

impl<Draw> !Send for MultiTheme<Draw>

impl<Draw> !Sync for MultiTheme<Draw>

impl<Draw> !Unpin for MultiTheme<Draw>

impl<Draw> !UnwindSafe for MultiTheme<Draw>

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, 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.