QwuiLayout Class Reference

Base class for all layouts. A layout is used to organise child webgets within a parent webget. More...

#include <qwuilayout.h>

Inheritance diagram for QwuiLayout:

QwuiLayoutItem QwuiBoxLayout QwuiGridLayout QwuiStackedLayout QwuiHBoxLayout QwuiVBoxLayout

List of all members.

Public Types

enum  LayoutType { HBoxLayout, VBoxLayout, GridLayout, StackedLayout }
enum  Unit { Em, Pixel, RelativeStrength }

Public Member Functions

 QwuiLayout (QwuiWebget *parent, Unit unit=RelativeStrength)
 QwuiLayout (Unit unit=RelativeStrength)
virtual ~QwuiLayout ()
QwuiWebgetparentWebget () const
virtual LayoutType type () const =0
virtual void removeItem (QwuiLayoutItem *item)=0
void removeWebget (QwuiWebget *w)
virtual int count () const =0
virtual int indexOf (QwuiWebget *w) const =0
virtual bool contains (QwuiWebget *w) const =0
virtual QwuiLayoutItemitemAt (int index) const =0
virtual QwuiLayoutItemtakeAt (int index)=0
bool isEnabled () const
void setEnabled (bool enable)
void setSpacing (int s)
int spacing () const
ItemType itemType () const
virtual void render ()=0
Unit unit () const
void setUnit (Unit u)
QString unitToString () const

Private Attributes

bool m_enabled
int m_spacing
Unit m_unit

Friends

class QwuiWebget


Detailed Description

Base class for all layouts. A layout is used to organise child webgets within a parent webget.

Member Enumeration Documentation

Enumerator:
HBoxLayout 
VBoxLayout 
GridLayout 
StackedLayout 

Enumerator:
Em 
Pixel 
RelativeStrength 


Constructor & Destructor Documentation

QwuiLayout::QwuiLayout ( QwuiWebget parent,
Unit  unit = RelativeStrength 
)

QwuiLayout::QwuiLayout ( Unit  unit = RelativeStrength  ) 

QwuiLayout::~QwuiLayout (  )  [virtual]


Member Function Documentation

QwuiWebget * QwuiLayout::parentWebget (  )  const

virtual LayoutType QwuiLayout::type (  )  const [pure virtual]

virtual void QwuiLayout::removeItem ( QwuiLayoutItem item  )  [pure virtual]

void QwuiLayout::removeWebget ( QwuiWebget w  ) 

virtual int QwuiLayout::count (  )  const [pure virtual]

virtual int QwuiLayout::indexOf ( QwuiWebget w  )  const [pure virtual]

virtual bool QwuiLayout::contains ( QwuiWebget w  )  const [pure virtual]

virtual QwuiLayoutItem* QwuiLayout::itemAt ( int  index  )  const [pure virtual]

virtual QwuiLayoutItem* QwuiLayout::takeAt ( int  index  )  [pure virtual]

bool QwuiLayout::isEnabled (  )  const

void QwuiLayout::setEnabled ( bool  enable  ) 

void QwuiLayout::setSpacing ( int  s  ) 

int QwuiLayout::spacing (  )  const

QwuiLayoutItem::ItemType QwuiLayout::itemType (  )  const [virtual]

Implements QwuiLayoutItem.

virtual void QwuiLayout::render (  )  [pure virtual]

QwuiLayout::Unit QwuiLayout::unit (  )  const

void QwuiLayout::setUnit ( QwuiLayout::Unit  u  ) 

QString QwuiLayout::unitToString (  )  const


Friends And Related Function Documentation

friend class QwuiWebget [friend]


Member Data Documentation

bool QwuiLayout::m_enabled [private]

int QwuiLayout::m_spacing [private]


The documentation for this class was generated from the following files:

Generated on Fri Dec 19 00:31:14 2008 for QtWui : Web User Interfaces for Qt by  doxygen 1.5.6