Struct kas_theme::ShadedTheme[][src]

pub struct ShadedTheme { /* fields omitted */ }

A theme using simple shading to give apparent depth to elements

Implementations

impl ShadedTheme[src]

pub fn new() -> Self[src]

Construct

pub fn with_font_size(self, pt_size: f32) -> Self[src]

Set font size

Units: Points per Em (standard unit of font size)

pub fn with_colours(self, scheme: &str) -> Self[src]

Set the colour scheme

If no scheme by this name is found the scheme is left unchanged.

Trait Implementations

impl Clone for ShadedTheme[src]

impl Debug for ShadedTheme[src]

impl<D: DrawShared + 'static> Theme<D> for ShadedTheme where
    D::Draw: DrawRounded + DrawShaded + DrawText
[src]

type Window = DimensionsWindow

The associated Window implementation.

type DrawHandle = DrawHandle<'static, D::Draw>

The associated DrawHandle implementation.

impl ThemeApi for ShadedTheme[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Cast<T> for S where
    T: Conv<S>, 

impl<S, T> CastFloat<T> for S where
    T: ConvFloat<S>, 

impl<T> Conv<T> for T

impl<'a, T, X> Filter<&'a T> for X where
    T: Clone,
    X: Filter<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.