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
impl<DS: DrawSharedImpl> Theme<DS> for ShadedTheme where
DS::Draw: DrawRoundedImpl + DrawShadedImpl,
impl<DS: DrawSharedImpl> Theme<DS> for ShadedTheme where
DS::Draw: DrawRoundedImpl + DrawShadedImpl,
type DrawHandle = DrawHandle<'static, DS>
type DrawHandle = DrawHandle<'static, DS>
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>,
w: &mut Self::Window
) -> Self::DrawHandle
unsafe fn draw_handle(
&self,
draw: DrawIface<'_, DS>,
w: &mut Self::Window
) -> Self::DrawHandle
Prepare to draw and construct a DrawHandle
object Read more
Background colour
Auto Trait Implementations
impl !RefUnwindSafe for ShadedTheme
impl !Send for ShadedTheme
impl !Sync for ShadedTheme
impl Unpin for ShadedTheme
impl UnwindSafe for ShadedTheme
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