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

Installed only while the child document's write access is held. More...

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

Public Member Functions

 ExternalUseStyleContext (Entity root, std::shared_ptr< const ComputedStyle > hostStyle, const ResolvedPaintServer &fill, const ResolvedPaintServer &stroke, std::shared_ptr< StyleResourceBudget > work)
 Share the host's computed style, whose record owns its lifetime charge.
 ExternalUseStyleContext (const ExternalUseStyleContext &)=delete
ExternalUseStyleContext & operator= (const ExternalUseStyleContext &)=delete

Public Attributes

bool unsupportedResource = false
 An inherited resource was refused in this occurrence. FontManager::hostFontKey of the fonts the host lends this occurrence; zero for none. Text prepared under one set of lent fonts is not reused under another.
std::uint64_t hostFontKey = 0
Entity root
 Referenced instance root.
ComputedStyleComponent parent
 Host's shared computed style and canonical resource values.
ResolvedPaintServer fill
 Host-registry-qualified fill.
ResolvedPaintServer stroke
 Host-registry-qualified stroke.
std::shared_ptr< StyleResourceBudget > work
 Frame-wide work allowance, never reset by child passes.

Detailed Description

Installed only while the child document's write access is held.


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