RoundRect function gdi32

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

Draws a rectangle with rounded corners.

The rectangle is outlined by using the current pen and filled by using the current brush.

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

Implementation

@pragma('vm:prefer-inline')
bool RoundRect(
  HDC hdc,
  int left,
  int top,
  int right,
  int bottom,
  int width,
  int height,
) => _RoundRect(hdc, left, top, right, bottom, width, height) != FALSE;