Upravit

Sdílet prostřednictvím


CALayer.HitTest(CGPoint) Method

Definition

The furthest descendant in this layer's hierarchy that contains the point p.

[Foundation.Export("hitTest:")]
public virtual CoreAnimation.CALayer HitTest (CoreGraphics.CGPoint p);
abstract member HitTest : CoreGraphics.CGPoint -> CoreAnimation.CALayer
override this.HitTest : CoreGraphics.CGPoint -> CoreAnimation.CALayer

Parameters

p
CGPoint

A point, in the coordinate system of this layer's SuperLayer.

Returns

The layer (possible this) that contains the point p or null if p lies outside the Bounds rectangle of this.

Attributes

Applies to