public static interface Layer.HitTester
| Modifier and Type | Method and Description |
|---|---|
Layer |
hitTest(Layer layer,
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, 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 © 2017. All Rights Reserved.