The OpenD Programming Language

CssStyle

This is probably not useful to you unless you're writing a browser or something like that. It represents a *computed* style, like what the browser gives you after applying stylesheets, inline styles, and html attributes. From here, you can start to make a layout engine for the box model and have a css aware browser.

Constructors

this
this(string rule, string content)

.

Members

Functions

expandShortForm
void expandShortForm(Property p, Specificity specificity)

.

getSpecificityOfRule
Specificity getSpecificityOfRule(string rule)

.

getValue
string getValue(string name)

takes dash style name

opDispatch
string opDispatch(string value)

.

setValue
string setValue(string name, string value, Specificity newSpecificity, bool explicit)

takes dash style name

toString
string toString()

.

Structs

Property
struct Property

.

Unions

Specificity
union Specificity

.

Variables

originatingRule
string originatingRule;

.

originatingSpecificity
Specificity originatingSpecificity;

.

properties
Property[] properties;

.

Meta