added RebuildAndForceRedraw() method

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8226 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adi Oanca 2004-06-28 21:01:36 +00:00
parent ed8e4c70db
commit 357cfe11c2
2 changed files with 16 additions and 0 deletions

View File

@ -369,6 +369,21 @@ ServerWindow* Layer::SearchForServerWindow() const
return NULL; return NULL;
} }
void Layer::RebuildAndForceRedraw(const BRegion& reg, Layer *target)
{
STRACE(("Layer(%s)::RebuildAndForceRedraw():\n", GetName()));
BPoint pt(0,0);
StartRebuildRegions(reg, NULL, B_LAYER_NONE, pt);
if (target)
gRedrawReg.Include(&(target->fFullVisible));
Redraw(gRedrawReg);
EmptyGlobals();
}
void Layer::FullInvalidate(const BRect &rect) void Layer::FullInvalidate(const BRect &rect)
{ {
FullInvalidate( BRegion(rect) ); FullInvalidate( BRegion(rect) );

View File

@ -57,6 +57,7 @@ public:
void FullInvalidate(const BRect &rect); void FullInvalidate(const BRect &rect);
void FullInvalidate(const BRegion &region); void FullInvalidate(const BRegion &region);
void Invalidate(const BRegion &region); void Invalidate(const BRegion &region);
void RebuildAndForceRedraw( const BRegion& reg, Layer *target);
virtual void RebuildFullRegion(void); virtual void RebuildFullRegion(void);
void StartRebuildRegions( const BRegion& reg, Layer *target, uint32 action, BPoint& pt); void StartRebuildRegions( const BRegion& reg, Layer *target, uint32 action, BPoint& pt);