diff options
author | 2020-07-28 18:07:46 +0300 | |
---|---|---|
committer | 2021-02-15 19:37:46 +0300 | |
commit | a19f89d3a6af2804f2ac4e30f6d639b56a9bebfd (patch) | |
tree | 313320abe39ade1214723521b6a5aff56ad2edef /native/src/widget/column.rs | |
parent | 4de164dcc7bc3524c8b20f9c734bc1a4ae4c83bc (diff) | |
download | iced-a19f89d3a6af2804f2ac4e30f6d639b56a9bebfd.tar.gz iced-a19f89d3a6af2804f2ac4e30f6d639b56a9bebfd.tar.bz2 iced-a19f89d3a6af2804f2ac4e30f6d639b56a9bebfd.zip |
feat(native): add Tooltip widget
Diffstat (limited to 'native/src/widget/column.rs')
-rw-r--r-- | native/src/widget/column.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/native/src/widget/column.rs b/native/src/widget/column.rs index e0e88d31..9ee60627 100644 --- a/native/src/widget/column.rs +++ b/native/src/widget/column.rs @@ -198,11 +198,19 @@ where fn overlay( &mut self, layout: Layout<'_>, + overlay_content_bounds: Option<Rectangle>, + cursor_position: Point, ) -> Option<overlay::Element<'_, Message, Renderer>> { self.children .iter_mut() .zip(layout.children()) - .filter_map(|(child, layout)| child.widget.overlay(layout)) + .filter_map(|(child, layout)| { + child.widget.overlay( + layout, + overlay_content_bounds, + cursor_position, + ) + }) .next() } } |