
Viewport -typical layout
This layout is very similar to the WindowLayout. However, it adds four corner components, so that the top and bottom components have the same width as the center component.
Public Member Functions | |
| void | add (Component *, const LayoutConstraint *) |
| adds a component to be laid out later | |
| const Bounds & | getCenterBounds () const |
| retrieves the bounding rectangle of the center component | |
| 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 | |
| ViewportLayout () | |
Static Public Attributes | |
| static const ViewportConstraint | BOTTOM |
| static const ViewportConstraint | BOTTOM_LEFT |
| static const ViewportConstraint | BOTTOM_RIGHT |
| static const ViewportConstraint | CENTER |
| static const ViewportConstraint | LEFT |
| static const ViewportConstraint | RIGHT |
| static const ViewportConstraint | TOP |
| static const ViewportConstraint | TOP_LEFT |
| static const ViewportConstraint | TOP_RIGHT |
Classes | |
| struct | ViewportConstraint |
|
|
|
|
||||||||||||
|
adds a component to be laid out later
The components are only modified when
Implements ONE::gui::LayoutManager. |
|
|
retrieves the bounding rectangle of the center component
This function retrieves a valid dimension even if no center component is set. This is possible because that field's size is determined by the sizes of the surrounding components. This function assumes that
|
|
||||||||||||
|
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