Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::svg::components::CircleProperties Struct Reference

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

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

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:277

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: