15 void Grid::start_row()
21 void Grid::skip_cell()
25 if(cur_column>=columns.size())
29 Layout::Slot *Grid::create_slot(Widget &wdg)
31 Slot *slot = new Slot(*this, wdg);
33 slot->vert_pack.gravity = 1;
37 Slot &prev = *slots.back();
39 slot->constraints.push_back(Constraint(BELOW, prev));
42 slot->constraints.push_back(Constraint(ALIGN_TOP, prev));
43 slot->constraints.push_back(Constraint(ALIGN_BOTTOM, prev));
45 slot->constraints.push_back(Constraint(RIGHT_OF, prev));
50 slot->constraints.push_back(Constraint(COPY_WIDTH, prev));
51 slot->constraints.push_back(Constraint(COPY_HEIGHT, prev));
54 if(cur_column<columns.size() && columns[cur_column])
56 Slot &col = *columns[cur_column];
57 slot->constraints.push_back(Constraint(ALIGN_LEFT, col));
58 slot->constraints.push_back(Constraint(ALIGN_RIGHT, col));
62 if(cur_column>=columns.size())
63 columns.push_back(slot);
64 else if(!columns[cur_column])
65 columns[cur_column] = slot;