summaryrefslogtreecommitdiffstats
path: root/native/src/overlay.rs
diff options
context:
space:
mode:
authorLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2023-01-17 17:20:53 -0800
committerLibravatar Cory Forsstrom <cforsstrom18@gmail.com>2023-01-17 17:20:53 -0800
commitbe860508a9deed1f4583e045790eb9ddd74d07d5 (patch)
treeecf67503db95d5812b6e423b6b993a470d410209 /native/src/overlay.rs
parentd470467718ecad0f37599a811bef846846dbb2b9 (diff)
downloadiced-be860508a9deed1f4583e045790eb9ddd74d07d5.tar.gz
iced-be860508a9deed1f4583e045790eb9ddd74d07d5.tar.bz2
iced-be860508a9deed1f4583e045790eb9ddd74d07d5.zip
Rename method to is_over
Diffstat (limited to 'native/src/overlay.rs')
-rw-r--r--native/src/overlay.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/native/src/overlay.rs b/native/src/overlay.rs
index 16d8bb31..1c3d0fb9 100644
--- a/native/src/overlay.rs
+++ b/native/src/overlay.rs
@@ -90,12 +90,8 @@ where
mouse::Interaction::Idle
}
- /// Whether the [`Overlay`] contains the cursor
- fn contains_cursor(
- &self,
- layout: Layout<'_>,
- cursor_position: Point,
- ) -> bool {
+ /// Returns true if the cursor is over the [`Overlay`]
+ fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool {
layout.bounds().contains(cursor_position)
}
}