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
InMemoryClipboard.h File Reference

Header-only in-memory implementation of ClipboardInterface. Stores a single std::string in the object - no OS / ImGui interaction. More...

#include <string>
#include <string_view>
#include <utility>
#include "donner/editor/ClipboardInterface.h"
Include dependency graph for InMemoryClipboard.h:

Classes

class  donner::editor::InMemoryClipboard
 In-memory ClipboardInterface backed by a single std::string member. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Detailed Description

Header-only in-memory implementation of ClipboardInterface. Stores a single std::string in the object - no OS / ImGui interaction.

Useful in two places:

  • Headless unit tests for TextEditorCore (the usual consumer).
  • Non-ImGui hosts that want the same copy/cut/paste semantics without pulling in an ImGui dependency.

Lives in the main donner/editor/ directory (not tests/) so that production headless contexts can link against it.