#pragma once #include #include #include "QtWidgets/QAbstractSlider/qabstractslider_macro.h" #include "QtWidgets/QWidget/qwidget_macro.h" #include "ndial.hpp" class QDialWrap : public Napi::ObjectWrap { QABSTRACTSLIDER_WRAPPED_METHODS_DECLARATION private: QPointer instance; public: static Napi::Object init(Napi::Env env, Napi::Object exports); QDialWrap(const Napi::CallbackInfo& info); ~QDialWrap(); NDial* getInternalInstance(); // class constructor static Napi::FunctionReference constructor; // wrapped methods Napi::Value setNotchesVisible(const Napi::CallbackInfo& info); Napi::Value setWrapping(const Napi::CallbackInfo& info); Napi::Value setNotchTarget(const Napi::CallbackInfo& info); Napi::Value notchTarget(const Napi::CallbackInfo& info); Napi::Value notchesVisible(const Napi::CallbackInfo& info); Napi::Value wrapping(const Napi::CallbackInfo& info); };