themes: Workaround for bug where a background color of RGB 0,0,0 in Black color schem...
[ntk.git] / src / Fl_Menu_Window.cxx
blobc6f6b31d5d96d6fde883acff1f94387fb8ba5382
1 //
2 // "$Id: Fl_Menu_Window.cxx 8198 2011-01-06 10:24:58Z manolo $"
3 //
4 // Menu window code for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Library General Public
10 // License as published by the Free Software Foundation; either
11 // version 2 of the License, or (at your option) any later version.
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Library General Public License for more details.
18 // You should have received a copy of the GNU Library General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 // USA.
23 // Please report all bugs and problems on the following page:
25 // http://www.fltk.org/str.php
28 // This is the window type used by Fl_Menu to make the pop-ups.
29 // It draws in the overlay planes if possible.
31 // Also here is the implementation of the mouse & keyboard grab,
32 // which are used so that clicks outside the program's windows
33 // can be used to dismiss the menus.
35 #include <config.h>
36 #include <FL/Fl.H>
37 #include <FL/x.H>
38 #include <FL/fl_draw.H>
39 #include <FL/Fl_Menu_Window.H>
41 #include <stdio.h>
43 void Fl_Menu_Window::show() {
44 Fl_Single_Window::show();
47 void Fl_Menu_Window::flush() {
48 Fl_Single_Window::flush();
51 // Fix the colormap flashing on Maximum Impact Graphics by erasing the
52 // menu before unmapping it:
53 void Fl_Menu_Window::hide() {
54 // erase();
55 Fl_Single_Window::hide();
58 /** Destroys the window and all of its children.*/
59 Fl_Menu_Window::~Fl_Menu_Window() {
60 hide();
64 // End of "$Id: Fl_Menu_Window.cxx 8198 2011-01-06 10:24:58Z manolo $".