1 | // |
---|
2 | // "$Id: Choice.h 4319 2005-05-08 19:18:50Z spitzak $" |
---|
3 | // |
---|
4 | // Popup list of items that the user can choose one of. Based on Motif |
---|
5 | // but modern equivalent is the OS/X popup choices. |
---|
6 | // |
---|
7 | // This is not a "combo box". You should try this, but if you insist |
---|
8 | // on that use the InputBrowser widget. |
---|
9 | // |
---|
10 | // Copyright 2002 by Bill Spitzak and others. |
---|
11 | // |
---|
12 | // This library is free software; you can redistribute it and/or |
---|
13 | // modify it under the terms of the GNU Library General Public |
---|
14 | // License as published by the Free Software Foundation; either |
---|
15 | // version 2 of the License, or (at your option) any later version. |
---|
16 | // |
---|
17 | // This library is distributed in the hope that it will be useful, |
---|
18 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
20 | // Library General Public License for more details. |
---|
21 | // |
---|
22 | // You should have received a copy of the GNU Library General Public |
---|
23 | // License along with this library; if not, write to the Free Software |
---|
24 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
25 | // USA. |
---|
26 | // |
---|
27 | // Please report all bugs and problems to "fltk-bugs@fltk.org". |
---|
28 | // |
---|
29 | |
---|
30 | #ifndef fltk_Choice_h |
---|
31 | #define fltk_Choice_h |
---|
32 | |
---|
33 | #include "Menu.h" |
---|
34 | |
---|
35 | namespace fltk { |
---|
36 | |
---|
37 | class FL_API Choice : public Menu { |
---|
38 | public: |
---|
39 | int handle(int); |
---|
40 | int handle(int, const Rectangle&); |
---|
41 | Choice(int,int,int,int,const char * = 0); |
---|
42 | static NamedStyle* default_style; |
---|
43 | void draw(); |
---|
44 | }; |
---|
45 | |
---|
46 | } |
---|
47 | |
---|
48 | #endif |
---|
49 | |
---|
50 | // |
---|
51 | // End of "$Id: Choice.h 4319 2005-05-08 19:18:50Z spitzak $". |
---|
52 | // |
---|