From be860508a9deed1f4583e045790eb9ddd74d07d5 Mon Sep 17 00:00:00 2001 From: Cory Forsstrom Date: Tue, 17 Jan 2023 17:20:53 -0800 Subject: Rename method to is_over --- examples/toast/src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'examples/toast/src/main.rs') 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)) -- cgit