Expand description
Convenience utilities for testing whether a cursor/point falls inside a component or a rectangle. Functions operate using Px units and simple inclusive comparisons on edges.
Functionsยง
- is_
position_ in_ component - Returns true if
position
is inside a component of the givensize
. The component is assumed to be located at the origin (0, 0). - is_
position_ in_ rect - Returns true when
position
lies within the rectangle defined byrect_pos
,rect_width
andrect_height
(inclusive).