overview wiki api reference download
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Member Functions | Protected Attributes
gameplay::FlowLayout Class Reference

#include <FlowLayout.h>

Inheritance diagram for gameplay::FlowLayout:
gameplay::Layout gameplay::Ref

List of all members.

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

Detailed Description

Defines a flow layout.

A flow layout arranges controls in order, left-to-right, row by row and wraps.


Member Function Documentation

Returns the horizontal spacing between controls in the layout.

Returns:
The horizontal spacing between controls.

Get the type of this Layout.

Returns:
Layout::LAYOUT_FLOW

Implements gameplay::Layout.

Returns the vertical spacing between controls in the layout.

Returns:
The vertical spacing between controls.
void gameplay::FlowLayout::setSpacing ( int  horizontalSpacing,
int  verticalSpacing 
)

Sets the spacing to add between controls in the layout.

Parameters:
horizontalSpacingThe horizontal spacing between controls.
verticalSpacingThe vertical spacing between controls.
void gameplay::FlowLayout::update ( const Container container) [protected, virtual]

Update the controls contained by the specified container.

Parameters:
containerThe container to update.

Implements gameplay::Layout.


Member Data Documentation

Horizontal spacing between controls.

Vertical spacing between controls.

 All Classes Functions Variables Typedefs Enumerations Enumerator