Wt 3.1.10
Public Member Functions
Wt::WHBoxLayout Class Reference

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

#include <Wt/WHBoxLayout>

Inheritance diagram for Wt::WHBoxLayout:
Inheritance graph
[legend]

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.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator

Generated on Sat Dec 24 2011 for the C++ Web Toolkit (Wt) by doxygen 1.7.4