Wt::WDefaultLayout Class Reference

A default layout manager. More...

#include <WDefaultLayout>

Inheritance diagram for Wt::WDefaultLayout:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 WDefaultLayout (WWidget *parent=0)
 Create a new WDefaultLayout.
 ~WDefaultLayout ()
 Delete the layout.
virtual void addItem (WLayoutItem *item)
 Add a layout item.
virtual void removeItem (WLayoutItem *item)
 Remove a layout item (widget or nested layout).
virtual WLayoutItemitemAt (int index) const
 Return the layout item at a specific index.
virtual int indexOf (WLayoutItem *item) const
 Return the index of a given item.
virtual int count () const
 Return the number of items in this layout.


Detailed Description

A default layout manager.

The default layout does not attempt to resize any of the widgets, and puts all widgets vertically above each other.


Constructor & Destructor Documentation

Wt::WDefaultLayout::~WDefaultLayout (  ) 

Delete the layout.

Note: once assigned to a container, the container gets ownership, and so you should not delete the layout yourself.


Member Function Documentation

void Wt::WDefaultLayout::addItem ( WLayoutItem item  )  [virtual]

Add a layout item.

The item may be a widget or nested layout, and is added below the last added item.

See also:
removeItem(WLayoutItem *), addWidget(WWidget *)

Implements Wt::WLayout.

void Wt::WDefaultLayout::removeItem ( WLayoutItem item  )  [virtual]

Remove a layout item (widget or nested layout).

See also:
addItem(WLayoutItem *), removeWidget(WWidget *)

Implements Wt::WLayout.

WLayoutItem * Wt::WDefaultLayout::itemAt ( int  index  )  const [virtual]

Return the layout item at a specific index.

See also:
indexOf(WLayoutItem *)

Implements Wt::WLayout.

int Wt::WDefaultLayout::indexOf ( WLayoutItem item  )  const [virtual]

Return the index of a given item.

See also:
itemAt(int)

Implements Wt::WLayout.


The documentation for this class was generated from the following files:
Generated on Mon Apr 14 15:15:01 2008 for Wt by doxygen 1.5.3