- if(cur_column>=columns.size())
- columns.push_back(slot);
- else if(!columns[cur_column])
- columns[cur_column] = slot;
+ edges[RIGHT].add(wdg, (aligned && column+1==columns.size()));
+ columns[column].right.add(wdg, aligned);
+ }
+}
+
+void Grid::finish_widget(Widget &wdg)
+{
+ layout.set_gravity(wdg, -1, 1);
+}
+
+void Grid::finish_slot()
+{
+ ++column;
+ if(column==columns.size())
+ finish_row();
+}
+
+void Grid::finish_row()
+{
+ edges[BOTTOM] = row_bottom;
+ row_bottom.clear();
+ row_top.clear();
+ first_row = false;
+ column = 0;
+}