ExtTextOut function Null safety gdi32

int ExtTextOut (
  1. int hdc,
  2. int x,
  3. int y,
  4. int options,
  5. Pointer<RECT> lprect,
  6. Pointer<Utf16> lpString,
  7. int c,
  8. Pointer<Int32> lpDx
)

The ExtTextOut function draws text using the currently selected font, background color, and text color. You can optionally provide dimensions to be used for clipping, opaquing, or both.

BOOL ExtTextOutW(
  HDC        hdc,
  int        x,
  int        y,
  UINT       options,
  const RECT *lprect,
  LPCWSTR    lpString,
  UINT       c,
  const INT  *lpDx
);

Implementation

int ExtTextOut(int hdc, int x, int y, int options, Pointer<RECT> lprect,
    Pointer<Utf16> lpString, int c, Pointer<Int32> lpDx) {
  final _ExtTextOut = _gdi32.lookupFunction<
      Int32 Function(
          IntPtr hdc,
          Int32 x,
          Int32 y,
          Uint32 options,
          Pointer<RECT> lprect,
          Pointer<Utf16> lpString,
          Uint32 c,
          Pointer<Int32> lpDx),
      int Function(int hdc, int x, int y, int options, Pointer<RECT> lprect,
          Pointer<Utf16> lpString, int c, Pointer<Int32> lpDx)>('ExtTextOutW');
  return _ExtTextOut(hdc, x, y, options, lprect, lpString, c, lpDx);
}