diff options
author | 2021-03-10 01:18:22 +0100 | |
---|---|---|
committer | 2021-03-10 01:18:22 +0100 | |
commit | 35425001edcb54d861a42ec6d23f9e57b37745fd (patch) | |
tree | 394f9115e33ed7dcaf1e98e718ef66bcb44f9d55 /native/src/clipboard.rs | |
parent | b22b0dd7ff56d433c459e0d14e14eb5472a6224d (diff) | |
download | iced-35425001edcb54d861a42ec6d23f9e57b37745fd.tar.gz iced-35425001edcb54d861a42ec6d23f9e57b37745fd.tar.bz2 iced-35425001edcb54d861a42ec6d23f9e57b37745fd.zip |
Introduce `write` method to `Clipboard` trait
Diffstat (limited to 'native/src/clipboard.rs')
-rw-r--r-- | native/src/clipboard.rs | 3 |
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); } |