TextOut function Null safety gdi32
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);
}