|
|
Donner
C++20 SVG rendering library
|
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 xml_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.