Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
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"

Collaboration diagram for donner::svg::PaintOrder:
[legend]

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: