Skip to content

Commit

Permalink
Add stubs for copy_to_clipboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Feb 22, 2023
1 parent 9b1c378 commit 2b70a08
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
4 changes: 4 additions & 0 deletions src/win/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,3 +763,7 @@ unsafe impl HasRawWindowHandle for Window<'_> {
RawWindowHandle::Win32(handle)
}
}

pub fn copy_to_clipboard(data: String) {
todo!()
}
4 changes: 4 additions & 0 deletions src/x11/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,3 +704,7 @@ fn mouse_id(id: u8) -> MouseButton {
id => MouseButton::Other(id),
}
}

pub fn copy_to_clipboard(data: String) {
todo!()
}

0 comments on commit 2b70a08

Please sign in to comment.