Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::TextStyleContext Struct Reference

Internal, frame-owned mapping from authored text entities to one rendered instance's styles. Callers pass it synchronously; layout and draw results retain no reference to this map. More...

#include "donner/svg/text/TextEngine.h"

Public Member Functions

Entity styleEntityFor (Entity source) const
 Find an instance style without falling back to another instance.

Public Attributes

Entity rootEntity = entt::null
 Instance root supplying viewport and root style.
std::unordered_map< Entity, Entity > entities
 Authored entity to instance style entity.

Detailed Description

Internal, frame-owned mapping from authored text entities to one rendered instance's styles. Callers pass it synchronously; layout and draw results retain no reference to this map.

Member Function Documentation

◆ styleEntityFor()

Entity donner::svg::TextStyleContext::styleEntityFor ( Entity source) const
inline

Find an instance style without falling back to another instance.

Parameters
sourceAuthored span entity.
Returns
Matching style entity, or null when absent.

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