|
|
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.
|
Stores an offset/size for elements that are positioned with x/y/width/height attributes with respect to their parent. More...
#include "donner/svg/components/layout/SizedElementComponent.h"
Public Member Functions | |
| auto | allProperties () |
| Get all properties as a tuple. | |
Public Attributes | |
| Property< Lengthd > | x |
| The x-coordinate of the element, defaults to 0. | |
| Property< Lengthd > | y |
| The y-coordinate of the element, defaults to 0. | |
| Property< Lengthd > | width {"width", []() -> std::optional<Lengthd> { return std::nullopt; }} |
| The width of the element, defaults to none. | |
| Property< Lengthd > | height {"height", []() -> std::optional<Lengthd> { return std::nullopt; }} |
| The height of the element, defaults to none. | |
Stores an offset/size for elements that are positioned with x/y/width/height attributes with respect to their parent.
Used for <svg>, <image> and <foreignObject> by the standard, and also internally with <use> for Donner.
If not specified, x/y default to 0, and width/height are std::nullopt.
The x-coordinate of the element, defaults to 0.
The y-coordinate of the element, defaults to 0.