Wt  3.2.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
Wt::WWidgetItem Class Reference

A layout item that holds a single widget. More...

#include <Wt/WWidgetItem>

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

Public Member Functions

 WWidgetItem (WWidget *widget)
 Creates a new item for the given widget.
virtual WWidgetwidget ()
 Returns the widget that is held by this WLayoutItem.
virtual WLayoutlayout ()
 Returns the layout that implements this WLayoutItem.
virtual WLayoutparentLayout () const
 Returns the layout in which this item is contained.
virtual WWidgetItemfindWidgetItem (WWidget *widget)
 Finds the widget item corresponding to the given widget
WLayoutItemImplimpl () const
 Returns the implementation for this layout item.
- Public Member Functions inherited from Wt::WLayoutItem
virtual ~WLayoutItem ()
 Destructor.

Detailed Description

A layout item that holds a single widget.

See Also
WLayout::addWidget(WWidget *)

Member Function Documentation

WWidgetItem * Wt::WWidgetItem::findWidgetItem ( WWidget widget)
virtual

Finds the widget item corresponding to the given widget

The widget is searched for recursively inside nested layouts.

Implements Wt::WLayoutItem.

WLayoutItemImpl* Wt::WWidgetItem::impl ( ) const
virtual

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.

Implements Wt::WLayoutItem.

virtual WLayout* Wt::WWidgetItem::layout ( )
virtual

Returns the layout that implements this WLayoutItem.

This implements a type-safe upcasting mechanism to a WLayout.

Implements Wt::WLayoutItem.

virtual WWidget* Wt::WWidgetItem::widget ( )
virtual

Returns the widget that is held by this WLayoutItem.

This implements a type-safe upcasting mechanism to a WWidgetItem.

Implements Wt::WLayoutItem.


Generated on Mon Oct 29 2012 for the C++ Web Toolkit (Wt) by doxygen 1.8.1.2