Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::StrokeDasharray Class Reference

The parsed result of the 'stroke-dasharray' property, see: https://www.w3.org/TR/SVG2/painting.html#StrokeDasharrayProperty. More...

#include "donner/svg/core/Stroke.h"

Inheritance diagram for donner::svg::StrokeDasharray:
[legend]
Collaboration diagram for donner::svg::StrokeDasharray:
[legend]

Friends

std::ostream & operator<< (std::ostream &os, const StrokeDasharray &value)
 Ostream output operator for StrokeDasharray enum, outputs the CSS value.
 

Detailed Description

The parsed result of the 'stroke-dasharray' property, see: https://www.w3.org/TR/SVG2/painting.html#StrokeDasharrayProperty.

This is a vector of lengths, where each length represents the length of a dash or gap in the stroke. The first length is the length of the first dash in the stroke, the second length is the length of the first gap, the third length is the length of the second dash, and so on.

If the number of lengths is odd, the list of lengths is repeated to yield an even number of lengths.


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