3 This file is part of libmspgltk
4 Copyright © 2011 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
13 MixedRows::MixedRows(bool u):
23 void MixedRows::start_row(bool u)
31 void MixedRows::split_rows()
37 void MixedRows::split_columns()
43 Layout::Slot *MixedRows::create_slot(Widget &wdg)
45 Slot *slot = new Slot(*this, wdg);
47 slot->horiz_pack.gravity = hgravity;
48 slot->vert_pack.gravity = vgravity;
52 Slot *prev = slots.back();
54 slot->constraints.push_back(Constraint(RIGHT_OF, *prev));
55 slot->constraints.push_back(Constraint(ALIGN_TOP, *prev));
56 slot->constraints.push_back(Constraint(ALIGN_BOTTOM, *prev));
58 slot->constraints.push_back(Constraint(COPY_WIDTH, *prev));
60 else if(!slots.empty())
62 Slot *prev = slots.back();
64 slot->constraints.push_back(Constraint(BELOW, *prev));
66 slot->constraints.push_back(Constraint(COPY_HEIGHT, *prev));