
The number of rows and columns is specified by the first two constructor parameters. If a number of rows is specified, the c parameter is ignored and the column number is calculated automatically. All components receive the same size. Inter-cell spacing may be controlled via the hgp and vgp ctor parameters. This layout manager ignores any constraint that is passed to its add function.
Public Member Functions | |
| void | add (Component *, const LayoutConstraint *) |
| adds a component to be laid out later | |
| GridLayout (int r, int c, int hgp=0, int vgp=0) | |
| void | layout (Widget *, const Bounds &) |
| lays out the given object | |
| Size | preferredLayoutSize (const Widget *) const |
| calculates the preferred size for the given object | |
| void | remove (Component *) |
| removes a component | |
|
||||||||||||||||||||
|
|
|
||||||||||||
|
adds a component to be laid out later
The components are only modified when
Implements ONE::gui::LayoutManager. |
|
||||||||||||
|
lays out the given object
This function will rearrange and resize
Implements ONE::gui::LayoutManager. |
|
|
calculates the preferred size for the given object
The size is calculated based on this layout manager's layout strategy and the content's preferred sizes. Note, hovever, that this function does not check for the presence of a border around
Implements ONE::gui::LayoutManager. |
|
|
removes a component
Implements ONE::gui::LayoutManager. |
1.4.3