Instance Method
layerIndexForGlyphSelection(at:)layerIndexForGlyphSelectionAtPoint:layerIndexForGlyphSelectionAtPoint_
Converts the given graphical position to a layer index, preferring a layer whose drawn outline contains the point.
Declaration
func layerIndexForGlyphSelection(at point: NSPoint) -> UIntDeclaration
- (NSUInteger) layerIndexForGlyphSelectionAtPoint:(NSPoint) point;Declaration
layerIndexForGlyphSelectionAtPoint_(point: NSPoint) -> intParameters
pointThe 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.