Lines Matching refs:Rect
22 const Rect Rect::INVALID_RECT{0, 0, -1, -1};
23 const Rect Rect::EMPTY_RECT{0, 0, 0, 0};
33 void Rect::makeInvalid() { in makeInvalid()
40 bool Rect::operator <(const Rect& rhs) const { in operator <()
59 Rect& Rect::offsetTo(int32_t x, int32_t y) { in offsetTo()
67 Rect& Rect::offsetBy(int32_t x, int32_t y) { in offsetBy()
75 Rect& Rect::inset(int32_t _left, int32_t _top, int32_t _right, int32_t _bottom) { in inset()
83 const Rect Rect::operator +(const Point& rhs) const { in operator +()
84 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +()
88 const Rect Rect::operator -(const Point& rhs) const { in operator -()
89 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -()
93 bool Rect::intersect(const Rect& with, Rect* result) const { in intersect()
101 Rect Rect::transform(uint32_t xform, int32_t width, int32_t height) const { in transform()
102 Rect result(*this); in transform()
104 result = Rect(width - result.right, result.top, width - result.left, in transform()
108 result = Rect(result.left, height - result.bottom, result.right, in transform()
116 result = Rect(left, top, right, bottom); in transform()
121 Rect Rect::reduce(const Rect& exclude) const { in reduce()
122 Rect result(Rect::EMPTY_RECT); in reduce()