nodeguy/src/cpp/QtWidgets/QWidget/qwidget_wrap.h
2019-08-12 23:10:13 +02:00

22 lines
501 B
C++

#pragma once
#include "src/cpp/QtWidgets/QWidget/qwidget_macro.h"
#include <napi.h>
#include "nwidget.h"
class QWidgetWrap : public Napi::ObjectWrap<QWidgetWrap>{
private:
NWidget* instance;
public:
static Napi::Object init(Napi::Env env, Napi::Object exports);
QWidgetWrap(const Napi::CallbackInfo& info);
~QWidgetWrap();
NWidget* getInternalInstance();
//class constructor
static Napi::FunctionReference constructor;
//wrapped methods
QWIDGET_WRAPPED_METHODS_DECLARATION
};