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

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

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

Public Member Functions

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

Public Attributes

std::optional< Lengthdx1
 The x-coordinate of the gradient start point. If not specified, defaults to 0%.
 
std::optional< Lengthdy1
 The y-coordinate of the gradient start point. If not specified, defaults to 0%.
 
std::optional< Lengthdx2
 The x-coordinate of the gradient end point. If not specified, defaults to 100%.
 
std::optional< Lengthdy2
 The y-coordinate of the gradient end point. If not specified, defaults to 0%.
 

Detailed Description

Parameters for a "<linearGradient>" element.

Member Function Documentation

◆ inheritAttributes()

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

Create a ComputedLinearGradientComponent 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: