yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
image_clipboard_stub.cc
Go to the documentation of this file.
2
3namespace yaze::util {
4
5// SDL's clipboard is text-only; only macOS has an image bridge so far.
7 return false;
8}
9
10absl::Status SetClipboardPng(const std::vector<uint8_t>&, const std::string&) {
11 return absl::UnimplementedError("Image clipboard is only available on macOS");
12}
13
14absl::StatusOr<std::vector<uint8_t>> GetClipboardPng(const std::string&) {
15 return absl::UnimplementedError("Image clipboard is only available on macOS");
16}
17
18} // namespace yaze::util
PNG images on the system clipboard. SDL's clipboard is text-only.
absl::StatusOr< std::vector< uint8_t > > GetClipboardPng(const std::string &)
bool ImageClipboardSupported()
absl::Status SetClipboardPng(const std::vector< uint8_t > &, const std::string &)
Replaces the clipboard contents with one PNG image.