public interface IHitTestable
Modifier and Type | Method and Description |
---|---|
boolean |
getBoundsRelativeTo(android.graphics.RectF bounds,
IHitTestable hitTestable)
Gets the bounds of the current
IHitTestable relative to the other IHitTestable element |
boolean |
getBoundsRelativeTo(android.graphics.Rect bounds,
IHitTestable hitTestable)
Gets the bounds of the current
IHitTestable relative to the other IHitTestable element |
android.view.View |
getView()
Gets the
View instance associated with this IHitTestable element |
boolean |
isPointWithinBounds(float x,
float y)
Checks if the point is within the bound of the current
IHitTestable element |
boolean |
isPointWithinBounds(float x,
float y,
IHitTestable hitTestable)
Checks if the point specified relative to another
IHitTestable element is within the bound of the current IHitTestable element |
boolean |
translatePoint(android.graphics.PointF point,
IHitTestable hitTestable)
Translates the point relative to the other
IHitTestable element |
boolean translatePoint(android.graphics.PointF point, IHitTestable hitTestable)
IHitTestable
elementpoint
- The point which should be transformedhitTestable
- The other IHitTestable
to use when transforming the pointboolean isPointWithinBounds(float x, float y)
IHitTestable
elementx
- The x coordinate in pixelsy
- The y coordinate in pixelsboolean isPointWithinBounds(float x, float y, IHitTestable hitTestable)
IHitTestable
element is within the bound of the current IHitTestable
elementx
- The x coordinate in pixelsy
- The y coordinate in pixelshitTestable
- The other IHitTestable
to use when checking the pointboolean getBoundsRelativeTo(android.graphics.Rect bounds, IHitTestable hitTestable)
IHitTestable
relative to the other IHitTestable
elementbounds
- The Rect
instance where result of transformation should be storedhitTestable
- The other IHitTestable
to use when transforming the pointboolean getBoundsRelativeTo(android.graphics.RectF bounds, IHitTestable hitTestable)
IHitTestable
relative to the other IHitTestable
elementbounds
- The RectF
instance where result of transformation should be storedhitTestable
- The other IHitTestable
to use when transforming the point@NonNull android.view.View getView()
View
instance associated with this IHitTestable
elementView
instance