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

Computed properties for a "<linearGradient>" element. More...

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

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

Public Member Functions

void inheritAttributes (EntityHandle handle, EntityHandle base)
 Inherit unset attributes from entity base.
 

Public Attributes

Lengthd x1 = Lengthd(0, Lengthd::Unit::Percent)
 The x-coordinate of the gradient start point, defaults to 0%.
 
Lengthd y1 = Lengthd(0, Lengthd::Unit::Percent)
 The y-coordinate of the gradient start point, defaults to 0%.
 
Lengthd x2 = Lengthd(100, Lengthd::Unit::Percent)
 The x-coordinate of the gradient end point, defaults to 100%.
 
Lengthd y2 = Lengthd(0, Lengthd::Unit::Percent)
 The y-coordinate of the gradient end point, defaults to 0%.
 

Detailed Description

Computed properties for a "<linearGradient>" element.

This is used to store the resolved properties, replacing unset values with defaults and inheriting from parent elements.

Member Function Documentation

◆ inheritAttributes()

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

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: