pub fn intersects(point: Vector2<f32>, layout: &Layout) -> boolExpand description
Checks if the given point intersects the given layout.
This can be used to check if the cursor is hovering on a widget.
Example:
if let Some(cursor) = info.cursor_pos && layout::intersects(cursor, &layout) {
println!("Hovering on widget!");
}