Repaint strategy for 2.0

Thomas Zander zander at kde.org
Tue May 23 21:54:03 CEST 2006


On Tuesday 23 May 2006 21:33, Boudewijn Rempt wrote:
> > I think the flake way of doing things are the most correct.
> >
> > This involves calling update with the right cliprect whenever
> > something needs to be repainted.
> > The paint method will then paint everything thats needed to be
> > painted.
>
> Well, that's the short version, of course. But life is a little more
> complicated. We've got the image projection that needs to be updated,
> and preferably kept updated. We've got the blobs on top of the projects
> (guides, grids, masks). We've got OpenGL and plain QPainter -- and need
> to keep both possibilities. Currently, the widget that displays the
> projection doesn't even know it's got a projection.

If you read my mail on koffice-devel about the repaint manager in flake, 
(sent 02/05/06 10:26) I guess you can take some ideas from that.
It basically makes shapes have a paint-buffer of the current resolution 
and shape.
-- 
Thomas Zander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20060523/553a0119/attachment.pgp 


More information about the kimageshop mailing list