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 |
| 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 |
| 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 |
| ThemeDst | As |
| Window | Per-window storage for the theme |
| WindowDst | As |
Type Definitions
| ColorsLinear |
|
| ColorsSrgb |
|
| StackDst | Fixed-size object of |