#include <FlowLayout.h>
Public Member Functions | |
| Layout::Type | getType () |
| int | getHorizontalSpacing () const |
| int | getVerticalSpacing () const |
| void | setSpacing (int horizontalSpacing, int verticalSpacing) |
Protected Member Functions | |
| void | update (const Container *container) |
Protected Attributes | |
| int | _horizontalSpacing |
| int | _verticalSpacing |
Defines a flow layout.
A flow layout arranges controls in order, left-to-right, row by row and wraps.
| int gameplay::FlowLayout::getHorizontalSpacing | ( | ) | const |
Returns the horizontal spacing between controls in the layout.
| Layout::Type gameplay::FlowLayout::getType | ( | ) | [virtual] |
| int gameplay::FlowLayout::getVerticalSpacing | ( | ) | const |
Returns the vertical spacing between controls in the layout.
| void gameplay::FlowLayout::setSpacing | ( | int | horizontalSpacing, |
| int | verticalSpacing | ||
| ) |
Sets the spacing to add between controls in the layout.
| horizontalSpacing | The horizontal spacing between controls. |
| verticalSpacing | The vertical spacing between controls. |
| void gameplay::FlowLayout::update | ( | const Container * | container | ) | [protected, virtual] |
Update the controls contained by the specified container.
| container | The container to update. |
Implements gameplay::Layout.
int gameplay::FlowLayout::_horizontalSpacing [protected] |
Horizontal spacing between controls.
int gameplay::FlowLayout::_verticalSpacing [protected] |
Vertical spacing between controls.
1.7.6.1