Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::svg::components::ComputedStopComponent Struct Reference

Stores the computed properties of a <stop> element. More...

#include "donner/svg/components/paint/StopComponent.h"

Public Member Functions

 ComputedStopComponent (const StopProperties &inputProperties, const ComputedStyleComponent &style, const std::map< RcString, parser::UnparsedProperty > &unparsedProperties, ParseWarningSink &warningSink)
 Compute the computed properties of a <stop> element.

Public Attributes

StopProperties properties
 Computed properties of the <stop> element.

Detailed Description

Stores the computed properties of a <stop> element.

This is used to store the resolved properties combining both the XML tree and the CSS tree, with currentColor resolved.

Constructor & Destructor Documentation

◆ ComputedStopComponent()

donner::svg::components::ComputedStopComponent::ComputedStopComponent ( const StopProperties & inputProperties,
const ComputedStyleComponent & style,
const std::map< RcString, parser::UnparsedProperty > & unparsedProperties,
ParseWarningSink & warningSink )

Compute the computed properties of a <stop> element.

Parameters
inputPropertiesThe properties of the <stop> element.
styleThe computed style of the stop element.
unparsedPropertiesThe unparsed properties of the <stop> element.
warningSinkThe warnings that were generated during parsing.

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