[][src]Crate alchemy_styles

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

color

Implements Color. Heavily based on the Color 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.

stretch

This module is included while awaiting an upstream merge in stretch proper. You should not rely on it, and consider it an implementation detail.

styles
stylesheet

Implements a StyleSheet, which contains inner logic for determining what styles should be applied to a given widget.

Macros

lazy_static

Structs

SpacedList

A space separated list of values.

SpacedSet

A space separated set of unique values.

StyleKey

A valid CSS class.

THEME_ENGINE

Type Definitions

StylesList