]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/floatingarrangement.cpp
Support floating widgets in layouts
[libs/gltk.git] / source / floatingarrangement.cpp
diff --git a/source/floatingarrangement.cpp b/source/floatingarrangement.cpp
new file mode 100644 (file)
index 0000000..6e707e8
--- /dev/null
@@ -0,0 +1,16 @@
+#include "floatingarrangement.h"
+
+namespace Msp {
+namespace GLtk {
+
+FloatingArrangement::FloatingArrangement(Layout &l):
+       Arrangement(l)
+{ }
+
+void FloatingArrangement::finish_widget(Widget &wdg)
+{
+       layout.set_floating(wdg, true);
+}
+
+} // namespace GLtk
+} // namespace Msp