RoundRect function Null safety gdi32

int RoundRect (
  1. int hdc,
  2. int left,
  3. int top,
  4. int right,
  5. int bottom,
  6. int width,
  7. int height
)

The RoundRect function draws a rectangle with rounded corners. The rectangle is outlined by using the current pen and filled by using the current brush.

BOOL RoundRect(
  HDC hdc,
  int left,
  int top,
  int right,
  int bottom,
  int width,
  int height
);

Implementation

int RoundRect(
    int hdc, int left, int top, int right, int bottom, int width, int height) {
  final _RoundRect = _gdi32.lookupFunction<
      Int32 Function(IntPtr hdc, Int32 left, Int32 top, Int32 right,
          Int32 bottom, Int32 width, Int32 height),
      int Function(int hdc, int left, int top, int right, int bottom, int width,
          int height)>('RoundRect');
  return _RoundRect(hdc, left, top, right, bottom, width, height);
}