Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
SymbolComponent.h File Reference
Include dependency graph for SymbolComponent.h:

Classes

struct  donner::svg::components::SymbolComponent
 Stores unique parameters for the <symbol> element. 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::SymbolComponent

struct donner::svg::components::SymbolComponent

Stores unique parameters for the <symbol> element.

refX and refY provide a reference point (if needed) when the symbol is instantiated by a <use> element. Per SVG2 they accept a <length> (including percentages, which resolve against the symbol's viewBox at layout time) or a keyword that maps to a percentage: refX left/center/right → 0%/50%/100%, refY top/center/bottom → 0%/50%/100%.

Class Members
SizedElementProperties properties The properties of the sized element, x, y, width, height.
Lengthd refX The reference x coordinate. Defaults to 0 (no unit).
Lengthd refY The reference y coordinate. Defaults to 0 (no unit).