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

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

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

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

Public Member Functions

auto allProperties ()
 Get all properties as a tuple.
 

Public Attributes

float offset = 0.0f
 The offset of the stop, defaults to 0. Range is [0, 1], if it is outside the range it will be clamped.
 
Property< css::ColorstopColor
 The color of the stop, defaults to black.
 
Property< double > stopOpacity {"stop-opacity", []() -> std::optional<double> { return 1.0; }}
 The opacity of the stop, defaults to 1. Range is [0, 1], if it is outside the range it will be clamped.
 

Detailed Description

Parameters for a "<stop>" element.

Member Data Documentation

◆ stopColor

Property<css::Color> donner::svg::components::StopProperties::stopColor
Initial value:
{"stop-color", []() -> std::optional<css::Color> {
return css::Color(css::RGBA(0, 0, 0, 0xFF));
}}

The color of the stop, defaults to black.


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