* updates cmake file for windows plugin support * basic exports * minor export fixes * rename macro * rename export macro * fixes build error on windows * cleanup cmakelist * updated headers
25 lines
654 B
C++
25 lines
654 B
C++
#pragma once
|
|
#include <napi.h>
|
|
#include <nodegui/QtWidgets/QWidget/qwidget_macro.h>
|
|
|
|
#include <QPointer>
|
|
|
|
#include "Extras/Utils/nutils.h"
|
|
#include "nmenu.hpp"
|
|
|
|
class DLL_EXPORT QMenuWrap : public Napi::ObjectWrap<QMenuWrap> {
|
|
QWIDGET_WRAPPED_METHODS_DECLARATION
|
|
private:
|
|
QPointer<NMenu> instance;
|
|
|
|
public:
|
|
static Napi::Object init(Napi::Env env, Napi::Object exports);
|
|
QMenuWrap(const Napi::CallbackInfo& info);
|
|
~QMenuWrap();
|
|
NMenu* getInternalInstance();
|
|
static Napi::FunctionReference constructor;
|
|
// wrapped methods
|
|
Napi::Value setTitle(const Napi::CallbackInfo& info);
|
|
Napi::Value addAction(const Napi::CallbackInfo& info);
|
|
};
|