FLTK: Fl_Overlay_Window.H Source File

FLTK

Fl_Overlay_Window.H
1 //
2 // "$Id$"
3 //
4 // Overlay window header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18
19 /* \file
20 Fl_Overlay_Window class . */
21
22 #ifndef Fl_Overlay_Window_H
23 #define Fl_Overlay_Window_H
24
25 #include "Fl_Double_Window.H"
26
38 class FL_EXPORT Fl_Overlay_Window : public Fl_Double_Window {
39 #ifndef FL_DOXYGEN
40 friend class _Fl_Overlay;
41 #endif
42 protected:
49 virtual void draw_overlay() = 0;
50 private:
51 Fl_Window *overlay_;
52 public:
53 void show();
54 void flush();
55 void hide();
56 void resize(int,int,int,int);
57 ~Fl_Overlay_Window();
59 int can_do_overlay();
60 void redraw_overlay();
61 protected:
65 Fl_Overlay_Window(int W, int H, const char *l=0);
72 Fl_Overlay_Window(int X, int Y, int W, int H, const char *l=0);
73 public:
74 void show(int a, char **b) {Fl_Double_Window::show(a,b);}
75 };
76
77 #endif
78
79 //
80 // End of "$Id$".
81 //
Fl_Double_Window::resize
void resize(int, int, int, int)
Changes the size and position of the window.
Definition: Fl_Double_Window.cxx:483
Fl_Overlay_Window::draw_overlay
virtual void draw_overlay()=0
You must subclass Fl_Overlay_Window and provide this method.
Fl_Window
This widget produces an actual window.
Definition: Fl_Window.H:57
Fl_Double_Window::hide
void hide()
Removes the window from the screen.
Definition: Fl_Double_Window.cxx:505
Fl_Overlay_Window
This window provides double buffering and also the ability to draw the "overlay" which is another pic...
Definition: Fl_Overlay_Window.H:38
Fl_Double_Window
The Fl_Double_Window provides a double-buffered window.
Definition: Fl_Double_Window.H:40
Fl_Double_Window::show
void show()
Puts the window on the screen.
Definition: Fl_Double_Window.cxx:79
Fl_Double_Window::flush
void flush()
Forces the window to be redrawn.
Definition: Fl_Double_Window.cxx:388
- © 1998-2016 by Bill Spitzak and others.