diff --git a/headers/os/interface/Rect.h b/headers/os/interface/Rect.h index ecca25baf5..30783126f6 100644 --- a/headers/os/interface/Rect.h +++ b/headers/os/interface/Rect.h @@ -26,6 +26,7 @@ public: BRect(BPoint leftTop, BPoint rightBottom); BRect(BPoint leftTop, BSize size); BRect(float side); + BRect(float width, float height); BRect& operator=(const BRect& other); void Set(float left, float top, float right, @@ -182,6 +183,17 @@ BRect::BRect(float side) } +inline +BRect::BRect(float width, float height) + : + left(0), + top(0), + right(width), + bottom(height) +{ +} + + inline BRect& BRect::operator=(const BRect& other) {