summaryrefslogtreecommitdiffstats
path: root/widget/src/lazy.rs
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2023-02-18 14:31:38 -0800
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-06-14 09:25:30 +0200
commit55dc3b5619392f4a20389255708c61082b3d4c1a (patch)
treec8b523def929a2e44be3535f5ae93ed494168ab7 /widget/src/lazy.rs
parent329fbc7b2157b84183849b2e0f600eb039435aed (diff)
downloadiced-55dc3b5619392f4a20389255708c61082b3d4c1a.tar.gz
iced-55dc3b5619392f4a20389255708c61082b3d4c1a.tar.bz2
iced-55dc3b5619392f4a20389255708c61082b3d4c1a.zip
Introduce internal `overlay::Nested` for `UserInterface`
Diffstat (limited to 'widget/src/lazy.rs')
-rw-r--r--widget/src/lazy.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/widget/src/lazy.rs b/widget/src/lazy.rs
index 92a611c3..89376136 100644
--- a/widget/src/lazy.rs
+++ b/widget/src/lazy.rs
@@ -377,9 +377,14 @@ where
.unwrap_or(event::Status::Ignored)
}
- fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool {
+ fn is_over(
+ &self,
+ layout: Layout<'_>,
+ renderer: &Renderer,
+ cursor_position: Point,
+ ) -> bool {
self.with_overlay_maybe(|overlay| {
- overlay.is_over(layout, cursor_position)
+ overlay.is_over(layout, renderer, cursor_position)
})
.unwrap_or_default()
}