# `GSGlyphEditView layerIndexForGlyphSelectionAtPoint:`

*Instance Method*

Converts the given graphical position to a layer index, preferring a layer whose drawn outline contains the point.

## Declaration

```swift
func layerIndexForGlyphSelection(at point: NSPoint) -> UInt
```

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

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

## Parameters

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

## Return Value

The index of the layer whose outline contains the point, or whose bounding box contains it when no outline is hit.

