Lines Matching refs:rect
22 bool DesktopRect::ContainsRect(const DesktopRect& rect) const {
23 return rect.left() >= left() && rect.right() <= right() &&
24 rect.top() >= top() && rect.bottom() <= bottom();
27 void DesktopRect::IntersectWith(const DesktopRect& rect) {
28 left_ = std::max(left(), rect.left());
29 top_ = std::max(top(), rect.top());
30 right_ = std::min(right(), rect.right());
31 bottom_ = std::min(bottom(), rect.bottom());