forked from AllenDang/cimgui-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cimmarkdown_typedefs.go
198 lines (152 loc) · 4.51 KB
/
cimmarkdown_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
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
// 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 "cimmarkdown_wrapper.h"
// #include "cimmarkdown_typedefs.h"
import "C"
type Emphasis struct {
CData *C.Emphasis
}
func (self *Emphasis) handle() (result *C.Emphasis, fin func()) {
return self.CData, func() {}
}
func (self Emphasis) c() (C.Emphasis, func()) {
result, fn := self.handle()
return *result, fn
}
func newEmphasisFromC(cvalue *C.Emphasis) *Emphasis {
return &Emphasis{CData: cvalue}
}
type Line struct {
CData *C.Line
}
func (self *Line) handle() (result *C.Line, fin func()) {
return self.CData, func() {}
}
func (self Line) c() (C.Line, func()) {
result, fn := self.handle()
return *result, fn
}
func newLineFromC(cvalue *C.Line) *Line {
return &Line{CData: cvalue}
}
type Link struct {
CData *C.Link
}
func (self *Link) handle() (result *C.Link, fin func()) {
return self.CData, func() {}
}
func (self Link) c() (C.Link, func()) {
result, fn := self.handle()
return *result, fn
}
func newLinkFromC(cvalue *C.Link) *Link {
return &Link{CData: cvalue}
}
type MarkdownConfig struct {
CData *C.MarkdownConfig
}
func (self *MarkdownConfig) handle() (result *C.MarkdownConfig, fin func()) {
return self.CData, func() {}
}
func (self MarkdownConfig) c() (C.MarkdownConfig, func()) {
result, fn := self.handle()
return *result, fn
}
func newMarkdownConfigFromC(cvalue *C.MarkdownConfig) *MarkdownConfig {
return &MarkdownConfig{CData: cvalue}
}
type MarkdownFormatInfo struct {
CData *C.MarkdownFormatInfo
}
func (self *MarkdownFormatInfo) handle() (result *C.MarkdownFormatInfo, fin func()) {
return self.CData, func() {}
}
func (self MarkdownFormatInfo) c() (C.MarkdownFormatInfo, func()) {
result, fn := self.handle()
return *result, fn
}
func newMarkdownFormatInfoFromC(cvalue *C.MarkdownFormatInfo) *MarkdownFormatInfo {
return &MarkdownFormatInfo{CData: cvalue}
}
type MarkdownHeadingFormat struct {
CData *C.MarkdownHeadingFormat
}
func (self *MarkdownHeadingFormat) handle() (result *C.MarkdownHeadingFormat, fin func()) {
return self.CData, func() {}
}
func (self MarkdownHeadingFormat) c() (C.MarkdownHeadingFormat, func()) {
result, fn := self.handle()
return *result, fn
}
func newMarkdownHeadingFormatFromC(cvalue *C.MarkdownHeadingFormat) *MarkdownHeadingFormat {
return &MarkdownHeadingFormat{CData: cvalue}
}
type MarkdownImageData struct {
CData *C.MarkdownImageData
}
func (self *MarkdownImageData) handle() (result *C.MarkdownImageData, fin func()) {
return self.CData, func() {}
}
func (self MarkdownImageData) c() (C.MarkdownImageData, func()) {
result, fn := self.handle()
return *result, fn
}
func newMarkdownImageDataFromC(cvalue *C.MarkdownImageData) *MarkdownImageData {
return &MarkdownImageData{CData: cvalue}
}
type MarkdownLinkCallbackData struct {
CData *C.MarkdownLinkCallbackData
}
func (self *MarkdownLinkCallbackData) handle() (result *C.MarkdownLinkCallbackData, fin func()) {
return self.CData, func() {}
}
func (self MarkdownLinkCallbackData) c() (C.MarkdownLinkCallbackData, func()) {
result, fn := self.handle()
return *result, fn
}
func newMarkdownLinkCallbackDataFromC(cvalue *C.MarkdownLinkCallbackData) *MarkdownLinkCallbackData {
return &MarkdownLinkCallbackData{CData: cvalue}
}
type MarkdownTooltipCallbackData struct {
CData *C.MarkdownTooltipCallbackData
}
func (self *MarkdownTooltipCallbackData) handle() (result *C.MarkdownTooltipCallbackData, fin func()) {
return self.CData, func() {}
}
func (self MarkdownTooltipCallbackData) c() (C.MarkdownTooltipCallbackData, func()) {
result, fn := self.handle()
return *result, fn
}
func newMarkdownTooltipCallbackDataFromC(cvalue *C.MarkdownTooltipCallbackData) *MarkdownTooltipCallbackData {
return &MarkdownTooltipCallbackData{CData: cvalue}
}
type TextBlock struct {
CData *C.TextBlock
}
func (self *TextBlock) handle() (result *C.TextBlock, fin func()) {
return self.CData, func() {}
}
func (self TextBlock) c() (C.TextBlock, func()) {
result, fn := self.handle()
return *result, fn
}
func newTextBlockFromC(cvalue *C.TextBlock) *TextBlock {
return &TextBlock{CData: cvalue}
}
type TextRegion struct {
CData *C.TextRegion
}
func (self *TextRegion) handle() (result *C.TextRegion, fin func()) {
return self.CData, func() {}
}
func (self TextRegion) c() (C.TextRegion, func()) {
result, fn := self.handle()
return *result, fn
}
func newTextRegionFromC(cvalue *C.TextRegion) *TextRegion {
return &TextRegion{CData: cvalue}
}