Lines Matching refs:rhs
37 bool Rect::operator <(const Rect& rhs) const {
38 if (top < rhs.top) {
40 } else if (top == rhs.top) {
41 if (left < rhs.left) {
43 } else if (left == rhs.left) {
44 if (bottom < rhs.bottom) {
46 } else if (bottom == rhs.bottom) {
47 if (right < rhs.right) {
72 const Rect Rect::operator +(const Point& rhs) const {
73 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
77 const Rect Rect::operator -(const Point& rhs) const {
78 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y);