Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::svg::components::ComputedPathComponent Struct Reference

Stores a PathSpline used for rendering a shape, which may be generated from the parameters of shapes such as circle, rect, line, poly, and path. More...

#include "donner/svg/components/shape/ComputedPathComponent.h"

Collaboration diagram for donner::svg::components::ComputedPathComponent:
[legend]

Public Member Functions

Boxd bounds ()
 Returns the bounds of the shape. May calculate the bounds on-demand if they have not been previously computed.
 

Public Attributes

PathSpline spline
 PathSpline used for rendering the shape.
 
std::optional< BoxdcachedBounds
 Cached box of the shape, if it was previously computed. If not, this can be calculated using the PathSpline::bounds() method.
 

Detailed Description

Stores a PathSpline used for rendering a shape, which may be generated from the parameters of shapes such as circle, rect, line, poly, and path.

All shapes create computed paths, and these paths can be rendered using a unified rendering pipeline.


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