FLTK 1.4.4

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
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() FL_OVERRIDE;
53 void hide() FL_OVERRIDE;
54 void flush() FL_OVERRIDE;
55 void resize(int,int,int,int) FL_OVERRIDE;
56 ~Fl_Overlay_Window();
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);}
75 Fl_Overlay_Window *as_overlay_window() FL_OVERRIDE {return this; }
76};
77
78#endif
Fl_Double_Window::show
void show() FL_OVERRIDE
Makes a widget visible.
Definition Fl_Double_Window.cxx:45
Fl_Double_Window::Fl_Double_Window
Fl_Double_Window(int W, int H, const char *l=0)
Creates a new Fl_Double_Window widget using the given position, size, and label (title) string.
Definition Fl_Double_Window.cxx:31
Fl_Overlay_Window::redraw_overlay
void redraw_overlay()
Call this to indicate that the overlay data has changed and needs to be redrawn.
Definition Fl_Overlay_Window.cxx:78
Fl_Overlay_Window::hide
void hide() FL_OVERRIDE
Makes a widget invisible.
Definition Fl_Overlay_Window.cxx:46
Fl_Overlay_Window::resize
void resize(int, int, int, int) FL_OVERRIDE
Changes the size or position of the widget.
Definition Fl_Overlay_Window.cxx:55
Fl_Overlay_Window::Fl_Overlay_Window
Fl_Overlay_Window(int W, int H, const char *l=0)
See Fl_Overlay_Window::Fl_Overlay_Window(int X, int Y, int W, int H, const char *l=0).
Definition Fl_Overlay_Window.cxx:27
Fl_Overlay_Window::can_do_overlay
int can_do_overlay()
Returns non-zero if there's hardware overlay support.
Definition Fl_Overlay_Window.cxx:68
Fl_Overlay_Window::flush
void flush() FL_OVERRIDE
Forces the window to be drawn, this window is also made current and calls draw().
Definition Fl_Overlay_Window.cxx:50
Fl_Overlay_Window::as_overlay_window
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
Fl_Overlay_Window::show
void show() FL_OVERRIDE
Makes a widget visible.
Definition Fl_Overlay_Window.cxx:41
Fl_Overlay_Window::draw_overlay
virtual void draw_overlay()=0
You must subclass Fl_Overlay_Window and provide this method.
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46