Wt examples: DeferredWidget< Function > Class Template Reference

Wt examples 4.10.4

Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DeferredWidget< Function > Class Template Reference

`#include <Home.h>`

Inheritance diagram for DeferredWidget< Function >:
[legend]

## Public Member Functions
| DeferredWidget (Function f)

## Private Member Functions
void | load ()

## Private Attributes
Function | f_

## Detailed Description

template<typename Function>
class DeferredWidget< Function >

Definition at line 45 of file Home.h.

## Constructor & Destructor Documentation

## ◆ DeferredWidget()

template<typename Function >

DeferredWidget< Function >::DeferredWidget | ( | Function | f | ) |
| inline

Definition at line 48 of file Home.h.

49 : f_(f) { }
DeferredWidget::f_
Function f_
Definition Home.h:58

## Member Function Documentation

## ◆ load()

template<typename Function >

void DeferredWidget< Function >::load | ( |  | ) |
| inlineprivate

Definition at line 52 of file Home.h.

52 {
53 WContainerWidget::load();
54 if (count() == 0)
55 addWidget(f_());
56 }

## Member Data Documentation

## ◆ f_

template<typename Function >

Function DeferredWidget< Function >::f_
| private

Definition at line 58 of file Home.h.

The documentation for this class was generated from the following file:

- wt-homepage/Home.h