|
TachyonUI 1.1.0
High-performance UI for building tools.
|
The clipboard text editors copy to and paste from, and images go through; GUIApplication::SetClipboard sets one (default: SDL's, or LocalClipboard without SDL). More...
#include <gui_core/text/gui_clipboard.h>
Public Member Functions | |
| virtual | ~IClipboard ()=default |
| virtual std::string | Get () const =0 |
| The clipboard's text, UTF-8; empty when it holds none. | |
| virtual void | Set (std::string_view text)=0 |
| Puts UTF-8 text on the clipboard. | |
| virtual bool | HasImage () const |
| Whether the clipboard holds an image. A clipboard without images says no. | |
| virtual ClipboardImage | GetImage () const |
| The clipboard's image; an empty one when it holds none, or it can't be read. | |
| virtual bool | SetImage (const ClipboardImage &image) |
| Puts an image on the clipboard. | |
The clipboard text editors copy to and paste from, and images go through; GUIApplication::SetClipboard sets one (default: SDL's, or LocalClipboard without SDL).
The clipboard holds one thing: setting text drops an image, and the other way round.
|
virtualdefault |
|
pure virtual |
The clipboard's text, UTF-8; empty when it holds none.
Implemented in tachyon::LocalClipboard, and tachyon::SDLClipboard.
|
pure virtual |
Puts UTF-8 text on the clipboard.
Implemented in tachyon::LocalClipboard, and tachyon::SDLClipboard.
|
inlinevirtual |
Whether the clipboard holds an image. A clipboard without images says no.
Reimplemented in tachyon::LocalClipboard, and tachyon::SDLClipboard.
|
inlinevirtual |
The clipboard's image; an empty one when it holds none, or it can't be read.
Reimplemented in tachyon::LocalClipboard, and tachyon::SDLClipboard.
|
inlinevirtual |
Puts an image on the clipboard.
False when it's empty, or this clipboard can't hold images; the clipboard then stays as it was.
Reimplemented in tachyon::LocalClipboard, and tachyon::SDLClipboard.