use asset;
pub struct Stylesheet {
pub rules: Vec<Rule>,
}
pub struct Rule {
pub selector: String,
pub declarations: Vec<Declaration>,
}
pub struct Declaration {
pub name: String,
pub value: Value,
}
#[derive(Debug, Clone)]
pub enum Value {
Length(f32, Unit),
Font(asset::FontData),
Image(asset::ImageData),
KeywordAuto,
KeywordAbsolute,
KeywordFit,
KeywordRepeat,
}
#[derive(Debug, Clone)]
pub enum Unit {
Px,
}
impl Stylesheet {
#[inline]
pub fn new() -> Stylesheet {
Stylesheet {
rules: Vec::new()
}
}
}