]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/row.h
Add some classes for automatically creating basic layouts
[libs/gltk.git] / source / row.h
diff --git a/source/row.h b/source/row.h
new file mode 100644 (file)
index 0000000..f8ebe6c
--- /dev/null
@@ -0,0 +1,34 @@
+/* $Id$
+
+This file is part of libmspgltk
+Copyright © 2011  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#ifndef MSP_GLTK_ROW_H_
+#define MSP_GLTK_ROW_H_
+
+#include "layout.h"
+
+namespace Msp {
+namespace GLtk {
+
+/**
+Arranges widgets in a single row.
+*/
+class Row: public Layout
+{
+private:
+       bool uniform;
+
+public:
+       Row(bool = false);
+
+private:
+       virtual Slot *create_slot(Widget &);
+};
+
+} // namespace GLtk
+} // namespace Msp
+
+#endif