|
|
Donner
C++20 SVG rendering library
|
Computed properties for "<pattern>" elements, after resolving and inheriting values from referenced patterns. More...
#include "donner/svg/components/paint/PatternComponent.h"
Public Member Functions | |
| void | inheritAttributesFrom (EntityHandle handle, EntityHandle base) |
| Inherit attributes from the referenced pattern. | |
Public Attributes | |
| bool | initialized = false |
| True if this component has been initialized, false otherwise. | |
| PatternUnits | patternUnits = PatternUnits::Default |
| The pattern units of the pattern, defaults to PatternUnits::Default. | |
| PatternContentUnits | patternContentUnits = PatternContentUnits::Default |
| The pattern content units of the pattern, defaults to PatternContentUnits::Default. | |
| Boxd | tileRect = Boxd::CreateEmpty(Vector2d()) |
| The pattern tile rectangle, defaults to the empty rect. | |
| PreserveAspectRatio | preserveAspectRatio |
| The preserveAspectRatio of the pattern, defaults to PreserveAspectRatio::None. | |
| std::optional< Boxd > | viewBox |
The viewBox of the pattern, or std::nullopt if not set. | |
| SizedElementProperties | sizeProperties |
| Resolved x, y, width, and height properties of the pattern tile rectangle. | |
Computed properties for "<pattern>" elements, after resolving and inheriting values from referenced patterns.
| void donner::svg::components::ComputedPatternComponent::inheritAttributesFrom | ( | EntityHandle | handle, |
| EntityHandle | base ) |
Inherit attributes from the referenced pattern.
| handle | The handle of the pattern entity. |
| base | The handle of the base entity to copy from. |