summaryrefslogtreecommitdiffstats
path: root/native/src/widget/container.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-12 00:09:52 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-11-12 00:09:52 +0100
commit3f968b8c876b7c2351232856887fb9c3e3db3130 (patch)
tree0d8c04a09e2da877bb823bc039a57d4222fb1346 /native/src/widget/container.rs
parent1db11ba69a3183924a1f4cae91031f4c5051b6dc (diff)
downloadiced-3f968b8c876b7c2351232856887fb9c3e3db3130.tar.gz
iced-3f968b8c876b7c2351232856887fb9c3e3db3130.tar.bz2
iced-3f968b8c876b7c2351232856887fb9c3e3db3130.zip
Make `Widget::on_event` return an `event::Status`
Diffstat (limited to 'native/src/widget/container.rs')
-rw-r--r--native/src/widget/container.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs
index 5b04d699..419060db 100644
--- a/native/src/widget/container.rs
+++ b/native/src/widget/container.rs
@@ -1,9 +1,11 @@
//! Decorate content and apply alignment.
use std::hash::Hash;
+use crate::event::{self, Event};
+use crate::layout;
+use crate::overlay;
use crate::{
- layout, overlay, Align, Clipboard, Element, Event, Hasher, Layout, Length,
- Point, Rectangle, Widget,
+ Align, Clipboard, Element, Hasher, Layout, Length, Point, Rectangle, Widget,
};
use std::u32;
@@ -174,7 +176,7 @@ where
messages: &mut Vec<Message>,
renderer: &Renderer,
clipboard: Option<&dyn Clipboard>,
- ) {
+ ) -> event::Status {
self.content.widget.on_event(
event,
layout.children().next().unwrap(),