Faith::GridLayout Class Reference

#include <faith/gridlayout.h>

Inheritance diagram for Faith::GridLayout:

Faith::Layout List of all members.

Public Member Functions

 GridLayout (Faith::Widget *widget, int margin=0, int spacing=-1)
virtual ~GridLayout ()
void addWidget (Faith::Widget *w, int row, int col, int rows, int cols)
void addLayout (Faith::Layout *l, int row, int col, int rows, int cols)
void addWidget (Faith::Widget *w, int row, int col)
void addLayout (Faith::Layout *l, int row, int col)
unsigned numRows () const
unsigned numColumns () const

Protected Member Functions

virtual void layout ()
virtual void childAdded (Faith::Widget *w)
virtual void childRemoved (Faith::Widget *w)
virtual Faith::Size minimumSize () const
virtual Faith::Size maximumSize () const

Constructor & Destructor Documentation

Faith::GridLayout::GridLayout ( Faith::Widget widget,
int  margin = 0,
int  spacing = -1 
)

virtual Faith::GridLayout::~GridLayout (  )  [virtual]


Member Function Documentation

void Faith::GridLayout::addLayout ( Faith::Layout l,
int  row,
int  col 
) [inline]

void Faith::GridLayout::addLayout ( Faith::Layout l,
int  row,
int  col,
int  rows,
int  cols 
)

void Faith::GridLayout::addWidget ( Faith::Widget w,
int  row,
int  col 
) [inline]

void Faith::GridLayout::addWidget ( Faith::Widget w,
int  row,
int  col,
int  rows,
int  cols 
)

virtual void Faith::GridLayout::childAdded ( Faith::Widget w  )  [protected, virtual]

every time a child widget is added to the widget, this is called

If you inherit from Layout, you must call this implementation if the child was indeed added

Implements Faith::Layout.

virtual void Faith::GridLayout::childRemoved ( Faith::Widget w  )  [protected, virtual]

every time a child widget is added to the widget, this is called

If you inherit from Layout, you must call this implementation if the child was indeed added

Implements Faith::Layout.

virtual void Faith::GridLayout::layout (  )  [protected, virtual]

this function is called when the child widgets need to be layed out again

Implements Faith::Layout.

virtual Faith::Size Faith::GridLayout::maximumSize (  )  const [protected, virtual]

Implements Faith::Layout.

virtual Faith::Size Faith::GridLayout::minimumSize (  )  const [protected, virtual]

Implements Faith::Layout.

unsigned Faith::GridLayout::numColumns (  )  const

Returns:
the number of columns

unsigned Faith::GridLayout::numRows (  )  const

Returns:
the number of rows


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:09 2006 for Faith by  doxygen 1.4.7