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"
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 &) |
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.