/usr/include/Wt/WHBoxLayout is in libwt-dev 3.3.6+dfsg-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | // This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef WHBOX_LAYOUT_H_
#define WHBOX_LAYOUT_H_
#include <Wt/WBoxLayout>
namespace Wt {
/*! \class WHBoxLayout Wt/WHBoxLayout Wt/WHBoxLayout
* \brief 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:
* \if cpp
* \code
* 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);
* \endcode
* \elseif java
* \code
* WContainerWidget w = new WContainerWidget(this);
*
* WHBoxLayout layout = new WHBoxLayout();
* layout.addWidget(new WText("One"));
* layout.addWidget(new WText("Two"));
* layout.addWidget(new WText("Three"));
* layout.addWidget(new WText("Four"));
*
* w.setLayout(layout, AlignmentFlag.AlignTop, AlignmentFlag.AlignJustify);
* \endcode
* \endif
*
* \note First consider if you can achieve your layout using CSS !
*
* \sa WVBoxLayout
*/
class WT_API WHBoxLayout : public WBoxLayout
{
public:
/*! \brief Creates a new horizontal box layout.
*
* Use \p parent = \c 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.
*/
WHBoxLayout(WWidget *parent = 0);
};
}
#endif // WHBOX_LAYOUT_H_
|