Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
Gradient.h File Reference
#include "donner/css/Color.h"
Include dependency graph for Gradient.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::svg::GradientStop
 Values for a gradient stop, https://www.w3.org/TR/SVG2/pservers.html#StopElement. More...
 

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
 
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.
 

Enumerations

enum class  donner::svg::GradientUnits {
  donner::svg::UserSpaceOnUse ,
  donner::svg::ObjectBoundingBox ,
  donner::svg::Default = ObjectBoundingBox
}
 Values for the "gradientUnits" attribute, https://www.w3.org/TR/SVG2/pservers.html#LinearGradientElementGradientUnitsAttribute and https://www.w3.org/TR/SVG2/pservers.html#RadialGradientElementGradientUnitsAttribute. More...
 
enum class  donner::svg::GradientSpreadMethod {
  donner::svg::Pad ,
  donner::svg::Reflect ,
  donner::svg::Repeat ,
  donner::svg::Default = Pad
}
 Values for the gradient "spreadMethod" attribute, https://www.w3.org/TR/SVG2/pservers.html#LinearGradientElementSpreadMethodAttribute and https://www.w3.org/TR/SVG2/pservers.html#RadialGradientElementSpreadMethodAttribute. More...
 

Class Documentation

◆ donner::svg::GradientStop

struct donner::svg::GradientStop

Values for a gradient stop, https://www.w3.org/TR/SVG2/pservers.html#StopElement.

This is used on "<stop>" elements.

Collaboration diagram for donner::svg::GradientStop:
[legend]
Class Members
Color color {css::RGBA(0, 0, 0, 0xFF)} Color of the gradient stop.
float offset = 0.0 Offset of the gradient stop, in the range [0, 1].
float opacity = 1.0f Opacity of the gradient stop, in the range [0, 1].