27 lines
724 B
C++
27 lines
724 B
C++
#pragma once
|
|
|
|
#include <napi.h>
|
|
#include <stdlib.h>
|
|
#include "ncheckbox.hpp"
|
|
#include "src/cpp/QtWidgets/QWidget/qwidget_macro.h"
|
|
|
|
|
|
class QCheckBoxWrap : public Napi::ObjectWrap<QCheckBoxWrap>{
|
|
private:
|
|
std::unique_ptr<NCheckBox> instance;
|
|
public:
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QCheckBoxWrap(const Napi::CallbackInfo& info);
|
|
~QCheckBoxWrap();
|
|
NCheckBox* getInternalInstance();
|
|
//class constructor
|
|
static Napi::FunctionReference constructor;
|
|
//wrapped methods
|
|
Napi::Value setText(const Napi::CallbackInfo& info);
|
|
Napi::Value isChecked(const Napi::CallbackInfo& info);
|
|
Napi::Value setChecked(const Napi::CallbackInfo& info);
|
|
|
|
QWIDGET_WRAPPED_METHODS_DECLARATION
|
|
};
|
|
|