Base class for all layouts. A layout is used to organise child webgets within a parent webget. More...
#include <qwuilayout.h>
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 () |
| QwuiWebget * | parentWebget () 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 QwuiLayoutItem * | itemAt (int index) const =0 |
| virtual QwuiLayoutItem * | takeAt (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 |
Base class for all layouts. A layout is used to organise child webgets within a parent webget.
| enum QwuiLayout::Unit |
| QwuiLayout::QwuiLayout | ( | QwuiWebget * | parent, | |
| Unit | unit = RelativeStrength | |||
| ) |
| QwuiLayout::QwuiLayout | ( | Unit | unit = RelativeStrength |
) |
| QwuiLayout::~QwuiLayout | ( | ) | [virtual] |
| virtual bool QwuiLayout::contains | ( | QwuiWebget * | w | ) | const [pure virtual] |
Implemented in QwuiBoxLayout, QwuiGridLayout, and QwuiStackedLayout.
| virtual int QwuiLayout::count | ( | ) | const [pure virtual] |
Implemented in QwuiBoxLayout, QwuiGridLayout, and QwuiStackedLayout.
| virtual int QwuiLayout::indexOf | ( | QwuiWebget * | w | ) | const [pure virtual] |
Implemented in QwuiBoxLayout, QwuiGridLayout, and QwuiStackedLayout.
| bool QwuiLayout::isEnabled | ( | ) | const |
| virtual QwuiLayoutItem* QwuiLayout::itemAt | ( | int | index | ) | const [pure virtual] |
Implemented in QwuiBoxLayout, QwuiGridLayout, and QwuiStackedLayout.
| QwuiLayoutItem::ItemType QwuiLayout::itemType | ( | ) | const [virtual] |
Implements QwuiLayoutItem.
| QwuiWebget * QwuiLayout::parentWebget | ( | ) | const |
| virtual void QwuiLayout::removeItem | ( | QwuiLayoutItem * | item | ) | [pure virtual] |
Implemented in QwuiBoxLayout, QwuiGridLayout, and QwuiStackedLayout.
| void QwuiLayout::removeWebget | ( | QwuiWebget * | w | ) |
| virtual void QwuiLayout::render | ( | ) | [pure virtual] |
Implements QwuiLayoutItem.
Implemented in QwuiHBoxLayout, QwuiVBoxLayout, QwuiGridLayout, and QwuiStackedLayout.
| void QwuiLayout::setEnabled | ( | bool | enable | ) |
| void QwuiLayout::setSpacing | ( | int | s | ) |
| void QwuiLayout::setUnit | ( | QwuiLayout::Unit | u | ) |
| int QwuiLayout::spacing | ( | ) | const |
| virtual QwuiLayoutItem* QwuiLayout::takeAt | ( | int | index | ) | [pure virtual] |
Implemented in QwuiBoxLayout, QwuiGridLayout, and QwuiStackedLayout.
| virtual LayoutType QwuiLayout::type | ( | ) | const [pure virtual] |
Implemented in QwuiHBoxLayout, QwuiVBoxLayout, QwuiGridLayout, and QwuiStackedLayout.
| QwuiLayout::Unit QwuiLayout::unit | ( | ) | const |
| QString QwuiLayout::unitToString | ( | ) | const |
friend class QwuiWebget [friend] |
bool QwuiLayout::m_enabled [private] |
int QwuiLayout::m_spacing [private] |
Unit QwuiLayout::m_unit [private] |
1.6.3