1999-01-13 22:28:54 +03:00
|
|
|
<HTML><BODY>
|
2001-11-28 21:00:17 +03:00
|
|
|
<!-- NEW PAGE -->
|
1999-01-13 22:28:54 +03:00
|
|
|
<H2><A name=Fl_Pack>class Fl_Pack</A></H2>
|
|
|
|
<HR>
|
|
|
|
<H3>Class Hierarchy</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
<A href=Fl_Group.html#Fl_Group>Fl_Group</A>
|
1998-12-29 17:21:17 +03:00
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
+----<B>Fl_Pack</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Pack.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
This widget was designed to add the functionality of compressing and
|
|
|
|
aligning widgets.
|
|
|
|
<P>If <TT>type()</TT> is <TT>FL_HORIZONTAL</TT> all the children are
|
|
|
|
resized to the height of the <TT>Fl_Pack</TT>, and are moved next to
|
1999-01-13 22:28:54 +03:00
|
|
|
each other horizontally. If <TT>type()</TT> is not <TT>FL_HORIZONTAL</TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
then the children are resized to the width and are stacked below each
|
|
|
|
other. Then the <TT>Fl_Pack</TT> resizes itself to surround the child
|
1999-01-13 22:28:54 +03:00
|
|
|
widgets. </P>
|
2001-11-29 22:24:00 +03:00
|
|
|
<P>This widget is needed for the <A href=Fl_Tabs.html#Fl_Tabs><TT>Fl_Tabs</TT></A>.
|
1999-01-13 22:28:54 +03:00
|
|
|
In addition you may want to put the <TT>Fl_Pack</TT> inside an <A href=Fl_Scroll.html#Fl_Scroll>
|
|
|
|
<TT>Fl_Scroll</TT></A>. </P>
|
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Pack.Fl_Pack>Fl_Pack</A></LI>
|
|
|
|
<LI><A href=#Fl_Pack.~Fl_Pack>~Fl_Pack</A></LI>
|
2001-10-01 00:25:36 +04:00
|
|
|
<LI><A href=#Fl_Pack.spacing>spacing</A></LI>
|
1999-01-13 22:28:54 +03:00
|
|
|
</UL>
|
2001-11-29 22:24:00 +03:00
|
|
|
<H4><A name=Fl_Pack.Fl_Pack>Fl_Pack::Fl_Pack(int x, int y, int w, int
|
1999-01-13 22:28:54 +03:00
|
|
|
h, const char *label = 0)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Creates a new <TT>Fl_Pack</TT> widget using the given position, size,
|
|
|
|
and label string. The default boxtype is <TT>FL_NO_BOX</TT>.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Pack.~Fl_Pack>virtual Fl_Pack::~Fl_Pack()</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
The destructor <I>also deletes all the children</I>. This allows a
|
|
|
|
whole tree to be deleted at once, without having to keep a pointer to
|
1999-01-13 22:28:54 +03:00
|
|
|
all the children in the user code. A kludge has been done so the <TT>
|
2001-11-29 22:24:00 +03:00
|
|
|
Fl_Pack</TT> and all of it's children can be automatic (local)
|
|
|
|
variables, but you must declare the <TT>Fl_Pack</TT><I>first</I>, so
|
|
|
|
that it is destroyed last.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H4><A name=Fl_Pack.spacing>int Fl_Pack::spacing() const
|
|
|
|
<BR> void Fl_Pack::spacing(int)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Gets or sets the number of extra pixels of blank space that are added
|
2001-10-01 00:25:36 +04:00
|
|
|
between the children. </BODY></HTML>
|