Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::TextDecorationOrigin Struct Reference

One originating text-decoration declaration, independent of descendant declarations. More...

#include "donner/svg/components/text/ComputedTextComponent.h"

Public Member Functions

bool usesPreparedFill (const ResolvedPaintServer &prepared) const
 Whether prepared paint names this origin's resource in the same coordinate context.

Public Attributes

TextDecoration lines = TextDecoration::None
 Lines contributed by this origin.
ResolvedPaintServer fill = PaintServer::None()
 Origin's resolved fill.
ResolvedPaintServer stroke = PaintServer::None()
 Origin's resolved stroke.
double fillOpacity = 1.0
 Origin's fill opacity.
double strokeOpacity = 1.0
 Origin's stroke opacity.
std::optional< ResolvedTextFont > font
 Origin's resolved face and used size.
std::shared_ptr< const SnapshotFontPayload > snapshotFont
 Snapshot-owned font bytes.
double strokeWidth = 0.0
 Origin's resolved SVG stroke width.
PaintOrder paintOrder
 Origin's paint-order, which orders the decoration's fill/stroke.
TextDecorationStyle style = TextDecorationStyle::Solid
 Declaring element's line style.
TextDecorationThickness thickness
 Explicit dimensions are resolved to pixels.

Detailed Description

One originating text-decoration declaration, independent of descendant declarations.

Member Function Documentation

◆ usesPreparedFill()

bool donner::svg::components::TextDecorationOrigin::usesPreparedFill ( const ResolvedPaintServer & prepared) const
inline

Whether prepared paint names this origin's resource in the same coordinate context.

Parameters
preparedPaint whose backend resource is available for reuse.

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