From ea2dcf71dce94017a99a9117efd175bdbf906157 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 8 Jun 2007 23:16:20 +0000 Subject: [PATCH] Added BSize::Set(). BPoint and BRect feature a similar method. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21354 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/interface/Size.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/headers/os/interface/Size.h b/headers/os/interface/Size.h index 89c615fe50..2c687859b0 100644 --- a/headers/os/interface/Size.h +++ b/headers/os/interface/Size.h @@ -28,6 +28,7 @@ public: inline float Width() const; inline float Height() const; + inline void Set(float width, float height); inline void SetWidth(float width); inline void SetHeight(float height); @@ -87,6 +88,15 @@ BSize::Height() const } +// Set +inline void +BSize::Set(float width, float height) +{ + this->width = width; + this->height = height; +} + + // SetWidth inline void BSize::SetWidth(float width)