* 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>
54 lines
1.9 KiB
C++
54 lines
1.9 KiB
C++
#pragma once
|
|
|
|
#include <napi.h>
|
|
|
|
#include <QDragMoveEvent>
|
|
|
|
#include "Extras/Export/export.h"
|
|
#include "core/Component/component_macro.h"
|
|
|
|
/*
|
|
NOTE : QDragMoveEvent inherits from QDropEvent
|
|
- Is it possible to inherit from QDropEventWrap directly?
|
|
*/
|
|
|
|
class DLL_EXPORT QDragMoveEventWrap
|
|
: public Napi::ObjectWrap<QDragMoveEventWrap> {
|
|
COMPONENT_WRAPPED_METHODS_DECLARATION
|
|
|
|
private:
|
|
QDragMoveEvent* instance;
|
|
|
|
public:
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QDragMoveEventWrap(const Napi::CallbackInfo& info);
|
|
~QDragMoveEventWrap();
|
|
QDragMoveEvent* getInternalInstance();
|
|
// class constructor
|
|
static Napi::FunctionReference constructor;
|
|
|
|
// methods of QDragMoveEvent itself
|
|
// Napi::Value accept(const Napi::CallbackInfo& info); //already in qevent
|
|
Napi::Value answerRect(const Napi::CallbackInfo& info);
|
|
// Napi::Value ignore(const Napi::CallbackInfo& info); //already in qevent
|
|
|
|
// methods copied from QDropEvent
|
|
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 (Not using macro because accept and ignore are
|
|
// overloaded)
|
|
Napi::Value accept(const Napi::CallbackInfo& info);
|
|
Napi::Value ignore(const Napi::CallbackInfo& info);
|
|
Napi::Value isAccepted(const Napi::CallbackInfo& info);
|
|
Napi::Value setAccepted(const Napi::CallbackInfo& info);
|
|
Napi::Value spontaneous(const Napi::CallbackInfo& info);
|
|
Napi::Value _type(const Napi::CallbackInfo& info);
|
|
}; |