Chord function Null safety gdi32

int Chord(
  1. int hdc,
  2. int x1,
  3. int y1,
  4. int x2,
  5. int y2,
  6. int x3,
  7. int y3,
  8. int x4,
  9. int y4
)

The Chord function draws a chord (a region bounded by the intersection of an ellipse and a line segment, called a secant). The chord is outlined by using the current pen and filled by using the current brush.

BOOL Chord(
  HDC hdc,
  int x1,
  int y1,
  int x2,
  int y2,
  int x3,
  int y3,
  int x4,
  int y4
);

Implementation

int Chord(
    int hdc, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) {
  final _Chord = _gdi32.lookupFunction<
      Int32 Function(IntPtr hdc, Int32 x1, Int32 y1, Int32 x2, Int32 y2,
          Int32 x3, Int32 y3, Int32 x4, Int32 y4),
      int Function(int hdc, int x1, int y1, int x2, int y2, int x3, int y3,
          int x4, int y4)>('Chord');
  return _Chord(hdc, x1, y1, x2, y2, x3, y3, x4, y4);
}