# `OACGAddRoundedRect`

*Function*

## Declaration

```swift
func OACGAddRoundedRect(_ context: CGContext!, _ rect: NSRect, _ topLeft: CGFloat, _ topRight: CGFloat, _ bottomLeft: CGFloat, _ bottomRight: CGFloat)
```

```objc
void OACGAddRoundedRect(CGContextRef context, NSRect rect, CGFloat topLeft, CGFloat topRight, CGFloat bottomLeft, CGFloat bottomRight);
```

```python
OACGAddRoundedRect(context: CGContextRef, rect: NSRect, topLeft: float, topRight: float, bottomLeft: float, bottomRight: float)
```

## See Also

### Paths and Curves

- [`GSBezierFromSVGPath`](/Core/GlyphsCore/GSBezierFromSVGPath)
- [`GSIntersectCubicCubicSegmentsOperations`](/Core/GlyphsCore/GSIntersectCubicCubicSegmentsOperations)
- [`GSIntersectQuadraticQuadraticSegmentsOperations`](/Core/GlyphsCore/GSIntersectQuadraticQuadraticSegmentsOperations)
- [`GSPointIsNull`](/Core/GlyphsCore/GSPointIsNull)

