[Panel-devel] CardLayout and PositionLayout
Ivan Čukić
ivan.cukic+kde at gmail.com
Thu Oct 11 10:48:00 CEST 2007
> I was thinking about position layout. How about something like this:
It would be a bit more dirty hack than it currently is. The main disadvantage
of that approach is that the real number resolution gets worse on large
numbers than on small ones.
I'll probably make the point coordinates to be defined by four values (so the
rectangle coordinates would be defined by eight values)
- xr, yr, xa, ya - the real coordinates would be calculated in the following
manner:
x = (xr * width) + xa; y = (yr * height) + ya
This way the middle point and corners would not be privileged, and all the
dirty hacks would be removed.
This layout would have greater expressiveness than any current layout for
static layouting - for example complicated plasma-window layouts.
Cheers.
--
I am a spokesman for a better way of living
Love is the word and it can be heard
If you are young the message can be sung
-- Deep Purple
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071011/3f258977/attachment.pgp
More information about the Panel-devel
mailing list