Donner 0.5.1
Embeddable browser-grade SVG2 engine
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.