Rename method to is_over
This commit is contained in:
parent
d470467718
commit
be860508a9
5 changed files with 13 additions and 37 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue