|
|
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.
|
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. | |
Result of preparing a paste.
| std::string donner::editor::PreparePasteResult::error |
Human-readable failure reason for the user when ok is false.
| std::string donner::editor::PreparePasteResult::mergedSource |
Full merged SVG document source to reparse when ok is true.
| 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.
| 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.