FLTK
Fl_Overlay_Window.H
1 //
2 // Overlay window header file for the Fast Light Tool Kit (FLTK).
3 //
4 // Copyright 1998-2010 by Bill Spitzak and others.
5 //
6 // This library is free software. Distribution and use rights are outlined in
7 // the file "COPYING" which should have been included with this file. If this
8 // file is missing or damaged, see the license at:
9 //
10 // https://www.fltk.org/COPYING.php
11 //
12 // Please see the following page on how to report bugs and issues:
13 //
14 // https://www.fltk.org/bugs.php
15 //
16 
17 /* \file
18  Fl_Overlay_Window class . */
19 
20 #ifndef Fl_Overlay_Window_H
21 #define Fl_Overlay_Window_H
22 
23 #include "Fl_Double_Window.H"
24 
36 class FL_EXPORT Fl_Overlay_Window : public Fl_Double_Window {
37 #ifndef FL_DOXYGEN
38  friend class _Fl_Overlay;
39  friend class Fl_Window_Driver;
40 #endif
41 public:
48  virtual void draw_overlay() = 0;
49 private:
50  Fl_Window *overlay_;
51 public:
52  void show();
53  void hide();
54  void flush();
55  void resize(int,int,int,int);
58  int can_do_overlay();
59  void redraw_overlay();
60 protected:
64  Fl_Overlay_Window(int W, int H, const char *l=0);
71  Fl_Overlay_Window(int X, int Y, int W, int H, const char *l=0);
72 public:
73  void show(int a, char **b) {Fl_Double_Window::show(a,b);}
74  virtual Fl_Overlay_Window *as_overlay_window() {return this; }
75 };
76 
77 #endif
void resize(int, int, int, int)
Changes the size and position of the window.
Definition: Fl_Double_Window.cxx:50
This widget produces an actual window.
Definition: Fl_Window.H:53
void flush()
Forces the window to be drawn, this window is also made current and calls draw(). ...
Definition: Fl_Double_Window.cxx:69
The Fl_Double_Window provides a double-buffered window.
Definition: Fl_Double_Window.H:38
void hide()
Removes the window from the screen.
Definition: Fl_Double_Window.cxx:60
virtual Fl_Overlay_Window * as_overlay_window()
Return non-null if this is an Fl_Overlay_Window object.
Definition: Fl_Overlay_Window.H:74
void show()
Puts the window on the screen.
Definition: Fl_Double_Window.cxx:45
This window provides double buffering and also the ability to draw the "overlay" which is another pic...
Definition: Fl_Overlay_Window.H:36