diff options
author | 2020-11-12 00:09:52 +0100 | |
---|---|---|
committer | 2020-11-12 00:09:52 +0100 | |
commit | 3f968b8c876b7c2351232856887fb9c3e3db3130 (patch) | |
tree | 0d8c04a09e2da877bb823bc039a57d4222fb1346 /native/src/widget.rs | |
parent | 1db11ba69a3183924a1f4cae91031f4c5051b6dc (diff) | |
download | iced-3f968b8c876b7c2351232856887fb9c3e3db3130.tar.gz iced-3f968b8c876b7c2351232856887fb9c3e3db3130.tar.bz2 iced-3f968b8c876b7c2351232856887fb9c3e3db3130.zip |
Make `Widget::on_event` return an `event::Status`
Diffstat (limited to 'native/src/widget.rs')
-rw-r--r-- | native/src/widget.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/native/src/widget.rs b/native/src/widget.rs index 8687ce6f..d3ffe9c2 100644 --- a/native/src/widget.rs +++ b/native/src/widget.rs @@ -73,9 +73,10 @@ pub use text::Text; #[doc(no_inline)] pub use text_input::TextInput; -use crate::{ - layout, overlay, Clipboard, Event, Hasher, Layout, Length, Point, Rectangle, -}; +use crate::event::{self, Event}; +use crate::layout; +use crate::overlay; +use crate::{Clipboard, Hasher, Layout, Length, Point, Rectangle}; /// A component that displays information and allows interaction. /// @@ -182,7 +183,8 @@ where _messages: &mut Vec<Message>, _renderer: &Renderer, _clipboard: Option<&dyn Clipboard>, - ) { + ) -> event::Status { + event::Status::Ignored } /// Returns the overlay of the [`Element`], if there is any. |