Donner SVG 0.8.0-pre
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::EditorSample Struct Reference

One built-in SVG document that can be loaded by editor UI surfaces. More...

#include "donner/editor/EditorSampleCatalog.h"

Public Attributes

std::string_view id
 Stable ASCII identifier used by UI state and commands.
std::string_view title
 Human-readable sample-picker label.
std::string_view source
 Complete SVG document source.

Detailed Description

One built-in SVG document that can be loaded by editor UI surfaces.

The catalog owns the backing strings for the process lifetime. Sources may be compiled assets or generated from them on first catalog access, so callers can retain a view for as long as the process is running.

Member Data Documentation

◆ id

std::string_view donner::editor::EditorSample::id

Stable ASCII identifier used by UI state and commands.

◆ source

std::string_view donner::editor::EditorSample::source

Complete SVG document source.

◆ title

std::string_view donner::editor::EditorSample::title

Human-readable sample-picker label.


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