Lines Matching refs:bottom
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()
45 float bottom; 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()
65 , bottom(rect.fBottom) {} in Rect()
72 , bottom(rect.fBottom) {} in Rect()
78 inline void clear() { left = top = right = bottom = 0.0f; } in clear()
83 return !((left < right) && (top < bottom)); in isEmpty()
86 inline void setEmpty() { left = top = right = bottom = 0.0f; } in setEmpty()
88 inline void set(float left, float top, float right, float bottom) { in set() argument
92 this->bottom = bottom; in set()
95 inline void set(const Rect& r) { set(r.left, r.top, r.right, r.bottom); } in set()
97 inline void set(const SkIRect& r) { set(r.left(), r.top(), r.right(), r.bottom()); } in set()
101 inline float getHeight() const { return bottom - top; } in getHeight()
107 float tempBottom = std::min(bottom, b); in intersects()
112 bool intersects(const Rect& r) const { return intersects(r.left, r.top, r.right, r.bottom); } in intersects()
123 bottom = std::min(bottom, b); in doIntersect()
126 void doIntersect(const Rect& r) { doIntersect(r.left, r.top, r.right, r.bottom); } in doIntersect()
129 return l >= left && t >= top && r <= right && b <= bottom; in contains()
132 inline bool contains(const Rect& r) const { return contains(r.left, r.top, r.right, r.bottom); } in contains()
135 if (r.left < r.right && r.top < r.bottom) { in unionWith()
136 if (left < right && top < bottom) { in unionWith()
140 if (bottom < r.bottom) bottom = r.bottom; in unionWith()
146 bottom = r.bottom; in unionWith()
157 bottom += dy; in translate()
166 bottom += delta; in outset()
173 bottom += ydelta; in outset()
197 bottom = ceilf(bottom - Vertex::GeometryFudgeFactor()); in snapGeometryToPixelBoundaries()
206 bottom = floorf(bottom + 0.5f + Vertex::GeometryFudgeFactor()); in snapGeometryToPixelBoundaries()
214 bottom = floorf(bottom + 0.5f); in snapToPixelBoundaries()
221 bottom = ceilf(bottom); in roundOut()
232 bottom = std::max(bottom, other.bottom); in expandToCover()
239 bottom = std::max(bottom, y); in expandToCover()
242 SkRect toSkRect() const { return SkRect::MakeLTRB(left, top, right, bottom); } in toSkRect()
244 SkIRect toSkIRect() const { return SkIRect::MakeLTRB(left, top, right, bottom); } in toSkIRect()
247 ALOGD("%s[l=%.2f t=%.2f r=%.2f b=%.2f]", label ? label : "Rect", left, top, right, bottom);
257 return os << "[" << rect.right << " x " << rect.bottom << "]";
260 return os << "[" << rect.left << " " << rect.top << " " << rect.right << " " << rect.bottom