]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/row.h
Replace the derived layout classes with a more flexible design
[libs/gltk.git] / source / row.h
index adc2a6e966c963cf4a119d049011ceac1468fc8c..6391008293ecb052439bca810614e1cf8d308c4e 100644 (file)
@@ -1,24 +1,28 @@
 #ifndef MSP_GLTK_ROW_H_
 #define MSP_GLTK_ROW_H_
 
-#include "layout.h"
+#include "arrangement.h"
 
 namespace Msp {
 namespace GLtk {
 
-/**
-Arranges widgets in a single row.
-*/
-class Row: public Layout
+class Row: public Arrangement
 {
 private:
-       bool uniform;
+       Edge next_right;
+       bool first;
+       bool split_here;
+       int gravity;
 
 public:
-       Row(bool = false);
+       Row(Layout &);
+
+       void split();
 
 private:
-       virtual Slot *create_slot(Widget &);
+       virtual void process_widget(Widget &, Side, bool);
+       virtual void finish_widget(Widget &);
+       virtual void finish_slot();
 };
 
 } // namespace GLtk