Lines Matching refs:r
30 #define RECT_ARGS(r) \ argument
31 (r).left, (r).top, (r).right, (r).bottom
100 inline void set(const Rect& r) { in set() argument
101 set(r.left, r.top, r.right, r.bottom); in set()
112 bool intersects(float l, float t, float r, float b) const { in intersects() argument
113 return !intersectWith(l, t, r, b).isEmpty(); in intersects()
116 bool intersects(const Rect& r) const { in intersects() argument
117 return intersects(r.left, r.top, r.right, r.bottom); in intersects()
120 bool intersect(float l, float t, float r, float b) { in intersect() argument
121 Rect tmp(l, t, r, b); in intersect()
130 bool intersect(const Rect& r) { in intersect() argument
131 return intersect(r.left, r.top, r.right, r.bottom); in intersect()
134 inline bool contains(float l, float t, float r, float b) const { in contains() argument
135 return l >= left && t >= top && r <= right && b <= bottom; in contains()
138 inline bool contains(const Rect& r) const { in contains() argument
139 return contains(r.left, r.top, r.right, r.bottom); in contains()
142 bool unionWith(const Rect& r) { in unionWith() argument
143 if (r.left < r.right && r.top < r.bottom) { in unionWith()
145 if (left > r.left) left = r.left; in unionWith()
146 if (top > r.top) top = r.top; in unionWith()
147 if (right < r.right) right = r.right; in unionWith()
148 if (bottom < r.bottom) bottom = r.bottom; in unionWith()
151 left = r.left; in unionWith()
152 top = r.top; in unionWith()
153 right = r.right; in unionWith()
154 bottom = r.bottom; in unionWith()
228 Rect intersectWith(float l, float t, float r, float b) const { in intersectWith() argument
232 tmp.right = fminf(right, r); in intersectWith()