containsRect method

bool containsRect(
  1. IntRect rect
)

Checks if another rectangle is completely contained within this rectangle.

rect The rectangle to check. Returns true if the rectangle is completely inside this rectangle, false otherwise.

Implementation

bool containsRect(final IntRect rect) {
  return rect.left >= left &&
      rect.right <= right &&
      rect.top >= top &&
      rect.bottom <= bottom;
}