Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::svg::components::StylesheetSourceMapSegment Struct Reference

Maps a contiguous span of parsed CSS text back to the SVG document source. More...

#include "donner/svg/components/StylesheetComponent.h"

Public Member Functions

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

Public Attributes

std::size_t cssStartOffset = 0
 First local CSS byte covered by this segment.
std::size_t cssEndOffset = 0
 First local CSS byte after this segment.
FileOffset documentStartOffset
 Document source offset for cssStartOffset.

Detailed Description

Maps a contiguous span of parsed CSS text back to the SVG document source.

Member Data Documentation

◆ documentStartOffset

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

Document source offset for cssStartOffset.


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