smithay-clipboard/src/lib.rs

19 lines
544 B
Rust
Raw Normal View History

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.");
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;
pub use threaded::ThreadedClipboard;
pub use threaded::ThreadedClipboard as WaylandClipboard;