/usr/include/Wt/WLayoutItem is in libwt-dev 3.3.0-1build1.
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 69 70 71 72 73 74 | // 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 WLAYOUT_ITEM_H_
#define WLAYOUT_ITEM_H_
#include <Wt/WDllDefs.h>
namespace Wt {
class WLayout;
class WWidget;
class WWidgetItem;
class WLayoutItemImpl;
/*! \class WLayoutItem Wt/WLayoutItem Wt/WLayoutItem
* \brief An abstract base class for items that can participate in a layout.
*
* \sa WLayout
*/
class WT_API WLayoutItem
{
public:
/*! \brief Destructor.
*/
virtual ~WLayoutItem();
/*! \brief Finds the widget item corresponding to the given <i>widget</i>
*
* The widget is searched for recursively inside nested layouts.
*/
virtual WWidgetItem *findWidgetItem(WWidget *widget) = 0;
/*! \brief Returns the layout that implements this WLayoutItem.
*
* This implements a type-safe upcasting mechanism to a WLayout.
*/
virtual WLayout *layout() = 0;
/*! \brief Returns the widget that is held by this WLayoutItem.
*
* This implements a type-safe upcasting mechanism to a WWidgetItem.
*/
virtual WWidget *widget() = 0;
/*! \brief Returns the layout in which this item is contained.
*/
virtual WLayout *parentLayout() const = 0;
/*! \brief Returns the implementation for this layout item.
*
* The implementation of a layout item depends on the kind of
* container for which the layout does layout management.
*/
virtual WLayoutItemImpl *impl() const = 0;
private:
/*! \brief Internal method.
*/
virtual void setParentWidget(WWidget *parent) = 0;
/*! \brief Internal method.
*/
virtual void setParentLayout(WLayout *parentLayout) = 0;
friend class WLayout;
};
}
#endif // WLAYOUT_ITEM_H_
|