#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.
10 std::unique_ptr<WApplication> app
11 = cpp14::make_unique<WApplication>(env);
12 app->setTitle(
"Drag & drop");
14 app->root()->setStyleClass(
"root");
16 app->root()->addWidget(cpp14::make_unique<WText>(
"<h1>Wt Drag & drop example.</h1>"));
18 app->root()->addWidget(cpp14::make_unique<DragExample>());
20 app->useStyleSheet(
"dragdrop.css");
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 25 of file DragApplication.C.
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)