[][src]Crate orbtk_css_engine

This crate provides functions to load a css files as theme and access it properties with selectors.

This crate depends on the orbtk_utils crate.

Example

Basic usage of the tree:


use orbtk_css_engine::prelude::*;

let mut theme = Theme::create_from_path("theme.css").build();
let selector = Selector::from("button");
let background = theme.brush("background", &selector);

Modules

prelude

Structs

Declaration
Rule
Selector

Describes a css selector.

Specificity

Describes the specificity of a selector.

Theme

Theme is the representation of a css styling.

ThemeBuilder

Used to build a theme, specifying additional details.

Enums

CustomParseError
SelectorRelation
Value

Functions

parse