#include <cstddef>#include <optional>#include <vector>#include "donner/base/EcsRegistry.h"#include "donner/base/FileOffset.h"#include "donner/css/Declaration.h"#include "donner/css/Specificity.h"Classes | |
| struct | donner::svg::SVGMatchedStyleRule |
| Diagnostic record for one stylesheet rule that matched an element. More... | |
| struct | donner::svg::SVGStylesheetDeclaration |
| Parsed declaration within a stylesheet rule, with an optional document source range. More... | |
| struct | donner::svg::SVGStylesheetRule |
| Stylesheet rule in a document; built-in rules have no document source ranges. More... | |
| struct | donner::svg::SVGStyleRuleAtSourceOffset |
| Stylesheet rule found at a document source offset. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
| namespace | donner::svg |
| Donner SVG library, which can load, manipulate and render SVG files. | |
Functions | |
| std::vector< SVGMatchedStyleRule > | donner::svg::CollectMatchedStyleRules (const SVGElement &element) |
Collect stylesheet rules that match element. | |
| std::vector< SVGStylesheetRule > | donner::svg::CollectStylesheetRules (const SVGDocument &document, bool includeUserAgent=false) |
Collect source-backed author stylesheet rules in document, optionally with the built-in user agent stylesheet rules. | |
| bool | donner::svg::AuthorStyleDependsOnTreePosition (const SVGDocument &document) |
Return true when an author stylesheet rule in document matches on tree position. | |
| std::optional< SVGStyleRuleAtSourceOffset > | donner::svg::FindStyleRuleAtSourceOffset (const SVGDocument &document, std::size_t documentSourceOffset) |
Find the author stylesheet rule at documentSourceOffset. | |
| struct donner::svg::SVGStylesheetDeclaration |
Parsed declaration within a stylesheet rule, with an optional document source range.
| Class Members | ||
|---|---|---|
| Declaration | declaration | Parsed CSS declaration. |
| size_t | declarationIndex = 0 | Index within the rule. |
| optional< SourceRange > | declarationSourceRange | Declaration range in SVG source. |
| struct donner::svg::SVGStylesheetRule |
Stylesheet rule in a document; built-in rules have no document source ranges.
| Class Members | ||
|---|---|---|
| vector< SVGStylesheetDeclaration > | declarations | Rule declarations. |
| bool | isUserAgentStylesheet = false | True for a built-in rule without document source ranges. |
| size_t | ruleIndex = 0 | Index within the stylesheet. |
| optional< SourceRange > | ruleSourceRange | Rule range in SVG source. |
| optional< SourceRange > | selectorSourceRange | Selector range in SVG source. |
| Entity | stylesheetEntity = entt::null | Owning <style> or <svg> element key. |