nodeguy/src/cpp/include/nodegui/QtGui/QIcon/qicon_wrap.h

22 lines
520 B
C++

#pragma once
#include <napi.h>
#include <stdlib.h>
#include <QIcon>
#include "core/Component/component_macro.h"
class QIconWrap : public Napi::ObjectWrap<QIconWrap>
{
private:
std::unique_ptr<QIcon> instance;
public:
static Napi::FunctionReference constructor;
static Napi::Object init(Napi::Env env, Napi::Object exports);
QIconWrap(const Napi::CallbackInfo &info);
~QIconWrap();
QIcon *getInternalInstance();
// Wrapped methods
Napi::Value pixmap(const Napi::CallbackInfo& info);
};