Lines Matching refs:rect
218 IntRect::operator==(const IntRect& rect) const
220 return left == rect.left && right == rect.right &&
221 top == rect.top && bottom == rect.bottom;
226 IntRect::operator!=(const IntRect& rect) const
228 return !(*this == rect);
233 IntRect::operator&(const IntRect& rect) const
235 return IntRect(max_c(left, rect.left), max_c(top, rect.top),
236 min_c(right, rect.right), min_c(bottom, rect.bottom));
241 IntRect::operator|(const IntRect& rect) const
243 return IntRect(min_c(left, rect.left), min_c(top, rect.top),
244 max_c(right, rect.right), max_c(bottom, rect.bottom));
249 IntRect::Intersects(const IntRect& rect) const
251 if (!IsValid() || !rect.IsValid())
254 return !(rect.left > right || rect.right < left
255 || rect.top > bottom || rect.bottom < top);
268 IntRect::Contains(const IntRect& rect) const
270 return rect.left >= left && rect.right <= right
271 && rect.top >= top && rect.bottom <= bottom;