TCustomLayer.HitTest

function HitTest(X, Y: Integer): Boolean;

Description

Performs a hit test of the layer at specified point and returns True if the point have passed the test.

After performing default hit test, specific for particular type of a layer, this method also calls OnHitTest event, in case you need some run-time customization.

By default:

See Also

Using Layers, TBitmapLayer, TBitmapLayer.AlphaHit, TCustomLayer, OnHitTest, TPositionedLayer, TPositionedLayer.GetAdjustedLocation