Definition at line 18 of file hello.C.
◆ HelloApplication()
HelloApplication::HelloApplication |
( |
const Wt::WEnvironment & |
env | ) |
|
Definition at line 36 of file hello.C.
39 setTitle(
"Hello world");
41 root()->addWidget(Wt::cpp14::make_unique<Wt::WText>(
"Your name, please ? "));
43 nameEdit_ = root()->addWidget(Wt::cpp14::make_unique<Wt::WLineEdit>());
46 auto button = root()->addWidget(Wt::cpp14::make_unique<Wt::WPushButton>(
"Greet me."));
48 button->setMargin(5, Wt::Side::Left);
50 root()->addWidget(Wt::cpp14::make_unique<Wt::WBreak>());
51 greeting_ = root()->addWidget(Wt::cpp14::make_unique<Wt::WText>());
69 button->clicked().connect([=]() {
70 std::cerr <<
"Hello there, " <<
nameEdit_->text() << std::endl;
Wt::WLineEdit * nameEdit_
◆ greet()
void HelloApplication::greet |
( |
| ) |
|
|
private |
Definition at line 74 of file hello.C.
Wt::WLineEdit * nameEdit_
◆ greeting_
Wt::WText* HelloApplication::greeting_ |
|
private |
◆ nameEdit_
Wt::WLineEdit* HelloApplication::nameEdit_ |
|
private |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/wt-4.0.5/examples/hello/hello.C