Lines Matching refs:right
33 #define RECT_ARGS(r) (r).left, (r).top, (r).right, (r).bottom
34 #define SK_RECT_ARGS(r) (r).left(), (r).top(), (r).right(), (r).bottom()
44 float right; variable
53 inline Rect() : left(0), top(0), right(0), bottom(0) {} in Rect()
55 inline Rect(float left, float top, float right, float bottom) in Rect() argument
56 : left(left), top(top), right(right), bottom(bottom) {} in Rect()
58 inline Rect(float width, float height) : left(0.0f), top(0.0f), right(width), bottom(height) {} in Rect()
64 , right(rect.fRight) in Rect()
71 , right(rect.fRight) in Rect()
77 a.right == b.right &&
83 inline void clear() { left = top = right = bottom = 0.0f; } in clear()
88 return !((left < right) && (top < bottom)); in isEmpty()
91 inline void setEmpty() { left = top = right = bottom = 0.0f; } in setEmpty()
93 inline void set(float left, float top, float right, float bottom) { in set() argument
95 this->right = right; in set()
100 inline void set(const Rect& r) { set(r.left, r.top, r.right, r.bottom); } in set()
102 inline void set(const SkIRect& r) { set(r.left(), r.top(), r.right(), r.bottom()); } in set()
104 inline float getWidth() const { return right - left; } in getWidth()
111 float tempRight = std::min(right, r); in intersects()
117 bool intersects(const Rect& r) const { return intersects(r.left, r.top, r.right, r.bottom); } in intersects()
127 right = std::min(right, r); in doIntersect()
131 void doIntersect(const Rect& r) { doIntersect(r.left, r.top, r.right, r.bottom); } in doIntersect()
134 return l >= left && t >= top && r <= right && b <= bottom; in contains()
137 inline bool contains(const Rect& r) const { return contains(r.left, r.top, r.right, r.bottom); } in contains()
140 if (r.left < r.right && r.top < r.bottom) { in unionWith()
141 if (left < right && top < bottom) { in unionWith()
144 if (right < r.right) right = r.right; in unionWith()
150 right = r.right; in unionWith()
160 right += dx; in translate()
170 right += delta; in outset()
177 right += xdelta; in outset()
201 right = ceilf(right - Vertex::GeometryFudgeFactor()); in snapGeometryToPixelBoundaries()
210 right = floorf(right + 0.5f + Vertex::GeometryFudgeFactor()); in snapGeometryToPixelBoundaries()
218 right = floorf(right + 0.5f); in snapToPixelBoundaries()
225 right = ceilf(right); in roundOut()
236 right = std::max(right, other.right); in expandToCover()
243 right = std::max(right, x); in expandToCover()
247 SkRect toSkRect() const { return SkRect::MakeLTRB(left, top, right, bottom); } in toSkRect()
249 SkIRect toSkIRect() const { return SkIRect::MakeLTRB(left, top, right, bottom); } in toSkIRect()
252 ALOGD("%s[l=%.2f t=%.2f r=%.2f b=%.2f]", label ? label : "Rect", left, top, right, bottom);
262 return os << "[" << rect.right << " x " << rect.bottom << "]";
265 return os << "[" << rect.left << " " << rect.top << " " << rect.right << " " << rect.bottom