TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_sdl_clipboard.h File Reference
#include <gui_core/text/gui_clipboard.h>
#include <cstdint>
#include <span>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

class  tachyon::SDLClipboard
 The system clipboard, through SDL. More...

Namespaces

namespace  tachyon

Functions

std::vector< uint8_t > tachyon::EncodeClipboardImage (const ClipboardImage &image, std::string_view mimeType)
 An image as the bytes of a file of mimeType ("image/png" or "image/bmp"); empty when the image is, or the type is another.
ClipboardImage tachyon::DecodeClipboardImage (std::span< const uint8_t > bytes, std::string_view mimeType)
 The image in the bytes of a file of mimeType ("image/png" or "image/bmp"); an empty one when they can't be read.