# `GSPath bounds`

*Instance Method*

The bounds of the path.

## Declaration

```swift
func bounds() -> NSRect
```

```objc
- (NSRect) bounds;
```

[See also `bounds` in the Python API](https://docu.glyphsapp.com/#GSPath.bounds)

```python
pyobjc_instanceMethods.bounds() -> NSRect
```

## Discussion

For curve segments, the bounds enclose the curve and may exclude control points outside the curve.

Returns `CGRectNull` when the path has no drawable bounds.

## See Also

### Geometry

- [`GSPath fastBounds`](/Core/GlyphsCore/GSPath/fastBounds) — The bounds of the path nodes.
- [`GSPath area`](/Core/GlyphsCore/GSPath/area) — The unsigned area enclosed by the path.
- [`GSPath length`](/Core/GlyphsCore/GSPath/length) — The length of all path segments.
- [`GSPath enclosesPath:`](/Core/GlyphsCore/GSPath/enclosesPath:) — Whether the path encloses another path.
- [`GSPath intersectionsWithLineFrom:to:`](/Core/GlyphsCore/GSPath/intersectionsWithLineFrom:to:) — Intersections between the path and a line segment.

