Package playn.scene
Interface Layer.HitTester
- Enclosing class:
Layer
public static interface Layer.HitTester
Used to customize a layer's hit testing mechanism.
-
Method Summary
-
Method Details
-
hitTest
Returnslayer
, or a child oflayer
if the supplied coordinate (which is inlayer
's coordinate system) hitslayer
, 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. SeeLayer.hitTest(pythagoras.f.Point)
.
-