1 /*
2  * ===========================
3  * VDK Visual Develeopment Kit
4  * Version 0.4
5  * October 1998
6  * ===========================
7  *
8  * Copyright (C) 1998, Mario Motta
9  * Developed by Mario Motta <mmotta@guest.net>
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
24  * 02111-1307, USA.
25  */
26 
27 #ifndef BOXES_H
28 #define BOXES_H
29 #include <vdk/widcontain.h>
30 #include <vdk/dlist.h>
31 
32 /*! \class VDKBox
33  *  \brief One of the most used widget containers.
34  *
35  *  This class provides boxes used as VDKObject containers
36  */
37 class VDKBox: public VDKObjectContainer
38 {
39  public:
40   /*!
41     Constructor
42     \param owner the form that owns box
43     \param mode either vertical (mode == v_box) or horizontal
44     (mode == h_box)
45    */
46   VDKBox(VDKForm* owner = (VDKForm*) NULL,int mode = v_box);
47   /*!
48     Destructor
49    */
50   virtual ~VDKBox();
51   /*!
52     Adds an object to the box
53     \param obj the object to be added
54     \param justify how the object has to be packed into box,
55     can be one of the following
56     \arg l_justify will be appended to other objects
57     \arg r_justify will be prepended to other objects
58     \param expand object will expand
59     \param fill object will fill all available space
60     \param padding object with be padded with <padding> pixels
61   */
62   virtual void Add(VDKObject* obj, int justify = l_justify,
63 		   int expand = TRUE, int fill = TRUE , int padding = 0);
64 };
65 #endif
66 
67 
68 
69 
70