Module hit_test

Source

Structsยง

WidgetHits
Result of a hit-test against WidgetRects.

Functionsยง

contains_circle ๐Ÿ”’
Returns true if the rectangle contains the whole circle.
find_closest ๐Ÿ”’
find_closest_within ๐Ÿ”’
hit_test
Find the top or closest widgets to the given position, none which is closer than search_radius.
hit_test_on_close ๐Ÿ”’
should_prioritize_hits_on_back ๐Ÿ”’
Should we prioritize hits on back over those on front?