commit adds setWidth & setHeight to extend bounds of rect

svn-id: r18283
This commit is contained in:
Andrew Kurushin 2005-05-28 12:28:23 +00:00
parent 3d1c969377
commit cd72ae9e65

View file

@ -72,6 +72,14 @@ struct Rect {
}
int16 width() const { return right - left; }
int16 height() const { return bottom - top; }
void setWidth(int16 width) {
right = left + width;
}
void setHeight(int16 height) {
bottom = top + height;
}
/*! @brief check if given position is inside this rectangle