DrawTextEx function user32

int DrawTextEx(
  1. HDC hdc,
  2. PWSTR lpchText,
  3. int cchText,
  4. Pointer<RECT> lprc,
  5. DRAW_TEXT_FORMAT format,
  6. Pointer<DRAWTEXTPARAMS>? lpdtp,
)

Draws formatted text in the specified rectangle.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-drawtextexw.

Implementation

@pragma('vm:prefer-inline')
int DrawTextEx(
  HDC hdc,
  PWSTR lpchText,
  int cchText,
  Pointer<RECT> lprc,
  DRAW_TEXT_FORMAT format,
  Pointer<DRAWTEXTPARAMS>? lpdtp,
) => _DrawTextEx(hdc, lpchText, cchText, lprc, format, lpdtp ?? nullptr);