FLTK 1.3.4
Fl_Menu_Window.H
1 //
2 // "$Id: Fl_Menu_Window.H 9637 2012-07-24 04:37:22Z matt $"
3 //
4 // Menu 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_Menu_Window widget . */
21 
22 #ifndef Fl_Menu_Window_H
23 #define Fl_Menu_Window_H
24 
25 #include "Fl_Single_Window.H"
26 
33 class FL_EXPORT Fl_Menu_Window : public Fl_Single_Window {
34 public:
35  void show();
36  void erase();
37  void flush();
38  void hide();
40  unsigned int overlay() {return !(flags()&NO_OVERLAY);}
42  void set_overlay() {clear_flag(NO_OVERLAY);}
45  void clear_overlay() {set_flag(NO_OVERLAY);}
46  ~Fl_Menu_Window();
48  Fl_Menu_Window(int W, int H, const char *l = 0);
50  Fl_Menu_Window(int X, int Y, int W, int H, const char *l = 0);
51 };
52 
53 #endif
54 
55 //
56 // End of "$Id: Fl_Menu_Window.H 9637 2012-07-24 04:37:22Z matt $".
57 //
void show()
Puts the window on the screen.
Definition: Fl_Single_Window.cxx:28
void clear_flag(unsigned int c)
Clears a flag in the flags mask.
Definition: Fl_Widget.H:151
void flush()
Forces the window to be drawn, this window is also made current and calls draw(). ...
Definition: Fl_Single_Window.cxx:34
The Fl_Menu_Window widget is a window type used for menus.
Definition: Fl_Menu_Window.H:33
unsigned int overlay()
Tells if hardware overlay mode is set.
Definition: Fl_Menu_Window.H:40
void clear_overlay()
Tells FLTK to use normal drawing planes instead of overlay planes.
Definition: Fl_Menu_Window.H:45
void set_flag(unsigned int c)
Sets a flag in the flags mask.
Definition: Fl_Widget.H:149
This is the same as Fl_Window.
Definition: Fl_Single_Window.H:34
window not using a hardware overlay plane (Fl_Menu_Window)
Definition: Fl_Widget.H:171
unsigned int flags() const
Gets the widget flags mask.
Definition: Fl_Widget.H:147
void set_overlay()
Tells FLTK to use hardware overlay planes if they are available.
Definition: Fl_Menu_Window.H:42
virtual void hide()
Removes the window from the screen.
Definition: Fl.cxx:1530