GrayString function user32

bool GrayString(
  1. HDC hDC,
  2. HBRUSH? hBrush,
  3. Pointer<NativeFunction<GRAYSTRINGPROC>>? lpOutputFunc,
  4. LPARAM lpData,
  5. int nCount,
  6. int x,
  7. int y,
  8. int nWidth,
  9. int nHeight,
)

Draws gray text at the specified location.

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

Implementation

@pragma('vm:prefer-inline')
bool GrayString(
  HDC hDC,
  HBRUSH? hBrush,
  Pointer<NativeFunction<GRAYSTRINGPROC>>? lpOutputFunc,
  LPARAM lpData,
  int nCount,
  int x,
  int y,
  int nWidth,
  int nHeight,
) =>
    _GrayString(
      hDC,
      hBrush ?? nullptr,
      lpOutputFunc ?? nullptr,
      lpData,
      nCount,
      x,
      y,
      nWidth,
      nHeight,
    ) !=
    FALSE;