ExtCreatePen function gdi32

HPEN ExtCreatePen(
  1. PEN_STYLE iPenStyle,
  2. int cWidth,
  3. Pointer<LOGBRUSH> plbrush,
  4. int cStyle,
  5. Pointer<Uint32>? pstyle,
)

Creates a logical cosmetic or geometric pen that has the specified style, width, and brush attributes.

To learn more, see learn.microsoft.com/windows/win32/api/wingdi/nf-wingdi-extcreatepen.

Implementation

@pragma('vm:prefer-inline')
HPEN ExtCreatePen(
  PEN_STYLE iPenStyle,
  int cWidth,
  Pointer<LOGBRUSH> plbrush,
  int cStyle,
  Pointer<Uint32>? pstyle,
) => HPEN(_ExtCreatePen(iPenStyle, cWidth, plbrush, cStyle, pstyle ?? nullptr));