-void Row::split()
-{
- split_here = true;
- gravity = 1;
-}
-
-void Row::process_widget(Widget &wdg, Side side, bool aligned)
-{
- if(side==LEFT)
- {
- bool snug = (edges[RIGHT].aligned && aligned && !split_here);
- add_constraint(wdg, (snug ? Layout::RIGHT_OF : Layout::FAR_RIGHT_OF), RIGHT);
- if(first)
- edges[LEFT].add(wdg, aligned);
- }
- else if(side==RIGHT)
- next_right.add(wdg, (aligned && gravity>0));
- else
- {
- if(edges[side].aligned && aligned)
- add_constraint(wdg, (side==TOP ? Layout::ALIGN_TOP : Layout::ALIGN_BOTTOM), side);
- edges[side].add(wdg, aligned);
- }
-}
-