diff options
author | 2023-02-18 14:31:38 -0800 | |
---|---|---|
committer | 2023-06-14 09:25:30 +0200 | |
commit | 55dc3b5619392f4a20389255708c61082b3d4c1a (patch) | |
tree | c8b523def929a2e44be3535f5ae93ed494168ab7 /examples/toast | |
parent | 329fbc7b2157b84183849b2e0f600eb039435aed (diff) | |
download | iced-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.rs | 7 |
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)) |