22 lines
501 B
C++
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
|
|
};
|
|
|