Wt
4.11.1
|
A layout item that holds a single widget. More...
#include <Wt/WWidgetItem.h>
Public Member Functions | |
WWidgetItem (std::unique_ptr< WWidget > widget) | |
Creates a new item for the given widget. | |
virtual WWidget * | widget () override |
Returns the widget that is held by this WLayoutItem. More... | |
virtual WLayout * | layout () override |
Returns the layout that implements this WLayoutItem. More... | |
virtual WLayout * | parentLayout () const override |
Returns the layout in which this item is contained. | |
virtual WWidgetItem * | findWidgetItem (WWidget *widget) override |
Finds the widget item corresponding to the given widget More... | |
Public Member Functions inherited from Wt::WLayoutItem | |
virtual | ~WLayoutItem () |
Destructor. | |
Private Member Functions | |
virtual void | setParentWidget (WWidget *parent) override |
Internal method. | |
virtual void | setParentLayout (WLayout *layout) override |
Internal method. | |
A layout item that holds a single widget.
|
overridevirtual |
Finds the widget item corresponding to the given widget
The widget is searched for recursively inside nested layouts.
Implements Wt::WLayoutItem.
|
overridevirtual |
Returns the layout that implements this WLayoutItem.
This implements a type-safe upcasting mechanism to a WLayout.
Implements Wt::WLayoutItem.
|
overridevirtual |
Returns the widget that is held by this WLayoutItem.
This implements a type-safe upcasting mechanism to a WWidgetItem.
Implements Wt::WLayoutItem.