LineTo function Null safety gdi32

int LineTo (
  1. int hdc,
  2. int x,
  3. int y
)

The LineTo function draws a line from the current position up to, but not including, the specified point.

BOOL LineTo(
  HDC hdc,
  int x,
  int y
);

Implementation

int LineTo(int hdc, int x, int y) {
  final _LineTo = _gdi32.lookupFunction<
      Int32 Function(IntPtr hdc, Int32 x, Int32 y),
      int Function(int hdc, int x, int y)>('LineTo');
  return _LineTo(hdc, x, y);
}