#include <Wt/WHBoxLayout>
Public Member Functions | |
WHBoxLayout (WWidget *parent=0) | |
Creates a new horizontal box layout. |
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);
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.