nodeguy/src/cpp/include/nodegui/QtWidgets/QSvgWidget/qsvgwidget_wrap.h
Ruslan Garifullin 0b5ee00b58
Added QSvgWidget (#710)
* feat: added QSvgWidget

* docs: fix sidebars syntax
2020-10-18 16:37:52 +02:00

26 lines
645 B
C++

#pragma once
#include <napi.h>
#include <QPointer>
#include "Extras/Export/export.h"
#include "QtWidgets/QWidget/qwidget_macro.h"
#include "nsvgwidget.hpp"
class DLL_EXPORT QSvgWidgetWrap : public Napi::ObjectWrap<QSvgWidgetWrap> {
QWIDGET_WRAPPED_METHODS_DECLARATION
private:
QPointer<NSvgWidget> instance;
public:
static Napi::Object init(Napi::Env env, Napi::Object exports);
QSvgWidgetWrap(const Napi::CallbackInfo& info);
~QSvgWidgetWrap();
NSvgWidget* getInternalInstance();
// class constructor
static Napi::FunctionReference constructor;
// wrapped methods
Napi::Value load(const Napi::CallbackInfo& info);
};