nodeguy/src/cpp/include/nodegui/QtGui/QEvent/QWheelEvent/qwheelevent_wrap.h
swittk 2b74e3cd77
Added Support for QWheelEvent (#609)
* Added QWheelEvent

* removed x y

Co-authored-by: Switt Kongdachalert <switt1995@yahoo.com>
2020-06-22 09:24:20 +02:00

31 lines
966 B
C++

#pragma once
#include <napi.h>
#include <QWheelEvent>
#include "Extras/Export/export.h"
#include "core/Component/component_macro.h"
class DLL_EXPORT QWheelEventWrap : public Napi::ObjectWrap<QWheelEventWrap> {
COMPONENT_WRAPPED_METHODS_DECLARATION
private:
QWheelEvent* instance;
public:
static Napi::Object init(Napi::Env env, Napi::Object exports);
QWheelEventWrap(const Napi::CallbackInfo& info);
~QWheelEventWrap();
QWheelEvent* getInternalInstance();
// class constructor
static Napi::FunctionReference constructor;
// wrapped methods
Napi::Value angleDelta(const Napi::CallbackInfo& info);
Napi::Value buttons(const Napi::CallbackInfo& info);
Napi::Value globalPosition(const Napi::CallbackInfo& info);
Napi::Value inverted(const Napi::CallbackInfo& info);
Napi::Value phase(const Napi::CallbackInfo& info);
Napi::Value pixelDelta(const Napi::CallbackInfo& info);
Napi::Value position(const Napi::CallbackInfo& info);
};