Wt examples: dragdrop/DragApplication.C Source File

Wt examples 4.10.4

Loading...
Searching...
No Matches
DragApplication.C
Go to the documentation of this file.
1#include <Wt/WApplication.h>
2#include <Wt/WText.h>
3
4#include "DragExample.h"
5
6using namespace Wt;
7
8std::unique_ptr<WApplication> createApplication(const WEnvironment& env)
9{
10 std::unique_ptr<WApplication> app
11 = std::make_unique<WApplication>(env);
12 app->setTitle("Drag & drop");
13
14 app->root()->setStyleClass("root");
15
16 app->root()->addWidget(std::make_unique<WText>("<h1>Wt Drag &amp; drop example.</h1>"));
17
18 app->root()->addWidget(std::make_unique<DragExample>());
19
20 app->useStyleSheet("dragdrop.css");
21
22 return app;
23}
24
25 int main(int argc, char **argv)
26{
27 return WRun(argc, argv, &createApplication);
28}
29
main
int main(int argc, char **argv)
Definition DragApplication.C:25
createApplication
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)
Definition DragApplication.C:8
DragExample.h
Wt
Definition AddresseeEdit.h:16