diff options
author | 2019-12-18 07:45:49 +0100 | |
---|---|---|
committer | 2019-12-18 07:45:49 +0100 | |
commit | a14b39555e5c480422c24df7d708dd1addd0a67b (patch) | |
tree | 00404b80c27f715d3739f14d882e88241d68f0c1 /native/src/widget.rs | |
parent | 0f2e20f5e5b1f0658ab4e6cbe6fdda9ca97f2b36 (diff) | |
download | iced-a14b39555e5c480422c24df7d708dd1addd0a67b.tar.gz iced-a14b39555e5c480422c24df7d708dd1addd0a67b.tar.bz2 iced-a14b39555e5c480422c24df7d708dd1addd0a67b.zip |
Allow clipboard access in `Widget::on_event`
Diffstat (limited to 'native/src/widget.rs')
-rw-r--r-- | native/src/widget.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/native/src/widget.rs b/native/src/widget.rs index ee7232cb..26889280 100644 --- a/native/src/widget.rs +++ b/native/src/widget.rs @@ -24,12 +24,12 @@ pub mod button; pub mod checkbox; pub mod column; pub mod container; -pub mod svg; pub mod image; pub mod radio; pub mod row; pub mod scrollable; pub mod slider; +pub mod svg; pub mod text; pub mod text_input; @@ -58,7 +58,7 @@ pub use text::Text; #[doc(no_inline)] pub use text_input::TextInput; -use crate::{layout, Event, Hasher, Layout, Length, Point}; +use crate::{layout, Clipboard, Event, Hasher, Layout, Length, Point}; /// A component that displays information and allows interaction. /// @@ -142,6 +142,7 @@ where _cursor_position: Point, _messages: &mut Vec<Message>, _renderer: &Renderer, + _clipboard: Option<&dyn Clipboard>, ) { } } |