[Panel-devel] CardLayout and PositionLayout

Petri Damstén petri.damsten at dnainternet.net
Thu Oct 11 08:56:12 CEST 2007


On Thursday 11 October 2007 01:25:58 Ivan Čukić wrote:
> PositionLayout:
> Holds multiple elements. The coordinates for an element can be set absolute
> or relative, going from any corner of the layout.
> Simple mapping of the values - x coordinates:
> [0, 1.0]   - this coord is relative to left border. 0.25 is located at one
>              quarter of the width of the layout's geometry.
> (1.0, +oo) - coordinate in pixels from the left edge
> [-1.0, -0] - this coord is relative to left border. -0.25 is located at
> three quarters of the width of the layout's geometry (calculating from the
> left edge).
> (-oo, 1.0) - coordinate in pixels from the right edge

I'll propably need this kind of layout too. One thing I would like to add is 
relative to center point. So I could place widget to right = c-10, left = 
c+10 / 20 pixel wide widget horizontally centered for example.

Petri

-- 
Take care to get what you like, otherwise you will be forced to like
what you get.
-------------- 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/42ad07ea/attachment.pgp 


More information about the Panel-devel mailing list