Theme

Node theme.

Constructors

this
this(Rule[] rules)

Create a new theme using the given rules.

this
this(Rule[][TypeInfo_Class] rules)

Create a theme using the given set of rules.

Members

Functions

add
void add(Rule[] rules)

Add rules to the theme.

apply
void apply(Node node)

Make the node use this theme.

apply
Rule.StyleDelegate[] apply(Node node, Style style)

Apply this theme on the given style.

derive
Theme derive(Rule[] rules)

Create a new theme that derives from another.

dup
Theme dup()

Duplicate the theme. This is not recursive; rules are not copied.

opCast
bool opCast()

Check if the theme was initialized.

Variables

rules
Rule[][TypeInfo_Class] rules;
Undocumented in source.

Meta