Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32_Layers🞂TCustomLayer🞂HitTestMethodPublic

TCustomLayer.HitTest

Tests whether the specified viewport coordinates hit the layer.

Declaration ​

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

Parameters ​

ParameterTypeDescription
X, YIntegerViewport pixel coordinates.

Returns ​

TypeDescription
BooleanTrue if the coordinates fall inside the active layer region, False otherwise.

Description ​

HitTest executes internal hit-testing and invokes the OnHitTest event handler if assigned.