Hi all,

As many of you know, the new GUI is taking shape - slowly but surely.  
The base widget code is there, with there being just a few more  
things to brush off before the fun can begin - designing the actual  
widgets themselves.

However, the remaining bits left to do are perhaps the hardest bits;  
the first one being the layout system. I have been thinking about  
this for a couple of days now and can not seem to come up with a one- 
size-fits-all solution.

The problem: we need a way for child widgets to position themselves  
within their parents. We do not want to use pixel co-ordinates and  
need the system to be flexible.

Currently, when a child widget is added to a parent no location- 
related information is passed. Instead there is an arbitration  
process between the parent and the child. Most likely (this is still  
undecided) it will be: the parent asks the child where it would like  
to be and then offers it a location/size. The child will then either  
accept or deny it. The arbitration process continues until *all*  
child widgets are satisfied.

The problem I am having is how a widget should tell its parent where  
it wants to be? Should it be relative to other widgets? Should it be  
relative to a side (north, east, south, west)?

Furthermore how should the size be done? Should widgets have a min/ 
max/desired size? How can we have it so that a widget will fill up as  
much space as possible?

Hopefully over the next couple of days we can come up with something  
and wiki it.

Regards, Freddie.

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to