PtInRect function user32

bool PtInRect(
  1. Pointer<RECT> lprc,
  2. POINT pt
)

Determines whether the specified point lies within the specified rectangle.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-ptinrect.

Implementation

@pragma('vm:prefer-inline')
bool PtInRect(Pointer<RECT> lprc, POINT pt) => _PtInRect(lprc, pt) != FALSE;