Class demonstrating drag and drop in Wt.
More...
#include <DragExample.h>
Class demonstrating drag and drop in Wt.
Definition at line 13 of file DragExample.h.
◆ DragExample()
DragExample::DragExample |
( |
Wt::WContainerWidget * |
parent | ) |
|
Definition at line 36 of file DragExample.C.
37 WContainerWidget(parent)
39 new WText(
"<p>Help these people with their decision by dragging one of "
40 "the pills.</p>",
this);
42 if (!wApp->environment().javaScript()) {
43 new WText(
"<i>This examples requires that javascript support is "
44 "enabled.</i>",
this);
47 WContainerWidget *pills =
new WContainerWidget(
this);
48 pills->setContentAlignment(AlignCenter);
51 "icons/blue-pill-small.png",
54 "icons/red-pill-small.png",
57 WContainerWidget *dropSites =
new WContainerWidget(
this);
The documentation for this class was generated from the following files:
- /build/witty-XWY8sd/witty-3.3.12+dfsg/examples/dragdrop/DragExample.h
- /build/witty-XWY8sd/witty-3.3.12+dfsg/examples/dragdrop/DragExample.C
WImage * createDragImage(const char *url, const char *smallurl, const char *mimeType, WContainerWidget *p)
Create an image which can be dragged.