|
|
Donner
C++20 SVG rendering library
|
#include "donner/base/Transform.h"#include "donner/base/Vector2.h"#include "donner/svg/core/CssTransform.h"#include "donner/svg/properties/Property.h"Classes | |
| struct | donner::svg::components::TransformComponent |
| Stores the raw transform value set on an entity, for the transform presentation attribute. More... | |
| struct | donner::svg::components::ComputedLocalTransformComponent |
| Stores the computed transform value for an entity, relative to the parent. More... | |
| struct | donner::svg::components::ComputedAbsoluteTransformComponent |
| Stores the computed transform value for an entity, relative to the world. 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,. | |
| struct donner::svg::components::TransformComponent |
Stores the raw transform value set on an entity, for the transform presentation attribute.
This can be sourced from the transform="..." XML attribute, or from the transform CSS property.
| Class Members | ||
|---|---|---|
| Property< CssTransform > | transform | Value of the transform, if it is set. Defaults to std::nullopt. Represents the entity-from-parent transform. |
| struct donner::svg::components::ComputedLocalTransformComponent |
Stores the computed transform value for an entity, relative to the parent.
This resolves presentation attributes and the CSS cascade and stores the resulting value for the current entity.
| Class Members | ||
|---|---|---|
| Transformd | entityFromParent | Transform from the entity from its parent. |
| CssTransform | rawCssTransform | Raw CSS transform value, before resolving percentages relative to the viewport. |
| Vector2d | transformOrigin | Resolved transform origin in pixels. |
| struct donner::svg::components::ComputedAbsoluteTransformComponent |
Stores the computed transform value for an entity, relative to the world.
This applies the transform from the from all parent entities, and represents the transform of the entity from the root.
| Class Members | ||
|---|---|---|
| Transformd | entityFromWorld | Transform from the entity from the world. |
| bool | worldIsCanvas | |