Wt examples  4.10.4
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.h>
8 
9 #include "PaintExample.h"
10 
11 using namespace Wt;
12 
14 {
15 public:
17  setTitle("Paint example");
18 
19  useStyleSheet("painting.css");
20 
21  root()->addWidget(std::make_unique<PaintExample>());
22  }
23 };
24 
25 std::unique_ptr<WApplication> createApplication(const WEnvironment& env)
26 {
27  return std::make_unique<PaintApplication>(env);
28 }
29 
30 int main(int argc, char **argv)
31 {
32  return WRun(argc, argv, &createApplication);
33 }
int main(int argc, char **argv)
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)
PaintApplication(const WEnvironment &env)