2006-10-29 17:16:03 +03:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
|
|
<TITLE>Fl_Double_Window</TITLE>
|
|
|
|
</HEAD>
|
|
|
|
<BODY>
|
2001-11-28 21:00:17 +03:00
|
|
|
<!-- NEW PAGE -->
|
1999-01-13 22:28:54 +03:00
|
|
|
<H2><A name=Fl_Double_Window>class Fl_Double_Window</A></H2>
|
|
|
|
<HR>
|
|
|
|
<H3>Class Hierarchy</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
<A href=Fl_Window.html#Fl_Window>Fl_Window</A>
|
1998-12-29 17:21:17 +03:00
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
+----<B>Fl_Double_Window</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Double_Window.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
The <TT>Fl_Double_Window</TT> class provides a double-buffered window.
|
|
|
|
If possible this will use the X double buffering extension (Xdbe). If
|
|
|
|
not, it will draw the window data into an off-screen pixmap, and then
|
|
|
|
copy it to the on-screen window.
|
|
|
|
<P>It is highly recommended that you put the following code before the
|
1999-01-13 22:28:54 +03:00
|
|
|
first <TT>show()</TT> of <I>any</I> window in your program: </P>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
1998-12-29 17:21:17 +03:00
|
|
|
Fl::visual(FL_DOUBLE|FL_INDEX)
|
1999-01-13 22:28:54 +03:00
|
|
|
</PRE>
|
|
|
|
</UL>
|
2001-11-29 22:24:00 +03:00
|
|
|
This makes sure you can use Xdbe on servers where double buffering
|
|
|
|
does not exist for every visual.
|
1999-01-13 22:28:54 +03:00
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Double_Window.Fl_Double_Window>Fl_Double_Window</A></LI>
|
|
|
|
<LI><A href=#Fl_Double_Window.~Fl_Double_Window>~Fl_Double_Window</A></LI>
|
|
|
|
</UL>
|
|
|
|
<H4><A name=Fl_Double_Window.Fl_Double_Window>
|
2004-10-19 00:22:25 +04:00
|
|
|
Fl_Double_Window::Fl_Double_Window(int w, int h, const
|
|
|
|
char *label = 0)<br>
|
2001-11-29 22:24:00 +03:00
|
|
|
Fl_Double_Window::Fl_Double_Window(int x, int y, int w, int h, const
|
1999-01-13 22:28:54 +03:00
|
|
|
char *label = 0)</A></H4>
|
2004-10-19 00:22:25 +04:00
|
|
|
<p>Creates a new <TT>Fl_Double_Window</TT> widget using the given
|
|
|
|
position, size, and label (title) string.</p>
|
2001-11-29 22:24:00 +03:00
|
|
|
<H4><A name=Fl_Double_Window.~Fl_Double_Window>virtual
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Double_Window::~Fl_Double_Window()</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
|
|
|
|
all the children in the user code.
|
2001-11-28 21:00:17 +03:00
|
|
|
</BODY></HTML>
|