Wt examples  3.7.1
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 
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 &amp; 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 
virtual void setStyleClass(const WString &styleClass) override
int main(int argc, char **argv)
void setTitle(const WString &title)
Class demonstrating drag and drop in Wt.
Definition: DragExample.h:13
WContainerWidget * root() const
WApplication * createApplication(const WEnvironment &env)
void useStyleSheet(const WLink &link, const std::string &media="all")

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13