source: NonGTP/FLTK/include/fltk/PackedGroup.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: PackedGroup.h 3418 2004-05-15 20:52:47Z spitzak $"
3//
4// Group that places all it's child widgets packed against the
5// edges. The edge is decided by the PACK_VERTICAL flag stored on
6// the child and by whether the child is before or after the
7// resizable() child.
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_PackedGroup_h
30#define fltk_PackedGroup_h
31
32#include "Group.h"
33
34namespace fltk {
35
36class FL_API PackedGroup : public Group {
37  int spacing_;
38public:
39  enum { // values for type(int), for back-compatability
40    NORMAL      = GROUP_TYPE,
41    ALL_CHILDREN_VERTICAL = GROUP_TYPE+1
42  };
43  void layout();
44  PackedGroup(int x,int y,int w ,int h,const char *l = 0);
45  int spacing() const {return spacing_;}
46  void spacing(int i) {spacing_ = i;}
47};
48
49}
50
51#endif
52
53//
54// End of "$Id: PackedGroup.h 3418 2004-05-15 20:52:47Z spitzak $".
55//
Note: See TracBrowser for help on using the repository browser.