imnodes-sys 0.5.0

Raw FFI bindings to imnodes
Documentation
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
/* automatically generated by rust-bindgen 0.71.1 */

#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ImGuiContext {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ImVec2 {
    pub x: f32,
    pub y: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ImVec2"][::std::mem::size_of::<ImVec2>() - 8usize];
    ["Alignment of ImVec2"][::std::mem::align_of::<ImVec2>() - 4usize];
    ["Offset of field: ImVec2::x"][::std::mem::offset_of!(ImVec2, x) - 0usize];
    ["Offset of field: ImVec2::y"][::std::mem::offset_of!(ImVec2, y) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ImNodesContext {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ImNodesEditorContext {
    _unused: [u8; 0],
}
pub type ImNodesCol = ::std::os::raw::c_int;
pub type ImNodesStyleVar = ::std::os::raw::c_int;
pub type ImNodesStyleFlags = ::std::os::raw::c_int;
pub type ImNodesPinShape = ::std::os::raw::c_int;
pub type ImNodesAttributeFlags = ::std::os::raw::c_int;
pub type ImNodesMiniMapLocation = ::std::os::raw::c_int;
pub const ImNodesCol__ImNodesCol_NodeBackground: ImNodesCol_ = 0;
pub const ImNodesCol__ImNodesCol_NodeBackgroundHovered: ImNodesCol_ = 1;
pub const ImNodesCol__ImNodesCol_NodeBackgroundSelected: ImNodesCol_ = 2;
pub const ImNodesCol__ImNodesCol_NodeOutline: ImNodesCol_ = 3;
pub const ImNodesCol__ImNodesCol_TitleBar: ImNodesCol_ = 4;
pub const ImNodesCol__ImNodesCol_TitleBarHovered: ImNodesCol_ = 5;
pub const ImNodesCol__ImNodesCol_TitleBarSelected: ImNodesCol_ = 6;
pub const ImNodesCol__ImNodesCol_Link: ImNodesCol_ = 7;
pub const ImNodesCol__ImNodesCol_LinkHovered: ImNodesCol_ = 8;
pub const ImNodesCol__ImNodesCol_LinkSelected: ImNodesCol_ = 9;
pub const ImNodesCol__ImNodesCol_Pin: ImNodesCol_ = 10;
pub const ImNodesCol__ImNodesCol_PinHovered: ImNodesCol_ = 11;
pub const ImNodesCol__ImNodesCol_BoxSelector: ImNodesCol_ = 12;
pub const ImNodesCol__ImNodesCol_BoxSelectorOutline: ImNodesCol_ = 13;
pub const ImNodesCol__ImNodesCol_GridBackground: ImNodesCol_ = 14;
pub const ImNodesCol__ImNodesCol_GridLine: ImNodesCol_ = 15;
pub const ImNodesCol__ImNodesCol_GridLinePrimary: ImNodesCol_ = 16;
pub const ImNodesCol__ImNodesCol_MiniMapBackground: ImNodesCol_ = 17;
pub const ImNodesCol__ImNodesCol_MiniMapBackgroundHovered: ImNodesCol_ = 18;
pub const ImNodesCol__ImNodesCol_MiniMapOutline: ImNodesCol_ = 19;
pub const ImNodesCol__ImNodesCol_MiniMapOutlineHovered: ImNodesCol_ = 20;
pub const ImNodesCol__ImNodesCol_MiniMapNodeBackground: ImNodesCol_ = 21;
pub const ImNodesCol__ImNodesCol_MiniMapNodeBackgroundHovered: ImNodesCol_ = 22;
pub const ImNodesCol__ImNodesCol_MiniMapNodeBackgroundSelected: ImNodesCol_ = 23;
pub const ImNodesCol__ImNodesCol_MiniMapNodeOutline: ImNodesCol_ = 24;
pub const ImNodesCol__ImNodesCol_MiniMapLink: ImNodesCol_ = 25;
pub const ImNodesCol__ImNodesCol_MiniMapLinkSelected: ImNodesCol_ = 26;
pub const ImNodesCol__ImNodesCol_MiniMapCanvas: ImNodesCol_ = 27;
pub const ImNodesCol__ImNodesCol_MiniMapCanvasOutline: ImNodesCol_ = 28;
pub const ImNodesCol__ImNodesCol_COUNT: ImNodesCol_ = 29;
pub type ImNodesCol_ = ::std::os::raw::c_uint;
pub const ImNodesStyleVar__ImNodesStyleVar_GridSpacing: ImNodesStyleVar_ = 0;
pub const ImNodesStyleVar__ImNodesStyleVar_NodeCornerRounding: ImNodesStyleVar_ = 1;
pub const ImNodesStyleVar__ImNodesStyleVar_NodePadding: ImNodesStyleVar_ = 2;
pub const ImNodesStyleVar__ImNodesStyleVar_NodeBorderThickness: ImNodesStyleVar_ = 3;
pub const ImNodesStyleVar__ImNodesStyleVar_LinkThickness: ImNodesStyleVar_ = 4;
pub const ImNodesStyleVar__ImNodesStyleVar_LinkLineSegmentsPerLength: ImNodesStyleVar_ = 5;
pub const ImNodesStyleVar__ImNodesStyleVar_LinkHoverDistance: ImNodesStyleVar_ = 6;
pub const ImNodesStyleVar__ImNodesStyleVar_PinCircleRadius: ImNodesStyleVar_ = 7;
pub const ImNodesStyleVar__ImNodesStyleVar_PinQuadSideLength: ImNodesStyleVar_ = 8;
pub const ImNodesStyleVar__ImNodesStyleVar_PinTriangleSideLength: ImNodesStyleVar_ = 9;
pub const ImNodesStyleVar__ImNodesStyleVar_PinLineThickness: ImNodesStyleVar_ = 10;
pub const ImNodesStyleVar__ImNodesStyleVar_PinHoverRadius: ImNodesStyleVar_ = 11;
pub const ImNodesStyleVar__ImNodesStyleVar_PinOffset: ImNodesStyleVar_ = 12;
pub const ImNodesStyleVar__ImNodesStyleVar_MiniMapPadding: ImNodesStyleVar_ = 13;
pub const ImNodesStyleVar__ImNodesStyleVar_MiniMapOffset: ImNodesStyleVar_ = 14;
pub const ImNodesStyleVar__ImNodesStyleVar_COUNT: ImNodesStyleVar_ = 15;
pub type ImNodesStyleVar_ = ::std::os::raw::c_uint;
pub const ImNodesStyleFlags__ImNodesStyleFlags_None: ImNodesStyleFlags_ = 0;
pub const ImNodesStyleFlags__ImNodesStyleFlags_NodeOutline: ImNodesStyleFlags_ = 1;
pub const ImNodesStyleFlags__ImNodesStyleFlags_GridLines: ImNodesStyleFlags_ = 4;
pub const ImNodesStyleFlags__ImNodesStyleFlags_GridLinesPrimary: ImNodesStyleFlags_ = 8;
pub const ImNodesStyleFlags__ImNodesStyleFlags_GridSnapping: ImNodesStyleFlags_ = 16;
pub type ImNodesStyleFlags_ = ::std::os::raw::c_uint;
pub const ImNodesPinShape__ImNodesPinShape_Circle: ImNodesPinShape_ = 0;
pub const ImNodesPinShape__ImNodesPinShape_CircleFilled: ImNodesPinShape_ = 1;
pub const ImNodesPinShape__ImNodesPinShape_Triangle: ImNodesPinShape_ = 2;
pub const ImNodesPinShape__ImNodesPinShape_TriangleFilled: ImNodesPinShape_ = 3;
pub const ImNodesPinShape__ImNodesPinShape_Quad: ImNodesPinShape_ = 4;
pub const ImNodesPinShape__ImNodesPinShape_QuadFilled: ImNodesPinShape_ = 5;
pub type ImNodesPinShape_ = ::std::os::raw::c_uint;
pub const ImNodesAttributeFlags__ImNodesAttributeFlags_None: ImNodesAttributeFlags_ = 0;
pub const ImNodesAttributeFlags__ImNodesAttributeFlags_EnableLinkDetachWithDragClick:
    ImNodesAttributeFlags_ = 1;
pub const ImNodesAttributeFlags__ImNodesAttributeFlags_EnableLinkCreationOnSnap:
    ImNodesAttributeFlags_ = 2;
pub type ImNodesAttributeFlags_ = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EmulateThreeButtonMouse {
    pub Modifier: *const bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of EmulateThreeButtonMouse"][::std::mem::size_of::<EmulateThreeButtonMouse>() - 8usize];
    ["Alignment of EmulateThreeButtonMouse"]
        [::std::mem::align_of::<EmulateThreeButtonMouse>() - 8usize];
    ["Offset of field: EmulateThreeButtonMouse::Modifier"]
        [::std::mem::offset_of!(EmulateThreeButtonMouse, Modifier) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct LinkDetachWithModifierClick {
    pub Modifier: *const bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of LinkDetachWithModifierClick"]
        [::std::mem::size_of::<LinkDetachWithModifierClick>() - 8usize];
    ["Alignment of LinkDetachWithModifierClick"]
        [::std::mem::align_of::<LinkDetachWithModifierClick>() - 8usize];
    ["Offset of field: LinkDetachWithModifierClick::Modifier"]
        [::std::mem::offset_of!(LinkDetachWithModifierClick, Modifier) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct MultipleSelectModifier {
    pub Modifier: *const bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of MultipleSelectModifier"][::std::mem::size_of::<MultipleSelectModifier>() - 8usize];
    ["Alignment of MultipleSelectModifier"]
        [::std::mem::align_of::<MultipleSelectModifier>() - 8usize];
    ["Offset of field: MultipleSelectModifier::Modifier"]
        [::std::mem::offset_of!(MultipleSelectModifier, Modifier) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ImNodesIO {
    pub EmulateThreeButtonMouse: EmulateThreeButtonMouse,
    pub LinkDetachWithModifierClick: LinkDetachWithModifierClick,
    pub MultipleSelectModifier: MultipleSelectModifier,
    pub AltMouseButton: ::std::os::raw::c_int,
    pub AutoPanningSpeed: f32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ImNodesIO"][::std::mem::size_of::<ImNodesIO>() - 32usize];
    ["Alignment of ImNodesIO"][::std::mem::align_of::<ImNodesIO>() - 8usize];
    ["Offset of field: ImNodesIO::EmulateThreeButtonMouse"]
        [::std::mem::offset_of!(ImNodesIO, EmulateThreeButtonMouse) - 0usize];
    ["Offset of field: ImNodesIO::LinkDetachWithModifierClick"]
        [::std::mem::offset_of!(ImNodesIO, LinkDetachWithModifierClick) - 8usize];
    ["Offset of field: ImNodesIO::MultipleSelectModifier"]
        [::std::mem::offset_of!(ImNodesIO, MultipleSelectModifier) - 16usize];
    ["Offset of field: ImNodesIO::AltMouseButton"]
        [::std::mem::offset_of!(ImNodesIO, AltMouseButton) - 24usize];
    ["Offset of field: ImNodesIO::AutoPanningSpeed"]
        [::std::mem::offset_of!(ImNodesIO, AutoPanningSpeed) - 28usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ImNodesStyle {
    pub GridSpacing: f32,
    pub NodeCornerRounding: f32,
    pub NodePadding: ImVec2,
    pub NodeBorderThickness: f32,
    pub LinkThickness: f32,
    pub LinkLineSegmentsPerLength: f32,
    pub LinkHoverDistance: f32,
    pub PinCircleRadius: f32,
    pub PinQuadSideLength: f32,
    pub PinTriangleSideLength: f32,
    pub PinLineThickness: f32,
    pub PinHoverRadius: f32,
    pub PinOffset: f32,
    pub MiniMapPadding: ImVec2,
    pub MiniMapOffset: ImVec2,
    pub Flags: ImNodesStyleFlags,
    pub Colors: [::std::os::raw::c_uint; 29usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ImNodesStyle"][::std::mem::size_of::<ImNodesStyle>() - 192usize];
    ["Alignment of ImNodesStyle"][::std::mem::align_of::<ImNodesStyle>() - 4usize];
    ["Offset of field: ImNodesStyle::GridSpacing"]
        [::std::mem::offset_of!(ImNodesStyle, GridSpacing) - 0usize];
    ["Offset of field: ImNodesStyle::NodeCornerRounding"]
        [::std::mem::offset_of!(ImNodesStyle, NodeCornerRounding) - 4usize];
    ["Offset of field: ImNodesStyle::NodePadding"]
        [::std::mem::offset_of!(ImNodesStyle, NodePadding) - 8usize];
    ["Offset of field: ImNodesStyle::NodeBorderThickness"]
        [::std::mem::offset_of!(ImNodesStyle, NodeBorderThickness) - 16usize];
    ["Offset of field: ImNodesStyle::LinkThickness"]
        [::std::mem::offset_of!(ImNodesStyle, LinkThickness) - 20usize];
    ["Offset of field: ImNodesStyle::LinkLineSegmentsPerLength"]
        [::std::mem::offset_of!(ImNodesStyle, LinkLineSegmentsPerLength) - 24usize];
    ["Offset of field: ImNodesStyle::LinkHoverDistance"]
        [::std::mem::offset_of!(ImNodesStyle, LinkHoverDistance) - 28usize];
    ["Offset of field: ImNodesStyle::PinCircleRadius"]
        [::std::mem::offset_of!(ImNodesStyle, PinCircleRadius) - 32usize];
    ["Offset of field: ImNodesStyle::PinQuadSideLength"]
        [::std::mem::offset_of!(ImNodesStyle, PinQuadSideLength) - 36usize];
    ["Offset of field: ImNodesStyle::PinTriangleSideLength"]
        [::std::mem::offset_of!(ImNodesStyle, PinTriangleSideLength) - 40usize];
    ["Offset of field: ImNodesStyle::PinLineThickness"]
        [::std::mem::offset_of!(ImNodesStyle, PinLineThickness) - 44usize];
    ["Offset of field: ImNodesStyle::PinHoverRadius"]
        [::std::mem::offset_of!(ImNodesStyle, PinHoverRadius) - 48usize];
    ["Offset of field: ImNodesStyle::PinOffset"]
        [::std::mem::offset_of!(ImNodesStyle, PinOffset) - 52usize];
    ["Offset of field: ImNodesStyle::MiniMapPadding"]
        [::std::mem::offset_of!(ImNodesStyle, MiniMapPadding) - 56usize];
    ["Offset of field: ImNodesStyle::MiniMapOffset"]
        [::std::mem::offset_of!(ImNodesStyle, MiniMapOffset) - 64usize];
    ["Offset of field: ImNodesStyle::Flags"][::std::mem::offset_of!(ImNodesStyle, Flags) - 72usize];
    ["Offset of field: ImNodesStyle::Colors"]
        [::std::mem::offset_of!(ImNodesStyle, Colors) - 76usize];
};
pub const ImNodesMiniMapLocation__ImNodesMiniMapLocation_BottomLeft: ImNodesMiniMapLocation_ = 0;
pub const ImNodesMiniMapLocation__ImNodesMiniMapLocation_BottomRight: ImNodesMiniMapLocation_ = 1;
pub const ImNodesMiniMapLocation__ImNodesMiniMapLocation_TopLeft: ImNodesMiniMapLocation_ = 2;
pub const ImNodesMiniMapLocation__ImNodesMiniMapLocation_TopRight: ImNodesMiniMapLocation_ = 3;
pub type ImNodesMiniMapLocation_ = ::std::os::raw::c_uint;
pub type ImNodesMiniMapNodeHoveringCallback = ::std::option::Option<
    unsafe extern "C" fn(arg1: ::std::os::raw::c_int, arg2: *mut ::std::os::raw::c_void),
>;
pub type ImNodesMiniMapNodeHoveringCallbackUserData = *mut ::std::os::raw::c_void;
unsafe extern "C" {
    pub fn ImNodesIO_ImNodesIO() -> *mut ImNodesIO;
}
unsafe extern "C" {
    pub fn ImNodesIO_destroy(self_: *mut ImNodesIO);
}
unsafe extern "C" {
    pub fn ImNodesStyle_ImNodesStyle() -> *mut ImNodesStyle;
}
unsafe extern "C" {
    pub fn ImNodesStyle_destroy(self_: *mut ImNodesStyle);
}
unsafe extern "C" {
    pub fn imnodes_SetImGuiContext(ctx: *mut ImGuiContext);
}
unsafe extern "C" {
    pub fn imnodes_CreateContext() -> *mut ImNodesContext;
}
unsafe extern "C" {
    pub fn imnodes_DestroyContext(ctx: *mut ImNodesContext);
}
unsafe extern "C" {
    pub fn imnodes_GetCurrentContext() -> *mut ImNodesContext;
}
unsafe extern "C" {
    pub fn imnodes_SetCurrentContext(ctx: *mut ImNodesContext);
}
unsafe extern "C" {
    pub fn imnodes_EditorContextCreate() -> *mut ImNodesEditorContext;
}
unsafe extern "C" {
    pub fn imnodes_EditorContextFree(noname1: *mut ImNodesEditorContext);
}
unsafe extern "C" {
    pub fn imnodes_EditorContextSet(noname1: *mut ImNodesEditorContext);
}
unsafe extern "C" {
    pub fn imnodes_EditorContextGetPanning(pOut: *mut ImVec2);
}
unsafe extern "C" {
    pub fn imnodes_EditorContextResetPanning(pos: ImVec2);
}
unsafe extern "C" {
    pub fn imnodes_EditorContextMoveToNode(node_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_GetIO() -> *mut ImNodesIO;
}
unsafe extern "C" {
    pub fn imnodes_GetStyle() -> *mut ImNodesStyle;
}
unsafe extern "C" {
    pub fn imnodes_StyleColorsDark(dest: *mut ImNodesStyle);
}
unsafe extern "C" {
    pub fn imnodes_StyleColorsClassic(dest: *mut ImNodesStyle);
}
unsafe extern "C" {
    pub fn imnodes_StyleColorsLight(dest: *mut ImNodesStyle);
}
unsafe extern "C" {
    pub fn imnodes_BeginNodeEditor();
}
unsafe extern "C" {
    pub fn imnodes_EndNodeEditor();
}
unsafe extern "C" {
    pub fn imnodes_MiniMap(
        minimap_size_fraction: f32,
        location: ImNodesMiniMapLocation,
        node_hovering_callback: ImNodesMiniMapNodeHoveringCallback,
        node_hovering_callback_data: ImNodesMiniMapNodeHoveringCallbackUserData,
    );
}
unsafe extern "C" {
    pub fn imnodes_PushColorStyle(item: ImNodesCol, color: ::std::os::raw::c_uint);
}
unsafe extern "C" {
    pub fn imnodes_PopColorStyle();
}
unsafe extern "C" {
    pub fn imnodes_PushStyleVar_Float(style_item: ImNodesStyleVar, value: f32);
}
unsafe extern "C" {
    pub fn imnodes_PushStyleVar_Vec2(style_item: ImNodesStyleVar, value: ImVec2);
}
unsafe extern "C" {
    pub fn imnodes_PopStyleVar(count: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_BeginNode(id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_EndNode();
}
unsafe extern "C" {
    pub fn imnodes_GetNodeDimensions(pOut: *mut ImVec2, id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_BeginNodeTitleBar();
}
unsafe extern "C" {
    pub fn imnodes_EndNodeTitleBar();
}
unsafe extern "C" {
    pub fn imnodes_BeginInputAttribute(id: ::std::os::raw::c_int, shape: ImNodesPinShape);
}
unsafe extern "C" {
    pub fn imnodes_EndInputAttribute();
}
unsafe extern "C" {
    pub fn imnodes_BeginOutputAttribute(id: ::std::os::raw::c_int, shape: ImNodesPinShape);
}
unsafe extern "C" {
    pub fn imnodes_EndOutputAttribute();
}
unsafe extern "C" {
    pub fn imnodes_BeginStaticAttribute(id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_EndStaticAttribute();
}
unsafe extern "C" {
    pub fn imnodes_PushAttributeFlag(flag: ImNodesAttributeFlags);
}
unsafe extern "C" {
    pub fn imnodes_PopAttributeFlag();
}
unsafe extern "C" {
    pub fn imnodes_Link(
        id: ::std::os::raw::c_int,
        start_attribute_id: ::std::os::raw::c_int,
        end_attribute_id: ::std::os::raw::c_int,
    );
}
unsafe extern "C" {
    pub fn imnodes_SetNodeDraggable(node_id: ::std::os::raw::c_int, draggable: bool);
}
unsafe extern "C" {
    pub fn imnodes_SetNodeScreenSpacePos(node_id: ::std::os::raw::c_int, screen_space_pos: ImVec2);
}
unsafe extern "C" {
    pub fn imnodes_SetNodeEditorSpacePos(node_id: ::std::os::raw::c_int, editor_space_pos: ImVec2);
}
unsafe extern "C" {
    pub fn imnodes_SetNodeGridSpacePos(node_id: ::std::os::raw::c_int, grid_pos: ImVec2);
}
unsafe extern "C" {
    pub fn imnodes_GetNodeScreenSpacePos(pOut: *mut ImVec2, node_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_GetNodeEditorSpacePos(pOut: *mut ImVec2, node_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_GetNodeGridSpacePos(pOut: *mut ImVec2, node_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_SnapNodeToGrid(node_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_IsEditorHovered() -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsNodeHovered(node_id: *mut ::std::os::raw::c_int) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsLinkHovered(link_id: *mut ::std::os::raw::c_int) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsPinHovered(attribute_id: *mut ::std::os::raw::c_int) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_NumSelectedNodes() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn imnodes_NumSelectedLinks() -> ::std::os::raw::c_int;
}
unsafe extern "C" {
    pub fn imnodes_GetSelectedNodes(node_ids: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_GetSelectedLinks(link_ids: *mut ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_ClearNodeSelection_Nil();
}
unsafe extern "C" {
    pub fn imnodes_ClearLinkSelection_Nil();
}
unsafe extern "C" {
    pub fn imnodes_SelectNode(node_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_ClearNodeSelection_Int(node_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_IsNodeSelected(node_id: ::std::os::raw::c_int) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_SelectLink(link_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_ClearLinkSelection_Int(link_id: ::std::os::raw::c_int);
}
unsafe extern "C" {
    pub fn imnodes_IsLinkSelected(link_id: ::std::os::raw::c_int) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsAttributeActive() -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsAnyAttributeActive(attribute_id: *mut ::std::os::raw::c_int) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsLinkStarted(started_at_attribute_id: *mut ::std::os::raw::c_int) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsLinkDropped(
        started_at_attribute_id: *mut ::std::os::raw::c_int,
        including_detached_links: bool,
    ) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsLinkCreated_BoolPtr(
        started_at_attribute_id: *mut ::std::os::raw::c_int,
        ended_at_attribute_id: *mut ::std::os::raw::c_int,
        created_from_snap: *mut bool,
    ) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsLinkCreated_IntPtr(
        started_at_node_id: *mut ::std::os::raw::c_int,
        started_at_attribute_id: *mut ::std::os::raw::c_int,
        ended_at_node_id: *mut ::std::os::raw::c_int,
        ended_at_attribute_id: *mut ::std::os::raw::c_int,
        created_from_snap: *mut bool,
    ) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_IsLinkDestroyed(link_id: *mut ::std::os::raw::c_int) -> bool;
}
unsafe extern "C" {
    pub fn imnodes_SaveCurrentEditorStateToIniString(
        data_size: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    pub fn imnodes_SaveEditorStateToIniString(
        editor: *const ImNodesEditorContext,
        data_size: *mut usize,
    ) -> *const ::std::os::raw::c_char;
}
unsafe extern "C" {
    pub fn imnodes_LoadCurrentEditorStateFromIniString(
        data: *const ::std::os::raw::c_char,
        data_size: usize,
    );
}
unsafe extern "C" {
    pub fn imnodes_LoadEditorStateFromIniString(
        editor: *mut ImNodesEditorContext,
        data: *const ::std::os::raw::c_char,
        data_size: usize,
    );
}
unsafe extern "C" {
    pub fn imnodes_SaveCurrentEditorStateToIniFile(file_name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    pub fn imnodes_SaveEditorStateToIniFile(
        editor: *const ImNodesEditorContext,
        file_name: *const ::std::os::raw::c_char,
    );
}
unsafe extern "C" {
    pub fn imnodes_LoadCurrentEditorStateFromIniFile(file_name: *const ::std::os::raw::c_char);
}
unsafe extern "C" {
    pub fn imnodes_LoadEditorStateFromIniFile(
        editor: *mut ImNodesEditorContext,
        file_name: *const ::std::os::raw::c_char,
    );
}