added RebuildAndForceRedraw() method
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8226 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ed8e4c70db
commit
357cfe11c2
@ -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) );
|
||||||
|
@ -57,6 +57,7 @@ public:
|
|||||||
void FullInvalidate(const BRect &rect);
|
void FullInvalidate(const BRect &rect);
|
||||||
void FullInvalidate(const BRegion ®ion);
|
void FullInvalidate(const BRegion ®ion);
|
||||||
void Invalidate(const BRegion ®ion);
|
void Invalidate(const BRegion ®ion);
|
||||||
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user