Wt::WHBoxLayout Class Reference

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

#include <Wt/WHBoxLayout>

Inherits Wt::WBoxLayout.

List of all members.

Public Member Functions

 WHBoxLayout (WWidget *parent=0)
 Creates a new horizontal box layout.

Detailed Description

A layout manager which arranges widgets horizontally.

This convenience class creates a horizontal box layout, laying contained widgets out from left to right.

See the WBoxLayout documentation for available member methods and more information.

Usage example:

 Wt::WContainerWidget *w = new Wt::WContainerWidget(this);

 Wt::WHBoxLayout *layout = new Wt::WHBoxLayout();
 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, AlignTop | AlignJustify);
Note:
First consider if you can achieve your layout using CSS !
See also:
WVBoxLayout

Constructor & Destructor Documentation

Wt::WHBoxLayout::WHBoxLayout ( WWidget parent = 0  ) 

Creates a new horizontal box layout.

Use parent = 0 to create a layout manager that can be nested inside other layout managers, or to specify a specific alignment when setting the layout to a WContainerWidget.


Generated on Thu May 13 05:16:16 2010 for Wt by doxygen 1.6.3