MonobjcMonobjc Documented Class Library
HitTest Method (thePoint)
NamespacesMonobjc.QuartzCoreCALayerHitTest(CGPoint)

Returns the farthest descendant of the receiver in the layer hierarchy (including itself) that contains a specified point.

Original signature is '- (CALayer *)hitTest:(CGPoint)thePoint'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual CALayer HitTest(
	CGPoint thePoint
)
Public Overridable Function HitTest ( _
	thePoint As CGPoint _
) As CALayer
public:
virtual CALayer^ HitTest(
	CGPoint thePoint
)
Parameters
thePoint (CGPoint)
A point in the coordinate system of the receiver's superlayer.
Return Value
The layer that contains thePoint, or nil if the point lies outside the receiver’s bounds rectangle.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)