TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::IClipboard Class Referenceabstract

The clipboard text editors copy to and paste from; GUIApplication::SetClipboard sets one (default: SDL's, or LocalClipboard without SDL). More...

#include <gui_core/text/gui_clipboard.h>

Inheritance diagram for tachyon::IClipboard:

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.

Detailed Description

The clipboard text editors copy to and paste from; GUIApplication::SetClipboard sets one (default: SDL's, or LocalClipboard without SDL).

Constructor & Destructor Documentation

◆ ~IClipboard()

virtual tachyon::IClipboard::~IClipboard ( )
virtualdefault

Member Function Documentation

◆ Get()

virtual std::string tachyon::IClipboard::Get ( ) const
pure virtual

The clipboard's text, UTF-8; empty when it holds none.

Implemented in tachyon::LocalClipboard, and tachyon::SDLClipboard.

◆ Set()

virtual void tachyon::IClipboard::Set ( std::string_view text)
pure virtual

Puts UTF-8 text on the clipboard.

Implemented in tachyon::LocalClipboard, and tachyon::SDLClipboard.


The documentation for this class was generated from the following file: