CreateHatchBrush function Null safety gdi32

int CreateHatchBrush(
  1. int iHatch,
  2. int color
)

The CreateHatchBrush function creates a logical brush that has the specified hatch pattern and color.

HBRUSH CreateHatchBrush(
  int      iHatch,
  COLORREF color
);

Implementation

int CreateHatchBrush(int iHatch, int color) {
  final _CreateHatchBrush = _gdi32.lookupFunction<
      IntPtr Function(Uint32 iHatch, Uint32 color),
      int Function(int iHatch, int color)>('CreateHatchBrush');
  return _CreateHatchBrush(iHatch, color);
}