Wt examples 4.8.2
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
25int main(int argc, char **argv)
26{
27 return WRun(argc, argv, &createApplication);
28}
29
int main(int argc, char **argv)
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)

Generated on Sat Nov 5 2022 for the C++ Web Toolkit (Wt) by doxygen 1.9.5