2019-02-14 18:01:57 +08:00
|
|
|
//! Smithay Clipboard
|
2019-02-10 01:28:53 +08:00
|
|
|
//!
|
|
|
|
|
//! Provides access to the wayland clipboard with only requirement being a WlDisplay
|
|
|
|
|
//! object
|
|
|
|
|
//!
|
2019-06-12 23:19:39 +00:00
|
|
|
//! ```norun
|
2019-02-14 18:01:57 +08:00
|
|
|
//! let (display, _) =
|
|
|
|
|
//! Display::connect_to_env().expect("Failed to connect to the wayland server.");
|
2019-06-06 14:33:20 +08:00
|
|
|
//! let mut clipboard = smithay_clipboard::WaylandClipboard::new(&display);
|
2019-04-27 19:01:41 +08:00
|
|
|
//! clipboard.store(None, "Test data");
|
|
|
|
|
//! println!("{}", clipboard.load(None));
|
2019-02-10 01:28:53 +08:00
|
|
|
//! ```
|
|
|
|
|
|
|
|
|
|
#![warn(missing_docs)]
|
|
|
|
|
|
2019-06-06 13:33:10 +08:00
|
|
|
mod threaded;
|
2019-06-06 16:07:49 +08:00
|
|
|
pub use crate::threaded::ThreadedClipboard;
|
|
|
|
|
pub use crate::threaded::ThreadedClipboard as WaylandClipboard;
|