forked from AllenDang/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
imnodesWrapper.h
53 lines (37 loc) · 1.57 KB
/
imnodesWrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include "imguiWrapperTypes.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void iggImNodesCreateContext();
extern void iggImNodesDestroyContext();
extern void iggImNodesBeginNodeEditor();
extern void iggImNodesEndNodeEditor();
extern void iggImNodesBeginNode(int id);
extern void iggImNodesEndNode();
extern void iggImNodesBeginNodeTitleBar();
extern void iggImNodesEndNodeTitleBar();
extern void iggImNodesBeginInputAttribute(int id);
extern void iggImNodesEndInputAttribute();
extern void iggImNodesBeginOutputAttribute(int id);
extern void iggImNodesEndOutputAttribute();
extern void iggImNodesLink(int id, int start_attribute_id, int end_attribute_id);
extern IggBool iggImNodesIsLinkCreated(
int* started_at_node_id,
int* started_at_attribute_id,
int* ended_at_node_id,
int* ended_at_attribute_id,
IggBool* created_from_snap);
extern IggBool iggImNodesIsLinkDestroyed(int* link_id);
extern void iggImNodesPushAttributeFlag(int flag);
extern void iggImNodesPopAttributeFlag();
extern void iggImNodesEnableDetachWithCtrlClick();
extern void iggImNodesSetNodeScreenSpacePos(int node_id, const IggVec2 *screen_space_pos);
extern void iggImNodesSetNodeEditorSpacePos(int node_id, const IggVec2 *editor_space_pos);
extern void iggImNodesSetNodeGridSpacePos(int node_id, const IggVec2 *grid_pos);
extern void iggImNodesGetNodeScreenSpacePos(const int node_id, IggVec2 *pos);
extern void iggImNodesGetNodeEditorSpacePos(const int node_id, IggVec2 *pos);
extern void iggImNodesGetNodeGridSpacePos(const int node_id, IggVec2 *pos);
#ifdef __cplusplus
}
#endif