Struct kas_theme::FlatTheme [−][src]
pub struct FlatTheme { /* fields omitted */ }
Expand description
A theme with flat (unshaded) rendering
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 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>,
window: &mut Self::Window
) -> Self::DrawHandle
unsafe fn draw_handle(
&self,
draw: DrawIface<'_, DS>,
window: &mut Self::Window
) -> Self::DrawHandle
Prepare to draw and construct a DrawHandle
object Read more
Background colour
Auto Trait Implementations
impl !RefUnwindSafe for FlatTheme
impl UnwindSafe for FlatTheme
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