diff options
author | 2019-12-18 07:45:49 +0100 | |
---|---|---|
committer | 2019-12-18 07:45:49 +0100 | |
commit | a14b39555e5c480422c24df7d708dd1addd0a67b (patch) | |
tree | 00404b80c27f715d3739f14d882e88241d68f0c1 /native/src/clipboard.rs | |
parent | 0f2e20f5e5b1f0658ab4e6cbe6fdda9ca97f2b36 (diff) | |
download | iced-a14b39555e5c480422c24df7d708dd1addd0a67b.tar.gz iced-a14b39555e5c480422c24df7d708dd1addd0a67b.tar.bz2 iced-a14b39555e5c480422c24df7d708dd1addd0a67b.zip |
Allow clipboard access in `Widget::on_event`
Diffstat (limited to 'native/src/clipboard.rs')
-rw-r--r-- | native/src/clipboard.rs | 8 |
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>; +} |