Fix docs
This commit is contained in:
parent
a36d3e3e8e
commit
0ad92d3a0c
2 changed files with 7 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Contributing
|
||||
|
||||
Smithay Wayland Clipboard is open to contributions from anyone.
|
||||
Smithay Clipboard is open to contributions from anyone.
|
||||
|
||||
## Smithay Project
|
||||
|
||||
|
|
|
|||
14
src/lib.rs
14
src/lib.rs
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue