
Window -typical layout
The top and bottom components span the width of the container using this manager. The left, right and center components are sandwiched between them. The top and bottom components receive their preferred heights, the left and right components receive their preferred widths. The other dimensions are controlled by the center component's size. If set, the center component receives all extra space.
Public Member Functions | |
| void | add (Component *, const LayoutConstraint *) |
| adds a component to be laid out later | |
| 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 | |
| WindowLayout (int hgp=0, int vgp=0) | |
Static Public Attributes | |
| static const WindowConstraint | BOTTOM |
| static const WindowConstraint | CENTER |
| static const WindowConstraint | LEFT |
| static const WindowConstraint | RIGHT |
| static const WindowConstraint | TOP |
Classes | |
| struct | WindowConstraint |
|
||||||||||||
|
|
|
||||||||||||
|
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