#include <Wt/WApplication.h>
#include <Wt/WText.h>
#include "DragExample.h"
Go to the source code of this file.
|
std::unique_ptr< WApplication > | createApplication (const WEnvironment &env) |
int | main (int argc, char **argv) |
◆ 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 & 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{
28}
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)