Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::svg::PaintOrder Struct Reference

CSS paint-order property value: the order in which the fill, stroke, and markers of a shape/text are painted. More...

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

Public Member Functions

bool operator== (const PaintOrder &other) const =default
 Equality operator.

Public Attributes

std::array< PaintComponent, 3 > order
 The painting order. Always a permutation of {Fill, Stroke, Markers}.

Detailed Description

CSS paint-order property value: the order in which the fill, stroke, and markers of a shape/text are painted.

Per the spec, fewer than three keywords fills the remainder in the canonical order (fill, stroke, markers), and normal is equivalent to fill stroke markers.

See also
https://www.w3.org/TR/SVG2/painting.html#PaintOrder

Member Data Documentation

◆ order

std::array<PaintComponent, 3> donner::svg::PaintOrder::order
Initial value:
@ Stroke
The stroke of a shape or glyph.
Definition PaintOrder.h:20
@ Markers
The markers drawn along a shape's vertices.
Definition PaintOrder.h:21
@ Fill
The fill of a shape or glyph.
Definition PaintOrder.h:19

The painting order. Always a permutation of {Fill, Stroke, Markers}.


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