Instance Method
hitTest(_:in:tolerance:) hitTest:inLayer:tolerance: hitTest_inLayer_tolerance_
Whether a point is within a given distance of the guide.
Declaration
func hitTest(_ aPoint: NSPoint, in layer: GSLayer, tolerance: CGFloat) -> BoolDeclaration
- (BOOL) hitTest:(NSPoint) aPoint inLayer:(GSLayer *) layer tolerance:(CGFloat) tolerance;Declaration
hitTest_inLayer_tolerance_(aPoint: NSPoint, layer: GSLayer, tolerance: float) -> boolParameters
aPointThe point to test.
layerThe layer in whose coordinate system the point is expressed.
toleranceThe maximum distance in font units.
Discussion
The distance is measured from the boundary of the guide in font units. For a line guide, the layer width determines the endpoints used for the test.
See Also
Interaction
A transient handle for rotating the guide.