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