Home | GR32_Layers | TCustomLayer |
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:
- TCustomLayer always passes the hit test;
- TPositionedLayer passes only the points lying inside the rectangle, returned by GetAdjustedLocation;
- Depending on the AlphaHit property, TBitmapLayer is capable of passing only coordinates corresponding to non-transparent pixels.
See Also
TBitmapLayer.AlphaHit, TPositionedLayer.GetAdjustedLocation, OnHitTest, TBitmapLayer, TCustomLayer, TPositionedLayer, Using Layers
Copyright ©2000-2007 Alex Denisov and Contributors - Graphics32 v1.8.3 - Build on 4-March-2007