Allow clipboard access in Widget::on_event
This commit is contained in:
parent
0f2e20f5e5
commit
a14b39555e
20 changed files with 89 additions and 26 deletions
8
native/src/clipboard.rs
Normal file
8
native/src/clipboard.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/// A buffer for short-term storage and transfer within and between
|
||||
/// applications.
|
||||
pub trait Clipboard {
|
||||
/// Returns the current content of the [`Clipboard`] as text.
|
||||
///
|
||||
/// [`Clipboard`]: trait.Clipboard.html
|
||||
fn content(&self) -> Option<String>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue