Wt: Wt::WLayoutItem Class Reference

Wt 4.10.4

Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
Wt::WLayoutItem Class Referenceabstract

An abstract base class for items that can participate in a layout. More...

`#include <Wt/WLayoutItem.h>`

Inheritance diagram for Wt::WLayoutItem:
[legend]

## Public Member Functions
virtual | ~WLayoutItem ()
| Destructor.
virtual WWidgetItem * | findWidgetItem (WWidget *widget)=0
| Finds the widget item corresponding to the given widget
virtual WLayout * | layout ()=0
| Returns the layout that implements this WLayoutItem.
virtual WWidget * | widget ()=0
| Returns the widget that is held by this WLayoutItem.
virtual WLayout * | parentLayout () const =0
| Returns the layout in which this item is contained.

## Private Member Functions
virtual void | setParentWidget (WWidget *parent)=0
| Internal method.
virtual void | setParentLayout (WLayout *parentLayout)=0
| Internal method.

## Detailed Description

An abstract base class for items that can participate in a layout.

See also
  WLayout

## Member Function Documentation

## ◆ findWidgetItem()

virtual WWidgetItem * Wt::WLayoutItem::findWidgetItem | ( | WWidget * | widget | ) |
| pure virtual

Finds the widget item corresponding to the given widget

The widget is searched for recursively inside nested layouts.

Implemented in Wt::WLayout, and Wt::WWidgetItem.

## ◆ layout()

virtual WLayout * Wt::WLayoutItem::layout | ( |  | ) |
| pure virtual

Returns the layout that implements this WLayoutItem.

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

Implemented in Wt::WLayout, and Wt::WWidgetItem.

## ◆ widget()

virtual WWidget * Wt::WLayoutItem::widget | ( |  | ) |
| pure virtual

Returns the widget that is held by this WLayoutItem.

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

Implemented in Wt::WLayout, and Wt::WWidgetItem.