[−][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 |
DimensionsParams | Parameterisation of |
DimensionsWindow | A convenient implementation of |
FlatTheme | A theme with flat (unshaded) rendering |
MultiTheme | Wrapper around mutliple themes, supporting run-time switching |
MultiThemeBuilder | Builder for |
ShadedTheme | A theme using simple shading to give apparent depth to elements |
ThemeColours | Provides standard theme colours |
Constants
START_PASS | The initial |
Traits
Theme | A theme provides widget sizing and drawing implementations. |
ThemeDst | As |
Window | Per-window storage for the theme |
WindowDst | As |
Type Definitions
StackDst | Fixed-size object of |