intersects

Function intersects 

Source
pub fn intersects(point: Vector2<f32>, layout: &Layout) -> bool
Expand 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!");
}