X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frow.h;h=6391008293ecb052439bca810614e1cf8d308c4e;hb=646af3dd91a6ca981572a5b69a0f0bd205d9af49;hp=adc2a6e966c963cf4a119d049011ceac1468fc8c;hpb=df07e8f3e239b146cbc458d3cbd69758e590d255;p=libs%2Fgltk.git diff --git a/source/row.h b/source/row.h index adc2a6e..6391008 100644 --- a/source/row.h +++ b/source/row.h @@ -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