
Component s in containers
Layout managers set the component's position and size according to the manager's rules, the component's preferred size and the associated LayoutConstraint s.
Public Member Functions | |
| virtual void | add (Component *comp, const LayoutConstraint *cons)=0 |
| adds a component to be laid out later | |
| virtual void | layout (Widget *obj, const Bounds &inner)=0 |
| lays out the given object | |
| virtual Size | preferredLayoutSize (const Widget *obj) const =0 |
| calculates the preferred size for the given object | |
| virtual void | remove (Component *comp)=0 |
| removes a component | |
| virtual | ~LayoutManager () |
|
|
|
|
||||||||||||
|
adds a component to be laid out later
The components are only modified when
Implemented in ONE::gui::AlignedLayout, ONE::gui::DeckLayout, ONE::gui::GridLayout, ONE::gui::StackLayout, ONE::gui::ViewportLayout, and ONE::gui::WindowLayout. |
|
||||||||||||
|
lays out the given object
This function will rearrange and resize
Implemented in ONE::gui::AlignedLayout, ONE::gui::DeckLayout, ONE::gui::GridLayout, ONE::gui::StackLayout, ONE::gui::ViewportLayout, and ONE::gui::WindowLayout. |
|
|
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
Implemented in ONE::gui::AlignedLayout, ONE::gui::DeckLayout, ONE::gui::GridLayout, ONE::gui::StackLayout, ONE::gui::ViewportLayout, and ONE::gui::WindowLayout. |
|
|
removes a component
Implemented in ONE::gui::AlignedLayout, ONE::gui::DeckLayout, ONE::gui::GridLayout, ONE::gui::StackLayout, ONE::gui::ViewportLayout, and ONE::gui::WindowLayout. |
1.4.3