|
|
Donner
C++20 SVG rendering library
|
Parameters for a "<polygon>" or "<polyline>" element. More...
#include "donner/svg/components/shape/PolyComponent.h"
Public Types | |
| enum class | Type { Polygon , Polyline } |
| Polygon type, either a closed polygon or a polyline (list of line segments). More... | |
Public Member Functions | |
| PolyComponent (Type type) | |
| Constructor, creates a polygon or polyline. | |
Public Attributes | |
| Type | type |
| The type of polygon, either a closed polygon or a polyline (list of line segments). | |
| std::vector< Vector2d > | points |
| The points of the polygon. | |
Parameters for a "<polygon>" or "<polyline>" element.
The difference between a "<polygon>" and a "<polyline>" is that a polygon is a closed shape, and draws the closing line segment to connect the first and last points. A polyline is a open shape, and does not draw the closing line segment.
|
strong |
Polygon type, either a closed polygon or a polyline (list of line segments).
| Enumerator | |
|---|---|
| Polygon | "<polygon>" closed shape |
| Polyline | "<polyline>" list of line segments |
|
inlineexplicit |
Constructor, creates a polygon or polyline.
| type | The type of polygon to create. |