TextOut function Null safety gdi32

int TextOut (
  1. int hdc,
  2. int x,
  3. int y,
  4. Pointer<Utf16> lpString,
  5. int c
)

The TextOut function writes a character string at the specified location, using the currently selected font, background color, and text color.

BOOL TextOutW(
  HDC     hdc,
  int     x,
  int     y,
  LPCWSTR lpString,
  int     c
);

Implementation

int TextOut(int hdc, int x, int y, Pointer<Utf16> lpString, int c) {
  final _TextOut = _gdi32.lookupFunction<
      Int32 Function(
          IntPtr hdc, Int32 x, Int32 y, Pointer<Utf16> lpString, Int32 c),
      int Function(
          int hdc, int x, int y, Pointer<Utf16> lpString, int c)>('TextOutW');
  return _TextOut(hdc, x, y, lpString, c);
}