Pie function Null safety gdi32

int Pie(
  1. int hdc,
  2. int left,
  3. int top,
  4. int right,
  5. int bottom,
  6. int xr1,
  7. int yr1,
  8. int xr2,
  9. int yr2
)

The Pie function draws a pie-shaped wedge bounded by the intersection of an ellipse and two radials. The pie is outlined by using the current pen and filled by using the current brush.

BOOL Pie(
  HDC hdc,
  int left,
  int top,
  int right,
  int bottom,
  int xr1,
  int yr1,
  int xr2,
  int yr2
);

Implementation

int Pie(int hdc, int left, int top, int right, int bottom, int xr1, int yr1,
    int xr2, int yr2) {
  final _Pie = _gdi32.lookupFunction<
      Int32 Function(IntPtr hdc, Int32 left, Int32 top, Int32 right,
          Int32 bottom, Int32 xr1, Int32 yr1, Int32 xr2, Int32 yr2),
      int Function(int hdc, int left, int top, int right, int bottom, int xr1,
          int yr1, int xr2, int yr2)>('Pie');
  return _Pie(hdc, left, top, right, bottom, xr1, yr1, xr2, yr2);
}