summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winit/src/clipboard.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/winit/src/clipboard.rs b/winit/src/clipboard.rs
index 4739c603..1ff029ab 100644
--- a/winit/src/clipboard.rs
+++ b/winit/src/clipboard.rs
@@ -1,6 +1,12 @@
+/// A buffer for short-term storage and transfer within and between
+/// applications.
+#[allow(missing_debug_implementations)]
pub struct Clipboard(window_clipboard::Clipboard);
impl Clipboard {
+ /// Creates a new [`Clipboard`] for the given window.
+ ///
+ /// [`Clipboard`]: struct.Clipboard.html
pub fn new(window: &winit::window::Window) -> Option<Clipboard> {
window_clipboard::Clipboard::new(window).map(Clipboard).ok()
}