CreateEllipticRgn function Null safety gdi32

int CreateEllipticRgn(
  1. int x1,
  2. int y1,
  3. int x2,
  4. int y2
)

The CreateEllipticRgn function creates an elliptical region.

HRGN CreateEllipticRgn(
  int x1,
  int y1,
  int x2,
  int y2
);

Implementation

int CreateEllipticRgn(int x1, int y1, int x2, int y2) {
  final _CreateEllipticRgn = _gdi32.lookupFunction<
      IntPtr Function(Int32 x1, Int32 y1, Int32 x2, Int32 y2),
      int Function(int x1, int y1, int x2, int y2)>('CreateEllipticRgn');
  return _CreateEllipticRgn(x1, y1, x2, y2);
}