Repository navigation
Expand file tree
/
Copy pathcimnodes_r.cpp
More file actions
199 lines (193 loc) · 5.26 KB
/
Copy pathcimnodes_r.cpp
File metadata and controls
199 lines (193 loc) · 5.26 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimnodes_r
//based on ImNodes.h file version XXX from https://github.com/rokups/ImNodes
#include "imgui.h"
#include "imgui_internal.h"
#include "./ImNodes/ImNodesEz.h"
#include "cimnodes_r.h"
static inline ImVec2 ConvertToCPP_ImVec2(const ImVec2_c& src)
{
ImVec2 dest;
dest.x = src.x;
dest.y = src.y;
return dest;
}
static inline ImVec2_c ConvertFromCPP_ImVec2(const ImVec2& src)
{
ImVec2_c dest;
dest.x = src.x;
dest.y = src.y;
return dest;
}
static inline ImVec4 ConvertToCPP_ImVec4(const ImVec4_c& src)
{
ImVec4 dest;
dest.x = src.x;
dest.y = src.y;
dest.z = src.z;
dest.w = src.w;
return dest;
}
static inline ImVec4_c ConvertFromCPP_ImVec4(const ImVec4& src)
{
ImVec4_c dest;
dest.x = src.x;
dest.y = src.y;
dest.z = src.z;
dest.w = src.w;
return dest;
}CIMGUI_API CanvasState* CanvasState_CanvasState(void)
{
return IM_NEW(CanvasState)();
}
CIMGUI_API void CanvasState_destroy(CanvasState* self)
{
IM_DELETE(self);
}
CIMGUI_API void ImNodes_BeginCanvas(CanvasState* canvas)
{
return ImNodes::BeginCanvas(canvas);
}
CIMGUI_API void ImNodes_EndCanvas()
{
return ImNodes::EndCanvas();
}
CIMGUI_API bool ImNodes_BeginNode(void* node_id,ImVec2* pos,bool* selected)
{
return ImNodes::BeginNode(node_id,pos,selected);
}
CIMGUI_API void ImNodes_EndNode()
{
return ImNodes::EndNode();
}
CIMGUI_API bool ImNodes_IsNodeHovered()
{
return ImNodes::IsNodeHovered();
}
CIMGUI_API void ImNodes_AutoPositionNode(void* node_id)
{
return ImNodes::AutoPositionNode(node_id);
}
CIMGUI_API bool ImNodes_GetNewConnection(void** input_node,const char** input_slot_title,void** output_node,const char** output_slot_title)
{
return ImNodes::GetNewConnection(input_node,input_slot_title,output_node,output_slot_title);
}
CIMGUI_API bool ImNodes_GetPendingConnection(void** node_id,const char** slot_title,int* slot_kind)
{
return ImNodes::GetPendingConnection(node_id,slot_title,slot_kind);
}
CIMGUI_API bool ImNodes_Connection(void* input_node,const char* input_slot,void* output_node,const char* output_slot)
{
return ImNodes::Connection(input_node,input_slot,output_node,output_slot);
}
CIMGUI_API CanvasState* ImNodes_GetCurrentCanvas()
{
return ImNodes::GetCurrentCanvas();
}
CIMGUI_API int ImNodes_InputSlotKind(int kind)
{
return ImNodes::InputSlotKind(kind);
}
CIMGUI_API int ImNodes_OutputSlotKind(int kind)
{
return ImNodes::OutputSlotKind(kind);
}
CIMGUI_API bool ImNodes_IsInputSlotKind(int kind)
{
return ImNodes::IsInputSlotKind(kind);
}
CIMGUI_API bool ImNodes_IsOutputSlotKind(int kind)
{
return ImNodes::IsOutputSlotKind(kind);
}
CIMGUI_API bool ImNodes_BeginSlot(const char* title,int kind)
{
return ImNodes::BeginSlot(title,kind);
}
CIMGUI_API bool ImNodes_BeginInputSlot(const char* title,int kind)
{
return ImNodes::BeginInputSlot(title,kind);
}
CIMGUI_API bool ImNodes_BeginOutputSlot(const char* title,int kind)
{
return ImNodes::BeginOutputSlot(title,kind);
}
CIMGUI_API void ImNodes_EndSlot()
{
return ImNodes::EndSlot();
}
CIMGUI_API bool ImNodes_IsSlotCurveHovered()
{
return ImNodes::IsSlotCurveHovered();
}
CIMGUI_API bool ImNodes_IsConnectingCompatibleSlot()
{
return ImNodes::IsConnectingCompatibleSlot();
}
CIMGUI_API Context* ImNodes_Ez_CreateContext()
{
return ImNodes::Ez::CreateContext();
}
CIMGUI_API void ImNodes_Ez_FreeContext(Context* ctx)
{
return ImNodes::Ez::FreeContext(ctx);
}
CIMGUI_API void ImNodes_Ez_SetContext(Context* ctx)
{
return ImNodes::Ez::SetContext(ctx);
}
CIMGUI_API CanvasState* ImNodes_Ez_GetState()
{
return &ImNodes::Ez::GetState();
}
CIMGUI_API void ImNodes_Ez_BeginCanvas()
{
return ImNodes::Ez::BeginCanvas();
}
CIMGUI_API void ImNodes_Ez_EndCanvas()
{
return ImNodes::Ez::EndCanvas();
}
CIMGUI_API bool ImNodes_Ez_BeginNode(void* node_id,const char* title,ImVec2* pos,bool* selected)
{
return ImNodes::Ez::BeginNode(node_id,title,pos,selected);
}
CIMGUI_API void ImNodes_Ez_EndNode()
{
return ImNodes::Ez::EndNode();
}
CIMGUI_API void ImNodes_Ez_InputSlots(const SlotInfo* slots,int snum)
{
return ImNodes::Ez::InputSlots(slots,snum);
}
CIMGUI_API void ImNodes_Ez_OutputSlots(const SlotInfo* slots,int snum)
{
return ImNodes::Ez::OutputSlots(slots,snum);
}
CIMGUI_API bool ImNodes_Ez_Connection(void* input_node,const char* input_slot,void* output_node,const char* output_slot)
{
return ImNodes::Ez::Connection(input_node,input_slot,output_node,output_slot);
}
CIMGUI_API void ImNodes_Ez_PushStyleVar_Float(ImNodesStyleVar idx,float val)
{
return ImNodes::Ez::PushStyleVar(idx,val);
}
CIMGUI_API void ImNodes_Ez_PushStyleVar_Vec2(ImNodesStyleVar idx,const ImVec2_c val)
{
return ImNodes::Ez::PushStyleVar(idx,ConvertToCPP_ImVec2(val));
}
CIMGUI_API void ImNodes_Ez_PopStyleVar(int count)
{
return ImNodes::Ez::PopStyleVar(count);
}
CIMGUI_API void ImNodes_Ez_PushStyleColor_U32(ImNodesStyleCol idx,ImU32 col)
{
return ImNodes::Ez::PushStyleColor(idx,col);
}
CIMGUI_API void ImNodes_Ez_PushStyleColor_Vec4(ImNodesStyleCol idx,const ImVec4_c col)
{
return ImNodes::Ez::PushStyleColor(idx,ConvertToCPP_ImVec4(col));
}
CIMGUI_API void ImNodes_Ez_PopStyleColor(int count)
{
return ImNodes::Ez::PopStyleColor(count);
}