|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
In-memory ClipboardInterface backed by a single std::string member. More...
#include "donner/editor/InMemoryClipboard.h"
Public Member Functions | |
| InMemoryClipboard (const InMemoryClipboard &)=delete | |
| InMemoryClipboard & | operator= (const InMemoryClipboard &)=delete |
| InMemoryClipboard (InMemoryClipboard &&)=delete | |
| InMemoryClipboard & | operator= (InMemoryClipboard &&)=delete |
| std::string | getText () const override |
| Returns the current clipboard contents, or an empty string if the clipboard is empty / unavailable. | |
| void | setText (std::string_view text) override |
Replaces the clipboard contents with text. | |
| bool | hasText () const override |
| Returns true if the clipboard currently contains non-empty text. | |
In-memory ClipboardInterface backed by a single std::string member.
Copying from one InMemoryClipboard and pasting into another does not share state — each instance owns its own buffer.
|
inlinenodiscardoverridevirtual |
Returns the current clipboard contents, or an empty string if the clipboard is empty / unavailable.
Implements donner::editor::ClipboardInterface.
|
inlinenodiscardoverridevirtual |
Returns true if the clipboard currently contains non-empty text.
Implements donner::editor::ClipboardInterface.
|
inlineoverridevirtual |
Replaces the clipboard contents with text.
Implements donner::editor::ClipboardInterface.