feat(native): add Tooltip widget
This commit is contained in:
parent
4de164dcc7
commit
a19f89d3a6
23 changed files with 580 additions and 18 deletions
|
|
@ -558,11 +558,15 @@ where
|
|||
fn overlay(
|
||||
&mut self,
|
||||
layout: Layout<'_>,
|
||||
overlay_content_bounds: Option<Rectangle>,
|
||||
cursor_position: Point,
|
||||
) -> Option<overlay::Element<'_, Message, Renderer>> {
|
||||
self.elements
|
||||
.iter_mut()
|
||||
.zip(layout.children())
|
||||
.filter_map(|((_, pane), layout)| pane.overlay(layout))
|
||||
.filter_map(|((_, pane), layout)| {
|
||||
pane.overlay(layout, overlay_content_bounds, cursor_position)
|
||||
})
|
||||
.next()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue