Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::StructuredCssTarget Struct Reference

Exact selection and edit boundaries for a source-backed CSS rule or declaration. More...

#include "donner/editor/StructuredCssEdit.h"

Public Member Functions

bool operator== (const StructuredCssTarget &) const =default
 Compare resolved ranges and revision identity.

Public Attributes

SourceByteRange rule
 Complete qualified rule.
SourceByteRange selector
 Authored selector list.
std::optional< SourceByteRange > declaration
 Complete declaration and optional semicolon.
std::optional< SourceByteRange > name
 Authored property name.
std::optional< SourceByteRange > value
 Authored property value.
std::optional< SourceByteRange > priority
 Authored importance annotation.
std::optional< SourceByteRange > insertDeclaration
 Insertion point or trailing escape.
bool declarationInsertionBeforeTail = false
 Keep discarded trailing source separate.
std::string declarationInsertionPrefix
 XML-encoded CSS EOF closers.
StructuredCssSourceEncoding encoding = StructuredCssSourceEncoding::Unmapped
 Context.
std::string decodedMoveText
 Original CSS token bytes before XML encoding.
char attributeQuote = '\0'
 Original delimiter for an inline style attribute.
bool inlineStyle = false
 The selected declaration belongs to a style attribute.
bool declarationClosedForMove = false
 Repaired CSS must be encoded at the destination.
bool declarationIncludesSemicolon = false
 Selected bytes include a CSS separator.
bool declarationNeedsSeparator = false
 Last declaration has no terminating semicolon.
std::size_t selectionOffset = 0
 Original hit that resolves the same parsed target.
std::uint64_t generation = 0
 Document generation at selection.
std::uint64_t sourceVersion = 0
 Document source revision at selection.

Detailed Description

Exact selection and edit boundaries for a source-backed CSS rule or declaration.


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