Struct kas_theme::MultiTheme [−][src]
pub struct MultiTheme<Draw> { /* fields omitted */ }Expand description
Wrapper around mutliple themes, supporting run-time switching
Feature gated: this is only available with feature stack_dst.
Implementations
Construct with builder pattern
Trait Implementations
type DrawHandle = StackDst<dyn DrawHandle>
type DrawHandle = StackDst<dyn DrawHandle>The associated DrawHandle implementation.
Apply/set the passed config
Construct per-window storage Read more
Update a window created by Theme::new_window Read more
unsafe fn draw_handle<'a>(
&'a self,
shared: &'a mut D,
draw: &'a mut D::Draw,
window: &'a mut Self::Window
) -> StackDst<dyn DrawHandle>[src]
unsafe fn draw_handle<'a>(
&'a self,
shared: &'a mut D,
draw: &'a mut D::Draw,
window: &'a mut Self::Window
) -> StackDst<dyn DrawHandle>[src]Prepare to draw and construct a DrawHandle object Read more
Background colour
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
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> TCast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> TCast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> TCast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>Try convert the ceiling to an integer Read more