Wt
3.3.8
|
A class providing details for a drop event. More...
#include <Wt/WEvent>
Public Types |
Public Member Functions | |
WDropEvent (WObject *source, const std::string &mimeType, const WMouseEvent &mouseEvent) | |
Constructor. | |
WDropEvent (WObject *source, const std::string &mimeType, const WTouchEvent &touchEvent) | |
Constructor. | |
WObject * | source () const |
Returns the source of the drag&drop operation. More... | |
const std::string & | mimeType () const |
Returns the mime type of this drop event. | |
const WMouseEvent * | mouseEvent () const |
Returns the original mouse event. More... | |
const WTouchEvent * | touchEvent () const |
Returns the original touch event. More... | |
OriginalEventType | originalEventType () const |
Returns the type of the original event. | |
A class providing details for a drop event.
The type of the original event.
Enumerator | |
---|---|
MouseEvent |
The original event was a WMouseEvent. |
TouchEvent |
The original event was a WTouchEvent. |
const WMouseEvent* Wt::WDropEvent::mouseEvent | ( | ) | const |
Returns the original mouse event.
If eventType() == MouseEvent, this returns the original mouse event, otherwise this returns null.
WObject* Wt::WDropEvent::source | ( | ) | const |
Returns the source of the drag&drop operation.
The source is the widget that was set draggable using WInteractWidget::setDraggable().
const WTouchEvent* Wt::WDropEvent::touchEvent | ( | ) | const |
Returns the original touch event.
If eventType() == TouchEvent, this returns the original touch event, otherwise this returns null.