class Fl_Pack : public Fl_Group

This widget was designed to add the functionality of compressing and aligning widgets.

If type() is FL_HORIZONTAL all the children are resized to the height of the Fl_Pack, and are moved next to each other horizontally. If type() is not FL_HORIZONTAL then the children are resized to the width and are stacked below each other. Then the Fl_Pack resizes itself to surround the child widgets.

This widget is needed for the Fl_Tab. In addition you may want to put the Fl_Pack inside an Fl_Scroll.

Fl_Pack::Fl_Pack(int x,int y,int w,int h, const char * = 0);

The constructor. Use add(Fl_Widget *) to add each child. Use end() when done. Only the h() (or w() for FL_HORIZONTAL) of the children are preserved, Fl_Pack calculates the other dimensions itself.

int Fl_Pack::spacing() const;
void Fl_Pack::spacing(int);

This many extra pixels of blank space is added between the children.