Rule

Rules specify changes that are to be made to the node's style.

Public Imports

fluid.theme
public import fluid.theme;
Undocumented in source.

Members

Aliases

FieldType
alias FieldType(string name) = field!name.Type
Undocumented in source.
StyleDelegate
alias StyleDelegate = Rule delegate(Node node) @(safe)
Undocumented in source.
loadTypeface
alias loadTypeface = Style.loadTypeface
Undocumented in source.

Functions

apply
bool apply(Node node, Rule rule)

Combine with another rule. Applies dynamic rules immediately.

apply
bool apply(Node node, Style style)

Apply this rule on the given style.

applyStatic
bool applyStatic(Node node, Style style)

Apply this rule on the given style. Ignores dynamic styles.

canApply
bool canApply(Node node)

Returns true if the rule can be applied to the given node.

Variables

breadcrumbs
Breadcrumbs breadcrumbs;

Breadcrumbs, if any, assigned to nodes matching this rule.

fields
StyleTemplate fields;

Fields affected by this rule and their values.

selector
Selector selector;

Selector to filter items that should match this rule.

styleDelegate
StyleDelegate styleDelegate;

Callback for updating the style dynamically. May be null.

Meta