#include <optional>#include <ostream>#include "donner/base/Length.h"#include "donner/base/Path.h"#include "donner/base/RcString.h"Classes | |
| struct | donner::svg::components::TextPathComponent |
| Stores attributes specific to <textPath> elements. 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,. | |
Enumerations | |
| enum class | donner::svg::components::TextPathMethod { donner::svg::components::Align , donner::svg::components::Stretch } |
| Method for placing glyphs along a path in <textPath>. More... | |
| enum class | donner::svg::components::TextPathSide { donner::svg::components::Left , donner::svg::components::Right } |
| Which side of the path to render text in <textPath>. More... | |
| enum class | donner::svg::components::TextPathSpacing { donner::svg::components::Auto , donner::svg::components::Exact } |
| Spacing mode for <textPath>. More... | |
Functions | |
| std::ostream & | donner::svg::components::operator<< (std::ostream &os, TextPathMethod method) |
| Ostream output operator for TextPathMethod. | |
| std::ostream & | donner::svg::components::operator<< (std::ostream &os, TextPathSide side) |
| Ostream output operator for TextPathSide. | |
| std::ostream & | donner::svg::components::operator<< (std::ostream &os, TextPathSpacing spacing) |
| Ostream output operator for TextPathSpacing. | |
| struct donner::svg::components::TextPathComponent |
Stores attributes specific to <textPath> elements.
The <textPath> element renders text along a path given either inline with the path attribute or by reference through href.
| Class Members | ||
|---|---|---|
| RcString | href | Reference to a shape element (IRI fragment, e.g., "#myPath"). |
| optional< Path > | inlinePath | Geometry parsed from the path attribute, in the textPath element's own user space. Set only when the attribute parsed to at least one subpath; an unparsable value leaves this empty so that href supplies the geometry instead. |
| TextPathMethod | method = TextPathMethod::Align | How glyphs are placed on the path. |
| TextPathSide | side = TextPathSide::Left | Which side of the path to render text. |
| TextPathSpacing | spacing = TextPathSpacing::Exact | Spacing control. |
| optional< Lengthd > | startOffset | Offset along the path where text begins. Percentages are relative to path length. |