2002-10-30 17:23:16 +03:00
|
|
|
<HTML>
|
|
|
|
<BODY>
|
|
|
|
|
2001-11-28 21:00:17 +03:00
|
|
|
<!-- NEW PAGE -->
|
2002-10-30 17:23:16 +03:00
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<H2><A name=Fl_Tile>class Fl_Tile</A></H2>
|
2002-10-30 17:23:16 +03:00
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<HR>
|
2002-10-30 17:23:16 +03:00
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Class Hierarchy</H3>
|
2002-10-30 17:23:16 +03:00
|
|
|
|
|
|
|
<UL><PRE>
|
2000-03-15 21:57:07 +03:00
|
|
|
<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_Tile</B>
|
2002-10-30 17:23:16 +03:00
|
|
|
</PRE></UL>
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Include Files</H3>
|
2002-10-30 17:23:16 +03:00
|
|
|
|
|
|
|
<UL><PRE>
|
1999-01-13 22:28:54 +03:00
|
|
|
#include <FL/Fl_Tile.H>
|
2002-10-30 17:23:16 +03:00
|
|
|
</PRE></UL>
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Description</H3>
|
2002-10-30 17:23:16 +03:00
|
|
|
|
|
|
|
<P>The <TT>Fl_Tile</TT> class lets you resize the children by dragging
|
2001-11-29 22:24:00 +03:00
|
|
|
the border between them:
|
2002-10-30 17:23:16 +03:00
|
|
|
|
2001-05-06 20:25:05 +04:00
|
|
|
<P ALIGN=CENTER><IMG src="Fl_Tile.gif" ALT="Fl_Tile widget."></P>
|
2002-10-30 17:23:16 +03:00
|
|
|
|
2001-11-29 22:24:00 +03:00
|
|
|
<P><TT>Fl_Tile</TT> allows objects to be resized to zero dimensions.
|
2002-10-30 17:23:16 +03:00
|
|
|
To prevent this you can use the <TT>resizable()</TT> to limit where
|
|
|
|
corners can be dragged to.</P>
|
|
|
|
|
2001-11-29 22:24:00 +03:00
|
|
|
<P>Even though objects can be resized to zero sizes, they must
|
|
|
|
initially have non-zero sizes so the <TT>Fl_Tile</TT> can figure out
|
2002-10-30 17:23:16 +03:00
|
|
|
their layout. If desired, call <TT>position()</TT> after creating the
|
2001-11-29 22:24:00 +03:00
|
|
|
children but before displaying the window to set the borders where you
|
2002-10-30 17:23:16 +03:00
|
|
|
want.</P>
|
|
|
|
|
|
|
|
<P>The "borders" are part of the children -
|
|
|
|
<TT>Fl_Tile</TT> does not draw any graphics of its own. In the
|
|
|
|
example above, all of the children have <TT>FL_DOWN_BOX</TT>
|
|
|
|
types, and the "ridges" you see are actually two
|
|
|
|
adjacent <TT>FL_DOWN_BOX</TT>'s drawn next to each other. All
|
|
|
|
neighboring widgets share the same edge - the widget's thick
|
|
|
|
borders make it appear as though the widgets aren't actually
|
|
|
|
touching, but they are. If the edges of adjacent widgets do not
|
|
|
|
touch, then it will be impossible to drag the corresponding
|
|
|
|
edges.</P>
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Tile.Fl_Tile>Fl_Tile</A></LI>
|
|
|
|
<LI><A href=#Fl_Tile.~Fl_Tile>~Fl_Tile</A></LI>
|
|
|
|
<LI><A href=#Fl_Tile.position>position</A></LI>
|
|
|
|
<LI><A href=#Fl_Tile.resizeable>resizeable</A></LI>
|
|
|
|
</UL>
|
2001-11-29 22:24:00 +03:00
|
|
|
<H4><A name=Fl_Tile.Fl_Tile>Fl_Tile::Fl_Tile(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_Tile</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_Tile.~Fl_Tile>virtual Fl_Tile::~Fl_Tile()</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_Tile</TT> and all of it's children can be automatic (local)
|
|
|
|
variables, but you must declare the <TT>Fl_Tile</TT> <I>first</I>, so
|
|
|
|
that it is destroyed last.
|
|
|
|
<H4><A name=Fl_Tile.position>void Fl_Tile::position(from_x, from_y,
|
1999-01-13 22:28:54 +03:00
|
|
|
to_x, to_y)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Drag the intersection at <TT>from_x,from_y</TT> to <TT>to_x,to_y</TT>.
|
|
|
|
This redraws all the necessary children.
|
1999-01-15 01:14:01 +03:00
|
|
|
<H4><A name=Fl_Tile.resizeable>void Fl_Tile::resizable(Fl_Widget &w)<BR>
|
|
|
|
void Fl_Tile::resizable(Fl_Widget *w)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
The "resizable" child widget (which should be invisible) limits where the
|
|
|
|
border can be dragged to. If you don't set it, it will be possible to
|
|
|
|
drag the borders right to the edge, and thus resize objects on the edge
|
|
|
|
to zero width or height. The <TT>resizable()</TT> widget is not
|
1999-01-15 01:14:01 +03:00
|
|
|
resized by dragging any borders.
|
|
|
|
</BODY></HTML>
|