Un-kludged Decorator::GetFootprint. Much more elegant now. :)

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4732 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2003-09-17 17:14:22 +00:00
parent 4ff18eccb5
commit 3231b95ed8
5 changed files with 22 additions and 27 deletions
+5 -4
View File
@@ -293,16 +293,17 @@ STRACE(("DefaultDecorator: Move By (%.1f, %.1f)\n",pt.x,pt.y));
bottomborder.OffsetBy(pt);
}
BRegion * DefaultDecorator::GetFootprint(void)
void DefaultDecorator::GetFootprint(BRegion *region)
{
STRACE(("DefaultDecorator: Get Footprint\n"));
// This function calculates the decorator's footprint in coordinates
// relative to the layer. This is most often used to set a WinBorder
// object's visible region.
if(!region)
return;
BRegion *reg=new BRegion(_borderrect);
reg->Include(_tabrect);
return reg;
region->Set(_borderrect);
region->Include(_tabrect);
}
BRect DefaultDecorator::SlideTab(float dx, float dy=0){