yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
image_clipboard.h File Reference

PNG images on the system clipboard. SDL's clipboard is text-only. More...

#include <cstdint>
#include <string>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::util
 

Functions

bool yaze::util::ImageClipboardSupported ()
 
absl::Status yaze::util::SetClipboardPng (const std::vector< uint8_t > &png, const std::string &pasteboard="")
 Replaces the clipboard contents with one PNG image.
 
absl::StatusOr< std::vector< uint8_t > > yaze::util::GetClipboardPng (const std::string &)
 

Detailed Description

PNG images on the system clipboard. SDL's clipboard is text-only.

Implemented with NSPasteboard on macOS (app/platform/image_clipboard.mm); other platforms return Unimplemented (app/platform/image_clipboard_stub.cc). pasteboard names a private pasteboard, which tests use so they never touch the user's clipboard; empty means the system clipboard.

Definition in file image_clipboard.h.