GetStockObject function Null safety gdi32

int GetStockObject(
  1. int i
)

The GetStockObject function retrieves a handle to one of the stock pens, brushes, fonts, or palettes.

HGDIOBJ GetStockObject(
  int i
);

Implementation

int GetStockObject(int i) {
  final _GetStockObject =
      _gdi32.lookupFunction<IntPtr Function(Uint32 i), int Function(int i)>(
          'GetStockObject');
  return _GetStockObject(i);
}