GetTabbedTextExtent function user32

int GetTabbedTextExtent(
  1. HDC hdc,
  2. PCWSTR lpString,
  3. int chCount,
  4. int nTabPositions,
  5. Pointer<Int32>? lpnTabStopPositions,
)

Computes the width and height of a character string.

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

Implementation

@pragma('vm:prefer-inline')
int GetTabbedTextExtent(
  HDC hdc,
  PCWSTR lpString,
  int chCount,
  int nTabPositions,
  Pointer<Int32>? lpnTabStopPositions,
) => _GetTabbedTextExtent(
  hdc,
  lpString,
  chCount,
  nTabPositions,
  lpnTabStopPositions ?? nullptr,
);