summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
Diffstat (limited to 'native')
-rw-r--r--native/src/clipboard.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/native/src/clipboard.rs b/native/src/clipboard.rs
index 3eeb184d..fdb769da 100644
--- a/native/src/clipboard.rs
+++ b/native/src/clipboard.rs
@@ -3,4 +3,7 @@
pub trait Clipboard {
/// Reads the current content of the [`Clipboard`] as text.
fn read(&self) -> Option<String>;
+
+ /// Writes the given text contents to the [`Clipboard`].
+ fn write(&mut self, contents: String);
}