# `GSElement getHandleRect:scale:`

*Instance Method*

A handle rectangle centered on a point for an editor scale.

## Declaration

```swift
func getHandleRect(at pt: NSPoint, scale: CGFloat) -> NSRect
```

```objc
- (NSRect) getHandleRect:(NSPoint) pt scale:(CGFloat) scale;
```

```python
getHandleRect_scale_(pt: NSPoint, scale: float) -> NSRect
```

## Parameters

- `pt` — The center of the handle in layer coordinates.
- `scale` — The editor scale used to size the handle.

## See Also

### Geometry

- [`GSElement transform:`](/Core/GlyphsCore/GSElement/transform:) — Applies an affine transform to the element geometry.
- [`GSElement hitTest:tolerance:`](/Core/GlyphsCore/GSElement/hitTest:tolerance:) — Whether the element can be selected at a point within a tolerance.

