Fleshed out a few undone functions - RebuildRegions, SetDriver, etc

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4118 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm 2003-07-28 17:34:20 +00:00
parent cc986fa95d
commit 591ceb9982
2 changed files with 10 additions and 10 deletions

View File

@ -59,10 +59,8 @@ RootLayer::~RootLayer()
*/ */
void RootLayer::RequestDraw(const BRect &r) void RootLayer::RequestDraw(const BRect &r)
{ {
/* Invalidate(r);
1) call the display driver's FillRect on the rectangle, filling with the layer's background color RequestDraw();
2) recurse through each child and call its RequestDraw() function if it intersects the child's frame
*/
} }
/*! /*!
@ -225,6 +223,7 @@ void RootLayer::ResizeBy(BPoint pt)
*/ */
void RootLayer::SetDriver(DisplayDriver *driver) void RootLayer::SetDriver(DisplayDriver *driver)
{ {
_driver=driver;
} }
/*! /*!
@ -233,9 +232,10 @@ void RootLayer::SetDriver(DisplayDriver *driver)
*/ */
void RootLayer::RebuildRegions(bool recursive) void RootLayer::RebuildRegions(bool recursive)
{ {
/* // Unlike the other layers, RootLayers can't depend on their parent layer to reset its
1) get the frame // visible region, so we have to do it itself.
2) set full and visible regions to frame _visible->MakeEmpty();
3) iterate through each child and exclude its full region from the visible region if the child is visible. _visible->Include(_full);
*/
Layer::RebuildRegions(recursive);
} }

View File

@ -57,7 +57,7 @@ public:
private: private:
DisplayDriver *_driver; DisplayDriver *_driver;
RGBColor *_bgcolor; RGBColor *_bgcolor;
bool _visible; bool _isvisible;
}; };
#endif #endif