FLTK 1.4.0
Loading...
Searching...
No Matches
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
36class 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
41public:
48 virtual void draw_overlay() = 0;
49private:
50 Fl_Window *overlay_;
51public:
52 void show() FL_OVERRIDE;
53 void hide() FL_OVERRIDE;
54 void flush() FL_OVERRIDE;
55 void resize(int,int,int,int) FL_OVERRIDE;
58 int can_do_overlay();
59 void redraw_overlay();
60protected:
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);
72public:
74 void show(int a, char **b) {Fl_Double_Window::show(a,b);}
76};
77
78#endif
The Fl_Double_Window provides a double-buffered window.
Definition Fl_Double_Window.H:31
void show() FL_OVERRIDE
Makes a widget visible.
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
Fl_Overlay_Window * as_overlay_window() FL_OVERRIDE
Return non-null if this is an Fl_Overlay_Window object.
Definition Fl_Overlay_Window.H:75
virtual void draw_overlay()=0
You must subclass Fl_Overlay_Window and provide this method.
This widget produces an actual window.
Definition Fl_Window.H:55
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46