Parameters for a <ellipse> element.
More...
#include "donner/svg/components/shape/EllipseComponent.h"
|
|
auto | allProperties () |
| | Get all properties as a tuple.
|
| std::tuple< Lengthd, double > | calculateRx (const Box2d &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 Box2d &viewBox, const FontMetrics &fontMetrics) const |
| | Calculate the actual value of ry in pixels, taking into account the viewBox and handling "auto".
|
|
| 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.
◆ calculateRx()
| std::tuple< Lengthd, double > donner::svg::components::EllipseProperties::calculateRx |
( |
const Box2d & | viewBox, |
|
|
const FontMetrics & | fontMetrics ) const |
|
inline |
Calculate the actual value of rx in pixels, taking into account the viewBox and handling "auto".
- Parameters
-
| viewBox | The viewBox of the SVG document. |
| fontMetrics | The font metrics of the SVG document. |
- Returns
- The actual value of rx in pixels.
◆ calculateRy()
| std::tuple< Lengthd, double > donner::svg::components::EllipseProperties::calculateRy |
( |
const Box2d & | viewBox, |
|
|
const FontMetrics & | fontMetrics ) const |
|
inline |
Calculate the actual value of ry in pixels, taking into account the viewBox and handling "auto".
- Parameters
-
| viewBox | The viewBox of the SVG document. |
| fontMetrics | The font metrics of the SVG document. |
- Returns
- The actual value of ry in pixels.
◆ cx
Initial value:{"cx",
[]() -> std::optional<Lengthd> {
return Lengthd(0, Lengthd::Unit::None); }}
Length< double > Lengthd
Shorthand for Length<double>.
Definition Length.h:279
The center x-coordinate of the ellipse, defaults to 0.
◆ cy
Initial value:{"cy",
[]() -> std::optional<Lengthd> {
return Lengthd(0, Lengthd::Unit::None); }}
The center y-coordinate of the ellipse, defaults to 0.
The documentation for this struct was generated from the following file: