Faith::BoxLayout Class Reference

#include <faith/boxlayout.h>

Inheritance diagram for Faith::BoxLayout:

Faith::Layout Faith::HBoxLayout Faith::VBoxLayout List of all members.

Public Member Functions

 BoxLayout (Faith::Widget *widget, int margin=0, int spacing=-1)
virtual ~BoxLayout ()
void addWidget (Faith::Widget *w)
void addLayout (Faith::Layout *l)
void setAutoAdd (bool add)

Protected Types

 Fixed
 Unfixed
enum  Direction { Fixed, Unfixed }

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
void setData (Direction d, int(Size::*readSize)() const, Faith::SizePolicy::Policy(SizePolicy::*readPolicy)() const, void(Size::*writeSize)(int))
virtual void resize (LayoutItem *item, int fixedpos, int unfixedpos, int fixedsize, int unfixedsize)=0

Member Enumeration Documentation

enum Faith::BoxLayout::Direction [protected]

Enumerator:
Fixed 
Unfixed 


Constructor & Destructor Documentation

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

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


Member Function Documentation

void Faith::BoxLayout::addLayout ( Faith::Layout l  ) 

void Faith::BoxLayout::addWidget ( Faith::Widget w  ) 

virtual void Faith::BoxLayout::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::BoxLayout::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::BoxLayout::layout (  )  [protected, virtual]

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

Implements Faith::Layout.

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

Implements Faith::Layout.

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

Implements Faith::Layout.

virtual void Faith::BoxLayout::resize ( LayoutItem *  item,
int  fixedpos,
int  unfixedpos,
int  fixedsize,
int  unfixedsize 
) [protected, pure virtual]

Implemented in Faith::VBoxLayout, and Faith::HBoxLayout.

void Faith::BoxLayout::setAutoAdd ( bool  add  ) 

void Faith::BoxLayout::setData ( Direction  d,
int(Size::*)() const   readSize,
Faith::SizePolicy::Policy(SizePolicy::*)() const   readPolicy,
void(Size::*)(int)  writeSize 
) [protected]


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