Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
ComputedStyleComponent.h File Reference
#include <optional>
#include "donner/svg/properties/PropertyRegistry.h"
Include dependency graph for ComputedStyleComponent.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::svg::components::ComputedResourceOpacities
 Final resource opacities for this style instance, including explicit parent inheritance. More...
struct  donner::svg::components::ComputedStyleComponent
 Contains the computed style properties for an element, which is a combination of the style="" attribute, the CSS stylesheet, and the CSS cascade where properties are inherited from the parent. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
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,.

Class Documentation

◆ donner::svg::components::ComputedResourceOpacities

struct donner::svg::components::ComputedResourceOpacities

Final resource opacities for this style instance, including explicit parent inheritance.

Class Members
double floodOpacity = 1 Final filter flood opacity.
Specificity floodSpecificity Winning flood-opacity cascade priority.
double stopOpacity = 1 Final gradient stop opacity.
Specificity stopSpecificity Winning stop-opacity cascade priority.

◆ donner::svg::components::ComputedStyleComponent

struct donner::svg::components::ComputedStyleComponent

Contains the computed style properties for an element, which is a combination of the style="" attribute, the CSS stylesheet, and the CSS cascade where properties are inherited from the parent.

Class Members
bool externalFill = false Ordinary fill inherited from the scoped external-use host.
bool externalStroke = false Ordinary stroke inherited from the scoped external-use host.
optional< PropertyRegistry > properties The computed style properties. std::nullopt may be present mid-computation before all properties have been cascaded.
optional< ComputedResourceOpacities > resourceOpacities Absent for manually constructed or incomplete styles; populated with the final properties.