Crate kas_theme[][src]

Expand description

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

Colors

Provides standard theme colours

Config

Event handling configuration

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

RasterConfig

Font raster settings

ShadedTheme

A theme using simple shading to give apparent depth to elements

Enums

MaybeBoxed

An optionally-owning (boxed) reference

Traits

Theme

A theme provides widget sizing and drawing implementations.

ThemeConfig

Requirements on theme config (without config feature)

ThemeDst

As Theme, but without associated types

Window

Per-window storage for the theme

WindowDst

As Window, but without associated types

Type Definitions

ColorsLinear

Colors parameterised for graphics usage

ColorsSrgb

Colors parameterised for reading and writing using sRGB

StackDst

Fixed-size object of Unsized type