|
|
Donner
C++20 SVG rendering library
|
Parameters for a "<ellipse>" element. More...
#include "donner/svg/components/shape/EllipseComponent.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 > | cx |
| The center x-coordinate of the ellipse, defaults to 0. | |
| Property< Lengthd > | cy |
| The center y-coordinate of the ellipse, defaults to 0. | |
| Property< Lengthd > | rx {"rx", []() -> std::optional<Lengthd> { return std::nullopt; }} |
| The x-radius of the ellipse, defaults to 0. | |
| Property< Lengthd > | ry {"ry", []() -> std::optional<Lengthd> { return std::nullopt; }} |
| The y-radius of the ellipse, defaults to 0. | |
Parameters for a "<ellipse>" element.
|
inline |
|
inline |
The center x-coordinate of the ellipse, defaults to 0.
The center y-coordinate of the ellipse, defaults to 0.