54 const gcn::Rectangle area =
mContainer->getChildrenArea();
This class is a helper for adding widgets to nested tables in a window.
This class describes the formatting of a widget in the cell of a layout table.
LayoutCell & place(gcn::Widget *wg, int x, int y, int w=1, int h=1)
LayoutCell & at(int x, int y)
LayoutCell & place(int x, int y, gcn::Widget *, int w=1, int h=1)
Adds a widget to the container and sets it at given cell.
ContainerPlacer getPlacer(int x, int y)
Returns a proxy for adding widgets in an inner table of the layout.
void reflowLayout(int w=0, int h=0)
Computes the position of the widgets according to the current layout.
LayoutHelper(gcn::Container *container)
gcn::Container * mContainer
Managed container.
Layout mLayout
Layout handler.
void widgetResized(const gcn::Event &event) override
Called whenever the managed container changes size.
void reflow(int &nW, int &nH)
Sets the positions of all the widgets.