From 0835465264204f466629883fc07d1e5dd9f7db43 Mon Sep 17 00:00:00 2001 From: haydentech Date: Tue, 20 Jan 2004 21:52:32 +0000 Subject: [PATCH] Added a few missing BRect functions git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6204 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Rect.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/kits/interface/Rect.cpp b/src/kits/interface/Rect.cpp index 63f6a1522e..9b645cc176 100644 --- a/src/kits/interface/Rect.cpp +++ b/src/kits/interface/Rect.cpp @@ -39,6 +39,33 @@ // Globals --------------------------------------------------------------------- +void +BRect::SetLeftTop(const BPoint p) +{ + left = p.x; + top = p.y; +} +//------------------------------------------------------------------------------ +void +BRect::SetRightBottom(const BPoint p) +{ + right = p.x; + bottom = p.y; +} +//------------------------------------------------------------------------------ +void +BRect::SetLeftBottom(const BPoint p) +{ + left = p.x; + bottom = p.y; +} +//------------------------------------------------------------------------------ +void +BRect::SetRightTop(const BPoint p) +{ + right = p.x; + top = p.y; +} //------------------------------------------------------------------------------ void BRect::InsetBy(BPoint point)