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
|
|
|
|
|
//!
|
|
|
|
|
//! ```no_run
|
2019-02-14 18:01:57 +08:00
|
|
|
//! let (display, _) =
|
|
|
|
|
//! Display::connect_to_env().expect("Failed to connect to the wayland server.");
|
|
|
|
|
//! let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded(&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;
|
|
|
|
|
pub use threaded::ThreadedClipboard;
|
|
|
|
|
pub use threaded::ThreadedClipboard as WaylandClipboard;
|