public static interface Layer.HitTester
| Modifier and Type | Method | Description |
|---|---|---|
Layer |
hitTest(Layer layer,
pythagoras.f.Point p) |
Returns
layer, or a child of layer if the supplied coordinate (which is in
layer's coordinate system) hits layer, or one of its children. |
Layer hitTest(Layer layer, pythagoras.f.Point p)
layer, or a child of layer if the supplied coordinate (which is in
layer's coordinate system) hits layer, or one of its children. This allows a
layer to customize the default hit testing approach, which is to simply check whether the
point intersects a layer's bounds. See Layer.hitTest(pythagoras.f.Point).Copyright © 2018. All Rights Reserved.