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

Parameters for a "<radialGradient>" element. More...

#include "donner/svg/components/paint/RadialGradientComponent.h"

Public Member Functions

void inheritAttributes (EntityHandle handle, EntityHandle base)
 Create a ComputedRadialGradientComponent on the current entity, and inherit unset attributes from entity base.
 

Public Attributes

std::optional< Lengthdcx
 The x-coordinate of the gradient center. If not specified, defaults to 50%.
 
std::optional< Lengthdcy
 The y-coordinate of the gradient center. If not specified, defaults to 50%.
 
std::optional< Lengthdr
 The radius of the gradient. If not specified, defaults to 50%.
 
std::optional< Lengthdfx
 The x-coordinate of the gradient focus point. If not specified, defaults to cx.
 
std::optional< Lengthdfy
 The y-coordinate of the gradient focus point. If not specified, defaults to cy.
 
std::optional< Lengthdfr
 The radius of the gradient focus point. If not specified, defaults to 0%.
 

Detailed Description

Parameters for a "<radialGradient>" element.

Defines a circle ( cx, cy, r) and a focus circle ( fx, fy, fr) for the gradient.

Member Function Documentation

◆ inheritAttributes()

void donner::svg::components::RadialGradientComponent::inheritAttributes ( EntityHandle handle,
EntityHandle base )

Create a ComputedRadialGradientComponent on the current entity, and inherit unset attributes from entity base.

Parameters
handleCurrent entity to modify.
baseThe entity to inherit unset attributes from.

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