TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::SDLClipboard Class Reference

The system clipboard, through SDL. More...

#include <gui_core/windows/sdl/gui_sdl_clipboard.h>

Inheritance diagram for tachyon::SDLClipboard:

Public Member Functions

std::string Get () const override
 The clipboard's text, UTF-8; empty when it holds none.
void Set (std::string_view text) override
 Puts UTF-8 text on the clipboard.
bool HasImage () const override
 Whether the clipboard holds an image. A clipboard without images says no.
ClipboardImage GetImage () const override
 The clipboard's image; an empty one when it holds none, or it can't be read.
bool SetImage (const ClipboardImage &image) override
 Puts an image on the clipboard.
Public Member Functions inherited from tachyon::IClipboard
virtual ~IClipboard ()=default

Detailed Description

The system clipboard, through SDL.

Images go as PNG and BMP: another application takes the one it reads (on Windows, BMP is the system's own image format).

Member Function Documentation

◆ Get()

std::string tachyon::SDLClipboard::Get ( ) const
overridevirtual

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

Implements tachyon::IClipboard.

◆ Set()

void tachyon::SDLClipboard::Set ( std::string_view text)
overridevirtual

Puts UTF-8 text on the clipboard.

Implements tachyon::IClipboard.

◆ HasImage()

bool tachyon::SDLClipboard::HasImage ( ) const
overridevirtual

Whether the clipboard holds an image. A clipboard without images says no.

Reimplemented from tachyon::IClipboard.

◆ GetImage()

ClipboardImage tachyon::SDLClipboard::GetImage ( ) const
overridevirtual

The clipboard's image; an empty one when it holds none, or it can't be read.

Reimplemented from tachyon::IClipboard.

◆ SetImage()

bool tachyon::SDLClipboard::SetImage ( const ClipboardImage & image)
overridevirtual

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 from tachyon::IClipboard.


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