]> git.tdb.fi Git - libs/gltk.git/blob - source/column.h
b6092bb5dded802e92fb579ad8569218dd00399e
[libs/gltk.git] / source / column.h
1 #ifndef MSP_GLTK_COLUMN_H_
2 #define MSP_GLTK_COLUMN_H_
3
4 #include <msp/datafile/objectloader.h>
5 #include "arrangement.h"
6
7 namespace Msp {
8 namespace GLtk {
9
10 class Column: public Arrangement
11 {
12 public:
13         class Loader: public DataFile::ObjectLoader<Column>
14         {
15         public:
16                 Loader(Column &);
17         private:
18                 void split();
19         };
20
21 private:
22         Edge next_bottom;
23         bool first;
24         bool split_here;
25         int gravity;
26
27 public:
28         Column(Layout &);
29
30         void split();
31
32 private:
33         virtual void process_widget(Widget &, Side, bool);
34         virtual void finish_widget(Widget &);
35         virtual void finish_slot();
36 };
37
38 } // namespace GLtk
39 } // namespace Msp
40
41 #endif