summaryrefslogtreecommitdiffstats
path: root/native/src/clipboard.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-12-19 17:43:25 +0100
committerLibravatar GitHub <noreply@github.com>2019-12-19 17:43:25 +0100
commit773a23630be538372d5dd1a609d654a1289be389 (patch)
treea53a42d424ce36dd26c24a5a03140458013956ad /native/src/clipboard.rs
parent9cf61fb82cb715ab0af15343be258b2b227d85f4 (diff)
parent8c8c5bb7665c1ac50d2ad355b06f1ea02dc5b4c2 (diff)
downloadiced-773a23630be538372d5dd1a609d654a1289be389.tar.gz
iced-773a23630be538372d5dd1a609d654a1289be389.tar.bz2
iced-773a23630be538372d5dd1a609d654a1289be389.zip
Merge pull request #132 from hecrj/feature/read-clipboard
Clipboard access
Diffstat (limited to 'native/src/clipboard.rs')
-rw-r--r--native/src/clipboard.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/native/src/clipboard.rs b/native/src/clipboard.rs
new file mode 100644
index 00000000..4c574590
--- /dev/null
+++ b/native/src/clipboard.rs
@@ -0,0 +1,8 @@
+/// A buffer for short-term storage and transfer within and between
+/// applications.
+pub trait Clipboard {
+ /// Returns the current content of the [`Clipboard`] as text.
+ ///
+ /// [`Clipboard`]: trait.Clipboard.html
+ fn content(&self) -> Option<String>;
+}