Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::MatchedStyleRule Struct Reference

Diagnostic record for one stylesheet rule that matched an element. More...

#include "donner/svg/components/style/StyleSystem.h"

Public Member Functions

bool operator== (const MatchedStyleRule &other) const =default
 Equality operator.

Public Attributes

Entity stylesheetEntity = entt::null
 Entity carrying the matched stylesheet.
std::size_t ruleIndex = 0
 Index of the matched rule within the stylesheet.
std::size_t selectorEntryIndex = 0
 Index of the matched selector-list entry.
css::Specificity specificity
 Specificity used for cascading this rule.
bool isUserAgentStylesheet = false
 True when this came from the built-in UA stylesheet.
std::optional< SourceRangeruleSourceRange
 Matched rule range in SVG source.
std::optional< SourceRangeselectorSourceRange
 Matched selector branch in SVG source.
std::vector< SourceRangedeclarationSourceRanges
 Declaration ranges in SVG source.

Detailed Description

Diagnostic record for one stylesheet rule that matched an element.


The documentation for this struct was generated from the following file: