nodeguy/src/cpp/include/nodegui/QtGui/QEvent/QDropEvent/qdropevent_wrap.h
swittk 3cb3424250
Added QMimeData, additional methods to QUrl, and Dropping should now be supported (#614)
* Added QWheelEvent

* removed x y

* Added QNativeGestureEvent

* Changed wrong type of QNativeGestureEventWrap value

* Added QTabletEvent

* Fixing build error for QTabletEvent

* adding dropaction

* fix typos

* Added more functions to QPainterPath

* Added more functions to QPainterPath

* Fixed multiple typos

* Fixed multiple typos

* Got QPainterPath additions working.

* Modified QPainterPath to use qreal instead

* Added QPointF, added a few missing methods to QPoint

* Added QRectF

* implemented QRectF

* Added acceptDrops and setAcceptDrops to QWidget, will be useful for addon implementation of Drag and Drop

* Added more methods to QUrl

* Added QMimeData, additional methods to QUrl, and Dropping should now be supported

* refactored

* Fixed more merge conflicts

* Is this my final merge conflict??

* All merge conflicts resolved

* All merge conflicts resolved

* Adds guide for drag and drop

* lint fix

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
Co-authored-by: Atul R <atulanand94@gmail.com>
2020-06-27 17:35:31 +02:00

37 lines
1.2 KiB
C++

#pragma once
#include <napi.h>
#include <QDropEvent>
#include "Extras/Export/export.h"
#include "QtGui/QEvent/QEvent/qevent_macro.h"
#include "core/Component/component_macro.h"
class DLL_EXPORT QDropEventWrap : public Napi::ObjectWrap<QDropEventWrap> {
COMPONENT_WRAPPED_METHODS_DECLARATION
private:
QDropEvent* instance;
public:
static Napi::Object init(Napi::Env env, Napi::Object exports);
QDropEventWrap(const Napi::CallbackInfo& info);
~QDropEventWrap();
QDropEvent* getInternalInstance();
// class constructor
static Napi::FunctionReference constructor;
// wrapped methods
Napi::Value acceptProposedAction(const Napi::CallbackInfo& info);
Napi::Value dropAction(const Napi::CallbackInfo& info);
Napi::Value keyboardModifiers(const Napi::CallbackInfo& info);
Napi::Value mouseButtons(const Napi::CallbackInfo& info);
Napi::Value mimeData(const Napi::CallbackInfo& info);
Napi::Value pos(const Napi::CallbackInfo& info);
Napi::Value possibleActions(const Napi::CallbackInfo& info);
Napi::Value proposedAction(const Napi::CallbackInfo& info);
Napi::Value setDropAction(const Napi::CallbackInfo& info);
// Methods from QEvent
QEVENT_WRAPPED_METHODS_DECLARATION
};