Domingo Alvarez Duarte <mingo...@...> writes:

> 
> Brian wrote:
> > I have some sample automatic layout code that reads like the below sample:
> >
> > http://pastebin.com/raUiiWKU
> >
> > Does this type of syntax for layout actually interest anyone?
> >
> > Note the following functions:
> >
> > void presize();  // overloaded presize
> >
> > GroupLayout
> > LayoutHorz
> > LayoutVert
> > LayoutAdder
> > LayoutSpace
> 
> Also SPTK http://www.sptk.net/docs/dialog.html has an intersting layout 
> manager they call it CDialog.
> 


SPTK uses inheritance to perform the layout...uses lots of derivations.

This technique uses "presize" to set the wide/high of each widget.
GroupLayout derives from fltk::Group and handles this layout hierarchy.  At this
time only Linear layouts are supported, athough there's a "presizeToMaxWide"
utility function which can be used to line up a set of labels.  I guess I should
organize these into a real library (uses std::vector).

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to