22 lines
611 B
C++
22 lines
611 B
C++
#ifndef QLABEL_WRAP_H
|
|
#define QLABEL_WRAP_H
|
|
#include <napi.h>
|
|
#include <QLabel>
|
|
|
|
class QLabelWrap : public Napi::ObjectWrap<QLabelWrap>{
|
|
private:
|
|
QLabel* instance;
|
|
public:
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QLabelWrap(const Napi::CallbackInfo& info);
|
|
~QLabelWrap();
|
|
QLabel* getInternalInstance();
|
|
//class constructor
|
|
static Napi::FunctionReference constructor;
|
|
//wrapped methods
|
|
Napi::Value setWordWrap(const Napi::CallbackInfo& info);
|
|
Napi::Value setText(const Napi::CallbackInfo& info);
|
|
Napi::Value setStyleSheet(const Napi::CallbackInfo& info);
|
|
};
|
|
|
|
#endif |