]> git.tdb.fi Git - libs/gltk.git/blob - source/row.cpp
Combine common parts of Column and Row into LinearArrangement
[libs/gltk.git] / source / row.cpp
1 #include "row.h"
2
3 namespace Msp {
4 namespace GLtk {
5
6 Row::Row(Layout &l):
7         LinearArrangement(l, RIGHT)
8 { }
9
10 void Row::finish_widget(Widget &wdg)
11 {
12         layout.set_gravity(wdg, (gravity==LEFT ? -1 : 1), 1);
13 }
14
15 } // namespace GLtk
16 } // namespace Msp