ui::layout::GridLayout Class Reference

Inheritance diagram for ui::layout::GridLayout:

Inheritance graph
[legend]
Collaboration diagram for ui::layout::GridLayout:

Collaboration graph
[legend]
List of all members.

Detailed Description

Grid-like LayoutManager, organizes all components in a grid, with equal width and height. The grids Rectangles (ie 2x2, 4x6) can be set by the user.


Public Member Functions

 GridLayout (int rows, int cols)
 GridLayout (int rows, int cols, int vGap, int hGap)
 GridLayout (const GridLayout &rhs)
GridLayoutoperator= (const GridLayout &rhs)
void swap (GridLayout &rhs) throw ()
const util::Dimension preferredLayoutSize (const Container *parent) const
void layoutContainer (Container *parent)
void setColumns (int cols)
int getColumns () const
void setRows (int rows)
int getRows () const


Constructor & Destructor Documentation

ui::layout::GridLayout::GridLayout int  rows,
int  cols
 

Create a gridlayout with a defined set of rows and columns.

Parameters:
rows the number of rows for the grid.
cols the number of cols for the grid.

ui::layout::GridLayout::GridLayout int  rows,
int  cols,
int  vGap,
int  hGap
 

Create a gridlayout with a defined set of rows and columns, and given horizontal and vertical space.

Parameters:
rows the number of rows for the grid.
cols the number of cols for the grid.
vGap vertical space between grid cells.
hGap horizontal space between grid cells.

ui::layout::GridLayout::GridLayout const GridLayout rhs  ) 
 

Copy Constructor.

Parameters:
rhs 


Member Function Documentation

const util::Dimension ui::layout::GridLayout::preferredLayoutSize const Container parent  )  const [virtual]
 

Returns the preferred Dimension the Container likes to have. This is used to calculate the preferredSize. It is not guarenteed to be used, but it could happen (one happy customer).

Parameters:
container Container to calculate and return the preferredSize from.
Returns:
The preferred size for the given Container.

Reimplemented from ui::layout::LayoutManager.

void ui::layout::GridLayout::layoutContainer Container parent  )  [virtual]
 

Lay out the given Container.

Parameters:
parent the Container to be laid out.

Reimplemented from ui::layout::LayoutManager.

void ui::layout::GridLayout::setColumns int  cols  ) 
 

Set the number of columns for the grid.

Parameters:
cols new number of columns.

int ui::layout::GridLayout::getColumns  )  const
 

Returns the current number of columns.

void ui::layout::GridLayout::setRows int  rows  ) 
 

Sets the number of rows for the grid.

Parameters:
rows new number of rows.

int ui::layout::GridLayout::getRows  )  const
 

Returns the number of rows.


Generated on Mon Jun 20 19:42:01 2005 for UI by doxygen 1.3.1 using KingsTools