Wt examples  4.10.4
Functions
DragApplication.C File Reference
#include <Wt/WApplication.h>
#include <Wt/WText.h>
#include "DragExample.h"

Go to the source code of this file.

Functions

std::unique_ptr< WApplicationcreateApplication (const WEnvironment &env)
 
int main (int argc, char **argv)
 

Function Documentation

◆ createApplication()

std::unique_ptr<WApplication> createApplication ( const WEnvironment env)

Definition at line 8 of file DragApplication.C.

9 {
10  std::unique_ptr<WApplication> app
11  = std::make_unique<WApplication>(env);
12  app->setTitle("Drag & drop");
13 
14  app->root()->setStyleClass("root");
15 
16  app->root()->addWidget(std::make_unique<WText>("<h1>Wt Drag &amp; drop example.</h1>"));
17 
18  app->root()->addWidget(std::make_unique<DragExample>());
19 
20  app->useStyleSheet("dragdrop.css");
21 
22  return app;
23 }

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 25 of file DragApplication.C.

26 {
27  return WRun(argc, argv, &createApplication);
28 }
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)