Struct kas_theme::MultiTheme [−][src]
Wrapper around mutliple themes, supporting run-time switching
Feature gated: this is only available with feature stack_dst
.
Implementations
impl<Draw> MultiTheme<Draw>
[src]
pub fn builder() -> MultiThemeBuilder<Draw>
[src]
Construct with builder pattern
Trait Implementations
impl<D: DrawShared + 'static> Theme<D> for MultiTheme<D>
[src]
type Window = StackDst<dyn WindowDst>
The associated Window
implementation.
type DrawHandle = StackDst<dyn DrawHandle>
The associated DrawHandle
implementation.
fn init(&mut self, draw: &mut D)
[src]
fn new_window(&self, draw: &mut D::Draw, dpi_factor: f32) -> Self::Window
[src]
fn update_window(&self, window: &mut Self::Window, dpi_factor: f32)
[src]
unsafe fn draw_handle<'a>(
&'a self,
draw: &'a mut D::Draw,
window: &'a mut Self::Window,
rect: Rect
) -> StackDst<dyn DrawHandle>
[src]
&'a self,
draw: &'a mut D::Draw,
window: &'a mut Self::Window,
rect: Rect
) -> StackDst<dyn DrawHandle>
fn clear_color(&self) -> Colour
[src]
impl<Draw> ThemeApi for MultiTheme<Draw>
[src]
fn set_font_size(&mut self, size: f32) -> ThemeAction
[src]
fn set_colours(&mut self, scheme: &str) -> ThemeAction
[src]
fn set_theme(&mut self, theme: &str) -> ThemeAction
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Cast<T> for S where
T: Conv<S>,
T: Conv<S>,
impl<S, T> CastFloat<T> for S where
T: ConvFloat<S>,
T: ConvFloat<S>,
pub fn cast_trunc(self) -> T
pub fn cast_nearest(self) -> T
pub fn cast_floor(self) -> T
pub fn cast_ceil(self) -> T
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
impl<T> Conv<T> for T
impl<'a, T, X> Filter<&'a T> for X where
T: Clone,
X: Filter<T>,
[src]
T: Clone,
X: Filter<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,