am 9cab4ca1: Merge "minor Rect.h cleanup" into jb-dev

* commit '9cab4ca1ca74068e50192296badd0ae7a61f3927':
  minor Rect.h cleanup
This commit is contained in:
Mathias Agopian 2012-05-15 11:37:41 -07:00 committed by Android Git Automerger
commit 15e23859ba

View File

@ -65,15 +65,22 @@ public:
} }
// rectangle's width // rectangle's width
inline int32_t width() const { inline int32_t getWidth() const {
return right-left; return right-left;
} }
// rectangle's height // rectangle's height
inline int32_t height() const { inline int32_t getHeight() const {
return bottom-top; return bottom-top;
} }
inline Rect getBounds() const {
return Rect(right-left, bottom-top);
}
inline int32_t width() const { return getWidth(); }
inline int32_t height() const { return getHeight(); }
void setLeftTop(const Point& lt) { void setLeftTop(const Point& lt) {
left = lt.x; left = lt.x;
top = lt.y; top = lt.y;