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

Immutable origin list with a shared document-family lifetime charge. More...

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

Public Member Functions

 TextDecorationData (const TextDecorationData &)=delete
TextDecorationData & operator= (const TextDecorationData &)=delete
std::span< const TextDecorationOrigin > origins () const
 Borrow immutable declarations for this object's lifetime.
std::shared_ptr< DocumentResourceFamilyBudget > family () const
 Shared accounting owner for independently retained snapshot copies.

Static Public Member Functions

static std::shared_ptr< const TextDecorationData > Create (std::shared_ptr< DocumentResourceFamilyBudget > family, std::span< const TextDecorationOrigin > origins)
 Reserve before allocation and copy an origin list; return null on refusal.

Static Public Attributes

static constexpr std::size_t kMaximumOrigins = 64
 Bound per-span ancestry storage and stack-based copies used during snapshot remapping.

Detailed Description

Immutable origin list with a shared document-family lifetime charge.

Member Function Documentation

◆ Create()

std::shared_ptr< const TextDecorationData > donner::svg::components::TextDecorationData::Create ( std::shared_ptr< DocumentResourceFamilyBudget > family,
std::span< const TextDecorationOrigin > origins )
inlinestatic

Reserve before allocation and copy an origin list; return null on refusal.

Parameters
familyShared document-family memory owner.
originsOrigin declarations to retain.

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