Instance Method
hitTest(_:tolerance:) hitTest:tolerance: hitTest_tolerance_
Whether the element can be selected at a point within a tolerance.
Declaration
func hitTest(_ aPoint: NSPoint, tolerance: CGFloat) -> BoolDeclaration
- (BOOL) hitTest:(NSPoint) aPoint tolerance:(CGFloat) tolerance;Declaration
hitTest_tolerance_(aPoint: NSPoint, tolerance: float) -> boolParameters
aPointThe point in layer coordinates.
toleranceThe maximum distance from the selectable geometry.
Discussion
Concrete subclasses define their selectable geometry.
See Also
Geometry
Applies an affine transform to the element geometry.
A handle rectangle centered on a point for an editor scale.