forked from AllenDang/cimgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cimnodes_typedefs.go
137 lines (105 loc) · 3.73 KB
/
cimnodes_typedefs.go
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
// Code generated by cmd/codegen from https://github.com/AllenDang/cimgui-go.
// DO NOT EDIT.
package imgui
// #include <stdlib.h>
// #include <memory.h>
// #include "extra_types.h"
// #include "cimnodes_wrapper.h"
// #include "cimnodes_typedefs.h"
import "C"
type EmulateThreeButtonMouse struct {
CData *C.EmulateThreeButtonMouse
}
func (self *EmulateThreeButtonMouse) handle() (result *C.EmulateThreeButtonMouse, fin func()) {
return self.CData, func() {}
}
func (self EmulateThreeButtonMouse) c() (C.EmulateThreeButtonMouse, func()) {
result, fn := self.handle()
return *result, fn
}
func newEmulateThreeButtonMouseFromC(cvalue *C.EmulateThreeButtonMouse) *EmulateThreeButtonMouse {
return &EmulateThreeButtonMouse{CData: cvalue}
}
type NodesContext struct {
CData *C.ImNodesContext
}
func (self *NodesContext) handle() (result *C.ImNodesContext, fin func()) {
return self.CData, func() {}
}
func newNodesContextFromC(cvalue *C.ImNodesContext) *NodesContext {
return &NodesContext{CData: cvalue}
}
type NodesEditorContext struct {
CData *C.ImNodesEditorContext
}
func (self *NodesEditorContext) handle() (result *C.ImNodesEditorContext, fin func()) {
return self.CData, func() {}
}
func newNodesEditorContextFromC(cvalue *C.ImNodesEditorContext) *NodesEditorContext {
return &NodesEditorContext{CData: cvalue}
}
type NodesIO struct {
CData *C.ImNodesIO
}
func (self *NodesIO) handle() (result *C.ImNodesIO, fin func()) {
return self.CData, func() {}
}
func (self NodesIO) c() (C.ImNodesIO, func()) {
result, fn := self.handle()
return *result, fn
}
func newNodesIOFromC(cvalue *C.ImNodesIO) *NodesIO {
return &NodesIO{CData: cvalue}
}
type NodesMiniMapNodeHoveringCallbackUserData struct {
Data uintptr
}
func (self *NodesMiniMapNodeHoveringCallbackUserData) handle() (result *C.ImNodesMiniMapNodeHoveringCallbackUserData, fin func()) {
r, f := self.c()
return &r, f
}
func (self NodesMiniMapNodeHoveringCallbackUserData) c() (C.ImNodesMiniMapNodeHoveringCallbackUserData, func()) {
return (C.ImNodesMiniMapNodeHoveringCallbackUserData)(C.ImNodesMiniMapNodeHoveringCallbackUserData_fromUintptr(C.uintptr_t(self.Data))), func() {}
}
func newNodesMiniMapNodeHoveringCallbackUserDataFromC(cvalue *C.ImNodesMiniMapNodeHoveringCallbackUserData) *NodesMiniMapNodeHoveringCallbackUserData {
return &NodesMiniMapNodeHoveringCallbackUserData{Data: (uintptr)(C.ImNodesMiniMapNodeHoveringCallbackUserData_toUintptr(*cvalue))}
}
type NodesStyle struct {
CData *C.ImNodesStyle
}
func (self *NodesStyle) handle() (result *C.ImNodesStyle, fin func()) {
return self.CData, func() {}
}
func (self NodesStyle) c() (C.ImNodesStyle, func()) {
result, fn := self.handle()
return *result, fn
}
func newNodesStyleFromC(cvalue *C.ImNodesStyle) *NodesStyle {
return &NodesStyle{CData: cvalue}
}
type LinkDetachWithModifierClick struct {
CData *C.LinkDetachWithModifierClick
}
func (self *LinkDetachWithModifierClick) handle() (result *C.LinkDetachWithModifierClick, fin func()) {
return self.CData, func() {}
}
func (self LinkDetachWithModifierClick) c() (C.LinkDetachWithModifierClick, func()) {
result, fn := self.handle()
return *result, fn
}
func newLinkDetachWithModifierClickFromC(cvalue *C.LinkDetachWithModifierClick) *LinkDetachWithModifierClick {
return &LinkDetachWithModifierClick{CData: cvalue}
}
type MultipleSelectModifier struct {
CData *C.MultipleSelectModifier
}
func (self *MultipleSelectModifier) handle() (result *C.MultipleSelectModifier, fin func()) {
return self.CData, func() {}
}
func (self MultipleSelectModifier) c() (C.MultipleSelectModifier, func()) {
result, fn := self.handle()
return *result, fn
}
func newMultipleSelectModifierFromC(cvalue *C.MultipleSelectModifier) *MultipleSelectModifier {
return &MultipleSelectModifier{CData: cvalue}
}