FLTK
Fl_Menu_Window.H
1 //
2 // Menu 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_Menu_Window widget . */
19 
20 #ifndef Fl_Menu_Window_H
21 #define Fl_Menu_Window_H
22 
23 #include "Fl_Single_Window.H"
24 
31 class FL_EXPORT Fl_Menu_Window : public Fl_Single_Window {
32 public:
33  void show();
34  void erase();
35  void flush();
36  void hide();
38  unsigned int overlay() {return !(flags()&NO_OVERLAY);}
40  void set_overlay() {clear_flag(NO_OVERLAY);}
43  void clear_overlay() {set_flag(NO_OVERLAY);}
44  ~Fl_Menu_Window();
46  Fl_Menu_Window(int W, int H, const char *l = 0);
48  Fl_Menu_Window(int X, int Y, int W, int H, const char *l = 0);
49 };
50 
51 #endif
void show()
Puts the window on the screen.
Definition: Fl_Single_Window.cxx:26
void clear_flag(unsigned int c)
Clears a flag in the flags mask.
Definition: Fl_Widget.H:136
The Fl_Menu_Window widget is a window type used for menus.
Definition: Fl_Menu_Window.H:31
unsigned int overlay()
Tells if hardware overlay mode is set.
Definition: Fl_Menu_Window.H:38
void clear_overlay()
Tells FLTK to use normal drawing planes instead of overlay planes.
Definition: Fl_Menu_Window.H:43
virtual void flush()
Forces the window to be drawn, this window is also made current and calls draw(). ...
Definition: Fl_Window.cxx:472
void set_flag(unsigned int c)
Sets a flag in the flags mask.
Definition: Fl_Widget.H:134
This is the same as Fl_Window.
Definition: Fl_Single_Window.H:32
window not using a hardware overlay plane (Fl_Menu_Window)
Definition: Fl_Widget.H:156
unsigned int flags() const
Gets the widget flags mask.
Definition: Fl_Widget.H:132
void set_overlay()
Tells FLTK to use hardware overlay planes if they are available.
Definition: Fl_Menu_Window.H:40
virtual void hide()
Removes the window from the screen.
Definition: Fl_Window.cxx:549