Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
GradientComponent.h File Reference
Include dependency graph for GradientComponent.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::svg::components::GradientComponent
 Common parameters for gradient elements, "<linearGradient>" and "<radialGradient>". More...
 
struct  donner::svg::components::ComputedGradientComponent
 Created by PaintSystem during render tree instantiation. 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::GradientComponent

struct donner::svg::components::GradientComponent

Common parameters for gradient elements, "<linearGradient>" and "<radialGradient>".

When this component is present, either LinearGradientComponent or RadialGradientComponent must be present.

Class Members
optional< GradientUnits > gradientUnits The parsed value of the "gradientUnits" attribute, which specifies how the coordinate system for linear/radial gradient positional attributes (such as x1, y1, cx, cy). Empty if no attribute was specified.
optional< Reference > href The parsed value of the "href" attribute, which specifies a reference to a gradient element to inherit from.
optional< GradientSpreadMethod > spreadMethod The parsed value of the "spreadMethod" attribute, which specifies how the gradient is repeated on its edges (such as spread, reflect, or repeat). Empty if no attribute was specified.