From 2b70a08e1403c8e2c8e2cce2996e3c9f9f556238 Mon Sep 17 00:00:00 2001 From: Taylor Holliday Date: Tue, 21 Feb 2023 17:09:17 -0800 Subject: [PATCH] Add stubs for copy_to_clipboard. --- src/clipboard.rs | 1 - src/win/window.rs | 4 ++++ src/x11/window.rs | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/clipboard.rs b/src/clipboard.rs index baad5f0..05ed9e2 100644 --- a/src/clipboard.rs +++ b/src/clipboard.rs @@ -5,7 +5,6 @@ use crate::win as platform; #[cfg(target_os = "linux")] use crate::x11 as platform; -#[cfg(target_os = "macos")] pub fn copy_to_clipboard(data: String) { platform::copy_to_clipboard(data) } diff --git a/src/win/window.rs b/src/win/window.rs index 83ff6d2..f725d58 100644 --- a/src/win/window.rs +++ b/src/win/window.rs @@ -763,3 +763,7 @@ unsafe impl HasRawWindowHandle for Window<'_> { RawWindowHandle::Win32(handle) } } + +pub fn copy_to_clipboard(data: String) { + todo!() +} diff --git a/src/x11/window.rs b/src/x11/window.rs index 8056f90..d45cbbf 100644 --- a/src/x11/window.rs +++ b/src/x11/window.rs @@ -704,3 +704,7 @@ fn mouse_id(id: u8) -> MouseButton { id => MouseButton::Other(id), } } + +pub fn copy_to_clipboard(data: String) { + todo!() +}