Struct kas_theme::ShadedTheme [−][src]
pub struct ShadedTheme { /* fields omitted */ }Expand description
A theme using simple shading to give apparent depth to elements
Implementations
Set font size
Units: Points per Em (standard unit of font size)
Set the colour scheme
If no scheme by this name is found the scheme is left unchanged.
Trait Implementations
type Window = DimensionsWindow
type Window = DimensionsWindowThe associated Window implementation.
type DrawHandle = DrawHandle<'static, D>
type DrawHandle = DrawHandle<'static, D>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
) -> Self::DrawHandle[src]
unsafe fn draw_handle<'a>(
&'a self,
shared: &'a mut D,
draw: &'a mut D::Draw,
window: &'a mut Self::Window
) -> Self::DrawHandle[src]Prepare to draw and construct a DrawHandle object Read more
Background colour
Auto Trait Implementations
impl !RefUnwindSafe for ShadedThemeimpl !Send for ShadedThemeimpl !Sync for ShadedThemeimpl Unpin for ShadedThemeimpl UnwindSafe for ShadedThemeBlanket 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