source: NonGTP/FLTK/include/fltk/PopupMenu.h @ 773

Revision 773, 1.6 KB checked in by gumbau, 19 years ago (diff)

FLTK imported to SVN repository to be linked agains the GeoTool? application

RevLine 
[773]1//
2// "$Id: PopupMenu.h 2871 2002-12-10 02:01:07Z easysw $"
3//
4// Setting the type to POPUP* will make an invisible widget that can
5// overlap any other widgets and provides a popup menu. The default
6// type gives you something similar to a Choice except it does not
7// display the current value.
8//
9// Copyright 1998-2003 by Bill Spitzak and others.
10//
11// This library is free software; you can redistribute it and/or
12// modify it under the terms of the GNU Library General Public
13// License as published by the Free Software Foundation; either
14// version 2 of the License, or (at your option) any later version.
15//
16// This library is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19// Library General Public License for more details.
20//
21// You should have received a copy of the GNU Library General Public
22// License along with this library; if not, write to the Free Software
23// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24// USA.
25//
26// Please report all bugs and problems to "fltk-bugs@fltk.org".
27//
28
29#ifndef fltk_PopupMenu_h
30#define fltk_PopupMenu_h
31
32#include "Menu.h"
33
34namespace fltk {
35
36class FL_API PopupMenu : public Menu {
37public:
38  // values for type:
39  enum {NORMAL = GROUP_TYPE, POPUP1, POPUP2, POPUP12,
40        POPUP3, POPUP13, POPUP23, POPUP123};
41  int handle(int);
42  int popup();
43  PopupMenu(int,int,int,int,const char * =0);
44  static NamedStyle* default_style;
45
46protected:
47  void draw();
48
49};
50
51}
52#endif
53
54//
55// End of "$Id: PopupMenu.h 2871 2002-12-10 02:01:07Z easysw $".
56//
Note: See TracBrowser for help on using the repository browser.