Wt examples
3.7.1
public-git
wt
examples
painting
PaintApplication.C
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2008 Emweb bv, Herent, Belgium.
3
*
4
* See the LICENSE file for terms of use.
5
*/
6
7
#include <Wt/WApplication>
8
9
#include "
PaintExample.h
"
10
11
using namespace
Wt
;
12
13
class
PaintApplication
:
public
WApplication
14
{
15
public
:
16
PaintApplication
(
const
WEnvironment
&env):
WApplication
(env) {
17
setTitle(
"Paint example"
);
18
19
useStyleSheet(
"painting.css"
);
20
21
new
PaintExample
(root());
22
}
23
};
24
25
WApplication
*
createApplication
(
const
WEnvironment
& env)
26
{
27
return
new
PaintApplication
(env);
28
}
29
30
int
main
(
int
argc,
char
**argv)
31
{
32
return
WRun(argc, argv, &
createApplication
);
33
}
PaintApplication::PaintApplication
PaintApplication(const WEnvironment &env)
Definition:
PaintApplication.C:16
Wt::WEnvironment
Wt::WApplication
createApplication
WApplication * createApplication(const WEnvironment &env)
Definition:
PaintApplication.C:25
main
int main(int argc, char **argv)
Definition:
PaintApplication.C:30
PaintExample
Definition:
PaintExample.h:17
PaintExample.h
Wt
PaintApplication
Definition:
PaintApplication.C:13
Generated on Tue Dec 15 2020 for
the C++ Web Toolkit (Wt)
by
1.8.13