Expand description
This crate hoists various styles and layout parameters for implementing Flexbox in Alchemy. For all intents and purposes, you can essentially consider this to be the root crate for Alchemy, as just about everything ends up using it.
Re-exports§
pub use color::Color;
pub use stretch::result::Layout;
pub use styles::Appearance;
pub use styles::Styles;
pub use styles::Style;
pub use stylesheet::StyleSheet;
Modules§
- Implements
Color
. Heavily based on theColor
module in Servo’s CSS parser, but tweaked for (what I believe) is a friendlier API, and to separate out the parsing into a separate module. - This module is included while awaiting an upstream merge in stretch proper. You should not rely on it, and consider it an implementation detail.
- Implements a
StyleSheet
, which contains inner logic for determining what styles should be applied to a given widget.
Macros§
Structs§
- A space separated list of values.
- A space separated set of unique values.
- A valid CSS class.