]> git.tdb.fi Git - libs/gltk.git/blob - source/row.h
Replace the derived layout classes with a more flexible design
[libs/gltk.git] / source / row.h
1 #ifndef MSP_GLTK_ROW_H_
2 #define MSP_GLTK_ROW_H_
3
4 #include "arrangement.h"
5
6 namespace Msp {
7 namespace GLtk {
8
9 class Row: public Arrangement
10 {
11 private:
12         Edge next_right;
13         bool first;
14         bool split_here;
15         int gravity;
16
17 public:
18         Row(Layout &);
19
20         void split();
21
22 private:
23         virtual void process_widget(Widget &, Side, bool);
24         virtual void finish_widget(Widget &);
25         virtual void finish_slot();
26 };
27
28 } // namespace GLtk
29 } // namespace Msp
30
31 #endif