// 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 WBoxLayout for available member methods.
 *
 * \note This layout manager is applicable only to WContainerWidget
 * container widgets. You may use it within an Ext::Container
 * indirectly by first setting a WContainerWidget using a WFitLayout.
 *
 * \note When JavaScript support is not available, only Safari and
 * Firefox properly implement this box layout. For other browsers,
 * widgets are not stretched vertically to occupy the entire height of
 * the parent container.
 */
class WT_API WHBoxLayout : public WBoxLayout
{
public:
  /*! \brief Create a new horizontal box layout.
   *
   * Use <i>parent</i>=0 to created a layout manager that can be
   * nested inside other layout managers.
   */
  WHBoxLayout(WWidget *parent = 0);
};

}

#endif // WHBOX_LAYOUT_H_
