Skip to main content

assert_rect_contains_point

Function assert_rect_contains_point 

Source
pub fn assert_rect_contains_point(rect: Rect, x: f32, y: f32, msg: &str)
Expand description

Assert that a rectangle contains a point.

Useful for verifying that a click coordinate falls within an element.