forked from AllenDang/cimgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cimnodes_structs.go
146 lines (119 loc) · 4.9 KB
/
cimnodes_structs.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
138
139
140
141
142
143
144
145
146
// 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"
import "C"
import "unsafe"
type EmulateThreeButtonMouse struct {
// TODO: contains unsupported fields
data unsafe.Pointer
}
func (self EmulateThreeButtonMouse) handle() (result *C.EmulateThreeButtonMouse, releaseFn func()) {
result = (*C.EmulateThreeButtonMouse)(self.data)
return result, func() {}
}
func (self EmulateThreeButtonMouse) c() (result C.EmulateThreeButtonMouse, fin func()) {
resultPtr, finFn := self.handle()
return *resultPtr, finFn
}
func newEmulateThreeButtonMouseFromC(cvalue *C.EmulateThreeButtonMouse) *EmulateThreeButtonMouse {
result := new(EmulateThreeButtonMouse)
result.data = unsafe.Pointer(cvalue)
return result
}
type NodesIO struct {
FieldEmulateThreeButtonMouse EmulateThreeButtonMouse
FieldLinkDetachWithModifierClick LinkDetachWithModifierClick
FieldMultipleSelectModifier MultipleSelectModifier
FieldAltMouseButton int32
FieldAutoPanningSpeed float32
}
func (self NodesIO) handle() (result *C.ImNodesIO, releaseFn func()) {
result = new(C.ImNodesIO)
FieldEmulateThreeButtonMouse := self.FieldEmulateThreeButtonMouse
FieldEmulateThreeButtonMouseArg, FieldEmulateThreeButtonMouseFin := FieldEmulateThreeButtonMouse.c()
result.EmulateThreeButtonMouse = FieldEmulateThreeButtonMouseArg
FieldLinkDetachWithModifierClick := self.FieldLinkDetachWithModifierClick
FieldLinkDetachWithModifierClickArg, FieldLinkDetachWithModifierClickFin := FieldLinkDetachWithModifierClick.c()
result.LinkDetachWithModifierClick = FieldLinkDetachWithModifierClickArg
FieldMultipleSelectModifier := self.FieldMultipleSelectModifier
FieldMultipleSelectModifierArg, FieldMultipleSelectModifierFin := FieldMultipleSelectModifier.c()
result.MultipleSelectModifier = FieldMultipleSelectModifierArg
FieldAltMouseButton := self.FieldAltMouseButton
result.AltMouseButton = C.int(FieldAltMouseButton)
FieldAutoPanningSpeed := self.FieldAutoPanningSpeed
result.AutoPanningSpeed = C.float(FieldAutoPanningSpeed)
releaseFn = func() {
FieldEmulateThreeButtonMouseFin()
FieldLinkDetachWithModifierClickFin()
FieldMultipleSelectModifierFin()
}
return result, releaseFn
}
func (self NodesIO) c() (result C.ImNodesIO, fin func()) {
resultPtr, finFn := self.handle()
return *resultPtr, finFn
}
func newNodesIOFromC(cvalue *C.ImNodesIO) *NodesIO {
result := new(NodesIO)
result.FieldEmulateThreeButtonMouse = *newEmulateThreeButtonMouseFromC(func() *C.EmulateThreeButtonMouse { result := cvalue.EmulateThreeButtonMouse; return &result }())
result.FieldLinkDetachWithModifierClick = *newLinkDetachWithModifierClickFromC(func() *C.LinkDetachWithModifierClick { result := cvalue.LinkDetachWithModifierClick; return &result }())
result.FieldMultipleSelectModifier = *newMultipleSelectModifierFromC(func() *C.MultipleSelectModifier { result := cvalue.MultipleSelectModifier; return &result }())
result.FieldAltMouseButton = int32(cvalue.AltMouseButton)
result.FieldAutoPanningSpeed = float32(cvalue.AutoPanningSpeed)
return result
}
type NodesStyle struct {
// TODO: contains unsupported fields
data unsafe.Pointer
}
func (self NodesStyle) handle() (result *C.ImNodesStyle, releaseFn func()) {
result = (*C.ImNodesStyle)(self.data)
return result, func() {}
}
func (self NodesStyle) c() (result C.ImNodesStyle, fin func()) {
resultPtr, finFn := self.handle()
return *resultPtr, finFn
}
func newNodesStyleFromC(cvalue *C.ImNodesStyle) *NodesStyle {
result := new(NodesStyle)
result.data = unsafe.Pointer(cvalue)
return result
}
type LinkDetachWithModifierClick struct {
// TODO: contains unsupported fields
data unsafe.Pointer
}
func (self LinkDetachWithModifierClick) handle() (result *C.LinkDetachWithModifierClick, releaseFn func()) {
result = (*C.LinkDetachWithModifierClick)(self.data)
return result, func() {}
}
func (self LinkDetachWithModifierClick) c() (result C.LinkDetachWithModifierClick, fin func()) {
resultPtr, finFn := self.handle()
return *resultPtr, finFn
}
func newLinkDetachWithModifierClickFromC(cvalue *C.LinkDetachWithModifierClick) *LinkDetachWithModifierClick {
result := new(LinkDetachWithModifierClick)
result.data = unsafe.Pointer(cvalue)
return result
}
type MultipleSelectModifier struct {
// TODO: contains unsupported fields
data unsafe.Pointer
}
func (self MultipleSelectModifier) handle() (result *C.MultipleSelectModifier, releaseFn func()) {
result = (*C.MultipleSelectModifier)(self.data)
return result, func() {}
}
func (self MultipleSelectModifier) c() (result C.MultipleSelectModifier, fin func()) {
resultPtr, finFn := self.handle()
return *resultPtr, finFn
}
func newMultipleSelectModifierFromC(cvalue *C.MultipleSelectModifier) *MultipleSelectModifier {
result := new(MultipleSelectModifier)
result.data = unsafe.Pointer(cvalue)
return result
}