
Only the top component is visible, all others are hidden underneath. The preferred size is that of the largest client component.
Public Member Functions | |
| void | add (Component *, const LayoutConstraint *) |
| adds a component to be laid out later | |
| DeckLayout () | |
| int | getTop () const |
returns topmost component's id or -1 if no such component exists | |
| 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 | |
| void | show (Widget *, const int &) |
| displays the given widget's child that was registerd with the given id | |
| ~DeckLayout () | |
Classes | |
| struct | Card |
|
|
|
|
|
|
|
||||||||||||
|
adds a component to be laid out later
The components are only modified when
Implements ONE::gui::LayoutManager. |
|
|
returns topmost component's id or
|
|
||||||||||||
|
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. |
|
||||||||||||
|
displays the given widget's child that was registerd with the given id
|
1.4.3