Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
SelectorContent.h File Reference
#include <string_view>
#include "donner/base/EcsRegistry.h"
Include dependency graph for SelectorContent.h:

Classes

struct  donner::svg::components::ProjectedNonWhitespaceTextTag
 Non-whitespace authored text not represented by the active raw-text child view. Covers conversion pruning and typed appends after incremental source projection. More...
struct  donner::svg::components::SelectorRawTextAuthorityTag
 Incremental content projection retained a complete raw-text child view for selectors. More...
struct  donner::svg::components::SelectorRejectedTextTag
 A rejected source projection leaves retained typed text authoritative. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::css
 Donner CSS library, a standalone composable CSS parser.
namespace  donner::xml
 XML parsing and document model support.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
namespace  donner::svg::components
 Contains the implementation of the Donner ECS,.

Functions

void donner::svg::components::RejectSelectorContentProjection (EntityHandle parent)
 Preserve the last accepted typed text when source projection rejects its replacement.
void donner::svg::components::AcceptSelectorTextValueProjection (EntityHandle parent)
 Accept a value-only edit without inferring a complete raw view from attached text deltas.
void donner::svg::components::ResetSelectorTextContent (EntityHandle parent)
 Replace typed text, discarding direct raw text left by incremental source projection.
void donner::svg::components::RecordAppendedSelectorText (EntityHandle parent, std::string_view text)
 Preserve a typed append when raw children are the active selector text representation.
void donner::svg::components::RecordDiscardedSelectorText (EntityHandle parent, const xml::XMLNode &node)
 Preserve direct text that is about to be consumed by SVG conversion.
void donner::svg::components::CompleteSelectorContentProjection (EntityHandle parent, bool contentsReparsed)
 Complete a successful content-projection pass, preserving attribute-only summaries.
bool donner::svg::components::IsSelectorEmpty (Registry &registry, Entity dataEntity, css::SelectorTraversalBudget *budget)
 Inspect CSS emptiness using authored children and text on the authoritative data entity.

Class Documentation

◆ donner::svg::components::ProjectedNonWhitespaceTextTag

struct donner::svg::components::ProjectedNonWhitespaceTextTag

Non-whitespace authored text not represented by the active raw-text child view. Covers conversion pruning and typed appends after incremental source projection.

◆ donner::svg::components::SelectorRawTextAuthorityTag

struct donner::svg::components::SelectorRawTextAuthorityTag

Incremental content projection retained a complete raw-text child view for selectors.

◆ donner::svg::components::SelectorRejectedTextTag

struct donner::svg::components::SelectorRejectedTextTag

A rejected source projection leaves retained typed text authoritative.