Wt examples
3.3.12
build
witty-DHLR6e
witty-3.3.12+dfsg
examples
dragdrop
DragApplication.C
Go to the documentation of this file.
1
#include <Wt/WApplication>
2
#include <Wt/WText>
3
4
#include "
DragExample.h
"
5
6
using namespace
Wt
;
7
8
WApplication *
createApplication
(
const
WEnvironment& env)
9
{
10
WApplication *app =
new
WApplication(env);
11
app->setTitle(
"Drag & drop"
);
12
13
app->root()->setStyleClass(
"root"
);
14
15
new
WText(
"<h1>Wt Drag & drop example.</h1>"
, app->root());
16
17
new
DragExample
(app->root());
18
19
app->useStyleSheet(
"dragdrop.css"
);
20
21
return
app;
22
}
23
24
int
main
(
int
argc,
char
**argv)
25
{
26
return
WRun(argc, argv, &
createApplication
);
27
}
28
Wt
Definition:
AddresseeEdit.h:16
createApplication
WApplication * createApplication(const WEnvironment &env)
Definition:
DragApplication.C:8
main
int main(int argc, char **argv)
Definition:
DragApplication.C:24
DragExample
Class demonstrating drag and drop in Wt.
Definition:
DragExample.h:13
DragExample.h
Generated on Fri Apr 24 2020 for
the C++ Web Toolkit (Wt)
by
1.8.17