Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::svg::components::StyleRuleAtSourceOffset Struct Reference

Stylesheet rule found at a document source offset. More...

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

Collaboration diagram for donner::svg::components::StyleRuleAtSourceOffset:
[legend]

Public Member Functions

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

Public Attributes

Entity stylesheetEntity = entt::null
 Entity carrying the stylesheet.
std::size_t ruleIndex = 0
 Index of the source rule.
std::optional< std::size_t > selectorEntryIndex
 Selector-list entry containing the offset.
SourceRange ruleSourceRange
 Rule range in SVG source.
SourceRange selectorSourceRange
 Selector range in SVG source.

Detailed Description

Stylesheet rule found at a document source offset.

Member Data Documentation

◆ ruleSourceRange

SourceRange donner::svg::components::StyleRuleAtSourceOffset::ruleSourceRange
Initial value:
static FileOffset Offset(size_t offset)
Create a FileOffset for a single-line string.
Definition FileOffset.h:36

Rule range in SVG source.

◆ selectorSourceRange

SourceRange donner::svg::components::StyleRuleAtSourceOffset::selectorSourceRange
Initial value:

Selector range in SVG source.


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