iced-yoda/native/src/clipboard.rs

10 lines
317 B
Rust
Raw Normal View History

/// A buffer for short-term storage and transfer within and between
/// applications.
pub trait Clipboard {
2021-03-10 01:16:26 +01:00
/// Reads the current content of the [`Clipboard`] as text.
fn read(&self) -> Option<String>;
/// Writes the given text contents to the [`Clipboard`].
fn write(&mut self, contents: String);
}