Expand description
Theme API and sample implementations
Widgets expect the theme to provide an implementation of SizeCx and of
DrawCx.
Launching a UI requires a Theme. Two
implementations are provided here: SimpleTheme and FlatTheme.
An adapter, MultiTheme, is also provided.
Structs§
- Colors
- Provides standard theme colours
- DrawCx
- Draw interface
- Flat
Theme - A theme with flat (unshaded) rendering
- Input
State - Input and highlighting state of a widget
- Multi
Theme - Run-time switching support for pre-loaded themes
- Simple
Theme - A simple theme
- SizeCx
- Size and scaling interface
- Text
- Text type-setting object (theme aware)
Enums§
- Background
- Optional background colour
- Feature
- Various features which may be sized and drawn
- Frame
Style - Style of a frame
- Margin
Style - Margin size
- Mark
Style - Style of marks
- Selection
Style - Selection style hint
- Text
Class - Font “class” selector
Traits§
- Theme
- A theme provides widget sizing and drawing implementations.
- Theme
Dst - As
Theme, but without associated types - Window
- Per-window storage for the theme
Type Aliases§
- Colors
Linear Colorsparameterised for graphics usage- Colors
Srgb Colorsparameterised for reading and writing using sRGB