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
positionis 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
positionlies within the rectangle defined byrect_pos,rect_widthandrect_height(inclusive).