From 9b30316b9a2baa2ce92f29d49f455e5bcff502bf Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 1 Feb 2024 00:08:18 -0500 Subject: [PATCH] Add clipboard.cc for linux (unimplemented) --- src/CMakeLists.txt | 1 + src/app/core/platform/clipboard.cc | 5 +++++ src/app/core/platform/clipboard.h | 11 ++--------- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 src/app/core/platform/clipboard.cc diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ed03957d..edbbc0b1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -80,6 +80,7 @@ endif() if (WIN32 OR MINGW OR UNIX) list(APPEND YAZE_APP_CORE_SRC app/core/platform/font_loader.cc + app/core/platform/clipboard.cc ) endif() diff --git a/src/app/core/platform/clipboard.cc b/src/app/core/platform/clipboard.cc new file mode 100644 index 00000000..2c4adaf5 --- /dev/null +++ b/src/app/core/platform/clipboard.cc @@ -0,0 +1,5 @@ +#include "app/core/platform/clipboard.h" + +void CopyImageToClipboard(const std::vector& data) {} +void GetImageFromClipboard(std::vector& data, int& width, + int& height) {} \ No newline at end of file diff --git a/src/app/core/platform/clipboard.h b/src/app/core/platform/clipboard.h index a50a01c3..a98c703d 100644 --- a/src/app/core/platform/clipboard.h +++ b/src/app/core/platform/clipboard.h @@ -17,15 +17,8 @@ void GetImageFromClipboard(std::vector& data, int& width, int& height); #include -void CopyImageToClipboard(const std::vector& data) { - std::cout << "CopyImageToClipboard() is not implemented on Linux." - << std::endl; -} -void GetImageFromClipboard(std::vector& data, int& width, - int& height) { - std::cout << "GetImageFromClipboard() is not implemented on Linux." - << std::endl; -} +void CopyImageToClipboard(const std::vector& data); +void GetImageFromClipboard(std::vector& data, int& width, int& height); #endif