RectInRegion function Null safety gdi32

int RectInRegion(
  1. int hrgn,
  2. Pointer<RECT> lprect
)

The RectInRegion function determines whether any part of the specified rectangle is within the boundaries of a region.

BOOL RectInRegion(
  HRGN       hrgn,
  const RECT *lprect
);

Implementation

int RectInRegion(int hrgn, Pointer<RECT> lprect) {
  final _RectInRegion = _gdi32.lookupFunction<
      Int32 Function(IntPtr hrgn, Pointer<RECT> lprect),
      int Function(int hrgn, Pointer<RECT> lprect)>('RectInRegion');
  return _RectInRegion(hrgn, lprect);
}