#pragma once #include #include #include #include "Extras/Export/export.h" #include "QtCore/QObject/qobject_macro.h" class DLL_EXPORT QScreenWrap : public Napi::ObjectWrap, public EventWidget { QOBJECT_WRAPPED_METHODS_DECLARATION_WITH_EVENT_SOURCE(this) // Note: We don't use EVENTWIDGET_IMPLEMENTATIONS() here because this class // doesn't handle any QEvents. private: QPointer instance; public: // class constructor static Napi::FunctionReference constructor; static Napi::Object init(Napi::Env env, Napi::Object exports); QScreenWrap(const Napi::CallbackInfo& info); QScreen* getInternalInstance(); virtual void connectSignalsToEventEmitter(); // Wrapped methods };