forked from nodegui/nodegui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflexlayout_wrap.h
More file actions
25 lines (21 loc) · 765 Bytes
/
flexlayout_wrap.h
File metadata and controls
25 lines (21 loc) · 765 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 "flexlayout.h"
#include "src/cpp/QtWidgets/QLayout/qlayout_macro.h"
class FlexLayoutWrap : public Napi::ObjectWrap<FlexLayoutWrap>{
private:
FlexLayout* instance;
public:
static Napi::Object init(Napi::Env env, Napi::Object exports);
FlexLayoutWrap(const Napi::CallbackInfo& info);
~FlexLayoutWrap();
FlexLayout* getInternalInstance();
//class constructor
static Napi::FunctionReference constructor;
//wrapped methods
Napi::Value addWidget(const Napi::CallbackInfo& info);
Napi::Value insertChildBefore(const Napi::CallbackInfo& info);
Napi::Value removeWidget(const Napi::CallbackInfo& info);
Napi::Value setFlexNode(const Napi::CallbackInfo& info);
QLAYOUT_WRAPPED_METHODS_DECLARATION
};