Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
SVGStyleQuery.h File Reference
#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"
Include dependency graph for SVGStyleQuery.h:

Classes

struct  donner::svg::SVGMatchedStyleRule
 Diagnostic record for one stylesheet rule that matched an element. More...
struct  donner::svg::SVGStylesheetDeclaration
 Source-backed declaration within a stylesheet rule. More...
struct  donner::svg::SVGStylesheetRule
 Source-backed author stylesheet rule in a document. 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< SVGMatchedStyleRuledonner::svg::CollectMatchedStyleRules (const SVGElement &element)
 Collect stylesheet rules that match element.
std::vector< SVGStylesheetRuledonner::svg::CollectStylesheetRules (const SVGDocument &document)
 Collect source-backed author stylesheet rules in document.
std::optional< SVGStyleRuleAtSourceOffsetdonner::svg::FindStyleRuleAtSourceOffset (const SVGDocument &document, std::size_t documentSourceOffset)
 Find the author stylesheet rule at documentSourceOffset.

Class Documentation

◆ donner::svg::SVGStylesheetDeclaration

struct donner::svg::SVGStylesheetDeclaration

Source-backed declaration within a stylesheet rule.

Collaboration diagram for donner::svg::SVGStylesheetDeclaration:
[legend]
Class Members
Declaration declaration Parsed CSS declaration.
size_t declarationIndex = 0 Index within the rule.
optional< SourceRange > declarationSourceRange Declaration range in SVG source.

◆ donner::svg::SVGStylesheetRule

struct donner::svg::SVGStylesheetRule

Source-backed author stylesheet rule in a document.

Collaboration diagram for donner::svg::SVGStylesheetRule:
[legend]
Class Members
vector< SVGStylesheetDeclaration > declarations Rule declarations.
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 Entity carrying the stylesheet.