UnionRect function Null safety user32

int UnionRect(
  1. Pointer<RECT> lprcDst,
  2. Pointer<RECT> lprcSrc1,
  3. Pointer<RECT> lprcSrc2
)

The UnionRect function creates the union of two rectangles. The union is the smallest rectangle that contains both source rectangles.

BOOL UnionRect(
  LPRECT     lprcDst,
  const RECT *lprcSrc1,
  const RECT *lprcSrc2
);

Implementation

int UnionRect(
    Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1, Pointer<RECT> lprcSrc2) {
  final _UnionRect = _user32.lookupFunction<
      Int32 Function(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1,
          Pointer<RECT> lprcSrc2),
      int Function(Pointer<RECT> lprcDst, Pointer<RECT> lprcSrc1,
          Pointer<RECT> lprcSrc2)>('UnionRect');
  return _UnionRect(lprcDst, lprcSrc1, lprcSrc2);
}