-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathqwebenginepage_wrap.h
More file actions
24 lines (20 loc) · 812 Bytes
/
qwebenginepage_wrap.h
File metadata and controls
24 lines (20 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include <napi.h>
#include <nodegui/core/Component/component_macro.h>
#include <QWebEnginePage>
class QWebEnginePageWrap : public Napi::ObjectWrap<QWebEnginePageWrap> {
COMPONENT_WRAPPED_METHODS_DECLARATION
private:
QWebEnginePage* instance;
public:
static Napi::FunctionReference constructor;
static Napi::Object init(Napi::Env env, Napi::Object exports);
QWebEnginePageWrap(const Napi::CallbackInfo& info);
QWebEnginePage* getInternalInstance();
// Wrapped methods
Napi::Value runJavaScript(const Napi::CallbackInfo& info);
Napi::Value setWebChannel(const Napi::CallbackInfo& info);
Napi::Value webChannel(const Napi::CallbackInfo& info);
Napi::Value setBackgroundColor(const Napi::CallbackInfo& info);
Napi::Value backgroundColor(const Napi::CallbackInfo& info);
};