2006-10-29 17:16:03 +03:00
|
|
|
<HTML>
|
|
|
|
<HEAD>
|
|
|
|
<TITLE>Fl_Overlay_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_Overlay_Window>class Fl_Overlay_Window</A></H2>
|
|
|
|
<HR>
|
|
|
|
<H3>Class Hierarchy</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
<A href=Fl_Double_Window.html#Fl_Double_Window>Fl_Double_Window</A>
|
1998-12-29 17:21:17 +03:00
|
|
|
|
|
1999-01-13 22:28:54 +03:00
|
|
|
+----<B>Fl_Overlay_Window</B>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Include Files</H3>
|
|
|
|
<UL>
|
|
|
|
<PRE>
|
|
|
|
#include <FL/Fl_Overlay_Window.H>
|
|
|
|
</PRE>
|
|
|
|
</UL>
|
|
|
|
<H3>Description</H3>
|
2001-11-29 22:24:00 +03:00
|
|
|
This window provides double buffering and also the ability to draw the
|
|
|
|
"overlay" which is another picture placed on top of the main image. The
|
|
|
|
overlay is designed to be a rapidly-changing but simple graphic such as
|
|
|
|
a mouse selection box. <TT>Fl_Overlay_Window</TT> uses the overlay
|
|
|
|
planes provided by your graphics hardware if they are available.
|
|
|
|
<P>If no hardware support is found the overlay is simulated by drawing
|
|
|
|
directly into the on-screen copy of the double-buffered window, and
|
|
|
|
"erased" by copying the backbuffer over it again. This means the
|
1999-01-13 22:28:54 +03:00
|
|
|
overlay will blink if you change the image in the window. </P>
|
|
|
|
<H3>Methods</H3>
|
|
|
|
<UL>
|
|
|
|
<LI><A href=#Fl_Overlay_Window.Fl_Overlay_Window>Fl_Overlay_Window</A></LI>
|
|
|
|
<LI><A href=#Fl_Overlay_Window.~Fl_Overlay_Window>~Fl_Overlay_Window</A></LI>
|
|
|
|
<LI><A href=#Fl_Overlay_Window.draw_overlay>draw_overlay</A></LI>
|
|
|
|
<LI><A href=#Fl_Overlay_Window.redraw_overlay>redraw_overlay</A></LI>
|
|
|
|
</UL>
|
|
|
|
<H4><A name=Fl_Overlay_Window.Fl_Overlay_Window>
|
2001-11-29 22:24:00 +03:00
|
|
|
Fl_Overlay_Window::Fl_Overlay_Window(int x, int y, int w, int h, const
|
1999-01-13 22:28:54 +03:00
|
|
|
char *label = 0)</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Creates a new <TT>Fl_Overlay_Window</TT> widget using the given
|
|
|
|
position, size, and label (title) string.
|
|
|
|
<H4><A name=Fl_Overlay_Window.~Fl_Overlay_Window>virtual
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Overlay_Window::~Fl_Overlay_Window()</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Destroys the window and all child widgets.
|
|
|
|
<H4><A name=Fl_Overlay_Window.draw_overlay>virtual void
|
1999-01-13 22:28:54 +03:00
|
|
|
Fl_Overlay_Window::draw_overlay() = 0</A></H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
You must subclass <TT>Fl_Overlay_Window</TT> and provide this method.
|
|
|
|
It is just like a <TT>draw()</TT> method, except it draws the overlay.
|
|
|
|
The overlay will have already been "cleared" when this is called. You
|
2002-02-13 06:33:53 +03:00
|
|
|
can use any of the routines described in <A href="drawing.html#drawing"><FL/fl_draw.H></A>.
|
2001-05-06 20:25:05 +04:00
|
|
|
<H4><A name=Fl_Overlay_Window.redraw_overlay>void Fl_Overlay_Window::redraw_overlay()</A>
|
1999-01-13 22:28:54 +03:00
|
|
|
</H4>
|
2001-11-29 22:24:00 +03:00
|
|
|
Call this to indicate that the overlay data has changed and needs to
|
|
|
|
be redrawn. The overlay will be clear until the first time this is
|
|
|
|
called, so if you want an initial display you must call this after
|
2001-11-28 21:00:17 +03:00
|
|
|
calling <TT>show()</TT>. </BODY></HTML>
|