]> git.tdb.fi Git - libs/gltk.git/blob - source/column.cpp
Add a flag to make widgets in a LinearArrangement the same size
[libs/gltk.git] / source / column.cpp
1 #include "column.h"
2
3 namespace Msp {
4 namespace GLtk {
5
6 Column::Column(Layout &l):
7         LinearArrangement(l, BOTTOM)
8 { }
9
10 void Column::finish_widget(Widget &wdg)
11 {
12         LinearArrangement::finish_widget(wdg);
13         layout.set_gravity(wdg, -1, (gravity==BOTTOM ? -1 : 1));
14 }
15
16 } // namespace GLtk
17 } // namespace Msp