Rename iced_native to iced_runtime
This commit is contained in:
parent
8af69be47e
commit
99e0a71504
39 changed files with 87 additions and 97 deletions
|
|
@ -1,6 +1,4 @@
|
|||
//! Access the clipboard.
|
||||
use crate::native::clipboard::Action;
|
||||
use crate::native::command::{self, Command};
|
||||
|
||||
/// A buffer for short-term storage and transfer within and between
|
||||
/// applications.
|
||||
|
|
@ -64,15 +62,3 @@ impl crate::core::Clipboard for Clipboard {
|
|||
self.write(contents)
|
||||
}
|
||||
}
|
||||
|
||||
/// Read the current contents of the clipboard.
|
||||
pub fn read<Message>(
|
||||
f: impl Fn(Option<String>) -> Message + 'static,
|
||||
) -> Command<Message> {
|
||||
Command::single(command::Action::Clipboard(Action::Read(Box::new(f))))
|
||||
}
|
||||
|
||||
/// Write the given contents to the clipboard.
|
||||
pub fn write<Message>(contents: String) -> Command<Message> {
|
||||
Command::single(command::Action::Clipboard(Action::Write(contents)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue