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

#include <VerticalLayout.h>

Inheritance diagram for gameplay::VerticalLayout:
gameplay::Layout gameplay::Ref

List of all members.

Public Member Functions

void setBottomToTop (bool bottomToTop)
bool getBottomToTop ()
Layout::Type getType ()
int getSpacing () const
void setSpacing (int spacing)

Protected Member Functions

 VerticalLayout ()
virtual ~VerticalLayout ()
void update (const Container *container)

Protected Attributes

bool _bottomToTop
int _spacing

Detailed Description

Defines a vertical layout.

Controls are placed next to one another vertically until the bottom-most edge of the container is reached.


Constructor & Destructor Documentation

Constructor.

virtual gameplay::VerticalLayout::~VerticalLayout ( ) [protected, virtual]

Destructor.


Member Function Documentation

Get whether this layout will start laying out controls from the bottom of the container.

Returns:
Whether to start laying out controls from the bottom of the container.

Returns the vertical spacing between controls in the layout.

Returns:
The vertical spacing between controls.

Get the type of this Layout.

Returns:
Layout::LAYOUT_VERTICAL

Implements gameplay::Layout.

void gameplay::VerticalLayout::setBottomToTop ( bool  bottomToTop)

Set whether this layout will start laying out controls from the bottom of the container. This setting defaults to 'false', meaning controls will start at the top.

Parameters:
bottomToTopWhether to start laying out controls from the bottom of the container.
void gameplay::VerticalLayout::setSpacing ( int  spacing)

Sets the vertical spacing to add between controls in the layout.

Parameters:
spacingThe vertical spacing between controls.
void gameplay::VerticalLayout::update ( const Container container) [protected, virtual]

Update the controls contained by the specified container.

Controls are placed next to one another vertically until the bottom-most edge of the container is reached.

Parameters:
containerThe container to update.

Implements gameplay::Layout.


Member Data Documentation

Flag determining whether this layout will start laying out controls from the bottom of the container. The default is 'false' meaning controls will start at the top.

Spacing between controls in the layout.

 All Classes Functions Variables Typedefs Enumerations Enumerator