Wt examples
3.3.0
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
build
buildd
witty-3.3.0
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
Generated on Fri May 31 2013 for
the C++ Web Toolkit (Wt)
by
1.8.3.1