|
|
Donner
C++20 SVG rendering library
|
Parameters for a "<rect>" element. More...
#include "donner/svg/components/shape/RectComponent.h"
Public Member Functions | |
| auto | allProperties () |
| Get all properties as a tuple. | |
| std::tuple< Lengthd, double > | calculateRx (const Boxd &viewBox, const FontMetrics &fontMetrics) const |
| Calculate the actual value of rx in pixels, taking into account the viewBox and handling "auto". | |
| std::tuple< Lengthd, double > | calculateRy (const Boxd &viewBox, const FontMetrics &fontMetrics) const |
| Calculate the actual value of ry in pixels, taking into account the viewBox and handling "auto". | |
Public Attributes | |
| Property< Lengthd > | x |
| The x-coordinate of the rectangle, defaults to 0. | |
| Property< Lengthd > | y |
| The y-coordinate of the rectangle, defaults to 0. | |
| Property< Lengthd > | width |
| The width of the rectangle, defaults to 0. | |
| Property< Lengthd > | height |
| The height of the rectangle, defaults to 0. | |
| Property< Lengthd > | rx {"rx", []() -> std::optional<Lengthd> { return std::nullopt; }} |
| The corner radius of the rectangle, to enable creating rounded corners. Defaults to 0 (angled corners). | |
| Property< Lengthd > | ry {"ry", []() -> std::optional<Lengthd> { return std::nullopt; }} |
| The corner radius of the rectangle, to enable creating rounded corners. Defaults to 0 (angled corners). | |
Parameters for a "<rect>" element.
|
inline |
|
inline |
The height of the rectangle, defaults to 0.
The width of the rectangle, defaults to 0.
The x-coordinate of the rectangle, defaults to 0.
The y-coordinate of the rectangle, defaults to 0.