containsLocalPoint method

  1. @override
bool containsLocalPoint(
  1. Vector2 point
)
inherited

Test whether the point (given in local coordinates) lies within this component. The top and the left borders of the component are inclusive, while the bottom and the right borders are exclusive.

Implementation

@override
bool containsLocalPoint(Vector2 point) {
  return (point.x >= 0) &&
      (point.y >= 0) &&
      (point.x < _size.x) &&
      (point.y < _size.y);
}