Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
TextPositioningComponent.h File Reference
#include "donner/base/Length.h"
#include "donner/base/SmallVector.h"
Include dependency graph for TextPositioningComponent.h:

Classes

struct  donner::svg::components::TextPositioningComponent
 Defines the positioning of a text element, which may have other text elements as children. 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,.
 

Class Documentation

◆ donner::svg::components::TextPositioningComponent

struct donner::svg::components::TextPositioningComponent

Defines the positioning of a text element, which may have other text elements as children.

Created on each "<text>" and "<tspan>" element.

Collaboration diagram for donner::svg::components::TextPositioningComponent:
[legend]
Class Members
SmallVector< Lengthd, 1 > dx Relative shift in x for each character. If empty, the property is not set.
SmallVector< Lengthd, 1 > dy Relative shift in y for each character. If empty, the property is not set.
SmallVector< double, 1 > rotateDegrees Rotation in degrees for each character. If empty, the property is not set.
SmallVector< Lengthd, 1 > x X coordinate for each character. If empty, the property is not set.
SmallVector< Lengthd, 1 > y Y coordinate for each character. If empty, the property is not set.