summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-09-02 15:12:55 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-09-02 15:12:55 +0700
commit7a335a0408b3ee426949a1936255666bc3383ea9 (patch)
tree01894e388d1629c181446c6f41b2204906726841 /src
parent6887afdb2c71429fa032d68f2ee3a4a075ecca1d (diff)
downloadiced-7a335a0408b3ee426949a1936255666bc3383ea9.tar.gz
iced-7a335a0408b3ee426949a1936255666bc3383ea9.tar.bz2
iced-7a335a0408b3ee426949a1936255666bc3383ea9.zip
Implement and expose `read` and `write` helpers for `clipboard`
Diffstat (limited to 'src')
-rw-r--r--src/clipboard.rs3
-rw-r--r--src/lib.rs1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/clipboard.rs b/src/clipboard.rs
new file mode 100644
index 00000000..dde17051
--- /dev/null
+++ b/src/clipboard.rs
@@ -0,0 +1,3 @@
+//! Access the clipboard.
+#[cfg(not(target_arch = "wasm32"))]
+pub use crate::runtime::clipboard::{read, write};
diff --git a/src/lib.rs b/src/lib.rs
index 8bf4d0e0..e4f00c07 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -183,6 +183,7 @@ mod error;
mod result;
mod sandbox;
+pub mod clipboard;
pub mod executor;
pub mod keyboard;
pub mod mouse;