diff options
author | 2023-07-15 10:04:25 -0700 | |
---|---|---|
committer | 2023-07-15 10:04:25 -0700 | |
commit | 42c423b4a89613c4e1c552c891c1391a34837122 (patch) | |
tree | cd724464d59619f63ea24a0476cb342b0eca4caa /examples/modal | |
parent | e462f48a5a0b5023c3ca52e23698f5e9b25d86dd (diff) | |
download | iced-42c423b4a89613c4e1c552c891c1391a34837122.tar.gz iced-42c423b4a89613c4e1c552c891c1391a34837122.tar.bz2 iced-42c423b4a89613c4e1c552c891c1391a34837122.zip |
Add viewport to Widget::on_event
Diffstat (limited to 'examples/modal')
-rw-r--r-- | examples/modal/src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs index 7fcbbfe4..8a48f830 100644 --- a/examples/modal/src/main.rs +++ b/examples/modal/src/main.rs @@ -300,6 +300,7 @@ mod modal { renderer: &Renderer, clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, + viewport: &Rectangle, ) -> event::Status { self.base.as_widget_mut().on_event( &mut state.children[0], @@ -309,6 +310,7 @@ mod modal { renderer, clipboard, shell, + viewport, ) } @@ -446,6 +448,7 @@ mod modal { renderer, clipboard, shell, + &layout.bounds(), ) } |