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

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

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

RevLine 
[773]1// Layout header file for the Fast Light Tool Kit (FLTK).
2//
3// Copyright 1998-2003 by Bill Spitzak and others.
4//
5// This library is free software; you can redistribute it and/or
6// modify it under the terms of the GNU Library General Public
7// License as published by the Free Software Foundation; either
8// version 2 of the License, or (at your option) any later version.
9//
10// This library is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13// Library General Public License for more details.
14//
15// You should have received a copy of the GNU Library General Public
16// License along with this library; if not, write to the Free Software
17// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18// USA.
19//
20// Please report all bugs and problems to "fltk-bugs@fltk.org".
21//
22
23#ifndef fltk_AlignGroup_h
24#define fltk_AlignGroup_h
25
26#include <fltk/Group.h>
27
28namespace fltk {
29
30class FL_API AlignGroup : public Group {
31  bool vertical_;
32  uchar n_to_break_,dw_,dh_;
33  Flags align_;
34
35public:
36
37  void layout();
38
39  AlignGroup(int X, int Y, int W, int H, const char* L = 0,
40             uchar n_to_break = 0, bool vertical = 1,
41             Flags align = ALIGN_LEFT,
42             uchar dw = 0,uchar dh = 0)
43    : Group(X,Y,W,H,L),
44      vertical_(vertical), n_to_break_(n_to_break), dw_(dw), dh_(dh),
45      align_(align) {}
46
47  bool vertical() const {return vertical_;}
48  void vertical(bool v) {vertical_ = v;}
49
50  uchar n_to_break() const {return n_to_break_;}
51  void n_to_break(uchar n) {n_to_break_ = n;}
52
53  uchar dw() const {return dw_;}
54  void dw(uchar d) {dw_ = d;}
55  uchar dh() const {return dh_;}
56  void dh(uchar d) {dh_ = d;}
57
58  Flags align() const {return align_;}
59  void align(Flags a) {align_ = a;}
60};
61
62}
63
64#endif
Note: See TracBrowser for help on using the repository browser.