Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::editor::PreparePasteResult Struct Reference

Result of preparing a paste. More...

#include "donner/editor/ShapeClipboardCommands.h"

Public Attributes

bool ok = false
 Whether the paste can be applied. When false, error describes why and mergedSource is empty - the caller must not mutate the document.
std::string error
 Human-readable failure reason for the user when ok is false.
std::string mergedSource
 Full merged SVG document source to reparse when ok is true.
std::vector< std::string > pastedElementIds
 Ids of the pasted top-level elements (after id repair), in paint order. The caller selects these after the reparse. Always populated when ok.

Detailed Description

Result of preparing a paste.

Member Data Documentation

◆ error

std::string donner::editor::PreparePasteResult::error

Human-readable failure reason for the user when ok is false.

◆ mergedSource

std::string donner::editor::PreparePasteResult::mergedSource

Full merged SVG document source to reparse when ok is true.

◆ ok

bool donner::editor::PreparePasteResult::ok = false

Whether the paste can be applied. When false, error describes why and mergedSource is empty - the caller must not mutate the document.

◆ pastedElementIds

std::vector<std::string> donner::editor::PreparePasteResult::pastedElementIds

Ids of the pasted top-level elements (after id repair), in paint order. The caller selects these after the reparse. Always populated when ok.


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