|
|
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.
|
Computed properties for a <linearGradient> element. More...
#include "donner/svg/components/paint/LinearGradientComponent.h"
Public Member Functions | |
| void | inheritAttributes (EntityHandle handle, EntityHandle base) |
Inherit unset attributes from entity base. | |
Public Attributes | |
| Lengthd | x1 = Lengthd(0, Lengthd::Unit::Percent) |
| The x-coordinate of the gradient start point, defaults to 0%. | |
| Lengthd | y1 = Lengthd(0, Lengthd::Unit::Percent) |
| The y-coordinate of the gradient start point, defaults to 0%. | |
| Lengthd | x2 = Lengthd(100, Lengthd::Unit::Percent) |
| The x-coordinate of the gradient end point, defaults to 100%. | |
| Lengthd | y2 = Lengthd(0, Lengthd::Unit::Percent) |
| The y-coordinate of the gradient end point, defaults to 0%. | |
Computed properties for a <linearGradient> element.
This is used to store the resolved properties, replacing unset values with defaults and inheriting from parent elements.
| void donner::svg::components::ComputedLinearGradientComponent::inheritAttributes | ( | EntityHandle | handle, |
| EntityHandle | base ) |
Inherit unset attributes from entity base.
| handle | Current entity to modify. |
| base | The entity to inherit unset attributes from. |