|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
#include <optional>#include "donner/base/EcsRegistry_fwd.h"#include "donner/base/Length.h"#include "donner/base/RcString.h"#include "donner/css/Color.h"#include "donner/svg/components/filter/FilterGraph.h"#include "donner/svg/core/PreserveAspectRatio.h"#include "donner/svg/properties/Property.h"#include "donner/svg/properties/PropertyParsing.h"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::FilterPrimitiveComponent |
Parameters for SVGFilterPrimitiveStandardAttributes.
| Class Members | ||
|---|---|---|
| optional< Lengthd > | height | The height of the filter region. |
| optional< FilterInput > | in | The input specification for this filter primitive. Parsed from the in attribute. When nullopt, defaults to Previous (output of preceding primitive, or SourceGraphic for the first). |
| optional< FilterInput > | in2 | The second input specification for two-input primitives (e.g., feComposite, feBlend). Parsed from the in2 attribute. |
| optional< RcString > | result | Name of the filter primitive, which enables it to be used as a reference for subsequent filter primitives under the same "<filter>" element. |
| optional< Lengthd > | width | The width of the filter region. |
| optional< Lengthd > | x | The x-coordinate of the filter region. |
| optional< Lengthd > | y | The y-coordinate of the filter region. |
| struct donner::svg::components::FEFloodComponent |
Parameters for SVGFEFloodElement.
| Class Members | ||
|---|---|---|
| Property< Color > | floodColor | The flood fill color, defaults to black. |
| Property< double > | floodOpacity | The flood fill opacity, defaults to 1. Range is [0, 1]. |
| struct donner::svg::components::FEOffsetComponent |
Parameters for SVGFEOffsetElement.
| Class Members | ||
|---|---|---|
| double | dx = 0.0 | The horizontal offset. |
| double | dy = 0.0 | The vertical offset. |
| struct donner::svg::components::FEDropShadowComponent |
Parameters for SVGFEDropShadowElement.
| Class Members | ||
|---|---|---|
| double | dx = 2.0 | Horizontal offset. |
| double | dy = 2.0 | Vertical offset. |
| Property< Color > | floodColor | The flood fill color, defaults to black. |
| Property< double > | floodOpacity | The flood fill opacity, defaults to 1. |
| double | stdDeviationX = 2.0 | Blur standard deviation in X. |
| double | stdDeviationY = 2.0 | Blur standard deviation in Y. |
| struct donner::svg::components::FEComponentTransferComponent |
Marker component for SVGFEComponentTransferElement.
The element itself has no parameters; its children (feFuncR/G/B/A) define the transfer functions for each channel.
| Class Members | ||
|---|---|---|
| int | placeholder = 0 | Placeholder to avoid empty struct issues with entt. |
| struct donner::svg::components::FETileComponent |
Marker component for SVGFETileElement.
The feTile element has no element-specific parameters. It tiles its input's content (within the input's primitive subregion) across its own primitive subregion.
| Class Members | ||
|---|---|---|
| int | placeholder = 0 | Placeholder to avoid empty struct issues with entt. |
| struct donner::svg::components::FEImageComponent |
Parameters for SVGFEImageElement.
| Class Members | ||
|---|---|---|
| RcString | href | Image URL or fragment reference. |
| PreserveAspectRatio | preserveAspectRatio | How to fit the image. |
| struct donner::svg::components::FEMergeComponent |
Marker component for SVGFEMergeElement.
The merge element itself has no parameters; its children (feMergeNode) specify the inputs.
| Class Members | ||
|---|---|---|
| int | placeholder = 0 | Placeholder to avoid empty struct issues with entt. |
| struct donner::svg::components::FEMergeNodeComponent |
Parameters for a feMergeNode child element within feMerge.
Each merge node specifies an input via the in attribute. The inputs are composited bottom-to-top using Source Over.
| Class Members | ||
|---|---|---|
| optional< FilterInput > | in | The input to this merge node. Parsed from the in attribute. |
| struct donner::svg::components::FEDiffuseLightingComponent |
Parameters for SVGFEDiffuseLightingElement.
| Class Members | ||
|---|---|---|
| double | diffuseConstant = 1.0 | Diffuse reflection constant (kd). |
| Property< Color > | lightingColor | lighting-color property, specifying the color of the light source (default: white). |
| double | surfaceScale = 1.0 | Height of surface when alpha=1. |
| struct donner::svg::components::FESpecularLightingComponent |
Parameters for SVGFESpecularLightingElement.
| Class Members | ||
|---|---|---|
| Property< Color > | lightingColor | lighting-color property, specifying the color of the light source (default: white). |
| double | specularConstant = 1.0 | Specular reflection constant (ks). |
| double | specularExponent = 1.0 | Specular exponent (1..128). |
| double | surfaceScale = 1.0 | Height of surface when alpha=1. |