From a14b39555e5c480422c24df7d708dd1addd0a67b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 18 Dec 2019 07:45:49 +0100 Subject: Allow clipboard access in `Widget::on_event` --- native/src/widget.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'native/src/widget.rs') 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, _renderer: &Renderer, + _clipboard: Option<&dyn Clipboard>, ) { } } -- cgit