|
|
Donner
C++20 SVG rendering library
|
Parameters for a "<radialGradient>" element. More...
#include "donner/svg/components/paint/RadialGradientComponent.h"
Public Member Functions | |
| void | inheritAttributes (EntityHandle handle, EntityHandle base) |
Create a ComputedRadialGradientComponent on the current entity, and inherit unset attributes from entity base. | |
Public Attributes | |
| std::optional< Lengthd > | cx |
| The x-coordinate of the gradient center. If not specified, defaults to 50%. | |
| std::optional< Lengthd > | cy |
| The y-coordinate of the gradient center. If not specified, defaults to 50%. | |
| std::optional< Lengthd > | r |
| The radius of the gradient. If not specified, defaults to 50%. | |
| std::optional< Lengthd > | fx |
| The x-coordinate of the gradient focus point. If not specified, defaults to cx. | |
| std::optional< Lengthd > | fy |
| The y-coordinate of the gradient focus point. If not specified, defaults to cy. | |
| std::optional< Lengthd > | fr |
| The radius of the gradient focus point. If not specified, defaults to 0%. | |
Parameters for a "<radialGradient>" element.
Defines a circle ( cx, cy, r) and a focus circle ( fx, fy, fr) for the gradient.
| void donner::svg::components::RadialGradientComponent::inheritAttributes | ( | EntityHandle | handle, |
| EntityHandle | base ) |
Create a ComputedRadialGradientComponent on the current entity, and inherit unset attributes from entity base.
| handle | Current entity to modify. |
| base | The entity to inherit unset attributes from. |