summaryrefslogtreecommitdiffstats
path: root/examples/toast
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 /examples/toast
parent329fbc7b2157b84183849b2e0f600eb039435aed (diff)
downloadiced-55dc3b5619392f4a20389255708c61082b3d4c1a.tar.gz
iced-55dc3b5619392f4a20389255708c61082b3d4c1a.tar.bz2
iced-55dc3b5619392f4a20389255708c61082b3d4c1a.zip
Introduce internal `overlay::Nested` for `UserInterface`
Diffstat (limited to 'examples/toast')
-rw-r--r--examples/toast/src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs
index 395cbc10..4282ddcf 100644
--- a/examples/toast/src/main.rs
+++ b/examples/toast/src/main.rs
@@ -650,7 +650,12 @@ mod toast {
.unwrap_or_default()
}
- fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool {
+ fn is_over(
+ &self,
+ layout: Layout<'_>,
+ _renderer: &Renderer,
+ cursor_position: Point,
+ ) -> bool {
layout
.children()
.any(|layout| layout.bounds().contains(cursor_position))