From 84591cffe14d8d6263f55739c04695164f2545dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 27 Jun 2004 22:59:27 +0000 Subject: [PATCH] Began exporting of R4.5 compatibility functions, just as an example. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8205 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Shape.cpp | 38 +++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/src/kits/interface/Shape.cpp b/src/kits/interface/Shape.cpp index 8838e5777a..90cdb402fe 100644 --- a/src/kits/interface/Shape.cpp +++ b/src/kits/interface/Shape.cpp @@ -271,8 +271,10 @@ void BShape::Clear() fState = 0; fBuildingOp = 0; } -//------------------------------------------------------------------------------ -BRect BShape::Bounds() const + + +BRect +BShape::Bounds() const { shape_data *data = (shape_data*)fPrivateData; BRect bounds; @@ -299,8 +301,10 @@ BRect BShape::Bounds() const return bounds; } -//------------------------------------------------------------------------------ -status_t BShape::AddShape(const BShape *otherShape) + + +status_t +BShape::AddShape(const BShape *otherShape) { shape_data *data = (shape_data*)fPrivateData; shape_data *otherData = (shape_data*)otherShape->fPrivateData; @@ -333,8 +337,10 @@ status_t BShape::AddShape(const BShape *otherShape) return B_OK; } -//------------------------------------------------------------------------------ -status_t BShape::MoveTo(BPoint point) + + +status_t +BShape::MoveTo(BPoint point) { shape_data *data = (shape_data*)fPrivateData; @@ -562,4 +568,22 @@ void BShape::InitData() data->ptSize = 0; data->ptBlockSize = 255; } -//------------------------------------------------------------------------------ + + +// #pragma mark - +// R4.5 compatibility + + +#if __GNUC__ < 3 + +BRect +Bounds__6BShape(BShape *self) +{ + return self->Bounds(); +} + +// ToDo: Add those: +// BShape(BShape ©From); +// status_t AddShape(BShape *other); + +#endif // __GNUC__ < 3