# `GSGlyphEditView layerIndexForPoint:`

*Instance Method*

Converts the given graphical position to a layer index.

## Declaration

```swift
func layerIndex(for point: NSPoint) -> UInt
```

```objc
- (NSUInteger) layerIndexForPoint:(NSPoint) point;
```

```python
layerIndexForPoint_(point: NSPoint) -> int
```

## Parameters

- `point` — The graphical position to check, in view coordinates.

## Return Value

The index of the layer whose bounding box contains the point.

