Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::components::CircleProperties Struct Reference

Properties for a "<circle>" element. More...

#include "donner/svg/components/shape/CircleComponent.h"

Collaboration diagram for donner::svg::components::CircleProperties:
[legend]

Public Member Functions

auto allProperties ()
 Get all properties as a tuple.
 

Public Attributes

Property< Lengthdcx
 The center x-coordinate of the circle, defaults to 0.
 
Property< Lengthdcy
 The center y-coordinate of the circle, defaults to 0.
 
Property< Lengthdr
 The radius of the circle, defaults to 0.
 

Detailed Description

Properties for a "<circle>" element.

Member Data Documentation

◆ cx

Property<Lengthd> donner::svg::components::CircleProperties::cx
Initial value:
{"cx",
[]() -> std::optional<Lengthd> { return Lengthd(0, Lengthd::Unit::None); }}
Length< double > Lengthd
Shorthand for Length<double>.
Definition Length.h:222

The center x-coordinate of the circle, defaults to 0.

◆ cy

Property<Lengthd> donner::svg::components::CircleProperties::cy
Initial value:
{"cy",
[]() -> std::optional<Lengthd> { return Lengthd(0, Lengthd::Unit::None); }}

The center y-coordinate of the circle, defaults to 0.

◆ r

Property<Lengthd> donner::svg::components::CircleProperties::r
Initial value:
{"r",
[]() -> std::optional<Lengthd> { return Lengthd(0, Lengthd::Unit::None); }}

The radius of the circle, defaults to 0.


The documentation for this struct was generated from the following file: