Struct kas_theme::MultiTheme [−][src]
pub struct MultiTheme<DS> { /* fields omitted */ }
This is supported on crate feature
stack_dst
only.Expand description
Wrapper around mutliple themes, supporting run-time switching
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
Theme initialisation Read more
Construct per-window storage Read more
Update a window created by Theme::new_window
Read more
unsafe fn draw_handle(
&self,
draw: DrawIface<'_, DS>,
window: &mut Self::Window
) -> StackDst<dyn DrawHandle>
unsafe fn draw_handle(
&self,
draw: DrawIface<'_, DS>,
window: &mut Self::Window
) -> StackDst<dyn DrawHandle>
Prepare to draw and construct a DrawHandle
object Read more
Background colour
Auto Trait Implementations
impl<DS> !RefUnwindSafe for MultiTheme<DS>
impl<DS> !Send for MultiTheme<DS>
impl<DS> !Sync for MultiTheme<DS>
impl<DS> !Unpin for MultiTheme<DS>
impl<DS> !UnwindSafe for MultiTheme<DS>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast 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