#pragma once #include #include "npushbutton.h" #include "src/cpp/QtGui/QWidget/qwidget_macro.h" #include "src/cpp/Extras/Utils/utils.h" class QPushButtonWrap : public Napi::ObjectWrap { private: NPushButton* instance; // std::unique_ptr emitOnNode; public: static Napi::Object init(Napi::Env env, Napi::Object exports); QPushButtonWrap(const Napi::CallbackInfo& info); ~QPushButtonWrap(); NPushButton* getInternalInstance(); //class constructor static Napi::FunctionReference constructor; //wrapped methods Napi::Value setText(const Napi::CallbackInfo& info); QWIDGET_WRAPPED_METHODS_DECLARATION };