summaryrefslogtreecommitdiff
path: root/documentation/Fl_Double_Window.html
blob: 9018b850c67664ec078329ab57ebc7e80d0b6dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<html>
<body>

<hr break>

<h2><a name="Fl_Double_Window">class Fl_Double_Window</a></h2>

<hr>

<h3>Class Hierarchy</h3>

<ul><pre>
<a href="#Fl_Window">Fl_Window</a>
   |
   +----<b>Fl_Double_Window</b>
</pre></ul>

<h3>Include Files</h3>

<ul><pre>
#include &lt;FL/Fl_Double_Window.H>
</pre></ul>

<h3>Description</h3>

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
first <tt>show()</tt> of <i>any</i> window in your program:

<ul><pre>
Fl::visual(FL_DOUBLE|FL_INDEX)
</pre></ul>

This makes sure you can use Xdbe on servers where double buffering does
not exist for every visual.

<h3>Methods</h3>

<ul>
	<li><a href="#Fl_Double_Window.Fl_Double_Window">Fl_Double_Window</a>
	<li><a href="#Fl_Double_Window.~Fl_Double_Window">~Fl_Double_Window</a>
	<li><a href="#Fl_Double_Window.pixmap">pixmap</a>
</ul>

<h4><a name="Fl_Double_Window.Fl_Double_Window">Fl_Double_Window::Fl_Double_Window(int x, int y, int w, int h, const char *label = 0)</a></h4>

Creates a new <tt>Fl_Double_Window</tt> widget using the given position, size, and
label (title) string.

<h4><a name="Fl_Double_Window.~Fl_Double_Window">virtual Fl_Double_Window::~Fl_Double_Window()</a></h4>

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.

<h4><a name="Fl_Double_Window.pixmap>ulong Fl_Double_Window::pixmap() const</a></h4>

Returns the off-screen pixmap or back buffer. This value is zero until
the first time <tt>flush()</tt> is called.

</body>
</html>