|
|
Donner
C++20 SVG rendering library
|
Parameters for a "<linearGradient>" element. More...
#include "donner/svg/components/paint/LinearGradientComponent.h"
Public Member Functions | |
| void | inheritAttributes (EntityHandle handle, EntityHandle base) |
Create a ComputedLinearGradientComponent on the current entity, and inherit unset attributes from entity base. | |
Public Attributes | |
| std::optional< Lengthd > | x1 |
| The x-coordinate of the gradient start point. If not specified, defaults to 0%. | |
| std::optional< Lengthd > | y1 |
| The y-coordinate of the gradient start point. If not specified, defaults to 0%. | |
| std::optional< Lengthd > | x2 |
| The x-coordinate of the gradient end point. If not specified, defaults to 100%. | |
| std::optional< Lengthd > | y2 |
| The y-coordinate of the gradient end point. If not specified, defaults to 0%. | |
Parameters for a "<linearGradient>" element.
| void donner::svg::components::LinearGradientComponent::inheritAttributes | ( | EntityHandle | handle, |
| EntityHandle | base ) |
Create a ComputedLinearGradientComponent on the current entity, and inherit unset attributes from entity base.
| handle | Current entity to modify. |
| base | The entity to inherit unset attributes from. |