diff options
author | 2023-01-17 17:20:53 -0800 | |
---|---|---|
committer | 2023-01-17 17:20:53 -0800 | |
commit | be860508a9deed1f4583e045790eb9ddd74d07d5 (patch) | |
tree | ecf67503db95d5812b6e423b6b993a470d410209 /examples/toast | |
parent | d470467718ecad0f37599a811bef846846dbb2b9 (diff) | |
download | iced-be860508a9deed1f4583e045790eb9ddd74d07d5.tar.gz iced-be860508a9deed1f4583e045790eb9ddd74d07d5.tar.bz2 iced-be860508a9deed1f4583e045790eb9ddd74d07d5.zip |
Rename method to is_over
Diffstat (limited to 'examples/toast')
-rw-r--r-- | examples/toast/src/main.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs index 11b55895..e74b3ee6 100644 --- a/examples/toast/src/main.rs +++ b/examples/toast/src/main.rs @@ -652,11 +652,7 @@ mod toast { .unwrap_or_default() } - fn contains_cursor( - &self, - layout: Layout<'_>, - cursor_position: Point, - ) -> bool { + fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool { layout .children() .any(|layout| layout.bounds().contains(cursor_position)) |