This commit is contained in:
Lucas Timmins 2019-02-14 18:01:57 +08:00
parent a36d3e3e8e
commit 0ad92d3a0c
2 changed files with 7 additions and 9 deletions

View file

@ -1,6 +1,6 @@
# Contributing
Smithay Wayland Clipboard is open to contributions from anyone.
Smithay Clipboard is open to contributions from anyone.
## Smithay Project

View file

@ -1,16 +1,14 @@
//! Smithay Wayland Clipboard
//! Smithay Clipboard
//!
//! Provides access to the wayland clipboard with only requirement being a WlDisplay
//! object
//!
//! ```no_run
//! let (display, mut event_queue) =
//! Display::connect_to_env().expect("Failed to connect to the wayland server.");
//! let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded(
//! display.get_display_ptr() as *mut std::ffi::c_void,
//! );
//! clipboard.store("Test data");
//! println!(clipboard.load());
//! let (display, _) =
//! Display::connect_to_env().expect("Failed to connect to the wayland server.");
//! let mut clipboard = smithay_clipboard::WaylandClipboard::new_threaded(&display);
//! clipboard.store("seat0", "Test data");
//! println!("{}", clipboard.load("seat0"));
//! ```
#![warn(missing_docs)]