* 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 Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
44 lines
1.6 KiB
C++
44 lines
1.6 KiB
C++
#pragma once
|
|
|
|
#include <napi.h>
|
|
|
|
#include <QTabletEvent>
|
|
|
|
#include "Extras/Export/export.h"
|
|
#include "core/Component/component_macro.h"
|
|
|
|
class DLL_EXPORT QTabletEventWrap : public Napi::ObjectWrap<QTabletEventWrap> {
|
|
COMPONENT_WRAPPED_METHODS_DECLARATION
|
|
|
|
private:
|
|
QTabletEvent* instance;
|
|
|
|
public:
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QTabletEventWrap(const Napi::CallbackInfo& info);
|
|
~QTabletEventWrap();
|
|
QTabletEvent* getInternalInstance();
|
|
// class constructor
|
|
static Napi::FunctionReference constructor;
|
|
// wrapped methods
|
|
Napi::Value button(const Napi::CallbackInfo& info);
|
|
Napi::Value buttons(const Napi::CallbackInfo& info);
|
|
// Somehow this method isn't found on build?
|
|
// Napi::Value deviceType(const Napi::CallbackInfo& info);
|
|
Napi::Value globalPos(const Napi::CallbackInfo& info);
|
|
Napi::Value globalPosF(const Napi::CallbackInfo& info);
|
|
Napi::Value globalX(const Napi::CallbackInfo& info);
|
|
Napi::Value globalY(const Napi::CallbackInfo& info);
|
|
Napi::Value pointerType(const Napi::CallbackInfo& info);
|
|
Napi::Value pos(const Napi::CallbackInfo& info);
|
|
Napi::Value posF(const Napi::CallbackInfo& info);
|
|
Napi::Value pressure(const Napi::CallbackInfo& info);
|
|
Napi::Value rotation(const Napi::CallbackInfo& info);
|
|
Napi::Value tangentialPressure(const Napi::CallbackInfo& info);
|
|
Napi::Value uniqueId(const Napi::CallbackInfo& info);
|
|
Napi::Value x(const Napi::CallbackInfo& info);
|
|
Napi::Value xTilt(const Napi::CallbackInfo& info);
|
|
Napi::Value y(const Napi::CallbackInfo& info);
|
|
Napi::Value yTilt(const Napi::CallbackInfo& info);
|
|
Napi::Value z(const Napi::CallbackInfo& info);
|
|
}; |