- Slot *slot = new Slot(*this, w);
-
- if(!slots.empty())
- {
- Slot &prev = *slots.back();
- slot->constraints.push_back(Constraint(RIGHT_OF, prev));
- slot->constraints.push_back(Constraint(ALIGN_TOP, prev));
- slot->constraints.push_back(Constraint(ALIGN_BOTTOM, prev));
- if(uniform)
- slot->constraints.push_back(Constraint(COPY_WIDTH, prev));
- }
- slot->vert_pack.expand = true;
-
- return slot;