diff options
author | 2022-01-11 14:12:28 +0700 | |
---|---|---|
committer | 2022-01-11 14:12:28 +0700 | |
commit | 810e086728e938d1d12758c7b486c1e371127349 (patch) | |
tree | a598aab256c113bf7e21ba198d22a965ad554c03 /native/src/widget/container.rs | |
parent | 6ab4611a6eec9c4bb4ca1ff1bb580bb7edf49add (diff) | |
download | iced-810e086728e938d1d12758c7b486c1e371127349.tar.gz iced-810e086728e938d1d12758c7b486c1e371127349.tar.bz2 iced-810e086728e938d1d12758c7b486c1e371127349.zip |
Introduce `Renderer` argument to `mouse_interaction` and `on_event`
Diffstat (limited to 'native/src/widget/container.rs')
-rw-r--r-- | native/src/widget/container.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs index 0c291788..4444732a 100644 --- a/native/src/widget/container.rs +++ b/native/src/widget/container.rs @@ -184,11 +184,13 @@ where layout: Layout<'_>, cursor_position: Point, viewport: &Rectangle, + renderer: &Renderer, ) -> mouse::Interaction { self.content.widget.mouse_interaction( layout.children().next().unwrap(), cursor_position, viewport, + renderer, ) } @@ -235,8 +237,10 @@ where fn overlay( &mut self, layout: Layout<'_>, + renderer: &Renderer, ) -> Option<overlay::Element<'_, Message, Renderer>> { - self.content.overlay(layout.children().next().unwrap()) + self.content + .overlay(layout.children().next().unwrap(), renderer) } } |