]> git.tdb.fi Git - libs/gltk.git/blob - source/stack.cpp
Make func a normal argument of Text::process_lines
[libs/gltk.git] / source / stack.cpp
1 #include "stack.h"
2
3 namespace Msp {
4 namespace GLtk {
5
6 Stack::Stack(Layout &l):
7         Arrangement(l)
8 { }
9
10 void Stack::process_widget(Widget &wdg, Side side, bool aligned)
11 {
12         if(edges[side].aligned && aligned)
13                 add_constraint(wdg, get_align_constraint(side), side);
14         edges[side].add(wdg, aligned);
15 }
16
17 void Stack::finish_widget(Widget &wdg)
18 {
19         layout.set_ghost(wdg, true);
20 }
21
22
23 Stack::Loader::Loader(Stack &s):
24         DataFile::ObjectLoader<Stack>(s)
25 { }
26
27 } // namespace GLtk
28 } // namespace Msp