Wt: Wt::WVBoxLayout Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::WVBoxLayout Class Reference

A layout manager which arranges widgets vertically. More...

`#include <Wt/WVBoxLayout>`

Inheritance diagram for Wt::WVBoxLayout:
[legend]

List of all members.

## Public Member Functions
| WVBoxLayout (WWidget *parent=0)
| Create a new vertical box layout.

## Detailed Description

A layout manager which arranges widgets vertically.

This convenience class creates a vertical box layout, laying contained widgets out from top to bottom.

See WBoxLayout for available member methods and more information.

Usage example:

     Wt::WContainerWidget *w = new Wt::WContainerWidget(this);
     w->resize(WLength::Auto, 600);

     Wt::WVBoxLayout *layout = new Wt::WVBoxLayout();
     layout->addWidget(new Wt::WText("One"));
     layout->addWidget(new Wt::WText("Two"));
     layout->addWidget(new Wt::WText("Three"));
     layout->addWidget(new Wt::WText("Four"));

     w->setLayout(layout);

Note:
  First consider if you can achieve your layout using CSS !

See also:
  WHBoxLayout

## Constructor & Destructor Documentation

Wt::WVBoxLayout::WVBoxLayout | ( | WWidget * | parent = `0` | ) |

Create a new vertical box layout.

Use `parent=0` to created a layout manager that can be nested inside other layout managers.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator