Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Align_Group.h

00001 /*
00002  * $Id: Fl_Align_Group.h,v 1.7 2003/03/28 21:10:18 parshin Exp $
00003  *
00004  * Extended Fast Light Toolkit (EFLTK)
00005  * Copyright (C) 2002-2003 by EDE-Team
00006  * WWW: http://www.sourceforge.net/projects/ede
00007  *
00008  * Fast Light Toolkit (FLTK)
00009  * Copyright (C) 1998-2003 by Bill Spitzak and others.
00010  * WWW: http://www.fltk.org
00011  *
00012  * This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00013  * version 2. See COPYING for details.
00014  *
00015  * Author : Mikko Lahteenmaki
00016  * Email  : mikko@fltk.net
00017  *
00018  * Please report all bugs and problems to "efltk-bugs@fltk.net"
00019  *
00020  */
00021 
00022 #ifndef _FL_ALIGN_GROUP_H_
00023 #define _FL_ALIGN_GROUP_H_
00024 
00025 #include "Fl_Group.h"
00026 
00028 class FL_API Fl_Align_Group : public Fl_Group {
00029 public:
00030     void layout();
00031 
00033     Fl_Align_Group(int X, int Y, int W, int H, const char* L = 0) 
00034     : Fl_Group(X,Y,W,H,L) {
00035         n_to_break_ = 0; vertical_ = 1;
00036         align_ = FL_ALIGN_LEFT;
00037         dw_ = dh_ = 0;
00038     }
00039 
00041     Fl_Align_Group(const char* L = 0,int layout_size=30,Fl_Align layout_al=FL_ALIGN_TOP,int label_w=100) 
00042     : Fl_Group(L,layout_size,layout_al,label_w) {
00043         n_to_break_ = 0; vertical_ = 1;
00044         align_ = FL_ALIGN_LEFT;
00045         dw_ = dh_ = 0;
00046     }
00047 
00048     bool vertical() const {return vertical_;}
00049     void vertical(bool v) {vertical_ = v;}
00050 
00051     uchar n_to_break() const { return n_to_break_; }
00052     void n_to_break(uchar n) { n_to_break_ = n; }
00053 
00054     uchar dw() const {return dw_;}
00055     void dw(uchar d) {dw_ = d;}
00056 
00057     uchar dh() const {return dh_;}
00058     void dh(uchar d) {dh_ = d;}
00059 
00060     Fl_Align align() const {return align_;}
00061     void align(Fl_Align a) {align_ = a;}
00062 
00063 private:
00064     bool vertical_;
00065     uchar n_to_break_,dw_,dh_;
00066     Fl_Align align_;
00067 };
00068 
00069 #endif

Generated on Thu Jul 31 15:33:43 2003 for eFLTK by doxygen1.2.15