SetViewportOrgEx function Null safety gdi32

int SetViewportOrgEx (
  1. int hdc,
  2. int x,
  3. int y,
  4. Pointer<POINT> lppt
)

The SetViewportOrgEx function specifies which device point maps to the window origin (0,0).

BOOL SetViewportOrgEx(
  HDC     hdc,
  int     x,
  int     y,
  LPPOINT lppt
);

Implementation

int SetViewportOrgEx(int hdc, int x, int y, Pointer<POINT> lppt) {
  final _SetViewportOrgEx = _gdi32.lookupFunction<
      Int32 Function(IntPtr hdc, Int32 x, Int32 y, Pointer<POINT> lppt),
      int Function(
          int hdc, int x, int y, Pointer<POINT> lppt)>('SetViewportOrgEx');
  return _SetViewportOrgEx(hdc, x, y, lppt);
}