Re: redraw again.
Marc Strämke <[email protected]> Sat, 13 Sep 2003 11:13:07 +0200
| Newsgroups | gmane.comp.embedded.stk.gui.devel |
|---|---|
| Message-ID | <[email protected]> |
I've implemented a work around for now, i substract rect().position from the position of the rect given to redraw, this makes widget's redraw routine behave like before, i didnt do that for container's though, so if we use redraw in a container we have to use local coordinates Marc Strämke wrote: > 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 :)