|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
Three-method interface for clipboard access. More...
#include "donner/editor/ClipboardInterface.h"
Public Member Functions | |
| virtual std::string | getText () const =0 |
| Returns the current clipboard contents, or an empty string if the clipboard is empty / unavailable. | |
| virtual void | setText (std::string_view text)=0 |
Replaces the clipboard contents with text. | |
| virtual bool | hasText () const =0 |
| Returns true if the clipboard currently contains non-empty text. | |
Three-method interface for clipboard access.
Production uses ImGuiClipboard (backed by ImGui::GetClipboardText / SetClipboardText). Tests use InMemoryClipboard.
|
nodiscardpure virtual |
Returns the current clipboard contents, or an empty string if the clipboard is empty / unavailable.
Implemented in donner::editor::ImGuiClipboard, and donner::editor::InMemoryClipboard.
|
nodiscardpure virtual |
Returns true if the clipboard currently contains non-empty text.
Implemented in donner::editor::ImGuiClipboard, and donner::editor::InMemoryClipboard.
|
pure virtual |
Replaces the clipboard contents with text.
Implemented in donner::editor::ImGuiClipboard, and donner::editor::InMemoryClipboard.