Window thumbnail and Javascript

Aaron J. Seigo aseigo at kde.org
Sun Jan 2 19:09:40 CET 2011


On Sunday, January 2, 2011, Martin Gräßlin wrote:
> Let me rephrase: why would we need a rotated area with thumbnails? I just

if someone wishes to use the thumbnail is an item on the QGraphicsScene 
canvas, that means it can be transformed. scaling isn't interesting, since 
that's already captured in the screen coordinate mapping. sheering we can 
probably ignore for convenience. rotation is what is left. without rotation 
support, then if the item is rotated on the canvas, the thumbnail will not 
appear rotated with it unless either kwin rotates it or if the painting is 
left up to the QGraphicsItem itself (which is an even less great option :)

> FYI: rotating a window is trivial in kwin - built in feature of the
> rendering pipeline. 

yes :)

> The difficult part would be IMHO the X atom and
> calculating the correct aspect in the thumbnail effect.

the X atom could be extended with one value that denotes the degrees of 
rotation from vertical, no? if we wish to have full 3D rotation, then we'd 
need three values and it gets more complex. 2D rotation is a simple single 
value, however.

we can ignore this issue completely and in the common case it will be Good 
Enough(tm); if the item is ever rotated on the canvas, it'll look odd, 
however. we can, of course, choose to live with that and i don't think any 
kittens will die ;)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20110102/7040f218/attachment.sig 


More information about the Plasma-devel mailing list