[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Extending KoShape with QPainter hints
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2006-10-06 12:14:16
Message-ID: 200610061414.18368.boud () valdyas ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday 05 October 2006 12:06, Thomas Zander wrote:
> On Wednesday 04 October 2006 08:46, Boudewijn Rempt wrote:
> > QPainter offers cool things like transparency and composition mode. We
> > can leave it to the shapes to implement these, or make it a general
> > property of KoShape and use these properties in KoShapeManager::paint()
> > -- would that be an agreeable idea?
>
> Ok,
>
> what about;
>
> KoShape
> virtual double masterTransparancy() { return 0.0; }
> virtual void setMasterTransparancy() { /* alter the alpha of the
> background color*/}
>
> Shapes that don't use the background color can then override these methods
> and do their own thing. For example by storing a double with the opacity.
> Shapes that have more colors can override this method and alter the opacity
> of all of them, for example.
>
> This has the effect that we no longer force onto the user the concept of an
> alpha per color (which boud pointed out doesn't make a lot of sense) and
> thus we won't end up with having 2 places to alter the alpha channel for
> most objects.
Yes, that's more or less what I would like a lot.
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
[Attachment #5 (application/pgp-signature)]
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic