[][src]Crate kas_theme

KAS theme support

This crate allows widget rendering to be customised via themes, and provides mid-level draw implementations for widgets.

Each Theme is expected to have Window-specific data, and provides an implementation of kas::draw::DrawHandle.

Two themes are provided by this trait: FlatTheme and ShadedTheme. Additionally, a meta-theme, MultiTheme, allows run-time switching between themes.

Re-exports

pub use kas;

Structs

Dimensions

Dimensions available within DimensionsWindow

DimensionsParams

Parameterisation of Dimensions

DimensionsWindow

A convenient implementation of crate::Window

FlatTheme

A theme with flat (unshaded) rendering

MultiTheme

Wrapper around mutliple themes, supporting run-time switching

MultiThemeBuilder

Builder for MultiTheme

ShadedTheme

A theme using simple shading to give apparent depth to elements

ThemeColours

Provides standard theme colours

Constants

START_PASS

The initial Pass value for a window

Traits

Theme

A theme provides widget sizing and drawing implementations.

ThemeDst

As Theme, but without associated types

Window

Per-window storage for the theme

WindowDst

As Window, but without associated types

Type Definitions

StackDst

Fixed-size object of Unsized type