redraw again.

Marc Strämke <[email protected]> Sat, 13 Sep 2003 11:04:20 +0200
Newsgroups gmane.comp.embedded.stk.gui.devel
Message-ID <[email protected]>
Hi team,
while coding on my uber application i've stumbled across some more 
redraw problems :)
Many widgets call redraw(rect()); The problem is that, when we specify 
that redraw uses local coordinates, the call parent->redraw(rect()); 
would be appropiate, because rect() is relative to the parent's 
coordinate system where redraw is not. IMO it is not possible to get 
redraw work in parent's coordinate system without introducing a second 
redraw function for the upcall. My proposal is that we introduce a 
second overload in widget for redraw without parameters, which calls 
parent->redraw(rect); and in situations where the widget wants to be 
only partly redrawn it has to call parent->redraw with the appropiate 
coordinates. If you've got any other good idea how to handle this, pleas 
   let me know :)