[773] | 1 | // |
---|
| 2 | // "$Id: ItemGroup.h 2973 2003-04-20 03:17:51Z easysw $" |
---|
| 3 | // |
---|
| 4 | // Widget designed to be a nested list in a menu or browser. This |
---|
| 5 | // copies the drawing and style code from Item. I did not modify the |
---|
| 6 | // base Menu class this way because the style inheritance would mess |
---|
| 7 | // up the styles of MenuButton and MenuBar. Code is in Item.cxx |
---|
| 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_ItemGroup_h |
---|
| 30 | #define fltk_ItemGroup_h |
---|
| 31 | |
---|
| 32 | #include "Menu.h" |
---|
| 33 | |
---|
| 34 | namespace fltk { |
---|
| 35 | |
---|
| 36 | class FL_API ItemGroup : public Menu { |
---|
| 37 | public: |
---|
| 38 | void draw(); |
---|
| 39 | void layout(); |
---|
| 40 | int handle(int); |
---|
| 41 | ItemGroup(const char* label = 0); |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | #endif |
---|