SetRect function Null safety user32

int SetRect (
  1. Pointer<RECT> lprc,
  2. int xLeft,
  3. int yTop,
  4. int xRight,
  5. int yBottom
)

The SetRect function sets the coordinates of the specified rectangle. This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the RECT structure.

BOOL SetRect(
  LPRECT lprc,
  int    xLeft,
  int    yTop,
  int    xRight,
  int    yBottom
);

Implementation

int SetRect(Pointer<RECT> lprc, int xLeft, int yTop, int xRight, int yBottom) {
  final _SetRect = _user32.lookupFunction<
      Int32 Function(Pointer<RECT> lprc, Int32 xLeft, Int32 yTop, Int32 xRight,
          Int32 yBottom),
      int Function(Pointer<RECT> lprc, int xLeft, int yTop, int xRight,
          int yBottom)>('SetRect');
  return _SetRect(lprc, xLeft, yTop, xRight, yBottom);
}