From 1174f192ca8fcfa86beaf819e2fc200b1b4d9b06 Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Thu, 13 Apr 2023 16:26:26 +0200 Subject: [PATCH 1/7] type_wrapper: remove dependency on cimgui_wrapper.h --- type_wrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type_wrapper.go b/type_wrapper.go index 85ae3569d..81fd2d389 100644 --- a/type_wrapper.go +++ b/type_wrapper.go @@ -2,7 +2,7 @@ package imgui // #include // #include -// #include "cimgui_wrapper.h" +// #include import "C" import "unsafe" From b65f2ca869fb46afb6e7863195306c902373a642 Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Thu, 13 Apr 2023 16:59:50 +0200 Subject: [PATCH 2/7] type wrapper: export stuff --- cimgui_funcs.go | 1012 +++++++++++++-------------- cimplot_funcs.go | 1102 +++++++++++++++--------------- cmd/codegen/arguments_wrapper.go | 8 +- glfw_backend.go | 8 +- input_text.go | 20 +- type_wrapper.go | 34 +- 6 files changed, 1092 insertions(+), 1092 deletions(-) diff --git a/cimgui_funcs.go b/cimgui_funcs.go index 18c6c5b58..aab299dab 100644 --- a/cimgui_funcs.go +++ b/cimgui_funcs.go @@ -263,7 +263,7 @@ func (self DrawList) AddRectFilledMultiColor(p_min Vec2, p_max Vec2, col_upr_lef // text_end: NULL // wrap_width: 0.0f func (self DrawList) AddTextFontPtrV(font Font, font_size float32, pos Vec2, col uint32, text_begin string, wrap_width float32, cpu_fine_clip_rect *Vec4) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) cpu_fine_clip_rectArg, cpu_fine_clip_rectFin := wrap[C.ImVec4, *Vec4](cpu_fine_clip_rect) C.wrap_ImDrawList_AddText_FontPtrV(self.handle(), font.handle(), C.float(font_size), pos.toC(), C.ImU32(col), text_beginArg, C.float(wrap_width), cpu_fine_clip_rectArg) @@ -274,7 +274,7 @@ func (self DrawList) AddTextFontPtrV(font Font, font_size float32, pos Vec2, col // AddTextVec2V parameter default value hint: // text_end: NULL func (self DrawList) AddTextVec2V(pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImDrawList_AddText_Vec2V(self.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -478,7 +478,7 @@ func (self FontAtlas) AddFontDefaultV(font_cfg FontConfig) Font { // font_cfg: NULL // glyph_ranges: NULL func (self FontAtlas) AddFontFromFileTTFV(filename string, size_pixels float32, font_cfg FontConfig, glyph_ranges *Wchar) Font { - filenameArg, filenameFin := wrapString(filename) + filenameArg, filenameFin := WrapString(filename) defer func() { filenameFin() @@ -490,7 +490,7 @@ func (self FontAtlas) AddFontFromFileTTFV(filename string, size_pixels float32, // font_cfg: NULL // glyph_ranges: NULL func (self FontAtlas) AddFontFromMemoryCompressedBase85TTFV(compressed_font_data_base85 string, size_pixels float32, font_cfg FontConfig, glyph_ranges *Wchar) Font { - compressed_font_data_base85Arg, compressed_font_data_base85Fin := wrapString(compressed_font_data_base85) + compressed_font_data_base85Arg, compressed_font_data_base85Fin := WrapString(compressed_font_data_base85) defer func() { compressed_font_data_base85Fin() @@ -650,7 +650,7 @@ func (self FontGlyphRangesBuilder) AddRanges(ranges *Wchar) { // AddTextV parameter default value hint: // text_end: NULL func (self FontGlyphRangesBuilder) AddTextV(text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImFontGlyphRangesBuilder_AddTextV(self.handle(), textArg) textFin() @@ -697,8 +697,8 @@ func (self Font) CalcTextSizeAV(size float32, max_width float32, wrap_width floa pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - text_beginArg, text_beginFin := wrapString(text_begin) - remainingArg, remainingFin := wrapStringList(remaining) + text_beginArg, text_beginFin := WrapString(text_begin) + remainingArg, remainingFin := WrapStringList(remaining) C.wrap_ImFont_CalcTextSizeAV(pOutArg, self.handle(), C.float(size), C.float(max_width), C.float(wrap_width), text_beginArg, remainingArg) pOutFin() @@ -709,7 +709,7 @@ func (self Font) CalcTextSizeAV(size float32, max_width float32, wrap_width floa } func (self Font) CalcWordWrapPositionA(scale float32, text string, wrap_width float32) string { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -761,7 +761,7 @@ func (self Font) RenderChar(draw_list DrawList, size float32, pos Vec2, col uint // cpu_fine_clip: false // wrap_width: 0.0f func (self Font) RenderTextV(draw_list DrawList, size float32, pos Vec2, col uint32, clip_rect Vec4, text_begin string, wrap_width float32, cpu_fine_clip bool) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImFont_RenderTextV(self.handle(), draw_list.handle(), C.float(size), pos.toC(), C.ImU32(col), clip_rect.toC(), text_beginArg, C.float(wrap_width), C.bool(cpu_fine_clip)) text_beginFin() @@ -883,7 +883,7 @@ func (self IO) AddInputCharacter(c uint32) { } func (self IO) AddInputCharactersUTF8(str string) { - strArg, strFin := wrapString(str) + strArg, strFin := WrapString(str) C.ImGuiIO_AddInputCharactersUTF8(self.handle(), strArg) strFin() @@ -966,7 +966,7 @@ func NewInputTextCallbackData() InputTextCallbackData { // InsertCharsV parameter default value hint: // text_end: NULL func (self InputTextCallbackData) InsertCharsV(pos int32, text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImGuiInputTextCallbackData_InsertCharsV(self.handle(), C.int(pos), textArg) textFin() @@ -1203,7 +1203,7 @@ func NewPayload() Payload { } func (self Payload) IsDataType(typeArg string) bool { - typeArgArg, typeArgFin := wrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -1426,8 +1426,8 @@ func NewTextBuffer() TextBuffer { // AppendV parameter default value hint: // str_end: NULL func (self TextBuffer) AppendV(str string, str_end string) { - strArg, strFin := wrapString(str) - str_endArg, str_endFin := wrapString(str_end) + strArg, strFin := WrapString(str) + str_endArg, str_endFin := WrapString(str_end) C.ImGuiTextBuffer_append(self.handle(), strArg, str_endArg) strFin() @@ -1435,7 +1435,7 @@ func (self TextBuffer) AppendV(str string, str_end string) { } func (self TextBuffer) Appendf(fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImGuiTextBuffer_Appendf(self.handle(), fmtArg) fmtFin() @@ -1485,7 +1485,7 @@ func (self TextFilter) Clear() { // label: "Filter(inc,-exc)" // width: 0.0f func (self TextFilter) DrawV(label string, width float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -1496,7 +1496,7 @@ func (self TextFilter) DrawV(label string, width float32) bool { // NewTextFilter parameter default value hint: // default_filter: "" func NewTextFilter(default_filter string) TextFilter { - default_filterArg, default_filterFin := wrapString(default_filter) + default_filterArg, default_filterFin := WrapString(default_filter) defer func() { default_filterFin() @@ -1511,7 +1511,7 @@ func (self TextFilter) IsActive() bool { // PassFilterV parameter default value hint: // text_end: NULL func (self TextFilter) PassFilterV(text string) bool { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -1524,7 +1524,7 @@ func (self TextFilter) Destroy() { } func (self TextIndex) InternalAppend(base string, old_size int32, new_size int32) { - baseArg, baseFin := wrapString(base) + baseArg, baseFin := WrapString(base) C.ImGuiTextIndex_append(self.handle(), baseArg, C.int(old_size), C.int(new_size)) baseFin() @@ -1535,7 +1535,7 @@ func (self TextIndex) InternalClear() { } func (self TextIndex) Internalgetlinebegin(base string, n int32) string { - baseArg, baseFin := wrapString(base) + baseArg, baseFin := WrapString(base) defer func() { baseFin() @@ -1544,7 +1544,7 @@ func (self TextIndex) Internalgetlinebegin(base string, n int32) string { } func (self TextIndex) Internalgetlineend(base string, n int32) string { - baseArg, baseFin := wrapString(base) + baseArg, baseFin := WrapString(base) defer func() { baseFin() @@ -1696,8 +1696,8 @@ func (self Window) InternalIDPtr(ptr unsafe.Pointer) ID { // InternalIDStrV parameter default value hint: // str_end: NULL func (self Window) InternalIDStrV(str string, str_end string) ID { - strArg, strFin := wrapString(str) - str_endArg, str_endFin := wrapString(str_end) + strArg, strFin := WrapString(str) + str_endArg, str_endFin := WrapString(str_end) defer func() { strFin() @@ -1707,7 +1707,7 @@ func (self Window) InternalIDStrV(str string, str_end string) ID { } func InternalNewWindow(context Context, name string) Window { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2001,7 +2001,7 @@ func (self *Vec4) Destroy() { // AcceptDragDropPayloadV parameter default value hint: // flags: 0 func AcceptDragDropPayloadV(typeArg string, flags DragDropFlags) Payload { - typeArgArg, typeArgFin := wrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -2026,7 +2026,7 @@ func AlignTextToFramePadding() { } func ArrowButton(str_id string, dir Dir) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2037,7 +2037,7 @@ func ArrowButton(str_id string, dir Dir) bool { // InternalArrowButtonExV parameter default value hint: // flags: 0 func InternalArrowButtonExV(str_id string, dir Dir, size_arg Vec2, flags ButtonFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2049,8 +2049,8 @@ func InternalArrowButtonExV(str_id string, dir Dir, size_arg Vec2, flags ButtonF // flags: 0 // p_open: NULL func BeginV(name string, p_open *bool, flags WindowFlags) bool { - nameArg, nameFin := wrapString(name) - p_openArg, p_openFin := wrapBool(p_open) + nameArg, nameFin := WrapString(name) + p_openArg, p_openFin := WrapBool(p_open) defer func() { nameFin() @@ -2060,7 +2060,7 @@ func BeginV(name string, p_open *bool, flags WindowFlags) bool { } func InternalBeginChildEx(name string, id ID, size_arg Vec2, border bool, flags WindowFlags) bool { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2087,7 +2087,7 @@ func BeginChildIDV(id ID, size Vec2, border bool, flags WindowFlags) bool { // flags: 0 // size: ImVec2(0,0) func BeginChildStrV(str_id string, size Vec2, border bool, flags WindowFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2098,7 +2098,7 @@ func BeginChildStrV(str_id string, size Vec2, border bool, flags WindowFlags) bo // InternalBeginColumnsV parameter default value hint: // flags: 0 func InternalBeginColumnsV(str_id string, count int32, flags OldColumnFlags) { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igBeginColumns(str_idArg, C.int(count), C.ImGuiOldColumnFlags(flags)) str_idFin() @@ -2107,8 +2107,8 @@ func InternalBeginColumnsV(str_id string, count int32, flags OldColumnFlags) { // BeginComboV parameter default value hint: // flags: 0 func BeginComboV(label string, preview_value string, flags ComboFlags) bool { - labelArg, labelFin := wrapString(label) - preview_valueArg, preview_valueFin := wrapString(preview_value) + labelArg, labelFin := WrapString(label) + preview_valueArg, preview_valueFin := WrapString(preview_value) defer func() { labelFin() @@ -2140,7 +2140,7 @@ func InternalBeginDockableDragDropTarget(window Window) { } func InternalBeginDocked(window Window, p_open *bool) { - p_openArg, p_openFin := wrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igBeginDocked(window.handle(), p_openArg) p_openFin() @@ -2167,7 +2167,7 @@ func BeginGroup() { // BeginListBoxV parameter default value hint: // size: ImVec2(0,0) func BeginListBoxV(label string, size Vec2) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2182,7 +2182,7 @@ func BeginMainMenuBar() bool { // BeginMenuV parameter default value hint: // enabled: true func BeginMenuV(label string, enabled bool) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2197,8 +2197,8 @@ func BeginMenuBar() bool { // InternalBeginMenuExV parameter default value hint: // enabled: true func InternalBeginMenuExV(label string, icon string, enabled bool) bool { - labelArg, labelFin := wrapString(label) - iconArg, iconFin := wrapString(icon) + labelArg, labelFin := WrapString(label) + iconArg, iconFin := WrapString(icon) defer func() { labelFin() @@ -2210,7 +2210,7 @@ func InternalBeginMenuExV(label string, icon string, enabled bool) bool { // BeginPopupV parameter default value hint: // flags: 0 func BeginPopupV(str_id string, flags WindowFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2222,7 +2222,7 @@ func BeginPopupV(str_id string, flags WindowFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextItemV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2234,7 +2234,7 @@ func BeginPopupContextItemV(str_id string, popup_flags PopupFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextVoidV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2246,7 +2246,7 @@ func BeginPopupContextVoidV(str_id string, popup_flags PopupFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextWindowV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2262,8 +2262,8 @@ func InternalBeginPopupEx(id ID, extra_flags WindowFlags) bool { // flags: 0 // p_open: NULL func BeginPopupModalV(name string, p_open *bool, flags WindowFlags) bool { - nameArg, nameFin := wrapString(name) - p_openArg, p_openFin := wrapBool(p_open) + nameArg, nameFin := WrapString(name) + p_openArg, p_openFin := WrapBool(p_open) defer func() { nameFin() @@ -2275,7 +2275,7 @@ func BeginPopupModalV(name string, p_open *bool, flags WindowFlags) bool { // BeginTabBarV parameter default value hint: // flags: 0 func BeginTabBarV(str_id string, flags TabBarFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2291,8 +2291,8 @@ func InternalBeginTabBarEx(tab_bar TabBar, bb Rect, flags TabBarFlags, dock_node // flags: 0 // p_open: NULL func BeginTabItemV(label string, p_open *bool, flags TabItemFlags) bool { - labelArg, labelFin := wrapString(label) - p_openArg, p_openFin := wrapBool(p_open) + labelArg, labelFin := WrapString(label) + p_openArg, p_openFin := WrapBool(p_open) defer func() { labelFin() @@ -2306,7 +2306,7 @@ func BeginTabItemV(label string, p_open *bool, flags TabItemFlags) bool { // inner_width: 0.0f // outer_size: ImVec2(0.0f,0.0f) func BeginTableV(str_id string, column int32, flags TableFlags, outer_size Vec2, inner_width float32) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2319,7 +2319,7 @@ func BeginTableV(str_id string, column int32, flags TableFlags, outer_size Vec2, // inner_width: 0.0f // outer_size: ImVec2(0,0) func InternalBeginTableExV(name string, id ID, columns_count int32, flags TableFlags, outer_size Vec2, inner_width float32) bool { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2336,7 +2336,7 @@ func InternalBeginTooltipEx(tooltip_flags TooltipFlags, extra_window_flags Windo } func InternalBeginViewportSideBar(name string, viewport Viewport, dir Dir, size float32, window_flags WindowFlags) bool { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2365,7 +2365,7 @@ func Bullet() { } func BulletText(fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igBulletText(fmtArg) fmtFin() @@ -2374,7 +2374,7 @@ func BulletText(fmt string) { // ButtonV parameter default value hint: // size: ImVec2(0,0) func ButtonV(label string, size Vec2) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2385,8 +2385,8 @@ func ButtonV(label string, size Vec2) bool { // InternalButtonBehaviorV parameter default value hint: // flags: 0 func InternalButtonBehaviorV(bb Rect, id ID, out_hovered *bool, out_held *bool, flags ButtonFlags) bool { - out_hoveredArg, out_hoveredFin := wrapBool(out_hovered) - out_heldArg, out_heldFin := wrapBool(out_held) + out_hoveredArg, out_hoveredFin := WrapBool(out_hovered) + out_heldArg, out_heldFin := WrapBool(out_held) defer func() { out_hoveredFin() @@ -2399,7 +2399,7 @@ func InternalButtonBehaviorV(bb Rect, id ID, out_hovered *bool, out_held *bool, // flags: 0 // size_arg: ImVec2(0,0) func InternalButtonExV(label string, size_arg Vec2, flags ButtonFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2434,7 +2434,7 @@ func CalcTextSizeV(text string, hide_text_after_double_hash bool, wrap_width flo pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igCalcTextSizeV(pOutArg, textArg, C.bool(hide_text_after_double_hash), C.float(wrap_width)) pOutFin() @@ -2467,8 +2467,8 @@ func InternalCallContextHooks(context Context, typeArg ContextHookType) { } func Checkbox(label string, v *bool) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapBool(v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapBool(v) defer func() { labelFin() @@ -2478,8 +2478,8 @@ func Checkbox(label string, v *bool) bool { } func CheckboxFlagsIntPtr(label string, flags *int32, flags_value int32) bool { - labelArg, labelFin := wrapString(label) - flagsArg, flagsFin := wrapNumberPtr[C.int, int32](flags) + labelArg, labelFin := WrapString(label) + flagsArg, flagsFin := WrapNumberPtr[C.int, int32](flags) defer func() { labelFin() @@ -2489,8 +2489,8 @@ func CheckboxFlagsIntPtr(label string, flags *int32, flags_value int32) bool { } func CheckboxFlagsUintPtr(label string, flags *uint32, flags_value uint32) bool { - labelArg, labelFin := wrapString(label) - flagsArg, flagsFin := wrapNumberPtr[C.uint, uint32](flags) + labelArg, labelFin := WrapString(label) + flagsArg, flagsFin := WrapNumberPtr[C.uint, uint32](flags) defer func() { labelFin() @@ -2512,7 +2512,7 @@ func InternalClearIniSettings() { } func InternalClearWindowSettings(name string) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.igClearWindowSettings(nameArg) nameFin() @@ -2545,8 +2545,8 @@ func InternalCollapseButton(id ID, pos Vec2, dock_node DockNode) bool { // CollapsingHeaderBoolPtrV parameter default value hint: // flags: 0 func CollapsingHeaderBoolPtrV(label string, p_visible *bool, flags TreeNodeFlags) bool { - labelArg, labelFin := wrapString(label) - p_visibleArg, p_visibleFin := wrapBool(p_visible) + labelArg, labelFin := WrapString(label) + p_visibleArg, p_visibleFin := WrapBool(p_visible) defer func() { labelFin() @@ -2558,7 +2558,7 @@ func CollapsingHeaderBoolPtrV(label string, p_visible *bool, flags TreeNodeFlags // CollapsingHeaderTreeNodeFlagsV parameter default value hint: // flags: 0 func CollapsingHeaderTreeNodeFlagsV(label string, flags TreeNodeFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2570,7 +2570,7 @@ func CollapsingHeaderTreeNodeFlagsV(label string, flags TreeNodeFlags) bool { // flags: 0 // size: ImVec2(0,0) func ColorButtonV(desc_id string, col Vec4, flags ColorEditFlags, size Vec2) bool { - desc_idArg, desc_idFin := wrapString(desc_id) + desc_idArg, desc_idFin := WrapString(desc_id) defer func() { desc_idFin() @@ -2583,9 +2583,9 @@ func ColorConvertFloat4ToU32(in Vec4) uint32 { } func ColorConvertHSVtoRGB(h float32, s float32, v float32, out_r *float32, out_g *float32, out_b *float32) { - out_rArg, out_rFin := wrapNumberPtr[C.float, float32](out_r) - out_gArg, out_gFin := wrapNumberPtr[C.float, float32](out_g) - out_bArg, out_bFin := wrapNumberPtr[C.float, float32](out_b) + out_rArg, out_rFin := WrapNumberPtr[C.float, float32](out_r) + out_gArg, out_gFin := WrapNumberPtr[C.float, float32](out_g) + out_bArg, out_bFin := WrapNumberPtr[C.float, float32](out_b) C.igColorConvertHSVtoRGB(C.float(h), C.float(s), C.float(v), out_rArg, out_gArg, out_bArg) out_rFin() @@ -2594,9 +2594,9 @@ func ColorConvertHSVtoRGB(h float32, s float32, v float32, out_r *float32, out_g } func ColorConvertRGBtoHSV(r float32, g float32, b float32, out_h *float32, out_s *float32, out_v *float32) { - out_hArg, out_hFin := wrapNumberPtr[C.float, float32](out_h) - out_sArg, out_sFin := wrapNumberPtr[C.float, float32](out_s) - out_vArg, out_vFin := wrapNumberPtr[C.float, float32](out_v) + out_hArg, out_hFin := WrapNumberPtr[C.float, float32](out_h) + out_sArg, out_sFin := WrapNumberPtr[C.float, float32](out_s) + out_vArg, out_vFin := WrapNumberPtr[C.float, float32](out_v) C.igColorConvertRGBtoHSV(C.float(r), C.float(g), C.float(b), out_hArg, out_sArg, out_vArg) out_hFin() @@ -2618,7 +2618,7 @@ func ColorConvertU32ToFloat4(in uint32) Vec4 { // ColorEdit3V parameter default value hint: // flags: 0 func ColorEdit3V(label string, col *[3]float32, flags ColorEditFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2638,7 +2638,7 @@ func ColorEdit3V(label string, col *[3]float32, flags ColorEditFlags) bool { // ColorEdit4V parameter default value hint: // flags: 0 func ColorEdit4V(label string, col *[4]float32, flags ColorEditFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2662,7 +2662,7 @@ func InternalColorEditOptionsPopup(col []float32, flags ColorEditFlags) { // ColorPicker3V parameter default value hint: // flags: 0 func ColorPicker3V(label string, col *[3]float32, flags ColorEditFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2683,7 +2683,7 @@ func ColorPicker3V(label string, col *[3]float32, flags ColorEditFlags) bool { // flags: 0 // ref_col: NULL func ColorPicker4V(label string, col *[4]float32, flags ColorEditFlags, ref_col []float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2705,7 +2705,7 @@ func InternalColorPickerOptionsPopup(ref_col []float32, flags ColorEditFlags) { } func InternalColorTooltip(text string, col []float32, flags ColorEditFlags) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.igColorTooltip(textArg, (*C.float)(&(col[0])), C.ImGuiColorEditFlags(flags)) textFin() @@ -2716,7 +2716,7 @@ func InternalColorTooltip(text string, col []float32, flags ColorEditFlags) { // count: 1 // id: NULL func ColumnsV(count int32, id string, border bool) { - idArg, idFin := wrapString(id) + idArg, idFin := WrapString(id) C.igColumns(C.int(count), idArg, C.bool(border)) idFin() @@ -2725,9 +2725,9 @@ func ColumnsV(count int32, id string, border bool) { // ComboStrV parameter default value hint: // popup_max_height_in_items: -1 func ComboStrV(label string, current_item *int32, items_separated_by_zeros string, popup_max_height_in_items int32) bool { - labelArg, labelFin := wrapString(label) - current_itemArg, current_itemFin := wrapNumberPtr[C.int, int32](current_item) - items_separated_by_zerosArg, items_separated_by_zerosFin := wrapString(items_separated_by_zeros) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + items_separated_by_zerosArg, items_separated_by_zerosFin := WrapString(items_separated_by_zeros) defer func() { labelFin() @@ -2740,9 +2740,9 @@ func ComboStrV(label string, current_item *int32, items_separated_by_zeros strin // ComboStrarrV parameter default value hint: // popup_max_height_in_items: -1 func ComboStrarrV(label string, current_item *int32, items []string, items_count int32, popup_max_height_in_items int32) bool { - labelArg, labelFin := wrapString(label) - current_itemArg, current_itemFin := wrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := wrapStringList(items) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := WrapStringList(items) defer func() { labelFin() @@ -2763,7 +2763,7 @@ func CreateContextV(shared_font_atlas FontAtlas) Context { } func InternalCreateNewWindowSettings(name string) WindowSettings { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2772,8 +2772,8 @@ func InternalCreateNewWindowSettings(name string) WindowSettings { } func InternalDataTypeApplyFromText(buf string, data_type DataType, p_data unsafe.Pointer, format string) bool { - bufArg, bufFin := wrapString(buf) - formatArg, formatFin := wrapString(format) + bufArg, bufFin := WrapString(buf) + formatArg, formatFin := WrapString(format) defer func() { bufFin() @@ -2795,8 +2795,8 @@ func InternalDataTypeCompare(data_type DataType, arg_1 unsafe.Pointer, arg_2 uns } func InternalDataTypeFormatString(buf string, buf_size int32, data_type DataType, p_data unsafe.Pointer, format string) int { - bufArg, bufFin := wrapString(buf) - formatArg, formatFin := wrapString(format) + bufArg, bufFin := WrapString(buf) + formatArg, formatFin := WrapString(format) defer func() { bufFin() @@ -2810,7 +2810,7 @@ func InternalDataTypeGetInfo(data_type DataType) DataTypeInfo { } func DebugCheckVersionAndDataLayout(version_str string, sz_io uint64, sz_style uint64, sz_vec2 uint64, sz_vec4 uint64, sz_drawvert uint64, sz_drawidx uint64) bool { - version_strArg, version_strFin := wrapString(version_str) + version_strArg, version_strFin := WrapString(version_str) defer func() { version_strFin() @@ -2841,7 +2841,7 @@ func InternalDebugLocateItemResolveWithLastItem() { } func InternalDebugLog(fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igDebugLog(fmtArg) fmtFin() @@ -2852,7 +2852,7 @@ func InternalDebugNodeColumns(columns OldColumns) { } func InternalDebugNodeDockNode(node DockNode, label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igDebugNodeDockNode(node.handle(), labelArg) labelFin() @@ -2863,7 +2863,7 @@ func InternalDebugNodeDrawCmdShowMeshAndBoundingBox(out_draw_list DrawList, draw } func InternalDebugNodeDrawList(window Window, viewport ViewportP, draw_list DrawList, label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igDebugNodeDrawList(window.handle(), viewport.handle(), draw_list.handle(), labelArg) labelFin() @@ -2882,7 +2882,7 @@ func InternalDebugNodeInputTextState(state InputTextState) { } func InternalDebugNodeTabBar(tab_bar TabBar, label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igDebugNodeTabBar(tab_bar.handle(), labelArg) labelFin() @@ -2901,7 +2901,7 @@ func InternalDebugNodeViewport(viewport ViewportP) { } func InternalDebugNodeWindow(window Window, label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igDebugNodeWindow(window.handle(), labelArg) labelFin() @@ -2924,7 +2924,7 @@ func InternalDebugStartItemPicker() { } func DebugTextEncoding(text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.igDebugTextEncoding(textArg) textFin() @@ -2952,8 +2952,8 @@ func InternalDockBuilderAddNodeV(node_id ID, flags DockNodeFlags) ID { } func InternalDockBuilderCopyWindowSettings(src_name string, dst_name string) { - src_nameArg, src_nameFin := wrapString(src_name) - dst_nameArg, dst_nameFin := wrapString(dst_name) + src_nameArg, src_nameFin := WrapString(src_name) + dst_nameArg, dst_nameFin := WrapString(dst_name) C.igDockBuilderCopyWindowSettings(src_nameArg, dst_nameArg) src_nameFin() @@ -2961,7 +2961,7 @@ func InternalDockBuilderCopyWindowSettings(src_name string, dst_name string) { } func InternalDockBuilderDockWindow(window_name string, node_id ID) { - window_nameArg, window_nameFin := wrapString(window_name) + window_nameArg, window_nameFin := WrapString(window_name) C.igDockBuilderDockWindow(window_nameArg, C.ImGuiID(node_id)) window_nameFin() @@ -3113,7 +3113,7 @@ func DockSpaceOverViewportV(viewport Viewport, flags DockNodeFlags, window_class } func InternalDragBehavior(id ID, data_type DataType, p_v unsafe.Pointer, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { formatFin() @@ -3128,9 +3128,9 @@ func InternalDragBehavior(id ID, data_type DataType, p_v unsafe.Pointer, v_speed // v_min: 0.0f // v_speed: 1.0f func DragFloatV(label string, v *float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.float, float32](v) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3147,13 +3147,13 @@ func DragFloatV(label string, v *float32, v_speed float32, v_min float32, v_max // v_min: 0.0f // v_speed: 1.0f func DragFloat2V(label string, v *[2]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3174,13 +3174,13 @@ func DragFloat2V(label string, v *[2]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloat3V(label string, v *[3]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3201,13 +3201,13 @@ func DragFloat3V(label string, v *[3]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloat4V(label string, v *[4]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3229,11 +3229,11 @@ func DragFloat4V(label string, v *[4]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloatRange2V(label string, v_current_min *float32, v_current_max *float32, v_speed float32, v_min float32, v_max float32, format string, format_max string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - v_current_minArg, v_current_minFin := wrapNumberPtr[C.float, float32](v_current_min) - v_current_maxArg, v_current_maxFin := wrapNumberPtr[C.float, float32](v_current_max) - formatArg, formatFin := wrapString(format) - format_maxArg, format_maxFin := wrapString(format_max) + labelArg, labelFin := WrapString(label) + v_current_minArg, v_current_minFin := WrapNumberPtr[C.float, float32](v_current_min) + v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.float, float32](v_current_max) + formatArg, formatFin := WrapString(format) + format_maxArg, format_maxFin := WrapString(format_max) defer func() { labelFin() @@ -3252,9 +3252,9 @@ func DragFloatRange2V(label string, v_current_min *float32, v_current_max *float // v_min: 0 // v_speed: 1.0f func DragIntV(label string, v *int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3271,13 +3271,13 @@ func DragIntV(label string, v *int32, v_speed float32, v_min int32, v_max int32, // v_min: 0 // v_speed: 1.0f func DragInt2V(label string, v *[2]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3298,13 +3298,13 @@ func DragInt2V(label string, v *[2]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragInt3V(label string, v *[3]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3325,13 +3325,13 @@ func DragInt3V(label string, v *[3]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragInt4V(label string, v *[4]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3353,11 +3353,11 @@ func DragInt4V(label string, v *[4]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragIntRange2V(label string, v_current_min *int32, v_current_max *int32, v_speed float32, v_min int32, v_max int32, format string, format_max string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - v_current_minArg, v_current_minFin := wrapNumberPtr[C.int, int32](v_current_min) - v_current_maxArg, v_current_maxFin := wrapNumberPtr[C.int, int32](v_current_max) - formatArg, formatFin := wrapString(format) - format_maxArg, format_maxFin := wrapString(format_max) + labelArg, labelFin := WrapString(label) + v_current_minArg, v_current_minFin := WrapNumberPtr[C.int, int32](v_current_min) + v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.int, int32](v_current_max) + formatArg, formatFin := WrapString(format) + format_maxArg, format_maxFin := WrapString(format_max) defer func() { labelFin() @@ -3376,8 +3376,8 @@ func DragIntRange2V(label string, v_current_min *int32, v_current_max *int32, v_ // p_min: NULL // v_speed: 1.0f func DragScalarV(label string, data_type DataType, p_data unsafe.Pointer, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3393,8 +3393,8 @@ func DragScalarV(label string, data_type DataType, p_data unsafe.Pointer, v_spee // p_min: NULL // v_speed: 1.0f func DragScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3517,7 +3517,7 @@ func InternalFindOrCreateColumns(window Window, id ID) OldColumns { // InternalFindRenderedTextEndV parameter default value hint: // text_end: NULL func InternalFindRenderedTextEndV(text string) string { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -3526,7 +3526,7 @@ func InternalFindRenderedTextEndV(text string) string { } func InternalFindSettingsHandler(type_name string) SettingsHandler { - type_nameArg, type_nameFin := wrapString(type_name) + type_nameArg, type_nameFin := WrapString(type_name) defer func() { type_nameFin() @@ -3547,7 +3547,7 @@ func InternalFindWindowByID(id ID) Window { } func InternalFindWindowByName(name string) Window { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -3646,7 +3646,7 @@ func ColumnsCount() int { } func InternalColumnsID(str_id string, count int32) ID { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -3824,8 +3824,8 @@ func InternalIDWithSeedInt(n int32, seed ID) ID { } func InternalIDWithSeedStr(str_id_begin string, str_id_end string, seed ID) ID { - str_id_beginArg, str_id_beginFin := wrapString(str_id_begin) - str_id_endArg, str_id_endFin := wrapString(str_id_end) + str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) + str_id_endArg, str_id_endFin := WrapString(str_id_end) defer func() { str_id_beginFin() @@ -3839,7 +3839,7 @@ func IDPtr(ptr_id unsafe.Pointer) ID { } func IDStr(str_id string) ID { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -3848,8 +3848,8 @@ func IDStr(str_id string) ID { } func IDStrStr(str_id_begin string, str_id_end string) ID { - str_id_beginArg, str_id_beginFin := wrapString(str_id_begin) - str_id_endArg, str_id_endFin := wrapString(str_id_end) + str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) + str_id_endArg, str_id_endFin := WrapString(str_id_end) defer func() { str_id_beginFin() @@ -3912,7 +3912,7 @@ func InternalItemStatusFlags() ItemStatusFlags { } func InternalKeyChordName(key_chord KeyChord, out_buf string, out_buf_size int32) { - out_bufArg, out_bufFin := wrapString(out_buf) + out_bufArg, out_bufFin := WrapString(out_buf) C.igGetKeyChordName(C.ImGuiKeyChord(key_chord), out_bufArg, C.int(out_buf_size)) out_bufFin() @@ -4083,8 +4083,8 @@ func TreeNodeToLabelSpacing() float32 { } func InternalTypematicRepeatRate(flags InputFlags, repeat_delay *float32, repeat_rate *float32) { - repeat_delayArg, repeat_delayFin := wrapNumberPtr[C.float, float32](repeat_delay) - repeat_rateArg, repeat_rateFin := wrapNumberPtr[C.float, float32](repeat_rate) + repeat_delayArg, repeat_delayFin := WrapNumberPtr[C.float, float32](repeat_delay) + repeat_rateArg, repeat_rateFin := WrapNumberPtr[C.float, float32](repeat_rate) C.igGetTypematicRepeatRate(C.ImGuiInputFlags(flags), repeat_delayArg, repeat_rateArg) repeat_delayFin() @@ -4299,8 +4299,8 @@ func InternalImExponentialMovingAverage(avg float32, sample float32, n int32) fl // out_file_size: NULL // padding_bytes: 0 func InternalImFileLoadToMemoryV(filename string, mode string, out_file_size *uint64, padding_bytes int32) unsafe.Pointer { - filenameArg, filenameFin := wrapString(filename) - modeArg, modeFin := wrapString(mode) + filenameArg, filenameFin := WrapString(filename) + modeArg, modeFin := WrapString(mode) defer func() { filenameFin() @@ -4360,8 +4360,8 @@ func InternalImFontAtlasGetBuilderForStbTruetype() FontBuilderIO { } func InternalImFormatString(buf string, buf_size uint64, fmt string) int { - bufArg, bufFin := wrapString(buf) - fmtArg, fmtFin := wrapString(fmt) + bufArg, bufFin := WrapString(buf) + fmtArg, fmtFin := WrapString(fmt) defer func() { bufFin() @@ -4371,9 +4371,9 @@ func InternalImFormatString(buf string, buf_size uint64, fmt string) int { } func InternalImFormatStringToTempBuffer(out_buf []string, out_buf_end []string, fmt string) { - out_bufArg, out_bufFin := wrapStringList(out_buf) - out_buf_endArg, out_buf_endFin := wrapStringList(out_buf_end) - fmtArg, fmtFin := wrapString(fmt) + out_bufArg, out_bufFin := WrapStringList(out_buf) + out_buf_endArg, out_buf_endFin := WrapStringList(out_buf_end) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igImFormatStringToTempBuffer(out_bufArg, out_buf_endArg, fmtArg) out_bufFin() @@ -4395,7 +4395,7 @@ func InternalImHashDataV(data unsafe.Pointer, data_size uint64, seed ID) ID { // data_size: 0 // seed: 0 func InternalImHashStrV(data string, data_size uint64, seed ID) ID { - dataArg, dataFin := wrapString(data) + dataArg, dataFin := WrapString(data) defer func() { dataFin() @@ -4521,7 +4521,7 @@ func InternalImMul(lhs Vec2, rhs Vec2) Vec2 { } func InternalImParseFormatFindEnd(format string) string { - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { formatFin() @@ -4530,7 +4530,7 @@ func InternalImParseFormatFindEnd(format string) string { } func InternalImParseFormatFindStart(format string) string { - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { formatFin() @@ -4539,7 +4539,7 @@ func InternalImParseFormatFindStart(format string) string { } func InternalImParseFormatPrecision(format string, default_value int32) int { - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { formatFin() @@ -4548,8 +4548,8 @@ func InternalImParseFormatPrecision(format string, default_value int32) int { } func InternalImParseFormatSanitizeForPrinting(fmt_in string, fmt_out string, fmt_out_size uint64) { - fmt_inArg, fmt_inFin := wrapString(fmt_in) - fmt_outArg, fmt_outFin := wrapString(fmt_out) + fmt_inArg, fmt_inFin := WrapString(fmt_in) + fmt_outArg, fmt_outFin := WrapString(fmt_out) C.igImParseFormatSanitizeForPrinting(fmt_inArg, fmt_outArg, C.xulong(fmt_out_size)) fmt_inFin() @@ -4557,8 +4557,8 @@ func InternalImParseFormatSanitizeForPrinting(fmt_in string, fmt_out string, fmt } func InternalImParseFormatSanitizeForScanning(fmt_in string, fmt_out string, fmt_out_size uint64) string { - fmt_inArg, fmt_inFin := wrapString(fmt_in) - fmt_outArg, fmt_outFin := wrapString(fmt_out) + fmt_inArg, fmt_inFin := WrapString(fmt_in) + fmt_outArg, fmt_outFin := WrapString(fmt_out) defer func() { fmt_inFin() @@ -4568,8 +4568,8 @@ func InternalImParseFormatSanitizeForScanning(fmt_in string, fmt_out string, fmt } func InternalImParseFormatTrimDecorations(format string, buf string, buf_size uint64) string { - formatArg, formatFin := wrapString(format) - bufArg, bufFin := wrapString(buf) + formatArg, formatFin := WrapString(format) + bufArg, bufFin := WrapString(buf) defer func() { formatFin() @@ -4618,7 +4618,7 @@ func InternalImSignDouble(x float64) float64 { } func InternalImStrSkipBlank(str string) string { - strArg, strFin := wrapString(str) + strArg, strFin := WrapString(str) defer func() { strFin() @@ -4627,7 +4627,7 @@ func InternalImStrSkipBlank(str string) string { } func InternalImStrTrimBlanks(str string) { - strArg, strFin := wrapString(str) + strArg, strFin := WrapString(str) C.igImStrTrimBlanks(strArg) strFin() @@ -4638,7 +4638,7 @@ func InternalImStrbolW(buf_mid_line *Wchar, buf_begin *Wchar) *Wchar { } func InternalImStrdup(str string) string { - strArg, strFin := wrapString(str) + strArg, strFin := WrapString(str) defer func() { strFin() @@ -4647,8 +4647,8 @@ func InternalImStrdup(str string) string { } func InternalImStrdupcpy(dst string, p_dst_size *uint64, str string) string { - dstArg, dstFin := wrapString(dst) - strArg, strFin := wrapString(str) + dstArg, dstFin := WrapString(dst) + strArg, strFin := WrapString(str) defer func() { dstFin() @@ -4658,8 +4658,8 @@ func InternalImStrdupcpy(dst string, p_dst_size *uint64, str string) string { } func InternalImStreolRange(str string, str_end string) string { - strArg, strFin := wrapString(str) - str_endArg, str_endFin := wrapString(str_end) + strArg, strFin := WrapString(str) + str_endArg, str_endFin := WrapString(str_end) defer func() { strFin() @@ -4669,8 +4669,8 @@ func InternalImStreolRange(str string, str_end string) string { } func InternalImStricmp(str1 string, str2 string) int { - str1Arg, str1Fin := wrapString(str1) - str2Arg, str2Fin := wrapString(str2) + str1Arg, str1Fin := WrapString(str1) + str2Arg, str2Fin := WrapString(str2) defer func() { str1Fin() @@ -4680,10 +4680,10 @@ func InternalImStricmp(str1 string, str2 string) int { } func InternalImStristr(haystack string, haystack_end string, needle string, needle_end string) string { - haystackArg, haystackFin := wrapString(haystack) - haystack_endArg, haystack_endFin := wrapString(haystack_end) - needleArg, needleFin := wrapString(needle) - needle_endArg, needle_endFin := wrapString(needle_end) + haystackArg, haystackFin := WrapString(haystack) + haystack_endArg, haystack_endFin := WrapString(haystack_end) + needleArg, needleFin := WrapString(needle) + needle_endArg, needle_endFin := WrapString(needle_end) defer func() { haystackFin() @@ -4699,8 +4699,8 @@ func InternalImStrlenW(str *Wchar) int { } func InternalImStrncpy(dst string, src string, count uint64) { - dstArg, dstFin := wrapString(dst) - srcArg, srcFin := wrapString(src) + dstArg, dstFin := WrapString(dst) + srcArg, srcFin := WrapString(src) C.igImStrncpy(dstArg, srcArg, C.xulong(count)) dstFin() @@ -4708,8 +4708,8 @@ func InternalImStrncpy(dst string, src string, count uint64) { } func InternalImStrnicmp(str1 string, str2 string, count uint64) int { - str1Arg, str1Fin := wrapString(str1) - str2Arg, str2Fin := wrapString(str2) + str1Arg, str1Fin := WrapString(str1) + str2Arg, str2Fin := WrapString(str2) defer func() { str1Fin() @@ -4719,9 +4719,9 @@ func InternalImStrnicmp(str1 string, str2 string, count uint64) int { } func InternalImTextCharFromUtf8(out_char *uint32, in_text string, in_text_end string) int { - out_charArg, out_charFin := wrapNumberPtr[C.uint, uint32](out_char) - in_textArg, in_textFin := wrapString(in_text) - in_text_endArg, in_text_endFin := wrapString(in_text_end) + out_charArg, out_charFin := WrapNumberPtr[C.uint, uint32](out_char) + in_textArg, in_textFin := WrapString(in_text) + in_text_endArg, in_text_endFin := WrapString(in_text_end) defer func() { out_charFin() @@ -4732,8 +4732,8 @@ func InternalImTextCharFromUtf8(out_char *uint32, in_text string, in_text_end st } func InternalImTextCountCharsFromUtf8(in_text string, in_text_end string) int { - in_textArg, in_textFin := wrapString(in_text) - in_text_endArg, in_text_endFin := wrapString(in_text_end) + in_textArg, in_textFin := WrapString(in_text) + in_text_endArg, in_text_endFin := WrapString(in_text_end) defer func() { in_textFin() @@ -4743,8 +4743,8 @@ func InternalImTextCountCharsFromUtf8(in_text string, in_text_end string) int { } func InternalImTextCountUtf8BytesFromChar(in_text string, in_text_end string) int { - in_textArg, in_textFin := wrapString(in_text) - in_text_endArg, in_text_endFin := wrapString(in_text_end) + in_textArg, in_textFin := WrapString(in_text) + in_text_endArg, in_text_endFin := WrapString(in_text_end) defer func() { in_textFin() @@ -4758,7 +4758,7 @@ func InternalImTextCountUtf8BytesFromStr(in_text *Wchar, in_text_end *Wchar) int } func InternalImTextStrToUtf8(out_buf string, out_buf_size int32, in_text *Wchar, in_text_end *Wchar) int { - out_bufArg, out_bufFin := wrapString(out_buf) + out_bufArg, out_bufFin := WrapString(out_buf) defer func() { out_bufFin() @@ -4771,9 +4771,9 @@ func InternalImTriangleArea(a Vec2, b Vec2, c Vec2) float32 { } func InternalImTriangleBarycentricCoords(a Vec2, b Vec2, c Vec2, p Vec2, out_u *float32, out_v *float32, out_w *float32) { - out_uArg, out_uFin := wrapNumberPtr[C.float, float32](out_u) - out_vArg, out_vFin := wrapNumberPtr[C.float, float32](out_v) - out_wArg, out_wFin := wrapNumberPtr[C.float, float32](out_w) + out_uArg, out_uFin := WrapNumberPtr[C.float, float32](out_u) + out_vArg, out_vFin := WrapNumberPtr[C.float, float32](out_v) + out_wArg, out_wFin := WrapNumberPtr[C.float, float32](out_w) C.igImTriangleBarycentricCoords(a.toC(), b.toC(), c.toC(), p.toC(), out_uArg, out_vArg, out_wArg) out_uFin() @@ -4815,7 +4815,7 @@ func ImageV(user_texture_id TextureID, size Vec2, uv0 Vec2, uv1 Vec2, tint_col V // uv0: ImVec2(0,0) // uv1: ImVec2(1,1) func ImageButtonV(str_id string, user_texture_id TextureID, size Vec2, uv0 Vec2, uv1 Vec2, bg_col Vec4, tint_col Vec4) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -4845,9 +4845,9 @@ func InternalInitialize() { // step: 0.0 // step_fast: 0.0 func InputDoubleV(label string, v *float64, step float64, step_fast float64, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.double, float64](v) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.double, float64](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4863,9 +4863,9 @@ func InputDoubleV(label string, v *float64, step float64, step_fast float64, for // step: 0.0f // step_fast: 0.0f func InputFloatV(label string, v *float32, step float32, step_fast float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.float, float32](v) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4879,13 +4879,13 @@ func InputFloatV(label string, v *float32, step float32, step_fast float32, form // flags: 0 // format: "%.3f" func InputFloat2V(label string, v *[2]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4903,13 +4903,13 @@ func InputFloat2V(label string, v *[2]float32, format string, flags InputTextFla // flags: 0 // format: "%.3f" func InputFloat3V(label string, v *[3]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4927,13 +4927,13 @@ func InputFloat3V(label string, v *[3]float32, format string, flags InputTextFla // flags: 0 // format: "%.3f" func InputFloat4V(label string, v *[4]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4952,8 +4952,8 @@ func InputFloat4V(label string, v *[4]float32, format string, flags InputTextFla // step: 1 // step_fast: 100 func InputIntV(label string, v *int32, step int32, step_fast int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -4965,7 +4965,7 @@ func InputIntV(label string, v *int32, step int32, step_fast int32, flags InputT // InputInt2V parameter default value hint: // flags: 0 func InputInt2V(label string, v *[2]int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -4985,7 +4985,7 @@ func InputInt2V(label string, v *[2]int32, flags InputTextFlags) bool { // InputInt3V parameter default value hint: // flags: 0 func InputInt3V(label string, v *[3]int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -5005,7 +5005,7 @@ func InputInt3V(label string, v *[3]int32, flags InputTextFlags) bool { // InputInt4V parameter default value hint: // flags: 0 func InputInt4V(label string, v *[4]int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -5028,8 +5028,8 @@ func InputInt4V(label string, v *[4]int32, flags InputTextFlags) bool { // p_step: NULL // p_step_fast: NULL func InputScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_step unsafe.Pointer, p_step_fast unsafe.Pointer, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -5044,8 +5044,8 @@ func InputScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_ste // p_step: NULL // p_step_fast: NULL func InputScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_step unsafe.Pointer, p_step_fast unsafe.Pointer, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -5057,7 +5057,7 @@ func InputScalarNV(label string, data_type DataType, p_data unsafe.Pointer, comp // InvisibleButtonV parameter default value hint: // flags: 0 func InvisibleButtonV(str_id string, size Vec2, flags ButtonFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -5275,7 +5275,7 @@ func InternalIsPopupOpenID(id ID, popup_flags PopupFlags) bool { // IsPopupOpenStrV parameter default value hint: // flags: 0 func IsPopupOpenStrV(str_id string, flags PopupFlags) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -5352,8 +5352,8 @@ func InternalKeepAliveID(id ID) { } func LabelText(label string, fmt string) { - labelArg, labelFin := wrapString(label) - fmtArg, fmtFin := wrapString(fmt) + labelArg, labelFin := WrapString(label) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igLabelText(labelArg, fmtArg) labelFin() @@ -5363,9 +5363,9 @@ func LabelText(label string, fmt string) { // ListBoxStrarrV parameter default value hint: // height_in_items: -1 func ListBoxStrarrV(label string, current_item *int32, items []string, items_count int32, height_in_items int32) bool { - labelArg, labelFin := wrapString(label) - current_itemArg, current_itemFin := wrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := wrapStringList(items) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := WrapStringList(items) defer func() { labelFin() @@ -5376,7 +5376,7 @@ func ListBoxStrarrV(label string, current_item *int32, items []string, items_cou } func LoadIniSettingsFromDisk(ini_filename string) { - ini_filenameArg, ini_filenameFin := wrapString(ini_filename) + ini_filenameArg, ini_filenameFin := WrapString(ini_filename) C.igLoadIniSettingsFromDisk(ini_filenameArg) ini_filenameFin() @@ -5385,7 +5385,7 @@ func LoadIniSettingsFromDisk(ini_filename string) { // LoadIniSettingsFromMemoryV parameter default value hint: // ini_size: 0 func LoadIniSettingsFromMemoryV(ini_data string, ini_size uint64) { - ini_dataArg, ini_dataFin := wrapString(ini_data) + ini_dataArg, ini_dataFin := WrapString(ini_data) C.igLoadIniSettingsFromMemory(ini_dataArg, C.xulong(ini_size)) ini_dataFin() @@ -5415,7 +5415,7 @@ func LogFinish() { // text_end: NULL func InternalLogRenderedTextV(ref_pos *Vec2, text string) { ref_posArg, ref_posFin := wrap[C.ImVec2, *Vec2](ref_pos) - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igLogRenderedTextV(ref_posArg, textArg) ref_posFin() @@ -5423,8 +5423,8 @@ func InternalLogRenderedTextV(ref_pos *Vec2, text string) { } func InternalLogSetNextTextDecoration(prefix string, suffix string) { - prefixArg, prefixFin := wrapString(prefix) - suffixArg, suffixFin := wrapString(suffix) + prefixArg, prefixFin := WrapString(prefix) + suffixArg, suffixFin := WrapString(suffix) C.igLogSetNextTextDecoration(prefixArg, suffixArg) prefixFin() @@ -5432,7 +5432,7 @@ func InternalLogSetNextTextDecoration(prefix string, suffix string) { } func LogText(fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igLogText(fmtArg) fmtFin() @@ -5454,7 +5454,7 @@ func LogToClipboardV(auto_open_depth int32) { // auto_open_depth: -1 // filename: NULL func LogToFileV(auto_open_depth int32, filename string) { - filenameArg, filenameFin := wrapString(filename) + filenameArg, filenameFin := WrapString(filename) C.igLogToFile(C.int(auto_open_depth), filenameArg) filenameFin() @@ -5491,9 +5491,9 @@ func MemFree(ptr unsafe.Pointer) { // selected: false // shortcut: NULL func InternalMenuItemExV(label string, icon string, shortcut string, selected bool, enabled bool) bool { - labelArg, labelFin := wrapString(label) - iconArg, iconFin := wrapString(icon) - shortcutArg, shortcutFin := wrapString(shortcut) + labelArg, labelFin := WrapString(label) + iconArg, iconFin := WrapString(icon) + shortcutArg, shortcutFin := WrapString(shortcut) defer func() { labelFin() @@ -5508,8 +5508,8 @@ func InternalMenuItemExV(label string, icon string, shortcut string, selected bo // selected: false // shortcut: NULL func MenuItemBoolV(label string, shortcut string, selected bool, enabled bool) bool { - labelArg, labelFin := wrapString(label) - shortcutArg, shortcutFin := wrapString(shortcut) + labelArg, labelFin := WrapString(label) + shortcutArg, shortcutFin := WrapString(shortcut) defer func() { labelFin() @@ -5521,9 +5521,9 @@ func MenuItemBoolV(label string, shortcut string, selected bool, enabled bool) b // MenuItemBoolPtrV parameter default value hint: // enabled: true func MenuItemBoolPtrV(label string, shortcut string, p_selected *bool, enabled bool) bool { - labelArg, labelFin := wrapString(label) - shortcutArg, shortcutFin := wrapString(shortcut) - p_selectedArg, p_selectedFin := wrapBool(p_selected) + labelArg, labelFin := WrapString(label) + shortcutArg, shortcutFin := WrapString(shortcut) + p_selectedArg, p_selectedFin := WrapBool(p_selected) defer func() { labelFin() @@ -5595,7 +5595,7 @@ func InternalOpenPopupExV(id ID, popup_flags PopupFlags) { // popup_flags: 1 // str_id: NULL func OpenPopupOnItemClickV(str_id string, popup_flags PopupFlags) { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igOpenPopupOnItemClick(str_idArg, C.ImGuiPopupFlags(popup_flags)) str_idFin() @@ -5610,7 +5610,7 @@ func OpenPopupIDV(id ID, popup_flags PopupFlags) { // OpenPopupStrV parameter default value hint: // popup_flags: 0 func OpenPopupStrV(str_id string, popup_flags PopupFlags) { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igOpenPopup_Str(str_idArg, C.ImGuiPopupFlags(popup_flags)) str_idFin() @@ -5624,8 +5624,8 @@ func OpenPopupStrV(str_id string, popup_flags PopupFlags) { // stride: sizeof(float) // values_offset: 0 func PlotHistogramFloatPtrV(label string, values []float32, values_count int32, values_offset int32, overlay_text string, scale_min float32, scale_max float32, graph_size Vec2, stride int32) { - labelArg, labelFin := wrapString(label) - overlay_textArg, overlay_textFin := wrapString(overlay_text) + labelArg, labelFin := WrapString(label) + overlay_textArg, overlay_textFin := WrapString(overlay_text) C.igPlotHistogram_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count), C.int(values_offset), overlay_textArg, C.float(scale_min), C.float(scale_max), graph_size.toC(), C.int(stride)) labelFin() @@ -5640,8 +5640,8 @@ func PlotHistogramFloatPtrV(label string, values []float32, values_count int32, // stride: sizeof(float) // values_offset: 0 func PlotLinesFloatPtrV(label string, values []float32, values_count int32, values_offset int32, overlay_text string, scale_min float32, scale_max float32, graph_size Vec2, stride int32) { - labelArg, labelFin := wrapString(label) - overlay_textArg, overlay_textFin := wrapString(overlay_text) + labelArg, labelFin := WrapString(label) + overlay_textArg, overlay_textFin := WrapString(overlay_text) C.igPlotLines_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count), C.int(values_offset), overlay_textArg, C.float(scale_min), C.float(scale_max), graph_size.toC(), C.int(stride)) labelFin() @@ -5704,7 +5704,7 @@ func PopTextWrapPos() { // overlay: NULL // size_arg: ImVec2(-FLT_MIN,0) func ProgressBarV(fraction float32, size_arg Vec2, overlay string) { - overlayArg, overlayFin := wrapString(overlay) + overlayArg, overlayFin := WrapString(overlay) C.igProgressBar(C.float(fraction), size_arg.toC(), overlayArg) overlayFin() @@ -5743,15 +5743,15 @@ func PushIDPtr(ptr_id unsafe.Pointer) { } func PushIDStr(str_id string) { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igPushID_Str(str_idArg) str_idFin() } func PushIDStrStr(str_id_begin string, str_id_end string) { - str_id_beginArg, str_id_beginFin := wrapString(str_id_begin) - str_id_endArg, str_id_endFin := wrapString(str_id_end) + str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) + str_id_endArg, str_id_endFin := WrapString(str_id_end) C.igPushID_StrStr(str_id_beginArg, str_id_endArg) str_id_beginFin() @@ -5801,7 +5801,7 @@ func PushTextWrapPosV(wrap_local_pos_x float32) { } func RadioButtonBool(label string, active bool) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -5810,8 +5810,8 @@ func RadioButtonBool(label string, active bool) bool { } func RadioButtonIntPtr(label string, v *int32, v_button int32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -5825,7 +5825,7 @@ func InternalRemoveContextHook(context Context, hook_to_remove ID) { } func InternalRemoveSettingsHandler(type_name string) { - type_nameArg, type_nameFin := wrapString(type_name) + type_nameArg, type_nameFin := WrapString(type_name) C.igRemoveSettingsHandler(type_nameArg) type_nameFin() @@ -5910,14 +5910,14 @@ func InternalRenderRectFilledWithHole(draw_list DrawList, outer Rect, inner Rect // hide_text_after_hash: true // text_end: NULL func InternalRenderTextV(pos Vec2, text string, hide_text_after_hash bool) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igRenderTextV(pos.toC(), textArg, C.bool(hide_text_after_hash)) textFin() } func InternalRenderTextEllipsis(draw_list DrawList, pos_min Vec2, pos_max Vec2, clip_max_x float32, ellipsis_max_x float32, text string, text_size_if_known *Vec2) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextEllipsis(draw_list.handle(), pos_min.toC(), pos_max.toC(), C.float(clip_max_x), C.float(ellipsis_max_x), textArg, text_size_if_knownArg) @@ -5926,7 +5926,7 @@ func InternalRenderTextEllipsis(draw_list DrawList, pos_min Vec2, pos_max Vec2, } func InternalRenderTextWrapped(pos Vec2, text string, wrap_width float32) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igRenderTextWrapped(pos.toC(), textArg, C.float(wrap_width)) textFin() @@ -5946,7 +5946,7 @@ func SameLineV(offset_from_start_x float32, spacing float32) { } func SaveIniSettingsToDisk(ini_filename string) { - ini_filenameArg, ini_filenameFin := wrapString(ini_filename) + ini_filenameArg, ini_filenameFin := WrapString(ini_filename) C.igSaveIniSettingsToDisk(ini_filenameArg) ini_filenameFin() @@ -6000,7 +6000,7 @@ func InternalScrollbar(axis Axis) { // selected: false // size: ImVec2(0,0) func SelectableBoolV(label string, selected bool, flags SelectableFlags, size Vec2) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -6012,8 +6012,8 @@ func SelectableBoolV(label string, selected bool, flags SelectableFlags, size Ve // flags: 0 // size: ImVec2(0,0) func SelectableBoolPtrV(label string, p_selected *bool, flags SelectableFlags, size Vec2) bool { - labelArg, labelFin := wrapString(label) - p_selectedArg, p_selectedFin := wrapBool(p_selected) + labelArg, labelFin := WrapString(label) + p_selectedArg, p_selectedFin := WrapBool(p_selected) defer func() { labelFin() @@ -6031,15 +6031,15 @@ func InternalSeparatorEx(flags SeparatorFlags) { } func SeparatorText(label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igSeparatorText(labelArg) labelFin() } func InternalSeparatorTextEx(id ID, label string, label_end string, extra_width float32) { - labelArg, labelFin := wrapString(label) - label_endArg, label_endFin := wrapString(label_end) + labelArg, labelFin := WrapString(label) + label_endArg, label_endFin := WrapString(label_end) C.igSeparatorTextEx(C.ImGuiID(id), labelArg, label_endArg, C.float(extra_width)) labelFin() @@ -6055,7 +6055,7 @@ func InternalSetActiveIdUsingAllKeyboardKeys() { } func SetClipboardText(text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.igSetClipboardText(textArg) textFin() @@ -6104,7 +6104,7 @@ func SetCursorScreenPos(pos Vec2) { // SetDragDropPayloadV parameter default value hint: // cond: 0 func SetDragDropPayloadV(typeArg string, data unsafe.Pointer, sz uint64, cond Cond) bool { - typeArgArg, typeArgFin := wrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -6285,14 +6285,14 @@ func InternalSetShortcutRoutingV(key_chord KeyChord, owner_id ID, flags InputFla } func SetTabItemClosed(tab_or_docked_window_label string) { - tab_or_docked_window_labelArg, tab_or_docked_window_labelFin := wrapString(tab_or_docked_window_label) + tab_or_docked_window_labelArg, tab_or_docked_window_labelFin := WrapString(tab_or_docked_window_label) C.igSetTabItemClosed(tab_or_docked_window_labelArg) tab_or_docked_window_labelFin() } func SetTooltip(fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igSetTooltip(fmtArg) fmtFin() @@ -6311,7 +6311,7 @@ func SetWindowCollapsedBoolV(collapsed bool, cond Cond) { // SetWindowCollapsedStrV parameter default value hint: // cond: 0 func SetWindowCollapsedStrV(name string, collapsed bool, cond Cond) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.igSetWindowCollapsed_Str(nameArg, C.bool(collapsed), C.ImGuiCond(cond)) nameFin() @@ -6332,7 +6332,7 @@ func SetWindowFocusNil() { } func SetWindowFocusStr(name string) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.igSetWindowFocus_Str(nameArg) nameFin() @@ -6353,7 +6353,7 @@ func InternalSetWindowHitTestHole(window Window, pos Vec2, size Vec2) { // SetWindowPosStrV parameter default value hint: // cond: 0 func SetWindowPosStrV(name string, pos Vec2, cond Cond) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.igSetWindowPos_Str(nameArg, pos.toC(), C.ImGuiCond(cond)) nameFin() @@ -6374,7 +6374,7 @@ func InternalSetWindowPosWindowPtrV(window Window, pos Vec2, cond Cond) { // SetWindowSizeStrV parameter default value hint: // cond: 0 func SetWindowSizeStrV(name string, size Vec2, cond Cond) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.igSetWindowSize_Str(nameArg, size.toC(), C.ImGuiCond(cond)) nameFin() @@ -6414,7 +6414,7 @@ func InternalShortcutV(key_chord KeyChord, owner_id ID, flags InputFlags) bool { // ShowAboutWindowV parameter default value hint: // p_open: NULL func ShowAboutWindowV(p_open *bool) { - p_openArg, p_openFin := wrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowAboutWindow(p_openArg) p_openFin() @@ -6423,7 +6423,7 @@ func ShowAboutWindowV(p_open *bool) { // ShowDebugLogWindowV parameter default value hint: // p_open: NULL func ShowDebugLogWindowV(p_open *bool) { - p_openArg, p_openFin := wrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowDebugLogWindow(p_openArg) p_openFin() @@ -6432,7 +6432,7 @@ func ShowDebugLogWindowV(p_open *bool) { // ShowDemoWindowV parameter default value hint: // p_open: NULL func ShowDemoWindowV(p_open *bool) { - p_openArg, p_openFin := wrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowDemoWindow(p_openArg) p_openFin() @@ -6443,7 +6443,7 @@ func InternalShowFontAtlas(atlas FontAtlas) { } func ShowFontSelector(label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igShowFontSelector(labelArg) labelFin() @@ -6452,7 +6452,7 @@ func ShowFontSelector(label string) { // ShowMetricsWindowV parameter default value hint: // p_open: NULL func ShowMetricsWindowV(p_open *bool) { - p_openArg, p_openFin := wrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowMetricsWindow(p_openArg) p_openFin() @@ -6461,7 +6461,7 @@ func ShowMetricsWindowV(p_open *bool) { // ShowStackToolWindowV parameter default value hint: // p_open: NULL func ShowStackToolWindowV(p_open *bool) { - p_openArg, p_openFin := wrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowStackToolWindow(p_openArg) p_openFin() @@ -6474,7 +6474,7 @@ func ShowStyleEditorV(ref Style) { } func ShowStyleSelector(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -6500,9 +6500,9 @@ func InternalShutdown() { // v_degrees_max: +360.0f // v_degrees_min: -360.0f func SliderAngleV(label string, v_rad *float32, v_degrees_min float32, v_degrees_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - v_radArg, v_radFin := wrapNumberPtr[C.float, float32](v_rad) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + v_radArg, v_radFin := WrapNumberPtr[C.float, float32](v_rad) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6513,7 +6513,7 @@ func SliderAngleV(label string, v_rad *float32, v_degrees_min float32, v_degrees } func InternalSliderBehavior(bb Rect, id ID, data_type DataType, p_v unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags, out_grab_bb *Rect) bool { - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) out_grab_bbArg, out_grab_bbFin := wrap[C.ImRect, *Rect](out_grab_bb) defer func() { @@ -6527,9 +6527,9 @@ func InternalSliderBehavior(bb Rect, id ID, data_type DataType, p_v unsafe.Point // flags: 0 // format: "%.3f" func SliderFloatV(label string, v *float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.float, float32](v) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6543,13 +6543,13 @@ func SliderFloatV(label string, v *float32, v_min float32, v_max float32, format // flags: 0 // format: "%.3f" func SliderFloat2V(label string, v *[2]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6567,13 +6567,13 @@ func SliderFloat2V(label string, v *[2]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%.3f" func SliderFloat3V(label string, v *[3]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6591,13 +6591,13 @@ func SliderFloat3V(label string, v *[3]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%.3f" func SliderFloat4V(label string, v *[4]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6615,9 +6615,9 @@ func SliderFloat4V(label string, v *[4]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%d" func SliderIntV(label string, v *int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6631,13 +6631,13 @@ func SliderIntV(label string, v *int32, v_min int32, v_max int32, format string, // flags: 0 // format: "%d" func SliderInt2V(label string, v *[2]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6655,13 +6655,13 @@ func SliderInt2V(label string, v *[2]int32, v_min int32, v_max int32, format str // flags: 0 // format: "%d" func SliderInt3V(label string, v *[3]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6679,13 +6679,13 @@ func SliderInt3V(label string, v *[3]int32, v_min int32, v_max int32, format str // flags: 0 // format: "%d" func SliderInt4V(label string, v *[4]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6703,8 +6703,8 @@ func SliderInt4V(label string, v *[4]int32, v_min int32, v_max int32, format str // flags: 0 // format: NULL func SliderScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6717,8 +6717,8 @@ func SliderScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_mi // flags: 0 // format: NULL func SliderScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6728,7 +6728,7 @@ func SliderScalarNV(label string, data_type DataType, p_data unsafe.Pointer, com } func SmallButton(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -6745,8 +6745,8 @@ func Spacing() { // hover_extend: 0.0f // hover_visibility_delay: 0.0f func InternalSplitterBehaviorV(bb Rect, id ID, axis Axis, size1 *float32, size2 *float32, min_size1 float32, min_size2 float32, hover_extend float32, hover_visibility_delay float32, bg_col uint32) bool { - size1Arg, size1Fin := wrapNumberPtr[C.float, float32](size1) - size2Arg, size2Fin := wrapNumberPtr[C.float, float32](size2) + size1Arg, size1Fin := WrapNumberPtr[C.float, float32](size1) + size2Arg, size2Fin := WrapNumberPtr[C.float, float32](size2) defer func() { size1Fin() @@ -6840,7 +6840,7 @@ func InternalTabItemBackground(draw_list DrawList, bb Rect, flags TabItemFlags, // TabItemButtonV parameter default value hint: // flags: 0 func TabItemButtonV(label string, flags TabItemFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -6852,7 +6852,7 @@ func InternalTabItemCalcSizeStr(label string, has_close_button_or_unsaved_marker pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igTabItemCalcSize_Str(pOutArg, labelArg, C.bool(has_close_button_or_unsaved_marker)) pOutFin() @@ -6873,8 +6873,8 @@ func InternalTabItemCalcSizeWindowPtr(window Window) Vec2 { } func InternalTabItemEx(tab_bar TabBar, label string, p_open *bool, flags TabItemFlags, docked_window Window) bool { - labelArg, labelFin := wrapString(label) - p_openArg, p_openFin := wrapBool(p_open) + labelArg, labelFin := WrapString(label) + p_openArg, p_openFin := WrapBool(p_open) defer func() { labelFin() @@ -6884,9 +6884,9 @@ func InternalTabItemEx(tab_bar TabBar, label string, p_open *bool, flags TabItem } func InternalTabItemLabelAndCloseButton(draw_list DrawList, bb Rect, flags TabItemFlags, frame_padding Vec2, label string, tab_id ID, close_button_id ID, is_contents_visible bool, out_just_closed *bool, out_text_clipped *bool) { - labelArg, labelFin := wrapString(label) - out_just_closedArg, out_just_closedFin := wrapBool(out_just_closed) - out_text_clippedArg, out_text_clippedFin := wrapBool(out_text_clipped) + labelArg, labelFin := WrapString(label) + out_just_closedArg, out_just_closedFin := WrapBool(out_just_closed) + out_text_clippedArg, out_text_clippedFin := WrapBool(out_text_clipped) C.igTabItemLabelAndCloseButton(draw_list.handle(), bb.toC(), C.ImGuiTabItemFlags(flags), frame_padding.toC(), labelArg, C.ImGuiID(tab_id), C.ImGuiID(close_button_id), C.bool(is_contents_visible), out_just_closedArg, out_text_clippedArg) labelFin() @@ -7032,7 +7032,7 @@ func TableGetSortSpecs() TableSortSpecs { } func TableHeader(label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igTableHeader(labelArg) labelFin() @@ -7134,7 +7134,7 @@ func InternalTableSettingsFindByID(id ID) TableSettings { // init_width_or_weight: 0.0f // user_id: 0 func TableSetupColumnV(label string, flags TableColumnFlags, init_width_or_weight float32, user_id ID) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.igTableSetupColumn(labelArg, C.ImGuiTableColumnFlags(flags), C.float(init_width_or_weight), C.ImGuiID(user_id)) labelFin() @@ -7176,8 +7176,8 @@ func InternalTempInputIsActive(id ID) bool { // p_clamp_max: NULL // p_clamp_min: NULL func InternalTempInputScalarV(bb Rect, id ID, label string, data_type DataType, p_data unsafe.Pointer, format string, p_clamp_min unsafe.Pointer, p_clamp_max unsafe.Pointer) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -7187,8 +7187,8 @@ func InternalTempInputScalarV(bb Rect, id ID, label string, data_type DataType, } func InternalTempInputText(bb Rect, id ID, label string, buf string, buf_size int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) - bufArg, bufFin := wrapString(buf) + labelArg, labelFin := WrapString(label) + bufArg, bufFin := WrapString(buf) defer func() { labelFin() @@ -7206,21 +7206,21 @@ func InternalTestShortcutRouting(key_chord KeyChord, owner_id ID) bool { } func Text(fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igText(fmtArg) fmtFin() } func TextColored(col Vec4, fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igTextColored(col.toC(), fmtArg) fmtFin() } func TextDisabled(fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igTextDisabled(fmtArg) fmtFin() @@ -7230,7 +7230,7 @@ func TextDisabled(fmt string) { // flags: 0 // text_end: NULL func InternalTextExV(text string, flags TextFlags) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igTextExV(textArg, C.ImGuiTextFlags(flags)) textFin() @@ -7239,14 +7239,14 @@ func InternalTextExV(text string, flags TextFlags) { // TextUnformattedV parameter default value hint: // text_end: NULL func TextUnformattedV(text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igTextUnformattedV(textArg) textFin() } func TextWrapped(fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igTextWrapped(fmtArg) fmtFin() @@ -7259,8 +7259,8 @@ func InternalTranslateWindowsInViewport(viewport ViewportP, old_pos Vec2, new_po // InternalTreeNodeBehaviorV parameter default value hint: // label_end: NULL func InternalTreeNodeBehaviorV(id ID, flags TreeNodeFlags, label string, label_end string) bool { - labelArg, labelFin := wrapString(label) - label_endArg, label_endFin := wrapString(label_end) + labelArg, labelFin := WrapString(label) + label_endArg, label_endFin := WrapString(label_end) defer func() { labelFin() @@ -7270,7 +7270,7 @@ func InternalTreeNodeBehaviorV(id ID, flags TreeNodeFlags, label string, label_e } func TreeNodeExPtr(ptr_id unsafe.Pointer, flags TreeNodeFlags, fmt string) bool { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) defer func() { fmtFin() @@ -7281,7 +7281,7 @@ func TreeNodeExPtr(ptr_id unsafe.Pointer, flags TreeNodeFlags, fmt string) bool // TreeNodeExStrV parameter default value hint: // flags: 0 func TreeNodeExStrV(label string, flags TreeNodeFlags) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7290,8 +7290,8 @@ func TreeNodeExStrV(label string, flags TreeNodeFlags) bool { } func TreeNodeExStrStr(str_id string, flags TreeNodeFlags, fmt string) bool { - str_idArg, str_idFin := wrapString(str_id) - fmtArg, fmtFin := wrapString(fmt) + str_idArg, str_idFin := WrapString(str_id) + fmtArg, fmtFin := WrapString(fmt) defer func() { str_idFin() @@ -7309,7 +7309,7 @@ func InternalTreeNodeUpdateNextOpen(id ID, flags TreeNodeFlags) bool { } func TreeNodePtr(ptr_id unsafe.Pointer, fmt string) bool { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) defer func() { fmtFin() @@ -7318,7 +7318,7 @@ func TreeNodePtr(ptr_id unsafe.Pointer, fmt string) bool { } func TreeNodeStr(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7327,8 +7327,8 @@ func TreeNodeStr(label string) bool { } func TreeNodeStrStr(str_id string, fmt string) bool { - str_idArg, str_idFin := wrapString(str_id) - fmtArg, fmtFin := wrapString(fmt) + str_idArg, str_idFin := WrapString(str_id) + fmtArg, fmtFin := WrapString(fmt) defer func() { str_idFin() @@ -7350,7 +7350,7 @@ func TreePushPtr(ptr_id unsafe.Pointer) { } func TreePushStr(str_id string) { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igTreePush_Str(str_idArg) str_idFin() @@ -7390,9 +7390,9 @@ func InternalUpdateWindowParentAndRootLinks(window Window, flags WindowFlags, pa // flags: 0 // format: "%.3f" func VSliderFloatV(label string, size Vec2, v *float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.float, float32](v) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -7406,9 +7406,9 @@ func VSliderFloatV(label string, size Vec2, v *float32, v_min float32, v_max flo // flags: 0 // format: "%d" func VSliderIntV(label string, size Vec2, v *int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -7422,8 +7422,8 @@ func VSliderIntV(label string, size Vec2, v *int32, v_min int32, v_max int32, fo // flags: 0 // format: NULL func VSliderScalarV(label string, size Vec2, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -7433,7 +7433,7 @@ func VSliderScalarV(label string, size Vec2, data_type DataType, p_data unsafe.P } func ValueBool(prefix string, b bool) { - prefixArg, prefixFin := wrapString(prefix) + prefixArg, prefixFin := WrapString(prefix) C.igValue_Bool(prefixArg, C.bool(b)) prefixFin() @@ -7442,8 +7442,8 @@ func ValueBool(prefix string, b bool) { // ValueFloatV parameter default value hint: // float_format: NULL func ValueFloatV(prefix string, v float32, float_format string) { - prefixArg, prefixFin := wrapString(prefix) - float_formatArg, float_formatFin := wrapString(float_format) + prefixArg, prefixFin := WrapString(prefix) + float_formatArg, float_formatFin := WrapString(float_format) C.igValue_Float(prefixArg, C.float(v), float_formatArg) prefixFin() @@ -7451,14 +7451,14 @@ func ValueFloatV(prefix string, v float32, float_format string) { } func ValueInt(prefix string, v int32) { - prefixArg, prefixFin := wrapString(prefix) + prefixArg, prefixFin := WrapString(prefix) C.igValue_Int(prefixArg, C.int(v)) prefixFin() } func ValueUint(prefix string, v uint32) { - prefixArg, prefixFin := wrapString(prefix) + prefixArg, prefixFin := WrapString(prefix) C.igValue_Uint(prefixArg, C.uint(v)) prefixFin() @@ -7553,14 +7553,14 @@ func (self DrawList) AddRectFilled(p_min Vec2, p_max Vec2, col uint32) { } func (self DrawList) AddTextFontPtr(font Font, font_size float32, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImDrawList_AddText_FontPtr(self.handle(), font.handle(), C.float(font_size), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() } func (self DrawList) AddTextVec2(pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImDrawList_AddText_Vec2(self.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -7603,7 +7603,7 @@ func (self FontAtlas) AddFontDefault() Font { } func (self FontAtlas) AddFontFromFileTTF(filename string, size_pixels float32) Font { - filenameArg, filenameFin := wrapString(filename) + filenameArg, filenameFin := WrapString(filename) defer func() { filenameFin() @@ -7612,7 +7612,7 @@ func (self FontAtlas) AddFontFromFileTTF(filename string, size_pixels float32) F } func (self FontAtlas) AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85 string, size_pixels float32) Font { - compressed_font_data_base85Arg, compressed_font_data_base85Fin := wrapString(compressed_font_data_base85) + compressed_font_data_base85Arg, compressed_font_data_base85Fin := WrapString(compressed_font_data_base85) defer func() { compressed_font_data_base85Fin() @@ -7629,7 +7629,7 @@ func (self FontAtlas) AddFontFromMemoryTTF(font_data unsafe.Pointer, font_size i } func (self FontGlyphRangesBuilder) AddText(text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImFontGlyphRangesBuilder_AddText(self.handle(), textArg) textFin() @@ -7643,7 +7643,7 @@ func (self Font) CalcTextSizeA(size float32, max_width float32, wrap_width float pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImFont_CalcTextSizeA(pOutArg, self.handle(), C.float(size), C.float(max_width), C.float(wrap_width), text_beginArg) pOutFin() @@ -7653,7 +7653,7 @@ func (self Font) CalcTextSizeA(size float32, max_width float32, wrap_width float } func (self Font) RenderText(draw_list DrawList, size float32, pos Vec2, col uint32, clip_rect Vec4, text_begin string) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImFont_RenderText(self.handle(), draw_list.handle(), C.float(size), pos.toC(), C.ImU32(col), clip_rect.toC(), text_beginArg) text_beginFin() @@ -7664,7 +7664,7 @@ func (self IO) SetKeyEventNativeData(key Key, native_keycode int32, native_scanc } func (self InputTextCallbackData) InsertChars(pos int32, text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImGuiInputTextCallbackData_InsertChars(self.handle(), C.int(pos), textArg) textFin() @@ -7675,7 +7675,7 @@ func (self ListClipper) Begin(items_count int32) { } func (self TextBuffer) Append(str string) { - strArg, strFin := wrapString(str) + strArg, strFin := WrapString(str) C.wrap_ImGuiTextBuffer_Append(self.handle(), strArg) strFin() @@ -7686,7 +7686,7 @@ func (self TextFilter) Draw() bool { } func (self TextFilter) PassFilter(text string) bool { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -7695,7 +7695,7 @@ func (self TextFilter) PassFilter(text string) bool { } func (self Window) InternalIDStr(str string) ID { - strArg, strFin := wrapString(str) + strArg, strFin := WrapString(str) defer func() { strFin() @@ -7704,7 +7704,7 @@ func (self Window) InternalIDStr(str string) ID { } func AcceptDragDropPayload(typeArg string) Payload { - typeArgArg, typeArgFin := wrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -7713,7 +7713,7 @@ func AcceptDragDropPayload(typeArg string) Payload { } func InternalArrowButtonEx(str_id string, dir Dir, size_arg Vec2) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7722,7 +7722,7 @@ func InternalArrowButtonEx(str_id string, dir Dir, size_arg Vec2) bool { } func Begin(name string) bool { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -7739,7 +7739,7 @@ func BeginChildID(id ID) bool { } func BeginChildStr(str_id string) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7748,15 +7748,15 @@ func BeginChildStr(str_id string) bool { } func InternalBeginColumns(str_id string, count int32) { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.wrap_igBeginColumns(str_idArg, C.int(count)) str_idFin() } func BeginCombo(label string, preview_value string) bool { - labelArg, labelFin := wrapString(label) - preview_valueArg, preview_valueFin := wrapString(preview_value) + labelArg, labelFin := WrapString(label) + preview_valueArg, preview_valueFin := WrapString(preview_value) defer func() { labelFin() @@ -7774,7 +7774,7 @@ func BeginDragDropSource() bool { } func BeginListBox(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7783,7 +7783,7 @@ func BeginListBox(label string) bool { } func BeginMenu(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7792,8 +7792,8 @@ func BeginMenu(label string) bool { } func InternalBeginMenuEx(label string, icon string) bool { - labelArg, labelFin := wrapString(label) - iconArg, iconFin := wrapString(icon) + labelArg, labelFin := WrapString(label) + iconArg, iconFin := WrapString(icon) defer func() { labelFin() @@ -7803,7 +7803,7 @@ func InternalBeginMenuEx(label string, icon string) bool { } func BeginPopup(str_id string) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7824,7 +7824,7 @@ func BeginPopupContextWindow() bool { } func BeginPopupModal(name string) bool { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -7833,7 +7833,7 @@ func BeginPopupModal(name string) bool { } func BeginTabBar(str_id string) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7842,7 +7842,7 @@ func BeginTabBar(str_id string) bool { } func BeginTabItem(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7851,7 +7851,7 @@ func BeginTabItem(label string) bool { } func BeginTable(str_id string, column int32) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7860,7 +7860,7 @@ func BeginTable(str_id string, column int32) bool { } func InternalBeginTableEx(name string, id ID, columns_count int32) bool { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -7869,7 +7869,7 @@ func InternalBeginTableEx(name string, id ID, columns_count int32) bool { } func Button(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7878,8 +7878,8 @@ func Button(label string) bool { } func InternalButtonBehavior(bb Rect, id ID, out_hovered *bool, out_held *bool) bool { - out_hoveredArg, out_hoveredFin := wrapBool(out_hovered) - out_heldArg, out_heldFin := wrapBool(out_held) + out_hoveredArg, out_hoveredFin := WrapBool(out_hovered) + out_heldArg, out_heldFin := WrapBool(out_held) defer func() { out_hoveredFin() @@ -7889,7 +7889,7 @@ func InternalButtonBehavior(bb Rect, id ID, out_hovered *bool, out_held *bool) b } func InternalButtonEx(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7901,7 +7901,7 @@ func CalcTextSize(text string) Vec2 { pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igCalcTextSize(pOutArg, textArg) pOutFin() @@ -7911,8 +7911,8 @@ func CalcTextSize(text string) Vec2 { } func CollapsingHeaderBoolPtr(label string, p_visible *bool) bool { - labelArg, labelFin := wrapString(label) - p_visibleArg, p_visibleFin := wrapBool(p_visible) + labelArg, labelFin := WrapString(label) + p_visibleArg, p_visibleFin := WrapBool(p_visible) defer func() { labelFin() @@ -7922,7 +7922,7 @@ func CollapsingHeaderBoolPtr(label string, p_visible *bool) bool { } func CollapsingHeaderTreeNodeFlags(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7931,7 +7931,7 @@ func CollapsingHeaderTreeNodeFlags(label string) bool { } func ColorButton(desc_id string, col Vec4) bool { - desc_idArg, desc_idFin := wrapString(desc_id) + desc_idArg, desc_idFin := WrapString(desc_id) defer func() { desc_idFin() @@ -7940,7 +7940,7 @@ func ColorButton(desc_id string, col Vec4) bool { } func ColorEdit3(label string, col *[3]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7958,7 +7958,7 @@ func ColorEdit3(label string, col *[3]float32) bool { } func ColorEdit4(label string, col *[4]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7976,7 +7976,7 @@ func ColorEdit4(label string, col *[4]float32) bool { } func ColorPicker3(label string, col *[3]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7994,7 +7994,7 @@ func ColorPicker3(label string, col *[3]float32) bool { } func ColorPicker4(label string, col *[4]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -8016,9 +8016,9 @@ func Columns() { } func ComboStr(label string, current_item *int32, items_separated_by_zeros string) bool { - labelArg, labelFin := wrapString(label) - current_itemArg, current_itemFin := wrapNumberPtr[C.int, int32](current_item) - items_separated_by_zerosArg, items_separated_by_zerosFin := wrapString(items_separated_by_zeros) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + items_separated_by_zerosArg, items_separated_by_zerosFin := WrapString(items_separated_by_zeros) defer func() { labelFin() @@ -8029,9 +8029,9 @@ func ComboStr(label string, current_item *int32, items_separated_by_zeros string } func ComboStrarr(label string, current_item *int32, items []string, items_count int32) bool { - labelArg, labelFin := wrapString(label) - current_itemArg, current_itemFin := wrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := wrapStringList(items) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := WrapStringList(items) defer func() { labelFin() @@ -8074,8 +8074,8 @@ func DockSpaceOverViewport() ID { } func DragFloat(label string, v *float32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.float, float32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8085,7 +8085,7 @@ func DragFloat(label string, v *float32) bool { } func DragFloat2(label string, v *[2]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8103,7 +8103,7 @@ func DragFloat2(label string, v *[2]float32) bool { } func DragFloat3(label string, v *[3]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8121,7 +8121,7 @@ func DragFloat3(label string, v *[3]float32) bool { } func DragFloat4(label string, v *[4]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8139,9 +8139,9 @@ func DragFloat4(label string, v *[4]float32) bool { } func DragFloatRange2(label string, v_current_min *float32, v_current_max *float32) bool { - labelArg, labelFin := wrapString(label) - v_current_minArg, v_current_minFin := wrapNumberPtr[C.float, float32](v_current_min) - v_current_maxArg, v_current_maxFin := wrapNumberPtr[C.float, float32](v_current_max) + labelArg, labelFin := WrapString(label) + v_current_minArg, v_current_minFin := WrapNumberPtr[C.float, float32](v_current_min) + v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.float, float32](v_current_max) defer func() { labelFin() @@ -8152,8 +8152,8 @@ func DragFloatRange2(label string, v_current_min *float32, v_current_max *float3 } func DragInt(label string, v *int32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -8163,7 +8163,7 @@ func DragInt(label string, v *int32) bool { } func DragInt2(label string, v *[2]int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8181,7 +8181,7 @@ func DragInt2(label string, v *[2]int32) bool { } func DragInt3(label string, v *[3]int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8199,7 +8199,7 @@ func DragInt3(label string, v *[3]int32) bool { } func DragInt4(label string, v *[4]int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8217,9 +8217,9 @@ func DragInt4(label string, v *[4]int32) bool { } func DragIntRange2(label string, v_current_min *int32, v_current_max *int32) bool { - labelArg, labelFin := wrapString(label) - v_current_minArg, v_current_minFin := wrapNumberPtr[C.int, int32](v_current_min) - v_current_maxArg, v_current_maxFin := wrapNumberPtr[C.int, int32](v_current_max) + labelArg, labelFin := WrapString(label) + v_current_minArg, v_current_minFin := WrapNumberPtr[C.int, int32](v_current_min) + v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.int, int32](v_current_max) defer func() { labelFin() @@ -8230,7 +8230,7 @@ func DragIntRange2(label string, v_current_min *int32, v_current_max *int32) boo } func DragScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8239,7 +8239,7 @@ func DragScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { } func DragScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8248,7 +8248,7 @@ func DragScalarN(label string, data_type DataType, p_data unsafe.Pointer, compon } func InternalFindRenderedTextEnd(text string) string { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -8280,8 +8280,8 @@ func MouseDragDelta() Vec2 { } func InternalImFileLoadToMemory(filename string, mode string) unsafe.Pointer { - filenameArg, filenameFin := wrapString(filename) - modeArg, modeFin := wrapString(mode) + filenameArg, filenameFin := WrapString(filename) + modeArg, modeFin := WrapString(mode) defer func() { filenameFin() @@ -8295,7 +8295,7 @@ func InternalImHashData(data unsafe.Pointer, data_size uint64) ID { } func InternalImHashStr(data string) ID { - dataArg, dataFin := wrapString(data) + dataArg, dataFin := WrapString(data) defer func() { dataFin() @@ -8308,7 +8308,7 @@ func Image(user_texture_id TextureID, size Vec2) { } func ImageButton(str_id string, user_texture_id TextureID, size Vec2) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -8325,8 +8325,8 @@ func Indent() { } func InputDouble(label string, v *float64) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.double, float64](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.double, float64](v) defer func() { labelFin() @@ -8336,8 +8336,8 @@ func InputDouble(label string, v *float64) bool { } func InputFloat(label string, v *float32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.float, float32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8347,7 +8347,7 @@ func InputFloat(label string, v *float32) bool { } func InputFloat2(label string, v *[2]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8365,7 +8365,7 @@ func InputFloat2(label string, v *[2]float32) bool { } func InputFloat3(label string, v *[3]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8383,7 +8383,7 @@ func InputFloat3(label string, v *[3]float32) bool { } func InputFloat4(label string, v *[4]float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8401,8 +8401,8 @@ func InputFloat4(label string, v *[4]float32) bool { } func InputInt(label string, v *int32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -8412,7 +8412,7 @@ func InputInt(label string, v *int32) bool { } func InputInt2(label string, v *[2]int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8430,7 +8430,7 @@ func InputInt2(label string, v *[2]int32) bool { } func InputInt3(label string, v *[3]int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8448,7 +8448,7 @@ func InputInt3(label string, v *[3]int32) bool { } func InputInt4(label string, v *[4]int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8466,7 +8466,7 @@ func InputInt4(label string, v *[4]int32) bool { } func InputScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8475,7 +8475,7 @@ func InputScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { } func InputScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8484,9 +8484,9 @@ func InputScalarN(label string, data_type DataType, p_data unsafe.Pointer, compo } func InternalInputTextEx(label string, hint string, buf string, buf_size int32, size_arg Vec2, flags InputTextFlags) bool { - labelArg, labelFin := wrapString(label) - hintArg, hintFin := wrapString(hint) - bufArg, bufFin := wrapString(buf) + labelArg, labelFin := WrapString(label) + hintArg, hintFin := WrapString(hint) + bufArg, bufFin := WrapString(buf) defer func() { labelFin() @@ -8497,7 +8497,7 @@ func InternalInputTextEx(label string, hint string, buf string, buf_size int32, } func InvisibleButton(str_id string, size Vec2) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -8550,7 +8550,7 @@ func IsMousePosValid() bool { } func IsPopupOpenStr(str_id string) bool { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -8579,9 +8579,9 @@ func InternalItemSizeVec2(size Vec2) { } func ListBoxStrarr(label string, current_item *int32, items []string, items_count int32) bool { - labelArg, labelFin := wrapString(label) - current_itemArg, current_itemFin := wrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := wrapStringList(items) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := WrapStringList(items) defer func() { labelFin() @@ -8592,7 +8592,7 @@ func ListBoxStrarr(label string, current_item *int32, items []string, items_coun } func LoadIniSettingsFromMemory(ini_data string) { - ini_dataArg, ini_dataFin := wrapString(ini_data) + ini_dataArg, ini_dataFin := WrapString(ini_data) C.wrap_igLoadIniSettingsFromMemory(ini_dataArg) ini_dataFin() @@ -8600,7 +8600,7 @@ func LoadIniSettingsFromMemory(ini_data string) { func InternalLogRenderedText(ref_pos *Vec2, text string) { ref_posArg, ref_posFin := wrap[C.ImVec2, *Vec2](ref_pos) - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igLogRenderedText(ref_posArg, textArg) ref_posFin() @@ -8624,8 +8624,8 @@ func LogToTTY() { } func InternalMenuItemEx(label string, icon string) bool { - labelArg, labelFin := wrapString(label) - iconArg, iconFin := wrapString(icon) + labelArg, labelFin := WrapString(label) + iconArg, iconFin := WrapString(icon) defer func() { labelFin() @@ -8635,7 +8635,7 @@ func InternalMenuItemEx(label string, icon string) bool { } func MenuItemBool(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8644,9 +8644,9 @@ func MenuItemBool(label string) bool { } func MenuItemBoolPtr(label string, shortcut string, p_selected *bool) bool { - labelArg, labelFin := wrapString(label) - shortcutArg, shortcutFin := wrapString(shortcut) - p_selectedArg, p_selectedFin := wrapBool(p_selected) + labelArg, labelFin := WrapString(label) + shortcutArg, shortcutFin := WrapString(shortcut) + p_selectedArg, p_selectedFin := WrapBool(p_selected) defer func() { labelFin() @@ -8669,21 +8669,21 @@ func OpenPopupID(id ID) { } func OpenPopupStr(str_id string) { - str_idArg, str_idFin := wrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.wrap_igOpenPopup_Str(str_idArg) str_idFin() } func PlotHistogramFloatPtr(label string, values []float32, values_count int32) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.wrap_igPlotHistogram_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count)) labelFin() } func PlotLinesFloatPtr(label string, values []float32, values_count int32) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.wrap_igPlotLines_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count)) labelFin() @@ -8730,14 +8730,14 @@ func RenderPlatformWindowsDefault() { } func InternalRenderText(pos Vec2, text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igRenderText(pos.toC(), textArg) textFin() } func InternalRenderTextClipped(pos_min Vec2, pos_max Vec2, text string, text_size_if_known *Vec2) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextClipped(pos_min.toC(), pos_max.toC(), textArg, text_size_if_knownArg) @@ -8746,7 +8746,7 @@ func InternalRenderTextClipped(pos_min Vec2, pos_max Vec2, text string, text_siz } func InternalRenderTextClippedEx(draw_list DrawList, pos_min Vec2, pos_max Vec2, text string, text_size_if_known *Vec2) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextClippedEx(draw_list.handle(), pos_min.toC(), pos_max.toC(), textArg, text_size_if_knownArg) @@ -8786,7 +8786,7 @@ func InternalScrollToRectEx(window Window, rect Rect) Vec2 { } func SelectableBool(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8795,8 +8795,8 @@ func SelectableBool(label string) bool { } func SelectableBoolPtr(label string, p_selected *bool) bool { - labelArg, labelFin := wrapString(label) - p_selectedArg, p_selectedFin := wrapBool(p_selected) + labelArg, labelFin := WrapString(label) + p_selectedArg, p_selectedFin := WrapBool(p_selected) defer func() { labelFin() @@ -8806,7 +8806,7 @@ func SelectableBoolPtr(label string, p_selected *bool) bool { } func SetDragDropPayload(typeArg string, data unsafe.Pointer, sz uint64) bool { - typeArgArg, typeArgFin := wrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -8875,7 +8875,7 @@ func SetWindowCollapsedBool(collapsed bool) { } func SetWindowCollapsedStr(name string, collapsed bool) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.wrap_igSetWindowCollapsed_Str(nameArg, C.bool(collapsed)) nameFin() @@ -8886,7 +8886,7 @@ func InternalSetWindowCollapsedWindowPtr(window Window, collapsed bool) { } func SetWindowPosStr(name string, pos Vec2) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.wrap_igSetWindowPos_Str(nameArg, pos.toC()) nameFin() @@ -8901,7 +8901,7 @@ func InternalSetWindowPosWindowPtr(window Window, pos Vec2) { } func SetWindowSizeStr(name string, size Vec2) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.wrap_igSetWindowSize_Str(nameArg, size.toC()) nameFin() @@ -8944,8 +8944,8 @@ func ShowStyleEditor() { } func SliderAngle(label string, v_rad *float32) bool { - labelArg, labelFin := wrapString(label) - v_radArg, v_radFin := wrapNumberPtr[C.float, float32](v_rad) + labelArg, labelFin := WrapString(label) + v_radArg, v_radFin := WrapNumberPtr[C.float, float32](v_rad) defer func() { labelFin() @@ -8955,8 +8955,8 @@ func SliderAngle(label string, v_rad *float32) bool { } func SliderFloat(label string, v *float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.float, float32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8966,7 +8966,7 @@ func SliderFloat(label string, v *float32, v_min float32, v_max float32) bool { } func SliderFloat2(label string, v *[2]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8984,7 +8984,7 @@ func SliderFloat2(label string, v *[2]float32, v_min float32, v_max float32) boo } func SliderFloat3(label string, v *[3]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -9002,7 +9002,7 @@ func SliderFloat3(label string, v *[3]float32, v_min float32, v_max float32) boo } func SliderFloat4(label string, v *[4]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -9020,8 +9020,8 @@ func SliderFloat4(label string, v *[4]float32, v_min float32, v_max float32) boo } func SliderInt(label string, v *int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -9031,7 +9031,7 @@ func SliderInt(label string, v *int32, v_min int32, v_max int32) bool { } func SliderInt2(label string, v *[2]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9049,7 +9049,7 @@ func SliderInt2(label string, v *[2]int32, v_min int32, v_max int32) bool { } func SliderInt3(label string, v *[3]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9067,7 +9067,7 @@ func SliderInt3(label string, v *[3]int32, v_min int32, v_max int32) bool { } func SliderInt4(label string, v *[4]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9085,7 +9085,7 @@ func SliderInt4(label string, v *[4]int32, v_min int32, v_max int32) bool { } func SliderScalar(label string, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9094,7 +9094,7 @@ func SliderScalar(label string, data_type DataType, p_data unsafe.Pointer, p_min } func SliderScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9103,8 +9103,8 @@ func SliderScalarN(label string, data_type DataType, p_data unsafe.Pointer, comp } func InternalSplitterBehavior(bb Rect, id ID, axis Axis, size1 *float32, size2 *float32, min_size1 float32, min_size2 float32) bool { - size1Arg, size1Fin := wrapNumberPtr[C.float, float32](size1) - size2Arg, size2Fin := wrapNumberPtr[C.float, float32](size2) + size1Arg, size1Fin := WrapNumberPtr[C.float, float32](size1) + size2Arg, size2Fin := WrapNumberPtr[C.float, float32](size2) defer func() { size1Fin() @@ -9126,7 +9126,7 @@ func StyleColorsLight() { } func TabItemButton(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9159,15 +9159,15 @@ func TableSetBgColor(target TableBgTarget, color uint32) { } func TableSetupColumn(label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.wrap_igTableSetupColumn(labelArg) labelFin() } func InternalTempInputScalar(bb Rect, id ID, label string, data_type DataType, p_data unsafe.Pointer, format string) bool { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -9177,21 +9177,21 @@ func InternalTempInputScalar(bb Rect, id ID, label string, data_type DataType, p } func InternalTextEx(text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igTextEx(textArg) textFin() } func TextUnformatted(text string) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_igTextUnformatted(textArg) textFin() } func InternalTreeNodeBehavior(id ID, flags TreeNodeFlags, label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9200,7 +9200,7 @@ func InternalTreeNodeBehavior(id ID, flags TreeNodeFlags, label string) bool { } func TreeNodeExStr(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9213,8 +9213,8 @@ func Unindent() { } func VSliderFloat(label string, size Vec2, v *float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.float, float32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -9224,8 +9224,8 @@ func VSliderFloat(label string, size Vec2, v *float32, v_min float32, v_max floa } func VSliderInt(label string, size Vec2, v *int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapString(label) - vArg, vFin := wrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -9235,7 +9235,7 @@ func VSliderInt(label string, size Vec2, v *int32, v_min int32, v_max int32) boo } func VSliderScalar(label string, size Vec2, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9244,7 +9244,7 @@ func VSliderScalar(label string, size Vec2, data_type DataType, p_data unsafe.Po } func ValueFloat(prefix string, v float32) { - prefixArg, prefixFin := wrapString(prefix) + prefixArg, prefixFin := WrapString(prefix) C.wrap_igValue_Float(prefixArg, C.float(v)) prefixFin() @@ -9421,7 +9421,7 @@ func (self DrawList) Data() DrawListSharedData { } func (self DrawList) SetOwnerName(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImDrawList_Set_OwnerName(self.handle(), vArg) vFin() @@ -9765,7 +9765,7 @@ func (self FontAtlas) TexPixelsUseColors() bool { } func (self FontAtlas) SetTexPixelsRGBA32(v *uint32) { - vArg, vFin := wrapNumberPtr[C.uint, uint32](v) + vArg, vFin := WrapNumberPtr[C.uint, uint32](v) C.wrap_ImFontAtlas_SetTexPixelsRGBA32(self.handle(), vArg) vFin() @@ -11630,7 +11630,7 @@ func (self Context) LogBuffer() TextBuffer { } func (self Context) SetLogNextPrefix(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiContext_SetLogNextPrefix(self.handle(), vArg) vFin() @@ -11641,7 +11641,7 @@ func (self Context) LogNextPrefix() string { } func (self Context) SetLogNextSuffix(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiContext_SetLogNextSuffix(self.handle(), vArg) vFin() @@ -11860,7 +11860,7 @@ func (self DataTypeInfo) Size() float64 { } func (self DataTypeInfo) SetName(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiDataTypeInfo_SetName(self.handle(), vArg) vFin() @@ -11871,7 +11871,7 @@ func (self DataTypeInfo) Name() string { } func (self DataTypeInfo) SetPrintFmt(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiDataTypeInfo_SetPrintFmt(self.handle(), vArg) vFin() @@ -11882,7 +11882,7 @@ func (self DataTypeInfo) PrintFmt() string { } func (self DataTypeInfo) SetScanFmt(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiDataTypeInfo_SetScanFmt(self.handle(), vArg) vFin() @@ -12355,7 +12355,7 @@ func (self IO) IniSavingRate() float32 { } func (self IO) SetIniFilename(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiIO_SetIniFilename(self.handle(), vArg) vFin() @@ -12366,7 +12366,7 @@ func (self IO) IniFilename() string { } func (self IO) SetLogFilename(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiIO_SetLogFilename(self.handle(), vArg) vFin() @@ -12635,7 +12635,7 @@ func (self IO) ConfigDebugBeginReturnValueLoop() bool { } func (self IO) SetBackendPlatformName(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiIO_SetBackendPlatformName(self.handle(), vArg) vFin() @@ -12646,7 +12646,7 @@ func (self IO) BackendPlatformName() string { } func (self IO) SetBackendRendererName(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiIO_SetBackendRendererName(self.handle(), vArg) vFin() @@ -13107,7 +13107,7 @@ func (self InputTextCallbackData) EventKey() Key { } func (self InputTextCallbackData) SetBuf(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiInputTextCallbackData_SetBuf(self.handle(), vArg) vFin() @@ -13548,7 +13548,7 @@ func (self LocEntry) Key() LocKey { } func (self LocEntry) SetText(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiLocEntry_SetText(self.handle(), vArg) vFin() @@ -14357,7 +14357,7 @@ func (self PtrOrIndex) Index() int { } func (self SettingsHandler) SetTypeName(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiSettingsHandler_SetTypeName(self.handle(), vArg) vFin() @@ -16752,7 +16752,7 @@ func (self TextIndex) EndOffset() int { } func (self TextRange) Setb(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiTextRange_Setb(self.handle(), vArg) vFin() @@ -16763,7 +16763,7 @@ func (self TextRange) b() string { } func (self TextRange) Sete(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiTextRange_Sete(self.handle(), vArg) vFin() @@ -17082,7 +17082,7 @@ func (self Window) Ctx() Context { } func (self Window) SetName(v string) { - vArg, vFin := wrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiWindow_SetName(self.handle(), vArg) vFin() diff --git a/cimplot_funcs.go b/cimplot_funcs.go index ab68db70a..645acd207 100644 --- a/cimplot_funcs.go +++ b/cimplot_funcs.go @@ -26,10 +26,10 @@ func (self PlotAlignmentData) Reset() { } func (self PlotAlignmentData) Update(pad_a *float32, pad_b *float32, delta_a *float32, delta_b *float32) { - pad_aArg, pad_aFin := wrapNumberPtr[C.float, float32](pad_a) - pad_bArg, pad_bFin := wrapNumberPtr[C.float, float32](pad_b) - delta_aArg, delta_aFin := wrapNumberPtr[C.float, float32](delta_a) - delta_bArg, delta_bFin := wrapNumberPtr[C.float, float32](delta_b) + pad_aArg, pad_aFin := WrapNumberPtr[C.float, float32](pad_a) + pad_bArg, pad_bFin := WrapNumberPtr[C.float, float32](pad_b) + delta_aArg, delta_aFin := WrapNumberPtr[C.float, float32](delta_a) + delta_bArg, delta_bFin := WrapNumberPtr[C.float, float32](delta_b) C.ImPlotAlignmentData_Update(self.handle(), pad_aArg, pad_bArg, delta_aArg, delta_bArg) pad_aFin() @@ -43,7 +43,7 @@ func (self PlotAlignmentData) Destroy() { } func (self PlotAnnotationCollection) Append(pos Vec2, off Vec2, bg uint32, fg uint32, clamp bool, fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlotAnnotationCollection_Append(self.handle(), pos.toC(), off.toC(), C.ImU32(bg), C.ImU32(fg), C.bool(clamp), fmtArg) fmtFin() @@ -226,7 +226,7 @@ func (self PlotAxis) Destroy() { } func (self PlotColormapData) Append(name string, keys *[]uint32, count int32, qual bool) int { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) keysArg := make([]C.ImU32, len(*keys)) for i, keysV := range *keys { keysArg[i] = C.ImU32(keysV) @@ -243,7 +243,7 @@ func (self PlotColormapData) Append(name string, keys *[]uint32, count int32, qu } func (self PlotColormapData) Index(name string) PlotColormap { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -327,7 +327,7 @@ func (self PlotItemGroup) ItemCount() int { } func (self PlotItemGroup) ItemID(label_id string) ID { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -344,7 +344,7 @@ func (self PlotItemGroup) ItemByID(id ID) PlotItem { } func (self PlotItemGroup) ItemStr(label_id string) PlotItem { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -453,14 +453,14 @@ func (self PlotPlot) IsInputLocked() bool { } func (self PlotPlot) SetAxisLabel(axis PlotAxis, label string) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.ImPlotPlot_SetAxisLabel(self.handle(), axis.handle(), labelArg) labelFin() } func (self PlotPlot) SetTitle(title string) { - titleArg, titleFin := wrapString(title) + titleArg, titleFin := WrapString(title) C.ImPlotPlot_SetTitle(self.handle(), titleArg) titleFin() @@ -609,7 +609,7 @@ func (self PlotSubplot) Destroy() { } func (self PlotTagCollection) Append(axis PlotAxisEnum, value float64, bg uint32, fg uint32, fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlotTagCollection_Append(self.handle(), C.ImAxis(axis), C.double(value), C.ImU32(bg), C.ImU32(fg), fmtArg) fmtFin() @@ -640,7 +640,7 @@ func (self PlotTick) Destroy() { } func (self PlotTicker) AddTickdoubleStr(value float64, major bool, level int32, show_label bool, label string) PlotTick { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -709,7 +709,7 @@ func (self *PlotTime) Destroy() { // PlotAddColormapU32PtrV parameter default value hint: // qual: true func PlotAddColormapU32PtrV(name string, cols *[]uint32, size int32, qual bool) PlotColormap { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) colsArg := make([]C.ImU32, len(*cols)) for i, colsV := range *cols { colsArg[i] = C.ImU32(colsV) @@ -728,7 +728,7 @@ func PlotAddColormapU32PtrV(name string, cols *[]uint32, size int32, qual bool) // PlotAddColormapVec4PtrV parameter default value hint: // qual: true func PlotAddColormapVec4PtrV(name string, cols *Vec4, size int32, qual bool) PlotColormap { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) colsArg, colsFin := wrap[C.ImVec4, *Vec4](cols) defer func() { @@ -741,7 +741,7 @@ func PlotAddColormapVec4PtrV(name string, cols *Vec4, size int32, qual bool) Plo // PlotAddTextCenteredV parameter default value hint: // text_end: NULL func PlotAddTextCenteredV(DrawList DrawList, top_center Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImPlot_AddTextCenteredV(DrawList.handle(), top_center.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -750,7 +750,7 @@ func PlotAddTextCenteredV(DrawList DrawList, top_center Vec2, col uint32, text_b // PlotAddTextVerticalV parameter default value hint: // text_end: NULL func PlotAddTextVerticalV(DrawList DrawList, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImPlot_AddTextVerticalV(DrawList.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -778,7 +778,7 @@ func PlotAnnotationBoolV(x float64, y float64, col Vec4, pix_offset Vec2, clamp } func PlotAnnotationStr(x float64, y float64, col Vec4, pix_offset Vec2, clamp bool, fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlot_Annotation_Str(C.double(x), C.double(y), col.toC(), pix_offset.toC(), C.bool(clamp), fmtArg) fmtFin() @@ -799,7 +799,7 @@ func PlotAnyAxesInputLocked(axes PlotAxis, count int32) bool { // PlotBeginAlignedPlotsV parameter default value hint: // vertical: true func PlotBeginAlignedPlotsV(group_id string, vertical bool) bool { - group_idArg, group_idFin := wrapString(group_id) + group_idArg, group_idFin := WrapString(group_id) defer func() { group_idFin() @@ -823,7 +823,7 @@ func PlotBeginDragDropTargetPlot() bool { // flags: 0 // recolor_from: -1 func PlotBeginItemV(label_id string, flags PlotItemFlags, recolor_from PlotCol) bool { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -835,7 +835,7 @@ func PlotBeginItemV(label_id string, flags PlotItemFlags, recolor_from PlotCol) // flags: 0 // size: ImVec2(-1,0) func PlotBeginPlotV(title_id string, size Vec2, flags PlotFlags) bool { - title_idArg, title_idFin := wrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) defer func() { title_idFin() @@ -848,9 +848,9 @@ func PlotBeginPlotV(title_id string, size Vec2, flags PlotFlags) bool { // flags: 0 // row_ratios: NULL func PlotBeginSubplotsV(title_id string, rows int32, cols int32, size Vec2, flags PlotSubplotFlags, row_ratios *float32, col_ratios *float32) bool { - title_idArg, title_idFin := wrapString(title_id) - row_ratiosArg, row_ratiosFin := wrapNumberPtr[C.float, float32](row_ratios) - col_ratiosArg, col_ratiosFin := wrapNumberPtr[C.float, float32](col_ratios) + title_idArg, title_idFin := WrapString(title_id) + row_ratiosArg, row_ratiosFin := WrapNumberPtr[C.float, float32](row_ratios) + col_ratiosArg, col_ratiosFin := WrapNumberPtr[C.float, float32](col_ratios) defer func() { title_idFin() @@ -863,7 +863,7 @@ func PlotBeginSubplotsV(title_id string, rows int32, cols int32, size Vec2, flag // PlotBustColorCacheV parameter default value hint: // plot_title_id: NULL func PlotBustColorCacheV(plot_title_id string) { - plot_title_idArg, plot_title_idFin := wrapString(plot_title_id) + plot_title_idArg, plot_title_idFin := WrapString(plot_title_id) C.ImPlot_BustColorCache(plot_title_idArg) plot_title_idFin() @@ -904,7 +904,7 @@ func PlotCalcTextSizeVertical(text string) Vec2 { pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.ImPlot_CalcTextSizeVertical(pOutArg, textArg) pOutFin() @@ -943,7 +943,7 @@ func PlotClampLabelPos(pos Vec2, size Vec2, Min Vec2, Max Vec2) Vec2 { // cmap: -1 // size: ImVec2(0,0) func PlotColormapButtonV(label string, size Vec2, cmap PlotColormap) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -961,8 +961,8 @@ func PlotColormapIcon(cmap PlotColormap) { // format: "%g" // size: ImVec2(0,0) func PlotColormapScaleV(label string, scale_min float64, scale_max float64, size Vec2, format string, flags PlotColormapScaleFlags, cmap PlotColormap) { - labelArg, labelFin := wrapString(label) - formatArg, formatFin := wrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) C.ImPlot_ColormapScale(labelArg, C.double(scale_min), C.double(scale_max), size.toC(), formatArg, C.ImPlotColormapScaleFlags(flags), C.ImPlotColormap(cmap)) labelFin() @@ -974,10 +974,10 @@ func PlotColormapScaleV(label string, scale_min float64, scale_max float64, size // format: "" // out: NULL func PlotColormapSliderV(label string, t *float32, out *Vec4, format string, cmap PlotColormap) bool { - labelArg, labelFin := wrapString(label) - tArg, tFin := wrapNumberPtr[C.float, float32](t) + labelArg, labelFin := WrapString(label) + tArg, tFin := WrapNumberPtr[C.float, float32](t) outArg, outFin := wrap[C.ImVec4, *Vec4](out) - formatArg, formatFin := wrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -1013,7 +1013,7 @@ func PlotDestroyContextV(ctx PlotContext) { // flags: 0 // thickness: 1 func PlotDragLineXV(id int32, x *float64, col Vec4, thickness float32, flags PlotDragToolFlags) bool { - xArg, xFin := wrapNumberPtr[C.double, float64](x) + xArg, xFin := WrapNumberPtr[C.double, float64](x) defer func() { xFin() @@ -1025,7 +1025,7 @@ func PlotDragLineXV(id int32, x *float64, col Vec4, thickness float32, flags Plo // flags: 0 // thickness: 1 func PlotDragLineYV(id int32, y *float64, col Vec4, thickness float32, flags PlotDragToolFlags) bool { - yArg, yFin := wrapNumberPtr[C.double, float64](y) + yArg, yFin := WrapNumberPtr[C.double, float64](y) defer func() { yFin() @@ -1037,8 +1037,8 @@ func PlotDragLineYV(id int32, y *float64, col Vec4, thickness float32, flags Plo // flags: 0 // size: 4 func PlotDragPointV(id int32, x *float64, y *float64, col Vec4, size float32, flags PlotDragToolFlags) bool { - xArg, xFin := wrapNumberPtr[C.double, float64](x) - yArg, yFin := wrapNumberPtr[C.double, float64](y) + xArg, xFin := WrapNumberPtr[C.double, float64](x) + yArg, yFin := WrapNumberPtr[C.double, float64](y) defer func() { xFin() @@ -1050,10 +1050,10 @@ func PlotDragPointV(id int32, x *float64, y *float64, col Vec4, size float32, fl // PlotDragRectV parameter default value hint: // flags: 0 func PlotDragRectV(id int32, x1 *float64, y1 *float64, x2 *float64, y2 *float64, col Vec4, flags PlotDragToolFlags) bool { - x1Arg, x1Fin := wrapNumberPtr[C.double, float64](x1) - y1Arg, y1Fin := wrapNumberPtr[C.double, float64](y1) - x2Arg, x2Fin := wrapNumberPtr[C.double, float64](x2) - y2Arg, y2Fin := wrapNumberPtr[C.double, float64](y2) + x1Arg, x1Fin := WrapNumberPtr[C.double, float64](x1) + y1Arg, y1Fin := WrapNumberPtr[C.double, float64](y1) + x2Arg, x2Fin := WrapNumberPtr[C.double, float64](x2) + y2Arg, y2Fin := WrapNumberPtr[C.double, float64](y2) defer func() { x1Fin() @@ -1120,7 +1120,7 @@ func PlotFloorTime(t PlotTime, unit PlotTimeUnit) PlotTime { } func PlotFormatDate(t PlotTime, buffer string, size int32, fmt PlotDateFmt, use_iso_8601 bool) int { - bufferArg, bufferFin := wrapString(buffer) + bufferArg, bufferFin := WrapString(buffer) defer func() { bufferFin() @@ -1129,7 +1129,7 @@ func PlotFormatDate(t PlotTime, buffer string, size int32, fmt PlotDateFmt, use_ } func PlotFormatTime(t PlotTime, buffer string, size int32, fmt PlotTimeFmt, use_24_hr_clk bool) int { - bufferArg, bufferFin := wrapString(buffer) + bufferArg, bufferFin := WrapString(buffer) defer func() { bufferFin() @@ -1138,7 +1138,7 @@ func PlotFormatTime(t PlotTime, buffer string, size int32, fmt PlotTimeFmt, use_ } func PlotFormatterDefault(value float64, buff string, size int32, data unsafe.Pointer) int { - buffArg, buffFin := wrapString(buff) + buffArg, buffFin := WrapString(buff) defer func() { buffFin() @@ -1147,7 +1147,7 @@ func PlotFormatterDefault(value float64, buff string, size int32, data unsafe.Po } func PlotFormatterLogit(value float64, buff string, size int32, noname1 unsafe.Pointer) int { - buffArg, buffFin := wrapString(buff) + buffArg, buffFin := WrapString(buff) defer func() { buffFin() @@ -1156,7 +1156,7 @@ func PlotFormatterLogit(value float64, buff string, size int32, noname1 unsafe.P } func PlotFormatterTime(noname1 float64, buff string, size int32, data unsafe.Pointer) int { - buffArg, buffFin := wrapString(buff) + buffArg, buffFin := WrapString(buff) defer func() { buffFin() @@ -1197,7 +1197,7 @@ func PlotGetColormapCount() int { } func PlotGetColormapIndex(name string) PlotColormap { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -1236,7 +1236,7 @@ func PlotGetInputMap() PlotInputMap { } func PlotGetItem(label_id string) PlotItem { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -1277,7 +1277,7 @@ func PlotGetMarkerName(idx PlotMarker) string { } func PlotGetPlot(title string) PlotPlot { - titleArg, titleFin := wrapString(title) + titleArg, titleFin := WrapString(title) defer func() { titleFin() @@ -1758,8 +1758,8 @@ func PlotImMinArraydoublePtr(values *[]float64, count int32) float64 { } func PlotImMinMaxArrayFloatPtr(values []float32, count int32, min_out *float32, max_out *float32) { - min_outArg, min_outFin := wrapNumberPtr[C.float, float32](min_out) - max_outArg, max_outFin := wrapNumberPtr[C.float, float32](max_out) + min_outArg, min_outFin := WrapNumberPtr[C.float, float32](min_out) + max_outArg, max_outFin := WrapNumberPtr[C.float, float32](max_out) C.ImPlot_ImMinMaxArray_FloatPtr((*C.float)(&(values[0])), C.int(count), min_outArg, max_outArg) min_outFin() @@ -1772,8 +1772,8 @@ func PlotImMinMaxArraydoublePtr(values *[]float64, count int32, min_out *float64 valuesArg[i] = C.double(valuesV) } - min_outArg, min_outFin := wrapNumberPtr[C.double, float64](min_out) - max_outArg, max_outFin := wrapNumberPtr[C.double, float64](max_out) + min_outArg, min_outFin := WrapNumberPtr[C.double, float64](min_out) + max_outArg, max_outFin := WrapNumberPtr[C.double, float64](max_out) C.ImPlot_ImMinMaxArray_doublePtr((*C.double)(&valuesArg[0]), C.int(count), min_outArg, max_outArg) for i, valuesV := range valuesArg { @@ -2164,7 +2164,7 @@ func PlotIsLeapYear(year int32) bool { } func PlotIsLegendEntryHovered(label_id string) bool { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -2264,7 +2264,7 @@ func PlotPixelsToPlotVec2V(pix Vec2, x_axis PlotAxisEnum, y_axis PlotAxisEnum) P // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsFloatPtrV(label_ids []string, values []float32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.ImPlot_PlotBarGroups_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2275,7 +2275,7 @@ func PlotPlotBarGroupsFloatPtrV(label_ids []string, values []float32, item_count // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS16PtrV(label_ids []string, values *[]int, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -2295,7 +2295,7 @@ func PlotPlotBarGroupsS16PtrV(label_ids []string, values *[]int, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS32PtrV(label_ids []string, values *[]int32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -2315,7 +2315,7 @@ func PlotPlotBarGroupsS32PtrV(label_ids []string, values *[]int32, item_count in // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS64PtrV(label_ids []string, values []int64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.ImPlot_PlotBarGroups_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2326,7 +2326,7 @@ func PlotPlotBarGroupsS64PtrV(label_ids []string, values []int64, item_count int // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS8PtrV(label_ids []string, values *[]int8, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -2346,7 +2346,7 @@ func PlotPlotBarGroupsS8PtrV(label_ids []string, values *[]int8, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU16PtrV(label_ids []string, values *[]uint16, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -2366,7 +2366,7 @@ func PlotPlotBarGroupsU16PtrV(label_ids []string, values *[]uint16, item_count i // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU32PtrV(label_ids []string, values *[]uint32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -2386,7 +2386,7 @@ func PlotPlotBarGroupsU32PtrV(label_ids []string, values *[]uint32, item_count i // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU64PtrV(label_ids []string, values []uint64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.ImPlot_PlotBarGroups_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2397,7 +2397,7 @@ func PlotPlotBarGroupsU64PtrV(label_ids []string, values []uint64, item_count in // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU8PtrV(label_ids []string, values *[]byte, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -2417,7 +2417,7 @@ func PlotPlotBarGroupsU8PtrV(label_ids []string, values *[]byte, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsdoublePtrV(label_ids []string, values *[]float64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -2437,7 +2437,7 @@ func PlotPlotBarGroupsdoublePtrV(label_ids []string, values *[]float64, item_cou // offset: 0 // stride: sizeof(float) func PlotPlotBarsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2450,7 +2450,7 @@ func PlotPlotBarsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // shift: 0 // stride: sizeof(float) func PlotPlotBarsFloatPtrIntV(label_id string, values []float32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2463,7 +2463,7 @@ func PlotPlotBarsFloatPtrIntV(label_id string, values []float32, count int32, ba // shift: 0 // stride: sizeof(ImS16) func PlotPlotBarsS16PtrIntV(label_id string, values *[]int, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -2483,7 +2483,7 @@ func PlotPlotBarsS16PtrIntV(label_id string, values *[]int, count int32, bar_siz // offset: 0 // stride: sizeof(ImS16) func PlotPlotBarsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -2514,7 +2514,7 @@ func PlotPlotBarsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int3 // shift: 0 // stride: sizeof(ImS32) func PlotPlotBarsS32PtrIntV(label_id string, values *[]int32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -2534,7 +2534,7 @@ func PlotPlotBarsS32PtrIntV(label_id string, values *[]int32, count int32, bar_s // offset: 0 // stride: sizeof(ImS32) func PlotPlotBarsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -2565,7 +2565,7 @@ func PlotPlotBarsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // shift: 0 // stride: sizeof(ImS64) func PlotPlotBarsS64PtrIntV(label_id string, values []int64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2576,7 +2576,7 @@ func PlotPlotBarsS64PtrIntV(label_id string, values []int64, count int32, bar_si // offset: 0 // stride: sizeof(ImS64) func PlotPlotBarsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2589,7 +2589,7 @@ func PlotPlotBarsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count in // shift: 0 // stride: sizeof(ImS8) func PlotPlotBarsS8PtrIntV(label_id string, values *[]int8, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -2609,7 +2609,7 @@ func PlotPlotBarsS8PtrIntV(label_id string, values *[]int8, count int32, bar_siz // offset: 0 // stride: sizeof(ImS8) func PlotPlotBarsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -2640,7 +2640,7 @@ func PlotPlotBarsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int3 // shift: 0 // stride: sizeof(ImU16) func PlotPlotBarsU16PtrIntV(label_id string, values *[]uint16, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -2660,7 +2660,7 @@ func PlotPlotBarsU16PtrIntV(label_id string, values *[]uint16, count int32, bar_ // offset: 0 // stride: sizeof(ImU16) func PlotPlotBarsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -2691,7 +2691,7 @@ func PlotPlotBarsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, coun // shift: 0 // stride: sizeof(ImU32) func PlotPlotBarsU32PtrIntV(label_id string, values *[]uint32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -2711,7 +2711,7 @@ func PlotPlotBarsU32PtrIntV(label_id string, values *[]uint32, count int32, bar_ // offset: 0 // stride: sizeof(ImU32) func PlotPlotBarsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -2742,7 +2742,7 @@ func PlotPlotBarsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, coun // shift: 0 // stride: sizeof(ImU64) func PlotPlotBarsU64PtrIntV(label_id string, values []uint64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2753,7 +2753,7 @@ func PlotPlotBarsU64PtrIntV(label_id string, values []uint64, count int32, bar_s // offset: 0 // stride: sizeof(ImU64) func PlotPlotBarsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2766,7 +2766,7 @@ func PlotPlotBarsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // shift: 0 // stride: sizeof(ImU8) func PlotPlotBarsU8PtrIntV(label_id string, values *[]byte, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -2786,7 +2786,7 @@ func PlotPlotBarsU8PtrIntV(label_id string, values *[]byte, count int32, bar_siz // offset: 0 // stride: sizeof(ImU8) func PlotPlotBarsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -2817,7 +2817,7 @@ func PlotPlotBarsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int3 // shift: 0 // stride: sizeof(double) func PlotPlotBarsdoublePtrIntV(label_id string, values *[]float64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -2837,7 +2837,7 @@ func PlotPlotBarsdoublePtrIntV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotBarsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -2866,7 +2866,7 @@ func PlotPlotBarsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float // offset: 0 // stride: sizeof(float) func PlotPlotDigitalFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotDigital_FloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2877,7 +2877,7 @@ func PlotPlotDigitalFloatPtrV(label_id string, xs []float32, ys []float32, count // offset: 0 // stride: sizeof(ImS16) func PlotPlotDigitalS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -2906,7 +2906,7 @@ func PlotPlotDigitalS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, // offset: 0 // stride: sizeof(ImS32) func PlotPlotDigitalS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -2935,7 +2935,7 @@ func PlotPlotDigitalS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int // offset: 0 // stride: sizeof(ImS64) func PlotPlotDigitalS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotDigital_S64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2946,7 +2946,7 @@ func PlotPlotDigitalS64PtrV(label_id string, xs []int64, ys []int64, count int32 // offset: 0 // stride: sizeof(ImS8) func PlotPlotDigitalS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -2975,7 +2975,7 @@ func PlotPlotDigitalS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, // offset: 0 // stride: sizeof(ImU16) func PlotPlotDigitalU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3004,7 +3004,7 @@ func PlotPlotDigitalU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count i // offset: 0 // stride: sizeof(ImU32) func PlotPlotDigitalU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3033,7 +3033,7 @@ func PlotPlotDigitalU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count i // offset: 0 // stride: sizeof(ImU64) func PlotPlotDigitalU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotDigital_U64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3044,7 +3044,7 @@ func PlotPlotDigitalU64PtrV(label_id string, xs []uint64, ys []uint64, count int // offset: 0 // stride: sizeof(ImU8) func PlotPlotDigitalU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3073,7 +3073,7 @@ func PlotPlotDigitalU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotDigitaldoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3100,7 +3100,7 @@ func PlotPlotDigitaldoublePtrV(label_id string, xs *[]float64, ys *[]float64, co // PlotPlotDummyV parameter default value hint: // flags: 0 func PlotPlotDummyV(label_id string, flags PlotDummyFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotDummy(label_idArg, C.ImPlotDummyFlags(flags)) label_idFin() @@ -3111,7 +3111,7 @@ func PlotPlotDummyV(label_id string, flags PlotDummyFlags) { // offset: 0 // stride: sizeof(float) func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, neg []float32, pos []float32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(neg[0])), (*C.float)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3122,7 +3122,7 @@ func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtrV(label_id string, xs []fl // offset: 0 // stride: sizeof(float) func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []float32, err []float32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3133,7 +3133,7 @@ func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrIntV(label_id string, xs []float32 // offset: 0 // stride: sizeof(ImS16) func PlotPlotErrorBarsS16PtrS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, err *[]int, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -3171,7 +3171,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]i // offset: 0 // stride: sizeof(ImS16) func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, neg *[]int, pos *[]int, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -3218,7 +3218,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys * // offset: 0 // stride: sizeof(ImS32) func PlotPlotErrorBarsS32PtrS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, err *[]int32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -3256,7 +3256,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[ // offset: 0 // stride: sizeof(ImS32) func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, neg *[]int32, pos *[]int32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -3303,7 +3303,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys // offset: 0 // stride: sizeof(ImS64) func PlotPlotErrorBarsS64PtrS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, err []int64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3314,7 +3314,7 @@ func PlotPlotErrorBarsS64PtrS64PtrS64PtrIntV(label_id string, xs []int64, ys []i // offset: 0 // stride: sizeof(ImS64) func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys []int64, neg []int64, pos []int64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(neg[0])), (*C.longlong)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3325,7 +3325,7 @@ func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys // offset: 0 // stride: sizeof(ImS8) func PlotPlotErrorBarsS8PtrS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, err *[]int8, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -3363,7 +3363,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int // offset: 0 // stride: sizeof(ImS8) func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, neg *[]int8, pos *[]int8, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -3410,7 +3410,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]i // offset: 0 // stride: sizeof(ImU16) func PlotPlotErrorBarsU16PtrU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, err *[]uint16, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3448,7 +3448,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys * // offset: 0 // stride: sizeof(ImU16) func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, neg *[]uint16, pos *[]uint16, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3495,7 +3495,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, y // offset: 0 // stride: sizeof(ImU32) func PlotPlotErrorBarsU32PtrU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, err *[]uint32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3533,7 +3533,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys * // offset: 0 // stride: sizeof(ImU32) func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, neg *[]uint32, pos *[]uint32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3580,7 +3580,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, y // offset: 0 // stride: sizeof(ImU64) func PlotPlotErrorBarsU64PtrU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, err []uint64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3591,7 +3591,7 @@ func PlotPlotErrorBarsU64PtrU64PtrU64PtrIntV(label_id string, xs []uint64, ys [] // offset: 0 // stride: sizeof(ImU64) func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, neg []uint64, pos []uint64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(neg[0])), (*C.ulonglong)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3602,7 +3602,7 @@ func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys // offset: 0 // stride: sizeof(ImU8) func PlotPlotErrorBarsU8PtrU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, err *[]byte, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3640,7 +3640,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byt // offset: 0 // stride: sizeof(ImU8) func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, neg *[]byte, pos *[]byte, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3687,7 +3687,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]b // offset: 0 // stride: sizeof(double) func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[]float64, err *[]float64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3725,7 +3725,7 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrIntV(label_id string, xs *[]flo // offset: 0 // stride: sizeof(double) func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, neg *[]float64, pos *[]float64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3775,8 +3775,8 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtrV(label_id string, xs // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapFloatPtrV(label_id string, values []float32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_idArg, label_idFin := WrapString(label_id) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3791,13 +3791,13 @@ func PlotPlotHeatmapFloatPtrV(label_id string, values []float32, rows int32, col // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS16PtrV(label_id string, values *[]int, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_S16Ptr(label_idArg, (*C.ImS16)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3817,13 +3817,13 @@ func PlotPlotHeatmapS16PtrV(label_id string, values *[]int, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS32PtrV(label_id string, values *[]int32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_S32Ptr(label_idArg, (*C.ImS32)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3843,8 +3843,8 @@ func PlotPlotHeatmapS32PtrV(label_id string, values *[]int32, rows int32, cols i // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS64PtrV(label_id string, values []int64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_idArg, label_idFin := WrapString(label_id) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3859,13 +3859,13 @@ func PlotPlotHeatmapS64PtrV(label_id string, values []int64, rows int32, cols in // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS8PtrV(label_id string, values *[]int8, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_S8Ptr(label_idArg, (*C.ImS8)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3885,13 +3885,13 @@ func PlotPlotHeatmapS8PtrV(label_id string, values *[]int8, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU16PtrV(label_id string, values *[]uint16, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_U16Ptr(label_idArg, (*C.ImU16)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3911,13 +3911,13 @@ func PlotPlotHeatmapU16PtrV(label_id string, values *[]uint16, rows int32, cols // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU32PtrV(label_id string, values *[]uint32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_U32Ptr(label_idArg, (*C.ImU32)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3937,8 +3937,8 @@ func PlotPlotHeatmapU32PtrV(label_id string, values *[]uint32, rows int32, cols // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU64PtrV(label_id string, values []uint64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_idArg, label_idFin := WrapString(label_id) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3953,13 +3953,13 @@ func PlotPlotHeatmapU64PtrV(label_id string, values []uint64, rows int32, cols i // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU8PtrV(label_id string, values *[]byte, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_U8Ptr(label_idArg, (*C.ImU8)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3979,13 +3979,13 @@ func PlotPlotHeatmapU8PtrV(label_id string, values *[]byte, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapdoublePtrV(label_id string, values *[]float64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_doublePtr(label_idArg, (*C.double)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -4003,7 +4003,7 @@ func PlotPlotHeatmapdoublePtrV(label_id string, values *[]float64, rows int32, c // uv0: ImVec2(0,0) // uv1: ImVec2(1,1) func PlotPlotImageV(label_id string, user_texture_id TextureID, bounds_min PlotPoint, bounds_max PlotPoint, uv0 Vec2, uv1 Vec2, tint_col Vec4, flags PlotImageFlags) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotImage(label_idArg, C.ImTextureID(user_texture_id), bounds_min.toC(), bounds_max.toC(), uv0.toC(), uv1.toC(), tint_col.toC(), C.ImPlotImageFlags(flags)) label_idFin() @@ -4014,7 +4014,7 @@ func PlotPlotImageV(label_id string, user_texture_id TextureID, bounds_min PlotP // offset: 0 // stride: sizeof(float) func PlotPlotInfLinesFloatPtrV(label_id string, values []float32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotInfLines_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4025,7 +4025,7 @@ func PlotPlotInfLinesFloatPtrV(label_id string, values []float32, count int32, f // offset: 0 // stride: sizeof(ImS16) func PlotPlotInfLinesS16PtrV(label_id string, values *[]int, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4045,7 +4045,7 @@ func PlotPlotInfLinesS16PtrV(label_id string, values *[]int, count int32, flags // offset: 0 // stride: sizeof(ImS32) func PlotPlotInfLinesS32PtrV(label_id string, values *[]int32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4065,7 +4065,7 @@ func PlotPlotInfLinesS32PtrV(label_id string, values *[]int32, count int32, flag // offset: 0 // stride: sizeof(ImS64) func PlotPlotInfLinesS64PtrV(label_id string, values []int64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotInfLines_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4076,7 +4076,7 @@ func PlotPlotInfLinesS64PtrV(label_id string, values []int64, count int32, flags // offset: 0 // stride: sizeof(ImS8) func PlotPlotInfLinesS8PtrV(label_id string, values *[]int8, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4096,7 +4096,7 @@ func PlotPlotInfLinesS8PtrV(label_id string, values *[]int8, count int32, flags // offset: 0 // stride: sizeof(ImU16) func PlotPlotInfLinesU16PtrV(label_id string, values *[]uint16, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -4116,7 +4116,7 @@ func PlotPlotInfLinesU16PtrV(label_id string, values *[]uint16, count int32, fla // offset: 0 // stride: sizeof(ImU32) func PlotPlotInfLinesU32PtrV(label_id string, values *[]uint32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -4136,7 +4136,7 @@ func PlotPlotInfLinesU32PtrV(label_id string, values *[]uint32, count int32, fla // offset: 0 // stride: sizeof(ImU64) func PlotPlotInfLinesU64PtrV(label_id string, values []uint64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotInfLines_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4147,7 +4147,7 @@ func PlotPlotInfLinesU64PtrV(label_id string, values []uint64, count int32, flag // offset: 0 // stride: sizeof(ImU8) func PlotPlotInfLinesU8PtrV(label_id string, values *[]byte, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -4167,7 +4167,7 @@ func PlotPlotInfLinesU8PtrV(label_id string, values *[]byte, count int32, flags // offset: 0 // stride: sizeof(double) func PlotPlotInfLinesdoublePtrV(label_id string, values *[]float64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -4187,7 +4187,7 @@ func PlotPlotInfLinesdoublePtrV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(float) func PlotPlotLineFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4200,7 +4200,7 @@ func PlotPlotLineFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // xscale: 1 // xstart: 0 func PlotPlotLineFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4213,7 +4213,7 @@ func PlotPlotLineFloatPtrIntV(label_id string, values []float32, count int32, xs // xscale: 1 // xstart: 0 func PlotPlotLineS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4233,7 +4233,7 @@ func PlotPlotLineS16PtrIntV(label_id string, values *[]int, count int32, xscale // offset: 0 // stride: sizeof(ImS16) func PlotPlotLineS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -4264,7 +4264,7 @@ func PlotPlotLineS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int3 // xscale: 1 // xstart: 0 func PlotPlotLineS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4284,7 +4284,7 @@ func PlotPlotLineS32PtrIntV(label_id string, values *[]int32, count int32, xscal // offset: 0 // stride: sizeof(ImS32) func PlotPlotLineS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -4315,7 +4315,7 @@ func PlotPlotLineS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // xscale: 1 // xstart: 0 func PlotPlotLineS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4326,7 +4326,7 @@ func PlotPlotLineS64PtrIntV(label_id string, values []int64, count int32, xscale // offset: 0 // stride: sizeof(ImS64) func PlotPlotLineS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4339,7 +4339,7 @@ func PlotPlotLineS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count in // xscale: 1 // xstart: 0 func PlotPlotLineS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4359,7 +4359,7 @@ func PlotPlotLineS8PtrIntV(label_id string, values *[]int8, count int32, xscale // offset: 0 // stride: sizeof(ImS8) func PlotPlotLineS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -4390,7 +4390,7 @@ func PlotPlotLineS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int3 // xscale: 1 // xstart: 0 func PlotPlotLineU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -4410,7 +4410,7 @@ func PlotPlotLineU16PtrIntV(label_id string, values *[]uint16, count int32, xsca // offset: 0 // stride: sizeof(ImU16) func PlotPlotLineU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -4441,7 +4441,7 @@ func PlotPlotLineU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, coun // xscale: 1 // xstart: 0 func PlotPlotLineU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -4461,7 +4461,7 @@ func PlotPlotLineU32PtrIntV(label_id string, values *[]uint32, count int32, xsca // offset: 0 // stride: sizeof(ImU32) func PlotPlotLineU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -4492,7 +4492,7 @@ func PlotPlotLineU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, coun // xscale: 1 // xstart: 0 func PlotPlotLineU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4503,7 +4503,7 @@ func PlotPlotLineU64PtrIntV(label_id string, values []uint64, count int32, xscal // offset: 0 // stride: sizeof(ImU64) func PlotPlotLineU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4516,7 +4516,7 @@ func PlotPlotLineU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // xscale: 1 // xstart: 0 func PlotPlotLineU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -4536,7 +4536,7 @@ func PlotPlotLineU8PtrIntV(label_id string, values *[]byte, count int32, xscale // offset: 0 // stride: sizeof(ImU8) func PlotPlotLineU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -4567,7 +4567,7 @@ func PlotPlotLineU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int3 // xscale: 1 // xstart: 0 func PlotPlotLinedoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -4587,7 +4587,7 @@ func PlotPlotLinedoublePtrIntV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotLinedoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -4616,8 +4616,8 @@ func PlotPlotLinedoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartFloatPtrV(label_ids []string, values []float32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_idsArg, label_idsFin := WrapStringList(label_ids) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4629,13 +4629,13 @@ func PlotPlotPieChartFloatPtrV(label_ids []string, values []float32, count int32 // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS16PtrV(label_ids []string, values *[]int, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_S16Ptr(label_idsArg, (*C.ImS16)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4652,13 +4652,13 @@ func PlotPlotPieChartS16PtrV(label_ids []string, values *[]int, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS32PtrV(label_ids []string, values *[]int32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_S32Ptr(label_idsArg, (*C.ImS32)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4675,8 +4675,8 @@ func PlotPlotPieChartS32PtrV(label_ids []string, values *[]int32, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS64PtrV(label_ids []string, values []int64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_idsArg, label_idsFin := WrapStringList(label_ids) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4688,13 +4688,13 @@ func PlotPlotPieChartS64PtrV(label_ids []string, values []int64, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS8PtrV(label_ids []string, values *[]int8, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_S8Ptr(label_idsArg, (*C.ImS8)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4711,13 +4711,13 @@ func PlotPlotPieChartS8PtrV(label_ids []string, values *[]int8, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU16PtrV(label_ids []string, values *[]uint16, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_U16Ptr(label_idsArg, (*C.ImU16)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4734,13 +4734,13 @@ func PlotPlotPieChartU16PtrV(label_ids []string, values *[]uint16, count int32, // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU32PtrV(label_ids []string, values *[]uint32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_U32Ptr(label_idsArg, (*C.ImU32)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4757,8 +4757,8 @@ func PlotPlotPieChartU32PtrV(label_ids []string, values *[]uint32, count int32, // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU64PtrV(label_ids []string, values []uint64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_idsArg, label_idsFin := WrapStringList(label_ids) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4770,13 +4770,13 @@ func PlotPlotPieChartU64PtrV(label_ids []string, values []uint64, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU8PtrV(label_ids []string, values *[]byte, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_U8Ptr(label_idsArg, (*C.ImU8)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4793,13 +4793,13 @@ func PlotPlotPieChartU8PtrV(label_ids []string, values *[]byte, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartdoublePtrV(label_ids []string, values *[]float64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) } - label_fmtArg, label_fmtFin := wrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_doublePtr(label_idsArg, (*C.double)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4816,7 +4816,7 @@ func PlotPlotPieChartdoublePtrV(label_ids []string, values *[]float64, count int // offset: 0 // stride: sizeof(float) func PlotPlotScatterFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4829,7 +4829,7 @@ func PlotPlotScatterFloatPtrFloatPtrV(label_id string, xs []float32, ys []float3 // xscale: 1 // xstart: 0 func PlotPlotScatterFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4842,7 +4842,7 @@ func PlotPlotScatterFloatPtrIntV(label_id string, values []float32, count int32, // xscale: 1 // xstart: 0 func PlotPlotScatterS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4862,7 +4862,7 @@ func PlotPlotScatterS16PtrIntV(label_id string, values *[]int, count int32, xsca // offset: 0 // stride: sizeof(ImS16) func PlotPlotScatterS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -4893,7 +4893,7 @@ func PlotPlotScatterS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count i // xscale: 1 // xstart: 0 func PlotPlotScatterS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4913,7 +4913,7 @@ func PlotPlotScatterS32PtrIntV(label_id string, values *[]int32, count int32, xs // offset: 0 // stride: sizeof(ImS32) func PlotPlotScatterS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -4944,7 +4944,7 @@ func PlotPlotScatterS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, cou // xscale: 1 // xstart: 0 func PlotPlotScatterS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4955,7 +4955,7 @@ func PlotPlotScatterS64PtrIntV(label_id string, values []int64, count int32, xsc // offset: 0 // stride: sizeof(ImS64) func PlotPlotScatterS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4968,7 +4968,7 @@ func PlotPlotScatterS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count // xscale: 1 // xstart: 0 func PlotPlotScatterS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4988,7 +4988,7 @@ func PlotPlotScatterS8PtrIntV(label_id string, values *[]int8, count int32, xsca // offset: 0 // stride: sizeof(ImS8) func PlotPlotScatterS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5019,7 +5019,7 @@ func PlotPlotScatterS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count i // xscale: 1 // xstart: 0 func PlotPlotScatterU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -5039,7 +5039,7 @@ func PlotPlotScatterU16PtrIntV(label_id string, values *[]uint16, count int32, x // offset: 0 // stride: sizeof(ImU16) func PlotPlotScatterU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5070,7 +5070,7 @@ func PlotPlotScatterU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, c // xscale: 1 // xstart: 0 func PlotPlotScatterU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -5090,7 +5090,7 @@ func PlotPlotScatterU32PtrIntV(label_id string, values *[]uint32, count int32, x // offset: 0 // stride: sizeof(ImU32) func PlotPlotScatterU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5121,7 +5121,7 @@ func PlotPlotScatterU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, c // xscale: 1 // xstart: 0 func PlotPlotScatterU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5132,7 +5132,7 @@ func PlotPlotScatterU64PtrIntV(label_id string, values []uint64, count int32, xs // offset: 0 // stride: sizeof(ImU64) func PlotPlotScatterU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5145,7 +5145,7 @@ func PlotPlotScatterU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, cou // xscale: 1 // xstart: 0 func PlotPlotScatterU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -5165,7 +5165,7 @@ func PlotPlotScatterU8PtrIntV(label_id string, values *[]byte, count int32, xsca // offset: 0 // stride: sizeof(ImU8) func PlotPlotScatterU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5196,7 +5196,7 @@ func PlotPlotScatterU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count i // xscale: 1 // xstart: 0 func PlotPlotScatterdoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -5216,7 +5216,7 @@ func PlotPlotScatterdoublePtrIntV(label_id string, values *[]float64, count int3 // offset: 0 // stride: sizeof(double) func PlotPlotScatterdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5245,7 +5245,7 @@ func PlotPlotScatterdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]fl // offset: 0 // stride: sizeof(float) func PlotPlotShadedFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys1 []float32, ys2 []float32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys1[0])), (*C.float)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5257,7 +5257,7 @@ func PlotPlotShadedFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys1 // stride: sizeof(float) // yref: 0 func PlotPlotShadedFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []float32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5271,7 +5271,7 @@ func PlotPlotShadedFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []floa // xstart: 0 // yref: 0 func PlotPlotShadedFloatPtrIntV(label_id string, values []float32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5285,7 +5285,7 @@ func PlotPlotShadedFloatPtrIntV(label_id string, values []float32, count int32, // xstart: 0 // yref: 0 func PlotPlotShadedS16PtrIntV(label_id string, values *[]int, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -5306,7 +5306,7 @@ func PlotPlotShadedS16PtrIntV(label_id string, values *[]int, count int32, yref // stride: sizeof(ImS16) // yref: 0 func PlotPlotShadedS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -5335,7 +5335,7 @@ func PlotPlotShadedS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, count // offset: 0 // stride: sizeof(ImS16) func PlotPlotShadedS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys1 *[]int, ys2 *[]int, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -5376,7 +5376,7 @@ func PlotPlotShadedS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys1 *[]int, y // xstart: 0 // yref: 0 func PlotPlotShadedS32PtrIntV(label_id string, values *[]int32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -5397,7 +5397,7 @@ func PlotPlotShadedS32PtrIntV(label_id string, values *[]int32, count int32, yre // stride: sizeof(ImS32) // yref: 0 func PlotPlotShadedS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -5426,7 +5426,7 @@ func PlotPlotShadedS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, c // offset: 0 // stride: sizeof(ImS32) func PlotPlotShadedS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys1 *[]int32, ys2 *[]int32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -5467,7 +5467,7 @@ func PlotPlotShadedS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys1 *[]int3 // xstart: 0 // yref: 0 func PlotPlotShadedS64PtrIntV(label_id string, values []int64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5479,7 +5479,7 @@ func PlotPlotShadedS64PtrIntV(label_id string, values []int64, count int32, yref // stride: sizeof(ImS64) // yref: 0 func PlotPlotShadedS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_S64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5490,7 +5490,7 @@ func PlotPlotShadedS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, cou // offset: 0 // stride: sizeof(ImS64) func PlotPlotShadedS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys1 []int64, ys2 []int64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_S64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys1[0])), (*C.longlong)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5504,7 +5504,7 @@ func PlotPlotShadedS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys1 []int64, // xstart: 0 // yref: 0 func PlotPlotShadedS8PtrIntV(label_id string, values *[]int8, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -5525,7 +5525,7 @@ func PlotPlotShadedS8PtrIntV(label_id string, values *[]int8, count int32, yref // stride: sizeof(ImS8) // yref: 0 func PlotPlotShadedS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5554,7 +5554,7 @@ func PlotPlotShadedS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, count // offset: 0 // stride: sizeof(ImS8) func PlotPlotShadedS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys1 *[]int8, ys2 *[]int8, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5595,7 +5595,7 @@ func PlotPlotShadedS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys1 *[]int8, ys // xstart: 0 // yref: 0 func PlotPlotShadedU16PtrIntV(label_id string, values *[]uint16, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -5616,7 +5616,7 @@ func PlotPlotShadedU16PtrIntV(label_id string, values *[]uint16, count int32, yr // stride: sizeof(ImU16) // yref: 0 func PlotPlotShadedU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5645,7 +5645,7 @@ func PlotPlotShadedU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, // offset: 0 // stride: sizeof(ImU16) func PlotPlotShadedU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys1 *[]uint16, ys2 *[]uint16, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5686,7 +5686,7 @@ func PlotPlotShadedU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys1 *[]uin // xstart: 0 // yref: 0 func PlotPlotShadedU32PtrIntV(label_id string, values *[]uint32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -5707,7 +5707,7 @@ func PlotPlotShadedU32PtrIntV(label_id string, values *[]uint32, count int32, yr // stride: sizeof(ImU32) // yref: 0 func PlotPlotShadedU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5736,7 +5736,7 @@ func PlotPlotShadedU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, // offset: 0 // stride: sizeof(ImU32) func PlotPlotShadedU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys1 *[]uint32, ys2 *[]uint32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5777,7 +5777,7 @@ func PlotPlotShadedU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys1 *[]uin // xstart: 0 // yref: 0 func PlotPlotShadedU64PtrIntV(label_id string, values []uint64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5789,7 +5789,7 @@ func PlotPlotShadedU64PtrIntV(label_id string, values []uint64, count int32, yre // stride: sizeof(ImU64) // yref: 0 func PlotPlotShadedU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_U64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5800,7 +5800,7 @@ func PlotPlotShadedU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, c // offset: 0 // stride: sizeof(ImU64) func PlotPlotShadedU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys1 []uint64, ys2 []uint64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_U64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys1[0])), (*C.ulonglong)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5814,7 +5814,7 @@ func PlotPlotShadedU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys1 []uint6 // xstart: 0 // yref: 0 func PlotPlotShadedU8PtrIntV(label_id string, values *[]byte, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -5835,7 +5835,7 @@ func PlotPlotShadedU8PtrIntV(label_id string, values *[]byte, count int32, yref // stride: sizeof(ImU8) // yref: 0 func PlotPlotShadedU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5864,7 +5864,7 @@ func PlotPlotShadedU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, count // offset: 0 // stride: sizeof(ImU8) func PlotPlotShadedU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys1 *[]byte, ys2 *[]byte, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5905,7 +5905,7 @@ func PlotPlotShadedU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys1 *[]byte, ys // xstart: 0 // yref: 0 func PlotPlotShadeddoublePtrIntV(label_id string, values *[]float64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -5926,7 +5926,7 @@ func PlotPlotShadeddoublePtrIntV(label_id string, values *[]float64, count int32 // stride: sizeof(double) // yref: 0 func PlotPlotShadeddoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[]float64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5955,7 +5955,7 @@ func PlotPlotShadeddoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[] // offset: 0 // stride: sizeof(double) func PlotPlotShadeddoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, ys1 *[]float64, ys2 *[]float64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5993,7 +5993,7 @@ func PlotPlotShadeddoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, // offset: 0 // stride: sizeof(float) func PlotPlotStairsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6006,7 +6006,7 @@ func PlotPlotStairsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32 // xscale: 1 // xstart: 0 func PlotPlotStairsFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6019,7 +6019,7 @@ func PlotPlotStairsFloatPtrIntV(label_id string, values []float32, count int32, // xscale: 1 // xstart: 0 func PlotPlotStairsS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -6039,7 +6039,7 @@ func PlotPlotStairsS16PtrIntV(label_id string, values *[]int, count int32, xscal // offset: 0 // stride: sizeof(ImS16) func PlotPlotStairsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -6070,7 +6070,7 @@ func PlotPlotStairsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count in // xscale: 1 // xstart: 0 func PlotPlotStairsS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -6090,7 +6090,7 @@ func PlotPlotStairsS32PtrIntV(label_id string, values *[]int32, count int32, xsc // offset: 0 // stride: sizeof(ImS32) func PlotPlotStairsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -6121,7 +6121,7 @@ func PlotPlotStairsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, coun // xscale: 1 // xstart: 0 func PlotPlotStairsS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6132,7 +6132,7 @@ func PlotPlotStairsS64PtrIntV(label_id string, values []int64, count int32, xsca // offset: 0 // stride: sizeof(ImS64) func PlotPlotStairsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6145,7 +6145,7 @@ func PlotPlotStairsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count // xscale: 1 // xstart: 0 func PlotPlotStairsS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -6165,7 +6165,7 @@ func PlotPlotStairsS8PtrIntV(label_id string, values *[]int8, count int32, xscal // offset: 0 // stride: sizeof(ImS8) func PlotPlotStairsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -6196,7 +6196,7 @@ func PlotPlotStairsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count in // xscale: 1 // xstart: 0 func PlotPlotStairsU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -6216,7 +6216,7 @@ func PlotPlotStairsU16PtrIntV(label_id string, values *[]uint16, count int32, xs // offset: 0 // stride: sizeof(ImU16) func PlotPlotStairsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -6247,7 +6247,7 @@ func PlotPlotStairsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, co // xscale: 1 // xstart: 0 func PlotPlotStairsU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -6267,7 +6267,7 @@ func PlotPlotStairsU32PtrIntV(label_id string, values *[]uint32, count int32, xs // offset: 0 // stride: sizeof(ImU32) func PlotPlotStairsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -6298,7 +6298,7 @@ func PlotPlotStairsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, co // xscale: 1 // xstart: 0 func PlotPlotStairsU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6309,7 +6309,7 @@ func PlotPlotStairsU64PtrIntV(label_id string, values []uint64, count int32, xsc // offset: 0 // stride: sizeof(ImU64) func PlotPlotStairsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6322,7 +6322,7 @@ func PlotPlotStairsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, coun // xscale: 1 // xstart: 0 func PlotPlotStairsU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -6342,7 +6342,7 @@ func PlotPlotStairsU8PtrIntV(label_id string, values *[]byte, count int32, xscal // offset: 0 // stride: sizeof(ImU8) func PlotPlotStairsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -6373,7 +6373,7 @@ func PlotPlotStairsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count in // xscale: 1 // xstart: 0 func PlotPlotStairsdoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -6393,7 +6393,7 @@ func PlotPlotStairsdoublePtrIntV(label_id string, values *[]float64, count int32 // offset: 0 // stride: sizeof(double) func PlotPlotStairsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -6423,7 +6423,7 @@ func PlotPlotStairsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]flo // ref: 0 // stride: sizeof(float) func PlotPlotStemsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6437,7 +6437,7 @@ func PlotPlotStemsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // start: 0 // stride: sizeof(float) func PlotPlotStemsFloatPtrIntV(label_id string, values []float32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6451,7 +6451,7 @@ func PlotPlotStemsFloatPtrIntV(label_id string, values []float32, count int32, r // start: 0 // stride: sizeof(ImS16) func PlotPlotStemsS16PtrIntV(label_id string, values *[]int, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -6472,7 +6472,7 @@ func PlotPlotStemsS16PtrIntV(label_id string, values *[]int, count int32, ref fl // ref: 0 // stride: sizeof(ImS16) func PlotPlotStemsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -6504,7 +6504,7 @@ func PlotPlotStemsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int // start: 0 // stride: sizeof(ImS32) func PlotPlotStemsS32PtrIntV(label_id string, values *[]int32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -6525,7 +6525,7 @@ func PlotPlotStemsS32PtrIntV(label_id string, values *[]int32, count int32, ref // ref: 0 // stride: sizeof(ImS32) func PlotPlotStemsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -6557,7 +6557,7 @@ func PlotPlotStemsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // start: 0 // stride: sizeof(ImS64) func PlotPlotStemsS64PtrIntV(label_id string, values []int64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6569,7 +6569,7 @@ func PlotPlotStemsS64PtrIntV(label_id string, values []int64, count int32, ref f // ref: 0 // stride: sizeof(ImS64) func PlotPlotStemsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6583,7 +6583,7 @@ func PlotPlotStemsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count i // start: 0 // stride: sizeof(ImS8) func PlotPlotStemsS8PtrIntV(label_id string, values *[]int8, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -6604,7 +6604,7 @@ func PlotPlotStemsS8PtrIntV(label_id string, values *[]int8, count int32, ref fl // ref: 0 // stride: sizeof(ImS8) func PlotPlotStemsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -6636,7 +6636,7 @@ func PlotPlotStemsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int // start: 0 // stride: sizeof(ImU16) func PlotPlotStemsU16PtrIntV(label_id string, values *[]uint16, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -6657,7 +6657,7 @@ func PlotPlotStemsU16PtrIntV(label_id string, values *[]uint16, count int32, ref // ref: 0 // stride: sizeof(ImU16) func PlotPlotStemsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -6689,7 +6689,7 @@ func PlotPlotStemsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, cou // start: 0 // stride: sizeof(ImU32) func PlotPlotStemsU32PtrIntV(label_id string, values *[]uint32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -6710,7 +6710,7 @@ func PlotPlotStemsU32PtrIntV(label_id string, values *[]uint32, count int32, ref // ref: 0 // stride: sizeof(ImU32) func PlotPlotStemsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -6742,7 +6742,7 @@ func PlotPlotStemsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, cou // start: 0 // stride: sizeof(ImU64) func PlotPlotStemsU64PtrIntV(label_id string, values []uint64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6754,7 +6754,7 @@ func PlotPlotStemsU64PtrIntV(label_id string, values []uint64, count int32, ref // ref: 0 // stride: sizeof(ImU64) func PlotPlotStemsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6768,7 +6768,7 @@ func PlotPlotStemsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // start: 0 // stride: sizeof(ImU8) func PlotPlotStemsU8PtrIntV(label_id string, values *[]byte, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -6789,7 +6789,7 @@ func PlotPlotStemsU8PtrIntV(label_id string, values *[]byte, count int32, ref fl // ref: 0 // stride: sizeof(ImU8) func PlotPlotStemsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -6821,7 +6821,7 @@ func PlotPlotStemsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int // start: 0 // stride: sizeof(double) func PlotPlotStemsdoublePtrIntV(label_id string, values *[]float64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -6842,7 +6842,7 @@ func PlotPlotStemsdoublePtrIntV(label_id string, values *[]float64, count int32, // ref: 0 // stride: sizeof(double) func PlotPlotStemsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -6870,7 +6870,7 @@ func PlotPlotStemsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]floa // flags: 0 // pix_offset: ImVec2(0,0) func PlotPlotTextV(text string, x float64, y float64, pix_offset Vec2, flags PlotTextFlags) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.ImPlot_PlotText(textArg, C.double(x), C.double(y), pix_offset.toC(), C.ImPlotTextFlags(flags)) textFin() @@ -6935,7 +6935,7 @@ func PlotPushColormapPlotColormap(cmap PlotColormap) { } func PlotPushColormapStr(name string) { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) C.ImPlot_PushColormap_Str(nameArg) nameFin() @@ -6970,8 +6970,8 @@ func PlotPushStyleVarVec2(idx PlotStyleVar, val Vec2) { // PlotRegisterOrGetItemV parameter default value hint: // just_created: NULL func PlotRegisterOrGetItemV(label_id string, flags PlotItemFlags, just_created *bool) PlotItem { - label_idArg, label_idFin := wrapString(label_id) - just_createdArg, just_createdFin := wrapBool(just_created) + label_idArg, label_idFin := WrapString(label_id) + just_createdArg, just_createdFin := WrapBool(just_created) defer func() { label_idFin() @@ -7070,8 +7070,8 @@ func PlotSetNextAxisLimitsV(axis PlotAxisEnum, v_min float64, v_max float64, con } func PlotSetNextAxisLinks(axis PlotAxisEnum, link_min *float64, link_max *float64) { - link_minArg, link_minFin := wrapNumberPtr[C.double, float64](link_min) - link_maxArg, link_maxFin := wrapNumberPtr[C.double, float64](link_max) + link_minArg, link_minFin := WrapNumberPtr[C.double, float64](link_min) + link_maxArg, link_maxFin := WrapNumberPtr[C.double, float64](link_max) C.ImPlot_SetNextAxisLinks(C.ImAxis(axis), link_minArg, link_maxArg) link_minFin() @@ -7118,8 +7118,8 @@ func PlotSetNextMarkerStyleV(marker PlotMarker, size float32, fill Vec4, weight // x_flags: 0 // y_flags: 0 func PlotSetupAxesV(x_label string, y_label string, x_flags PlotAxisFlags, y_flags PlotAxisFlags) { - x_labelArg, x_labelFin := wrapString(x_label) - y_labelArg, y_labelFin := wrapString(y_label) + x_labelArg, x_labelFin := WrapString(x_label) + y_labelArg, y_labelFin := WrapString(y_label) C.ImPlot_SetupAxes(x_labelArg, y_labelArg, C.ImPlotAxisFlags(x_flags), C.ImPlotAxisFlags(y_flags)) x_labelFin() @@ -7136,14 +7136,14 @@ func PlotSetupAxesLimitsV(x_min float64, x_max float64, y_min float64, y_max flo // flags: 0 // label: NULL func PlotSetupAxisV(axis PlotAxisEnum, label string, flags PlotAxisFlags) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.ImPlot_SetupAxis(C.ImAxis(axis), labelArg, C.ImPlotAxisFlags(flags)) labelFin() } func PlotSetupAxisFormatStr(axis PlotAxisEnum, fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.ImPlot_SetupAxisFormat_Str(C.ImAxis(axis), fmtArg) fmtFin() @@ -7160,8 +7160,8 @@ func PlotSetupAxisLimitsConstraints(axis PlotAxisEnum, v_min float64, v_max floa } func PlotSetupAxisLinks(axis PlotAxisEnum, link_min *float64, link_max *float64) { - link_minArg, link_minFin := wrapNumberPtr[C.double, float64](link_min) - link_maxArg, link_maxFin := wrapNumberPtr[C.double, float64](link_max) + link_minArg, link_minFin := WrapNumberPtr[C.double, float64](link_min) + link_maxArg, link_maxFin := WrapNumberPtr[C.double, float64](link_max) C.ImPlot_SetupAxisLinks(C.ImAxis(axis), link_minArg, link_maxArg) link_minFin() @@ -7176,7 +7176,7 @@ func PlotSetupAxisScalePlotScale(axis PlotAxisEnum, scale PlotScale) { // keep_default: false // labels: NULL func PlotSetupAxisTicksdoubleV(axis PlotAxisEnum, v_min float64, v_max float64, n_ticks int32, labels []string, keep_default bool) { - labelsArg, labelsFin := wrapStringList(labels) + labelsArg, labelsFin := WrapStringList(labels) C.ImPlot_SetupAxisTicks_double(C.ImAxis(axis), C.double(v_min), C.double(v_max), C.int(n_ticks), labelsArg, C.bool(keep_default)) labelsFin() @@ -7191,7 +7191,7 @@ func PlotSetupAxisTicksdoublePtrV(axis PlotAxisEnum, values *[]float64, n_ticks valuesArg[i] = C.double(valuesV) } - labelsArg, labelsFin := wrapStringList(labels) + labelsArg, labelsFin := WrapStringList(labels) C.ImPlot_SetupAxisTicks_doublePtr(C.ImAxis(axis), (*C.double)(&valuesArg[0]), C.int(n_ticks), labelsArg, C.bool(keep_default)) for i, valuesV := range valuesArg { @@ -7230,7 +7230,7 @@ func PlotSetupMouseTextV(location PlotLocation, flags PlotMouseTextFlags) { // size: ImVec2(0,0) // vertical: true func PlotShowAltLegendV(title_id string, vertical bool, size Vec2, interactable bool) { - title_idArg, title_idFin := wrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) C.ImPlot_ShowAltLegend(title_idArg, C.bool(vertical), size.toC(), C.bool(interactable)) title_idFin() @@ -7243,7 +7243,7 @@ func PlotShowAxisContextMenuV(axis PlotAxis, equal_axis PlotAxis, time_allowed b } func PlotShowColormapSelector(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7254,14 +7254,14 @@ func PlotShowColormapSelector(label string) bool { // PlotShowDemoWindowV parameter default value hint: // p_open: NULL func PlotShowDemoWindowV(p_open *bool) { - p_openArg, p_openFin := wrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.ImPlot_ShowDemoWindow(p_openArg) p_openFin() } func PlotShowInputMapSelector(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7280,7 +7280,7 @@ func PlotShowLegendEntries(items PlotItemGroup, legend_bb Rect, interactable boo // PlotShowMetricsWindowV parameter default value hint: // p_popen: NULL func PlotShowMetricsWindowV(p_popen *bool) { - p_popenArg, p_popenFin := wrapBool(p_popen) + p_popenArg, p_popenFin := WrapBool(p_popen) C.ImPlot_ShowMetricsWindow(p_popenArg) p_popenFin() @@ -7297,7 +7297,7 @@ func PlotShowStyleEditorV(ref PlotStyle) { } func PlotShowStyleSelector(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7310,7 +7310,7 @@ func PlotShowSubplotsContextMenu(subplot PlotSubplot) { } func PlotShowTimePicker(id string, t *PlotTime) bool { - idArg, idFin := wrapString(id) + idArg, idFin := WrapString(id) tArg, tFin := wrap[C.ImPlotTime, *PlotTime](t) defer func() { @@ -7359,7 +7359,7 @@ func PlotTagXBoolV(x float64, col Vec4, round bool) { } func PlotTagXStr(x float64, col Vec4, fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlot_TagX_Str(C.double(x), col.toC(), fmtArg) fmtFin() @@ -7372,7 +7372,7 @@ func PlotTagYBoolV(y float64, col Vec4, round bool) { } func PlotTagYStr(y float64, col Vec4, fmt string) { - fmtArg, fmtFin := wrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlot_TagY_Str(C.double(y), col.toC(), fmtArg) fmtFin() @@ -7411,7 +7411,7 @@ func (self PlotAxis) SetMin(_min float64) bool { } func PlotAddColormapU32Ptr(name string, cols *[]uint32, size int32) PlotColormap { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) colsArg := make([]C.ImU32, len(*cols)) for i, colsV := range *cols { colsArg[i] = C.ImU32(colsV) @@ -7428,7 +7428,7 @@ func PlotAddColormapU32Ptr(name string, cols *[]uint32, size int32) PlotColormap } func PlotAddColormapVec4Ptr(name string, cols *Vec4, size int32) PlotColormap { - nameArg, nameFin := wrapString(name) + nameArg, nameFin := WrapString(name) colsArg, colsFin := wrap[C.ImVec4, *Vec4](cols) defer func() { @@ -7439,14 +7439,14 @@ func PlotAddColormapVec4Ptr(name string, cols *Vec4, size int32) PlotColormap { } func PlotAddTextCentered(DrawList DrawList, top_center Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImPlot_AddTextCentered(DrawList.handle(), top_center.toC(), C.ImU32(col), text_beginArg) text_beginFin() } func PlotAddTextVertical(DrawList DrawList, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImPlot_AddTextVertical(DrawList.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -7457,7 +7457,7 @@ func PlotAnnotationBool(x float64, y float64, col Vec4, pix_offset Vec2, clamp b } func PlotBeginAlignedPlots(group_id string) bool { - group_idArg, group_idFin := wrapString(group_id) + group_idArg, group_idFin := WrapString(group_id) defer func() { group_idFin() @@ -7470,7 +7470,7 @@ func PlotBeginDragDropSourceAxis(axis PlotAxisEnum) bool { } func PlotBeginDragDropSourceItem(label_id string) bool { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -7483,7 +7483,7 @@ func PlotBeginDragDropSourcePlot() bool { } func PlotBeginItem(label_id string) bool { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -7492,7 +7492,7 @@ func PlotBeginItem(label_id string) bool { } func PlotBeginLegendPopup(label_id string) bool { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -7501,7 +7501,7 @@ func PlotBeginLegendPopup(label_id string) bool { } func PlotBeginPlot(title_id string) bool { - title_idArg, title_idFin := wrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) defer func() { title_idFin() @@ -7510,7 +7510,7 @@ func PlotBeginPlot(title_id string) bool { } func PlotBeginSubplots(title_id string, rows int32, cols int32, size Vec2) bool { - title_idArg, title_idFin := wrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) defer func() { title_idFin() @@ -7523,7 +7523,7 @@ func PlotBustColorCache() { } func PlotColormapButton(label string) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7532,15 +7532,15 @@ func PlotColormapButton(label string) bool { } func PlotColormapScale(label string, scale_min float64, scale_max float64) { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) C.wrap_ImPlot_ColormapScale(labelArg, C.double(scale_min), C.double(scale_max)) labelFin() } func PlotColormapSlider(label string, t *float32) bool { - labelArg, labelFin := wrapString(label) - tArg, tFin := wrapNumberPtr[C.float, float32](t) + labelArg, labelFin := WrapString(label) + tArg, tFin := WrapNumberPtr[C.float, float32](t) defer func() { labelFin() @@ -7554,7 +7554,7 @@ func PlotDestroyContext() { } func PlotDragLineX(id int32, x *float64, col Vec4) bool { - xArg, xFin := wrapNumberPtr[C.double, float64](x) + xArg, xFin := WrapNumberPtr[C.double, float64](x) defer func() { xFin() @@ -7563,7 +7563,7 @@ func PlotDragLineX(id int32, x *float64, col Vec4) bool { } func PlotDragLineY(id int32, y *float64, col Vec4) bool { - yArg, yFin := wrapNumberPtr[C.double, float64](y) + yArg, yFin := WrapNumberPtr[C.double, float64](y) defer func() { yFin() @@ -7572,8 +7572,8 @@ func PlotDragLineY(id int32, y *float64, col Vec4) bool { } func PlotDragPoint(id int32, x *float64, y *float64, col Vec4) bool { - xArg, xFin := wrapNumberPtr[C.double, float64](x) - yArg, yFin := wrapNumberPtr[C.double, float64](y) + xArg, xFin := WrapNumberPtr[C.double, float64](x) + yArg, yFin := WrapNumberPtr[C.double, float64](y) defer func() { xFin() @@ -7583,10 +7583,10 @@ func PlotDragPoint(id int32, x *float64, y *float64, col Vec4) bool { } func PlotDragRect(id int32, x1 *float64, y1 *float64, x2 *float64, y2 *float64, col Vec4) bool { - x1Arg, x1Fin := wrapNumberPtr[C.double, float64](x1) - y1Arg, y1Fin := wrapNumberPtr[C.double, float64](y1) - x2Arg, x2Fin := wrapNumberPtr[C.double, float64](x2) - y2Arg, y2Fin := wrapNumberPtr[C.double, float64](y2) + x1Arg, x1Fin := WrapNumberPtr[C.double, float64](x1) + y1Arg, y1Fin := WrapNumberPtr[C.double, float64](y1) + x2Arg, x2Fin := WrapNumberPtr[C.double, float64](x2) + y2Arg, y2Fin := WrapNumberPtr[C.double, float64](y2) defer func() { x1Fin() @@ -7687,14 +7687,14 @@ func PlotPixelsToPlotVec2(pix Vec2) PlotPoint { } func PlotPlotBarGroupsFloatPtr(label_ids []string, values []float32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsS16Ptr(label_ids []string, values *[]int, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -7710,7 +7710,7 @@ func PlotPlotBarGroupsS16Ptr(label_ids []string, values *[]int, item_count int32 } func PlotPlotBarGroupsS32Ptr(label_ids []string, values *[]int32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -7726,14 +7726,14 @@ func PlotPlotBarGroupsS32Ptr(label_ids []string, values *[]int32, item_count int } func PlotPlotBarGroupsS64Ptr(label_ids []string, values []int64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsS8Ptr(label_ids []string, values *[]int8, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -7749,7 +7749,7 @@ func PlotPlotBarGroupsS8Ptr(label_ids []string, values *[]int8, item_count int32 } func PlotPlotBarGroupsU16Ptr(label_ids []string, values *[]uint16, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -7765,7 +7765,7 @@ func PlotPlotBarGroupsU16Ptr(label_ids []string, values *[]uint16, item_count in } func PlotPlotBarGroupsU32Ptr(label_ids []string, values *[]uint32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -7781,14 +7781,14 @@ func PlotPlotBarGroupsU32Ptr(label_ids []string, values *[]uint32, item_count in } func PlotPlotBarGroupsU64Ptr(label_ids []string, values []uint64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsU8Ptr(label_ids []string, values *[]byte, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -7804,7 +7804,7 @@ func PlotPlotBarGroupsU8Ptr(label_ids []string, values *[]byte, item_count int32 } func PlotPlotBarGroupsdoublePtr(label_ids []string, values *[]float64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -7820,21 +7820,21 @@ func PlotPlotBarGroupsdoublePtr(label_ids []string, values *[]float64, item_coun } func PlotPlotBarsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -7850,7 +7850,7 @@ func PlotPlotBarsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotBarsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -7875,7 +7875,7 @@ func PlotPlotBarsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32 } func PlotPlotBarsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -7891,7 +7891,7 @@ func PlotPlotBarsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotBarsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -7916,21 +7916,21 @@ func PlotPlotBarsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count i } func PlotPlotBarsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -7946,7 +7946,7 @@ func PlotPlotBarsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotBarsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -7971,7 +7971,7 @@ func PlotPlotBarsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32 } func PlotPlotBarsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -7987,7 +7987,7 @@ func PlotPlotBarsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotBarsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8012,7 +8012,7 @@ func PlotPlotBarsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count } func PlotPlotBarsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -8028,7 +8028,7 @@ func PlotPlotBarsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotBarsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8053,21 +8053,21 @@ func PlotPlotBarsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count } func PlotPlotBarsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -8083,7 +8083,7 @@ func PlotPlotBarsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotBarsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8108,7 +8108,7 @@ func PlotPlotBarsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32 } func PlotPlotBarsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -8124,7 +8124,7 @@ func PlotPlotBarsdoublePtrInt(label_id string, values *[]float64, count int32) { } func PlotPlotBarsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32, bar_size float64) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8149,14 +8149,14 @@ func PlotPlotBarsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float6 } func PlotPlotDigitalFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotDigital_FloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8181,7 +8181,7 @@ func PlotPlotDigitalS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { } func PlotPlotDigitalS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8206,14 +8206,14 @@ func PlotPlotDigitalS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int3 } func PlotPlotDigitalS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotDigital_S64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8238,7 +8238,7 @@ func PlotPlotDigitalS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) } func PlotPlotDigitalU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8263,7 +8263,7 @@ func PlotPlotDigitalU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count in } func PlotPlotDigitalU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8288,14 +8288,14 @@ func PlotPlotDigitalU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count in } func PlotPlotDigitalU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotDigital_U64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8320,7 +8320,7 @@ func PlotPlotDigitalU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) } func PlotPlotDigitaldoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8345,28 +8345,28 @@ func PlotPlotDigitaldoublePtr(label_id string, xs *[]float64, ys *[]float64, cou } func PlotPlotDummy(label_id string) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotDummy(label_idArg) label_idFin() } func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, neg []float32, pos []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(neg[0])), (*C.float)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrInt(label_id string, xs []float32, ys []float32, err []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS16PtrS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, err *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8400,7 +8400,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]in } func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, neg *[]int, pos *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8443,7 +8443,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys *[ } func PlotPlotErrorBarsS32PtrS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, err *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8477,7 +8477,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[] } func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, neg *[]int32, pos *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8520,21 +8520,21 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys } func PlotPlotErrorBarsS64PtrS64PtrS64PtrInt(label_id string, xs []int64, ys []int64, err []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64Ptr(label_id string, xs []int64, ys []int64, neg []int64, pos []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(neg[0])), (*C.longlong)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS8PtrS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, err *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8568,7 +8568,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8 } func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, neg *[]int8, pos *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8611,7 +8611,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]in } func PlotPlotErrorBarsU16PtrU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, err *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8645,7 +8645,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[ } func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, neg *[]uint16, pos *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8688,7 +8688,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys } func PlotPlotErrorBarsU32PtrU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, err *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8722,7 +8722,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[ } func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, neg *[]uint32, pos *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8765,21 +8765,21 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys } func PlotPlotErrorBarsU64PtrU64PtrU64PtrInt(label_id string, xs []uint64, ys []uint64, err []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, neg []uint64, pos []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(neg[0])), (*C.ulonglong)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsU8PtrU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, err *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8813,7 +8813,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte } func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, neg *[]byte, pos *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8856,7 +8856,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]by } func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]float64, err *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8890,7 +8890,7 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrInt(label_id string, xs *[]floa } func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, neg *[]float64, pos *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8933,14 +8933,14 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtr(label_id string, xs * } func PlotPlotHeatmapFloatPtr(label_id string, values []float32, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapS16Ptr(label_id string, values *[]int, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -8956,7 +8956,7 @@ func PlotPlotHeatmapS16Ptr(label_id string, values *[]int, rows int32, cols int3 } func PlotPlotHeatmapS32Ptr(label_id string, values *[]int32, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -8972,14 +8972,14 @@ func PlotPlotHeatmapS32Ptr(label_id string, values *[]int32, rows int32, cols in } func PlotPlotHeatmapS64Ptr(label_id string, values []int64, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapS8Ptr(label_id string, values *[]int8, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -8995,7 +8995,7 @@ func PlotPlotHeatmapS8Ptr(label_id string, values *[]int8, rows int32, cols int3 } func PlotPlotHeatmapU16Ptr(label_id string, values *[]uint16, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9011,7 +9011,7 @@ func PlotPlotHeatmapU16Ptr(label_id string, values *[]uint16, rows int32, cols i } func PlotPlotHeatmapU32Ptr(label_id string, values *[]uint32, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9027,14 +9027,14 @@ func PlotPlotHeatmapU32Ptr(label_id string, values *[]uint32, rows int32, cols i } func PlotPlotHeatmapU64Ptr(label_id string, values []uint64, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapU8Ptr(label_id string, values *[]byte, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9050,7 +9050,7 @@ func PlotPlotHeatmapU8Ptr(label_id string, values *[]byte, rows int32, cols int3 } func PlotPlotHeatmapdoublePtr(label_id string, values *[]float64, rows int32, cols int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9066,7 +9066,7 @@ func PlotPlotHeatmapdoublePtr(label_id string, values *[]float64, rows int32, co } func PlotPlotHistogram2DFloatPtr(label_id string, xs []float32, ys []float32, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9075,7 +9075,7 @@ func PlotPlotHistogram2DFloatPtr(label_id string, xs []float32, ys []float32, co } func PlotPlotHistogram2DS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -9101,7 +9101,7 @@ func PlotPlotHistogram2DS16Ptr(label_id string, xs *[]int, ys *[]int, count int3 } func PlotPlotHistogram2DS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -9127,7 +9127,7 @@ func PlotPlotHistogram2DS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotHistogram2DS64Ptr(label_id string, xs []int64, ys []int64, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9136,7 +9136,7 @@ func PlotPlotHistogram2DS64Ptr(label_id string, xs []int64, ys []int64, count in } func PlotPlotHistogram2DS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -9162,7 +9162,7 @@ func PlotPlotHistogram2DS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int } func PlotPlotHistogram2DU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -9188,7 +9188,7 @@ func PlotPlotHistogram2DU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, coun } func PlotPlotHistogram2DU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -9214,7 +9214,7 @@ func PlotPlotHistogram2DU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, coun } func PlotPlotHistogram2DU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9223,7 +9223,7 @@ func PlotPlotHistogram2DU64Ptr(label_id string, xs []uint64, ys []uint64, count } func PlotPlotHistogram2DU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -9249,7 +9249,7 @@ func PlotPlotHistogram2DU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int } func PlotPlotHistogram2DdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -9275,7 +9275,7 @@ func PlotPlotHistogram2DdoublePtr(label_id string, xs *[]float64, ys *[]float64, } func PlotPlotHistogramFloatPtr(label_id string, values []float32, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9284,7 +9284,7 @@ func PlotPlotHistogramFloatPtr(label_id string, values []float32, count int32) f } func PlotPlotHistogramS16Ptr(label_id string, values *[]int, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9301,7 +9301,7 @@ func PlotPlotHistogramS16Ptr(label_id string, values *[]int, count int32) float6 } func PlotPlotHistogramS32Ptr(label_id string, values *[]int32, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9318,7 +9318,7 @@ func PlotPlotHistogramS32Ptr(label_id string, values *[]int32, count int32) floa } func PlotPlotHistogramS64Ptr(label_id string, values []int64, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9327,7 +9327,7 @@ func PlotPlotHistogramS64Ptr(label_id string, values []int64, count int32) float } func PlotPlotHistogramS8Ptr(label_id string, values *[]int8, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9344,7 +9344,7 @@ func PlotPlotHistogramS8Ptr(label_id string, values *[]int8, count int32) float6 } func PlotPlotHistogramU16Ptr(label_id string, values *[]uint16, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9361,7 +9361,7 @@ func PlotPlotHistogramU16Ptr(label_id string, values *[]uint16, count int32) flo } func PlotPlotHistogramU32Ptr(label_id string, values *[]uint32, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9378,7 +9378,7 @@ func PlotPlotHistogramU32Ptr(label_id string, values *[]uint32, count int32) flo } func PlotPlotHistogramU64Ptr(label_id string, values []uint64, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9387,7 +9387,7 @@ func PlotPlotHistogramU64Ptr(label_id string, values []uint64, count int32) floa } func PlotPlotHistogramU8Ptr(label_id string, values *[]byte, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9404,7 +9404,7 @@ func PlotPlotHistogramU8Ptr(label_id string, values *[]byte, count int32) float6 } func PlotPlotHistogramdoublePtr(label_id string, values *[]float64, count int32) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9421,21 +9421,21 @@ func PlotPlotHistogramdoublePtr(label_id string, values *[]float64, count int32) } func PlotPlotImage(label_id string, user_texture_id TextureID, bounds_min PlotPoint, bounds_max PlotPoint) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotImage(label_idArg, C.ImTextureID(user_texture_id), bounds_min.toC(), bounds_max.toC()) label_idFin() } func PlotPlotInfLinesFloatPtr(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotInfLines_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesS16Ptr(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9451,7 +9451,7 @@ func PlotPlotInfLinesS16Ptr(label_id string, values *[]int, count int32) { } func PlotPlotInfLinesS32Ptr(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9467,14 +9467,14 @@ func PlotPlotInfLinesS32Ptr(label_id string, values *[]int32, count int32) { } func PlotPlotInfLinesS64Ptr(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotInfLines_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesS8Ptr(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9490,7 +9490,7 @@ func PlotPlotInfLinesS8Ptr(label_id string, values *[]int8, count int32) { } func PlotPlotInfLinesU16Ptr(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9506,7 +9506,7 @@ func PlotPlotInfLinesU16Ptr(label_id string, values *[]uint16, count int32) { } func PlotPlotInfLinesU32Ptr(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9522,14 +9522,14 @@ func PlotPlotInfLinesU32Ptr(label_id string, values *[]uint32, count int32) { } func PlotPlotInfLinesU64Ptr(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotInfLines_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesU8Ptr(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9545,7 +9545,7 @@ func PlotPlotInfLinesU8Ptr(label_id string, values *[]byte, count int32) { } func PlotPlotInfLinesdoublePtr(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9561,21 +9561,21 @@ func PlotPlotInfLinesdoublePtr(label_id string, values *[]float64, count int32) } func PlotPlotLineFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9591,7 +9591,7 @@ func PlotPlotLineS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotLineS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -9616,7 +9616,7 @@ func PlotPlotLineS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32 } func PlotPlotLineS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9632,7 +9632,7 @@ func PlotPlotLineS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotLineS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -9657,21 +9657,21 @@ func PlotPlotLineS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count i } func PlotPlotLineS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9687,7 +9687,7 @@ func PlotPlotLineS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotLineS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -9712,7 +9712,7 @@ func PlotPlotLineS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32 } func PlotPlotLineU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9728,7 +9728,7 @@ func PlotPlotLineU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotLineU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -9753,7 +9753,7 @@ func PlotPlotLineU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count } func PlotPlotLineU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9769,7 +9769,7 @@ func PlotPlotLineU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotLineU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -9794,21 +9794,21 @@ func PlotPlotLineU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count } func PlotPlotLineU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9824,7 +9824,7 @@ func PlotPlotLineU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotLineU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -9849,7 +9849,7 @@ func PlotPlotLineU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32 } func PlotPlotLinedoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9865,7 +9865,7 @@ func PlotPlotLinedoublePtrInt(label_id string, values *[]float64, count int32) { } func PlotPlotLinedoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -9890,14 +9890,14 @@ func PlotPlotLinedoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float6 } func PlotPlotPieChartFloatPtr(label_ids []string, values []float32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartS16Ptr(label_ids []string, values *[]int, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9913,7 +9913,7 @@ func PlotPlotPieChartS16Ptr(label_ids []string, values *[]int, count int32, x fl } func PlotPlotPieChartS32Ptr(label_ids []string, values *[]int32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9929,14 +9929,14 @@ func PlotPlotPieChartS32Ptr(label_ids []string, values *[]int32, count int32, x } func PlotPlotPieChartS64Ptr(label_ids []string, values []int64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartS8Ptr(label_ids []string, values *[]int8, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9952,7 +9952,7 @@ func PlotPlotPieChartS8Ptr(label_ids []string, values *[]int8, count int32, x fl } func PlotPlotPieChartU16Ptr(label_ids []string, values *[]uint16, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9968,7 +9968,7 @@ func PlotPlotPieChartU16Ptr(label_ids []string, values *[]uint16, count int32, x } func PlotPlotPieChartU32Ptr(label_ids []string, values *[]uint32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9984,14 +9984,14 @@ func PlotPlotPieChartU32Ptr(label_ids []string, values *[]uint32, count int32, x } func PlotPlotPieChartU64Ptr(label_ids []string, values []uint64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartU8Ptr(label_ids []string, values *[]byte, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10007,7 +10007,7 @@ func PlotPlotPieChartU8Ptr(label_ids []string, values *[]byte, count int32, x fl } func PlotPlotPieChartdoublePtr(label_ids []string, values *[]float64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10023,21 +10023,21 @@ func PlotPlotPieChartdoublePtr(label_ids []string, values *[]float64, count int3 } func PlotPlotScatterFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10053,7 +10053,7 @@ func PlotPlotScatterS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotScatterS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10078,7 +10078,7 @@ func PlotPlotScatterS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count in } func PlotPlotScatterS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -10094,7 +10094,7 @@ func PlotPlotScatterS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotScatterS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10119,21 +10119,21 @@ func PlotPlotScatterS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, coun } func PlotPlotScatterS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -10149,7 +10149,7 @@ func PlotPlotScatterS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotScatterS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10174,7 +10174,7 @@ func PlotPlotScatterS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count in } func PlotPlotScatterU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -10190,7 +10190,7 @@ func PlotPlotScatterU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotScatterU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10215,7 +10215,7 @@ func PlotPlotScatterU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, co } func PlotPlotScatterU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -10231,7 +10231,7 @@ func PlotPlotScatterU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotScatterU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10256,21 +10256,21 @@ func PlotPlotScatterU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, co } func PlotPlotScatterU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10286,7 +10286,7 @@ func PlotPlotScatterU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotScatterU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10311,7 +10311,7 @@ func PlotPlotScatterU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count in } func PlotPlotScatterdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10327,7 +10327,7 @@ func PlotPlotScatterdoublePtrInt(label_id string, values *[]float64, count int32 } func PlotPlotScatterdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10352,28 +10352,28 @@ func PlotPlotScatterdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]flo } func PlotPlotShadedFloatPtrFloatPtrFloatPtr(label_id string, xs []float32, ys1 []float32, ys2 []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys1[0])), (*C.float)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedFloatPtrFloatPtrInt(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10389,7 +10389,7 @@ func PlotPlotShadedS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotShadedS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10414,7 +10414,7 @@ func PlotPlotShadedS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, count } func PlotPlotShadedS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys1 *[]int, ys2 *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10448,7 +10448,7 @@ func PlotPlotShadedS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys1 *[]int, ys } func PlotPlotShadedS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -10464,7 +10464,7 @@ func PlotPlotShadedS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotShadedS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10489,7 +10489,7 @@ func PlotPlotShadedS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, co } func PlotPlotShadedS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys1 *[]int32, ys2 *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10523,28 +10523,28 @@ func PlotPlotShadedS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys1 *[]int32 } func PlotPlotShadedS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedS64PtrS64PtrInt(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedS64PtrS64PtrS64Ptr(label_id string, xs []int64, ys1 []int64, ys2 []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys1[0])), (*C.longlong)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -10560,7 +10560,7 @@ func PlotPlotShadedS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotShadedS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10585,7 +10585,7 @@ func PlotPlotShadedS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, count } func PlotPlotShadedS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys1 *[]int8, ys2 *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10619,7 +10619,7 @@ func PlotPlotShadedS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys1 *[]int8, ys2 } func PlotPlotShadedU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -10635,7 +10635,7 @@ func PlotPlotShadedU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotShadedU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10660,7 +10660,7 @@ func PlotPlotShadedU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, } func PlotPlotShadedU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys1 *[]uint16, ys2 *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10694,7 +10694,7 @@ func PlotPlotShadedU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys1 *[]uint } func PlotPlotShadedU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -10710,7 +10710,7 @@ func PlotPlotShadedU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotShadedU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10735,7 +10735,7 @@ func PlotPlotShadedU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, } func PlotPlotShadedU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys1 *[]uint32, ys2 *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10769,28 +10769,28 @@ func PlotPlotShadedU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys1 *[]uint } func PlotPlotShadedU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedU64PtrU64PtrInt(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedU64PtrU64PtrU64Ptr(label_id string, xs []uint64, ys1 []uint64, ys2 []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys1[0])), (*C.ulonglong)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10806,7 +10806,7 @@ func PlotPlotShadedU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotShadedU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10831,7 +10831,7 @@ func PlotPlotShadedU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, count } func PlotPlotShadedU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys1 *[]byte, ys2 *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10865,7 +10865,7 @@ func PlotPlotShadedU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys1 *[]byte, ys2 } func PlotPlotShadeddoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10881,7 +10881,7 @@ func PlotPlotShadeddoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotShadeddoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10906,7 +10906,7 @@ func PlotPlotShadeddoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]f } func PlotPlotShadeddoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, ys1 *[]float64, ys2 *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10940,21 +10940,21 @@ func PlotPlotShadeddoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, y } func PlotPlotStairsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10970,7 +10970,7 @@ func PlotPlotStairsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotStairsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10995,7 +10995,7 @@ func PlotPlotStairsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int } func PlotPlotStairsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -11011,7 +11011,7 @@ func PlotPlotStairsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotStairsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -11036,21 +11036,21 @@ func PlotPlotStairsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotStairsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -11066,7 +11066,7 @@ func PlotPlotStairsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotStairsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -11091,7 +11091,7 @@ func PlotPlotStairsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int } func PlotPlotStairsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -11107,7 +11107,7 @@ func PlotPlotStairsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotStairsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -11132,7 +11132,7 @@ func PlotPlotStairsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, cou } func PlotPlotStairsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -11148,7 +11148,7 @@ func PlotPlotStairsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotStairsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -11173,21 +11173,21 @@ func PlotPlotStairsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, cou } func PlotPlotStairsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -11203,7 +11203,7 @@ func PlotPlotStairsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotStairsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -11228,7 +11228,7 @@ func PlotPlotStairsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int } func PlotPlotStairsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -11244,7 +11244,7 @@ func PlotPlotStairsdoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotStairsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -11269,21 +11269,21 @@ func PlotPlotStairsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]floa } func PlotPlotStemsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -11299,7 +11299,7 @@ func PlotPlotStemsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotStemsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -11324,7 +11324,7 @@ func PlotPlotStemsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int3 } func PlotPlotStemsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -11340,7 +11340,7 @@ func PlotPlotStemsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotStemsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -11365,21 +11365,21 @@ func PlotPlotStemsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotStemsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -11395,7 +11395,7 @@ func PlotPlotStemsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotStemsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -11420,7 +11420,7 @@ func PlotPlotStemsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int3 } func PlotPlotStemsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -11436,7 +11436,7 @@ func PlotPlotStemsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotStemsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -11461,7 +11461,7 @@ func PlotPlotStemsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, coun } func PlotPlotStemsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -11477,7 +11477,7 @@ func PlotPlotStemsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotStemsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -11502,21 +11502,21 @@ func PlotPlotStemsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, coun } func PlotPlotStemsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -11532,7 +11532,7 @@ func PlotPlotStemsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotStemsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -11557,7 +11557,7 @@ func PlotPlotStemsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int3 } func PlotPlotStemsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -11573,7 +11573,7 @@ func PlotPlotStemsdoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotStemsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -11598,7 +11598,7 @@ func PlotPlotStemsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float } func PlotPlotText(text string, x float64, y float64) { - textArg, textFin := wrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImPlot_PlotText(textArg, C.double(x), C.double(y)) textFin() @@ -11643,7 +11643,7 @@ func PlotPushPlotClipRect() { } func PlotRegisterOrGetItem(label_id string, flags PlotItemFlags) PlotItem { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -11687,8 +11687,8 @@ func PlotSetNextMarkerStyle() { } func PlotSetupAxes(x_label string, y_label string) { - x_labelArg, x_labelFin := wrapString(x_label) - y_labelArg, y_labelFin := wrapString(y_label) + x_labelArg, x_labelFin := WrapString(x_label) + y_labelArg, y_labelFin := WrapString(y_label) C.wrap_ImPlot_SetupAxes(x_labelArg, y_labelArg) x_labelFin() @@ -11733,7 +11733,7 @@ func PlotSetupMouseText(location PlotLocation) { } func PlotShowAltLegend(title_id string) { - title_idArg, title_idFin := wrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) C.wrap_ImPlot_ShowAltLegend(title_idArg) title_idFin() @@ -11744,8 +11744,8 @@ func PlotShowAxisContextMenu(axis PlotAxis, equal_axis PlotAxis) { } func PlotShowDatePicker(id string, level *int32, t *PlotTime) bool { - idArg, idFin := wrapString(id) - levelArg, levelFin := wrapNumberPtr[C.int, int32](level) + idArg, idFin := WrapString(id) + levelArg, levelFin := WrapNumberPtr[C.int, int32](level) tArg, tFin := wrap[C.ImPlotTime, *PlotTime](t) defer func() { @@ -11973,14 +11973,14 @@ func (self PlotAxis) FormatterData() unsafe.Pointer { } func (self PlotAxis) SetLinkedMin(v *float64) { - vArg, vFin := wrapNumberPtr[C.double, float64](v) + vArg, vFin := WrapNumberPtr[C.double, float64](v) C.wrap_ImPlotAxis_SetLinkedMin(self.handle(), vArg) vFin() } func (self PlotAxis) SetLinkedMax(v *float64) { - vArg, vFin := wrapNumberPtr[C.double, float64](v) + vArg, vFin := WrapNumberPtr[C.double, float64](v) C.wrap_ImPlotAxis_SetLinkedMax(self.handle(), vArg) vFin() diff --git a/cmd/codegen/arguments_wrapper.go b/cmd/codegen/arguments_wrapper.go index 04c9a6511..44af30767 100644 --- a/cmd/codegen/arguments_wrapper.go +++ b/cmd/codegen/arguments_wrapper.go @@ -108,7 +108,7 @@ func constCharW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "string", VarName: fmt.Sprintf("%sArg", arg.Name), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapString(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapString(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%sFin()", arg.Name), } } @@ -117,7 +117,7 @@ func charPtrPtrW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "[]string", VarName: fmt.Sprintf("%sArg", arg.Name), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapStringList(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapStringList(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%sFin()", arg.Name), } } @@ -158,7 +158,7 @@ func floatArrayW(arg ArgDef) ArgumentWrapperData { func boolPtrW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "*bool", - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapBool(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapBool(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%[1]sFin()", arg.Name), VarName: fmt.Sprintf("%sArg", arg.Name), } @@ -203,7 +203,7 @@ func simplePtrW(goType, cType string) argumentWrapper { return func(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: fmt.Sprintf("*%s", goType), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapNumberPtr[%[2]s, %[3]s](%[1]s)", arg.Name, cType, goType), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapNumberPtr[%[2]s, %[3]s](%[1]s)", arg.Name, cType, goType), Finalizer: fmt.Sprintf("%[1]sFin()", arg.Name, cType, goType), VarName: fmt.Sprintf("%sArg", arg.Name), } diff --git a/glfw_backend.go b/glfw_backend.go index ac8ddd9cf..940ef0b7c 100644 --- a/glfw_backend.go +++ b/glfw_backend.go @@ -97,10 +97,10 @@ func (b *GLFWBackend) loopFunc() func() { } func (b GLFWBackend) DisplaySize() (width int32, height int32) { - widthArg, widthFin := wrapNumberPtr[C.int, int32](&width) + widthArg, widthFin := WrapNumberPtr[C.int, int32](&width) defer widthFin() - heightArg, heightFin := wrapNumberPtr[C.int, int32](&height) + heightArg, heightFin := WrapNumberPtr[C.int, int32](&height) defer heightFin() C.igGLFWWindow_GetDisplaySize(b.handle(), widthArg, heightArg) @@ -109,11 +109,11 @@ func (b GLFWBackend) DisplaySize() (width int32, height int32) { } func (b GLFWBackend) SetShouldClose(value bool) { - C.igGLFWWindow_SetShouldClose(b.handle(), C.int(castBool(value))) + C.igGLFWWindow_SetShouldClose(b.handle(), C.int(CastBool(value))) } func (b *GLFWBackend) CreateWindow(title string, width, height int, flags GLFWWindowFlags) { - titleArg, titleFin := wrapString(title) + titleArg, titleFin := WrapString(title) defer titleFin() // b.window = uintptr(unsafe.Pointer(C.igCreateGLFWWindow(titleArg, C.int(width), C.int(height), C.GLFWWindowFlags(flags), C.VoidCallback(C.afterCreateContext)))) diff --git a/input_text.go b/input_text.go index c1e14179a..58d4fe924 100644 --- a/input_text.go +++ b/input_text.go @@ -16,12 +16,12 @@ import ( type InputTextCallback func(data InputTextCallbackData) int type inputTextInternalState struct { - buf *stringBuffer + buf *StringBuffer callback InputTextCallback } func (state *inputTextInternalState) release() { - state.buf.free() + state.buf.Free() } //export generalInputTextCallback @@ -32,7 +32,7 @@ func generalInputTextCallback(cbData *C.ImGuiInputTextCallbackData) C.int { statePtr := bufHandle.Value().(*inputTextInternalState) if data.EventFlag() == InputTextFlagsCallbackResize { - statePtr.buf.resizeTo(data.BufSize()) + statePtr.buf.ResizeTo(data.BufSize()) C.wrap_ImGuiInputTextCallbackData_SetBuf(cbData, (*C.char)(statePtr.buf.ptr)) data.SetBufSize(int32(statePtr.buf.size)) data.SetBufTextLen(int32(data.BufTextLen())) @@ -47,19 +47,19 @@ func generalInputTextCallback(cbData *C.ImGuiInputTextCallbackData) C.int { } func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, callback InputTextCallback) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer labelFin() - hintArg, hintFin := wrapString(hint) + hintArg, hintFin := WrapString(hint) defer hintFin() state := &inputTextInternalState{ - buf: newStringBuffer(*buf), + buf: NewStringBuffer(*buf), callback: callback, } defer func() { - *buf = state.buf.toGo() + *buf = state.buf.ToGo() state.release() }() @@ -80,16 +80,16 @@ func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, ca } func InputTextMultiline(label string, buf *string, size Vec2, flags InputTextFlags, callback InputTextCallback) bool { - labelArg, labelFin := wrapString(label) + labelArg, labelFin := WrapString(label) defer labelFin() state := &inputTextInternalState{ - buf: newStringBuffer(*buf), + buf: NewStringBuffer(*buf), callback: callback, } defer func() { - *buf = state.buf.toGo() + *buf = state.buf.ToGo() state.release() }() diff --git a/type_wrapper.go b/type_wrapper.go index 81fd2d389..073be9959 100644 --- a/type_wrapper.go +++ b/type_wrapper.go @@ -6,14 +6,14 @@ package imgui import "C" import "unsafe" -func castBool(value bool) (cast int) { +func CastBool(value bool) (cast int) { if value { cast = 1 } return } -func wrapBool(goValue *bool) (wrapped *C.bool, finisher func()) { +func WrapBool(goValue *bool) (wrapped *C.bool, finisher func()) { if goValue != nil { var cValue C.bool if *goValue { @@ -38,8 +38,8 @@ type Number interface { ~float32 | ~float64 } -// wrapPtrCType is a generic method to convert GOTYPE (int32/float32 e.t.c.) into CTYPE (c_int/c_float e.t.c.) -func wrapNumberPtr[CTYPE Number, GOTYPE Number](goValue *GOTYPE) (wrapped *CTYPE, finisher func()) { +// WrapNumberPtr is a generic method to convert GOTYPE (int32/float32 e.t.c.) into CTYPE (c_int/c_float e.t.c.) +func WrapNumberPtr[CTYPE Number, GOTYPE Number](goValue *GOTYPE) (wrapped *CTYPE, finisher func()) { if goValue != nil { cValue := CTYPE(*goValue) wrapped = &cValue @@ -53,13 +53,13 @@ func wrapNumberPtr[CTYPE Number, GOTYPE Number](goValue *GOTYPE) (wrapped *CTYPE return } -func wrapString(value string) (wrapped *C.char, finisher func()) { +func WrapString(value string) (wrapped *C.char, finisher func()) { wrapped = C.CString(value) finisher = func() { C.free(unsafe.Pointer(wrapped)) } // nolint: gas return } -func wrapStringList(value []string) (wrapped **C.char, finisher func()) { +func WrapStringList(value []string) (wrapped **C.char, finisher func()) { if len(value) == 0 { return nil, func() {} } @@ -88,37 +88,37 @@ func wrapStringList(value []string) (wrapped **C.char, finisher func()) { // by the size of the elements. const unrealisticLargePointer = 1 << 30 -func ptrToByteSlice(p unsafe.Pointer) []byte { +func PtrToByteSlice(p unsafe.Pointer) []byte { return (*[unrealisticLargePointer]byte)(p)[:] } -func ptrToUint16Slice(p unsafe.Pointer) []uint16 { +func PtrToUint16Slice(p unsafe.Pointer) []uint16 { return (*[unrealisticLargePointer / 2]uint16)(p)[:] } -type stringBuffer struct { +type StringBuffer struct { ptr unsafe.Pointer size int } -func newStringBuffer(initialValue string) *stringBuffer { +func NewStringBuffer(initialValue string) *StringBuffer { rawText := []byte(initialValue) bufSize := len(rawText) + 1 newPtr := C.malloc(C.size_t(bufSize)) zeroOffset := bufSize - 1 - buf := ptrToByteSlice(newPtr) + buf := PtrToByteSlice(newPtr) copy(buf[:zeroOffset], rawText) buf[zeroOffset] = 0 - return &stringBuffer{ptr: newPtr, size: bufSize} + return &StringBuffer{ptr: newPtr, size: bufSize} } -func (buf *stringBuffer) free() { +func (buf *StringBuffer) Free() { C.free(buf.ptr) buf.size = 0 } -func (buf *stringBuffer) resizeTo(requestedSize int) { +func (buf *StringBuffer) ResizeTo(requestedSize int) { bufSize := requestedSize if bufSize < 1 { bufSize = 1 @@ -131,16 +131,16 @@ func (buf *stringBuffer) resizeTo(requestedSize int) { if copySize > 0 { C.memcpy(newPtr, buf.ptr, C.size_t(copySize)) } - ptrToByteSlice(newPtr)[bufSize-1] = 0 + PtrToByteSlice(newPtr)[bufSize-1] = 0 C.free(buf.ptr) buf.ptr = newPtr buf.size = bufSize } -func (buf stringBuffer) toGo() string { +func (buf *StringBuffer) ToGo() string { if (buf.ptr == nil) || (buf.size < 1) { return "" } - ptrToByteSlice(buf.ptr)[buf.size-1] = 0 + PtrToByteSlice(buf.ptr)[buf.size-1] = 0 return C.GoString((*C.char)(buf.ptr)) } From 3dc42aba314b457f5c3c01532ab54c110e76e7b1 Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Thu, 13 Apr 2023 17:15:24 +0200 Subject: [PATCH 3/7] type wrapper: move to internal/wrapper --- cimgui_funcs.go | 1019 +++++++-------- cimplot_funcs.go | 1109 +++++++++-------- cmd/codegen/arguments_wrapper.go | 8 +- cmd/codegen/gengo_funcs.go | 6 +- glfw_backend.go | 9 +- input_text.go | 21 +- .../wrapper/type_wrapper.go | 10 +- 7 files changed, 1103 insertions(+), 1079 deletions(-) rename type_wrapper.go => internal/wrapper/type_wrapper.go (96%) diff --git a/cimgui_funcs.go b/cimgui_funcs.go index aab299dab..697b588b5 100644 --- a/cimgui_funcs.go +++ b/cimgui_funcs.go @@ -7,7 +7,12 @@ package imgui // #include "cimgui_structs_accessor.h" // #include "cimgui_wrapper.h" import "C" -import "unsafe" + +import ( + "unsafe" + + "github.com/AllenDang/cimgui-go/internal/wrapper" +) func (self BitVector) InternalClear() { C.ImBitVector_Clear(self.handle()) @@ -263,7 +268,7 @@ func (self DrawList) AddRectFilledMultiColor(p_min Vec2, p_max Vec2, col_upr_lef // text_end: NULL // wrap_width: 0.0f func (self DrawList) AddTextFontPtrV(font Font, font_size float32, pos Vec2, col uint32, text_begin string, wrap_width float32, cpu_fine_clip_rect *Vec4) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) cpu_fine_clip_rectArg, cpu_fine_clip_rectFin := wrap[C.ImVec4, *Vec4](cpu_fine_clip_rect) C.wrap_ImDrawList_AddText_FontPtrV(self.handle(), font.handle(), C.float(font_size), pos.toC(), C.ImU32(col), text_beginArg, C.float(wrap_width), cpu_fine_clip_rectArg) @@ -274,7 +279,7 @@ func (self DrawList) AddTextFontPtrV(font Font, font_size float32, pos Vec2, col // AddTextVec2V parameter default value hint: // text_end: NULL func (self DrawList) AddTextVec2V(pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImDrawList_AddText_Vec2V(self.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -478,7 +483,7 @@ func (self FontAtlas) AddFontDefaultV(font_cfg FontConfig) Font { // font_cfg: NULL // glyph_ranges: NULL func (self FontAtlas) AddFontFromFileTTFV(filename string, size_pixels float32, font_cfg FontConfig, glyph_ranges *Wchar) Font { - filenameArg, filenameFin := WrapString(filename) + filenameArg, filenameFin := wrapper.WrapString(filename) defer func() { filenameFin() @@ -490,7 +495,7 @@ func (self FontAtlas) AddFontFromFileTTFV(filename string, size_pixels float32, // font_cfg: NULL // glyph_ranges: NULL func (self FontAtlas) AddFontFromMemoryCompressedBase85TTFV(compressed_font_data_base85 string, size_pixels float32, font_cfg FontConfig, glyph_ranges *Wchar) Font { - compressed_font_data_base85Arg, compressed_font_data_base85Fin := WrapString(compressed_font_data_base85) + compressed_font_data_base85Arg, compressed_font_data_base85Fin := wrapper.WrapString(compressed_font_data_base85) defer func() { compressed_font_data_base85Fin() @@ -650,7 +655,7 @@ func (self FontGlyphRangesBuilder) AddRanges(ranges *Wchar) { // AddTextV parameter default value hint: // text_end: NULL func (self FontGlyphRangesBuilder) AddTextV(text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_ImFontGlyphRangesBuilder_AddTextV(self.handle(), textArg) textFin() @@ -697,8 +702,8 @@ func (self Font) CalcTextSizeAV(size float32, max_width float32, wrap_width floa pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - text_beginArg, text_beginFin := WrapString(text_begin) - remainingArg, remainingFin := WrapStringList(remaining) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + remainingArg, remainingFin := wrapper.WrapStringList(remaining) C.wrap_ImFont_CalcTextSizeAV(pOutArg, self.handle(), C.float(size), C.float(max_width), C.float(wrap_width), text_beginArg, remainingArg) pOutFin() @@ -709,7 +714,7 @@ func (self Font) CalcTextSizeAV(size float32, max_width float32, wrap_width floa } func (self Font) CalcWordWrapPositionA(scale float32, text string, wrap_width float32) string { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) defer func() { textFin() @@ -761,7 +766,7 @@ func (self Font) RenderChar(draw_list DrawList, size float32, pos Vec2, col uint // cpu_fine_clip: false // wrap_width: 0.0f func (self Font) RenderTextV(draw_list DrawList, size float32, pos Vec2, col uint32, clip_rect Vec4, text_begin string, wrap_width float32, cpu_fine_clip bool) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImFont_RenderTextV(self.handle(), draw_list.handle(), C.float(size), pos.toC(), C.ImU32(col), clip_rect.toC(), text_beginArg, C.float(wrap_width), C.bool(cpu_fine_clip)) text_beginFin() @@ -883,7 +888,7 @@ func (self IO) AddInputCharacter(c uint32) { } func (self IO) AddInputCharactersUTF8(str string) { - strArg, strFin := WrapString(str) + strArg, strFin := wrapper.WrapString(str) C.ImGuiIO_AddInputCharactersUTF8(self.handle(), strArg) strFin() @@ -966,7 +971,7 @@ func NewInputTextCallbackData() InputTextCallbackData { // InsertCharsV parameter default value hint: // text_end: NULL func (self InputTextCallbackData) InsertCharsV(pos int32, text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_ImGuiInputTextCallbackData_InsertCharsV(self.handle(), C.int(pos), textArg) textFin() @@ -1203,7 +1208,7 @@ func NewPayload() Payload { } func (self Payload) IsDataType(typeArg string) bool { - typeArgArg, typeArgFin := WrapString(typeArg) + typeArgArg, typeArgFin := wrapper.WrapString(typeArg) defer func() { typeArgFin() @@ -1426,8 +1431,8 @@ func NewTextBuffer() TextBuffer { // AppendV parameter default value hint: // str_end: NULL func (self TextBuffer) AppendV(str string, str_end string) { - strArg, strFin := WrapString(str) - str_endArg, str_endFin := WrapString(str_end) + strArg, strFin := wrapper.WrapString(str) + str_endArg, str_endFin := wrapper.WrapString(str_end) C.ImGuiTextBuffer_append(self.handle(), strArg, str_endArg) strFin() @@ -1435,7 +1440,7 @@ func (self TextBuffer) AppendV(str string, str_end string) { } func (self TextBuffer) Appendf(fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_ImGuiTextBuffer_Appendf(self.handle(), fmtArg) fmtFin() @@ -1485,7 +1490,7 @@ func (self TextFilter) Clear() { // label: "Filter(inc,-exc)" // width: 0.0f func (self TextFilter) DrawV(label string, width float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -1496,7 +1501,7 @@ func (self TextFilter) DrawV(label string, width float32) bool { // NewTextFilter parameter default value hint: // default_filter: "" func NewTextFilter(default_filter string) TextFilter { - default_filterArg, default_filterFin := WrapString(default_filter) + default_filterArg, default_filterFin := wrapper.WrapString(default_filter) defer func() { default_filterFin() @@ -1511,7 +1516,7 @@ func (self TextFilter) IsActive() bool { // PassFilterV parameter default value hint: // text_end: NULL func (self TextFilter) PassFilterV(text string) bool { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) defer func() { textFin() @@ -1524,7 +1529,7 @@ func (self TextFilter) Destroy() { } func (self TextIndex) InternalAppend(base string, old_size int32, new_size int32) { - baseArg, baseFin := WrapString(base) + baseArg, baseFin := wrapper.WrapString(base) C.ImGuiTextIndex_append(self.handle(), baseArg, C.int(old_size), C.int(new_size)) baseFin() @@ -1535,7 +1540,7 @@ func (self TextIndex) InternalClear() { } func (self TextIndex) Internalgetlinebegin(base string, n int32) string { - baseArg, baseFin := WrapString(base) + baseArg, baseFin := wrapper.WrapString(base) defer func() { baseFin() @@ -1544,7 +1549,7 @@ func (self TextIndex) Internalgetlinebegin(base string, n int32) string { } func (self TextIndex) Internalgetlineend(base string, n int32) string { - baseArg, baseFin := WrapString(base) + baseArg, baseFin := wrapper.WrapString(base) defer func() { baseFin() @@ -1696,8 +1701,8 @@ func (self Window) InternalIDPtr(ptr unsafe.Pointer) ID { // InternalIDStrV parameter default value hint: // str_end: NULL func (self Window) InternalIDStrV(str string, str_end string) ID { - strArg, strFin := WrapString(str) - str_endArg, str_endFin := WrapString(str_end) + strArg, strFin := wrapper.WrapString(str) + str_endArg, str_endFin := wrapper.WrapString(str_end) defer func() { strFin() @@ -1707,7 +1712,7 @@ func (self Window) InternalIDStrV(str string, str_end string) ID { } func InternalNewWindow(context Context, name string) Window { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -2001,7 +2006,7 @@ func (self *Vec4) Destroy() { // AcceptDragDropPayloadV parameter default value hint: // flags: 0 func AcceptDragDropPayloadV(typeArg string, flags DragDropFlags) Payload { - typeArgArg, typeArgFin := WrapString(typeArg) + typeArgArg, typeArgFin := wrapper.WrapString(typeArg) defer func() { typeArgFin() @@ -2026,7 +2031,7 @@ func AlignTextToFramePadding() { } func ArrowButton(str_id string, dir Dir) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2037,7 +2042,7 @@ func ArrowButton(str_id string, dir Dir) bool { // InternalArrowButtonExV parameter default value hint: // flags: 0 func InternalArrowButtonExV(str_id string, dir Dir, size_arg Vec2, flags ButtonFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2049,8 +2054,8 @@ func InternalArrowButtonExV(str_id string, dir Dir, size_arg Vec2, flags ButtonF // flags: 0 // p_open: NULL func BeginV(name string, p_open *bool, flags WindowFlags) bool { - nameArg, nameFin := WrapString(name) - p_openArg, p_openFin := WrapBool(p_open) + nameArg, nameFin := wrapper.WrapString(name) + p_openArg, p_openFin := wrapper.WrapBool(p_open) defer func() { nameFin() @@ -2060,7 +2065,7 @@ func BeginV(name string, p_open *bool, flags WindowFlags) bool { } func InternalBeginChildEx(name string, id ID, size_arg Vec2, border bool, flags WindowFlags) bool { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -2087,7 +2092,7 @@ func BeginChildIDV(id ID, size Vec2, border bool, flags WindowFlags) bool { // flags: 0 // size: ImVec2(0,0) func BeginChildStrV(str_id string, size Vec2, border bool, flags WindowFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2098,7 +2103,7 @@ func BeginChildStrV(str_id string, size Vec2, border bool, flags WindowFlags) bo // InternalBeginColumnsV parameter default value hint: // flags: 0 func InternalBeginColumnsV(str_id string, count int32, flags OldColumnFlags) { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) C.igBeginColumns(str_idArg, C.int(count), C.ImGuiOldColumnFlags(flags)) str_idFin() @@ -2107,8 +2112,8 @@ func InternalBeginColumnsV(str_id string, count int32, flags OldColumnFlags) { // BeginComboV parameter default value hint: // flags: 0 func BeginComboV(label string, preview_value string, flags ComboFlags) bool { - labelArg, labelFin := WrapString(label) - preview_valueArg, preview_valueFin := WrapString(preview_value) + labelArg, labelFin := wrapper.WrapString(label) + preview_valueArg, preview_valueFin := wrapper.WrapString(preview_value) defer func() { labelFin() @@ -2140,7 +2145,7 @@ func InternalBeginDockableDragDropTarget(window Window) { } func InternalBeginDocked(window Window, p_open *bool) { - p_openArg, p_openFin := WrapBool(p_open) + p_openArg, p_openFin := wrapper.WrapBool(p_open) C.igBeginDocked(window.handle(), p_openArg) p_openFin() @@ -2167,7 +2172,7 @@ func BeginGroup() { // BeginListBoxV parameter default value hint: // size: ImVec2(0,0) func BeginListBoxV(label string, size Vec2) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -2182,7 +2187,7 @@ func BeginMainMenuBar() bool { // BeginMenuV parameter default value hint: // enabled: true func BeginMenuV(label string, enabled bool) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -2197,8 +2202,8 @@ func BeginMenuBar() bool { // InternalBeginMenuExV parameter default value hint: // enabled: true func InternalBeginMenuExV(label string, icon string, enabled bool) bool { - labelArg, labelFin := WrapString(label) - iconArg, iconFin := WrapString(icon) + labelArg, labelFin := wrapper.WrapString(label) + iconArg, iconFin := wrapper.WrapString(icon) defer func() { labelFin() @@ -2210,7 +2215,7 @@ func InternalBeginMenuExV(label string, icon string, enabled bool) bool { // BeginPopupV parameter default value hint: // flags: 0 func BeginPopupV(str_id string, flags WindowFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2222,7 +2227,7 @@ func BeginPopupV(str_id string, flags WindowFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextItemV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2234,7 +2239,7 @@ func BeginPopupContextItemV(str_id string, popup_flags PopupFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextVoidV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2246,7 +2251,7 @@ func BeginPopupContextVoidV(str_id string, popup_flags PopupFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextWindowV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2262,8 +2267,8 @@ func InternalBeginPopupEx(id ID, extra_flags WindowFlags) bool { // flags: 0 // p_open: NULL func BeginPopupModalV(name string, p_open *bool, flags WindowFlags) bool { - nameArg, nameFin := WrapString(name) - p_openArg, p_openFin := WrapBool(p_open) + nameArg, nameFin := wrapper.WrapString(name) + p_openArg, p_openFin := wrapper.WrapBool(p_open) defer func() { nameFin() @@ -2275,7 +2280,7 @@ func BeginPopupModalV(name string, p_open *bool, flags WindowFlags) bool { // BeginTabBarV parameter default value hint: // flags: 0 func BeginTabBarV(str_id string, flags TabBarFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2291,8 +2296,8 @@ func InternalBeginTabBarEx(tab_bar TabBar, bb Rect, flags TabBarFlags, dock_node // flags: 0 // p_open: NULL func BeginTabItemV(label string, p_open *bool, flags TabItemFlags) bool { - labelArg, labelFin := WrapString(label) - p_openArg, p_openFin := WrapBool(p_open) + labelArg, labelFin := wrapper.WrapString(label) + p_openArg, p_openFin := wrapper.WrapBool(p_open) defer func() { labelFin() @@ -2306,7 +2311,7 @@ func BeginTabItemV(label string, p_open *bool, flags TabItemFlags) bool { // inner_width: 0.0f // outer_size: ImVec2(0.0f,0.0f) func BeginTableV(str_id string, column int32, flags TableFlags, outer_size Vec2, inner_width float32) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -2319,7 +2324,7 @@ func BeginTableV(str_id string, column int32, flags TableFlags, outer_size Vec2, // inner_width: 0.0f // outer_size: ImVec2(0,0) func InternalBeginTableExV(name string, id ID, columns_count int32, flags TableFlags, outer_size Vec2, inner_width float32) bool { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -2336,7 +2341,7 @@ func InternalBeginTooltipEx(tooltip_flags TooltipFlags, extra_window_flags Windo } func InternalBeginViewportSideBar(name string, viewport Viewport, dir Dir, size float32, window_flags WindowFlags) bool { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -2365,7 +2370,7 @@ func Bullet() { } func BulletText(fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igBulletText(fmtArg) fmtFin() @@ -2374,7 +2379,7 @@ func BulletText(fmt string) { // ButtonV parameter default value hint: // size: ImVec2(0,0) func ButtonV(label string, size Vec2) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -2385,8 +2390,8 @@ func ButtonV(label string, size Vec2) bool { // InternalButtonBehaviorV parameter default value hint: // flags: 0 func InternalButtonBehaviorV(bb Rect, id ID, out_hovered *bool, out_held *bool, flags ButtonFlags) bool { - out_hoveredArg, out_hoveredFin := WrapBool(out_hovered) - out_heldArg, out_heldFin := WrapBool(out_held) + out_hoveredArg, out_hoveredFin := wrapper.WrapBool(out_hovered) + out_heldArg, out_heldFin := wrapper.WrapBool(out_held) defer func() { out_hoveredFin() @@ -2399,7 +2404,7 @@ func InternalButtonBehaviorV(bb Rect, id ID, out_hovered *bool, out_held *bool, // flags: 0 // size_arg: ImVec2(0,0) func InternalButtonExV(label string, size_arg Vec2, flags ButtonFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -2434,7 +2439,7 @@ func CalcTextSizeV(text string, hide_text_after_double_hash bool, wrap_width flo pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igCalcTextSizeV(pOutArg, textArg, C.bool(hide_text_after_double_hash), C.float(wrap_width)) pOutFin() @@ -2467,8 +2472,8 @@ func InternalCallContextHooks(context Context, typeArg ContextHookType) { } func Checkbox(label string, v *bool) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapBool(v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapBool(v) defer func() { labelFin() @@ -2478,8 +2483,8 @@ func Checkbox(label string, v *bool) bool { } func CheckboxFlagsIntPtr(label string, flags *int32, flags_value int32) bool { - labelArg, labelFin := WrapString(label) - flagsArg, flagsFin := WrapNumberPtr[C.int, int32](flags) + labelArg, labelFin := wrapper.WrapString(label) + flagsArg, flagsFin := wrapper.WrapNumberPtr[C.int, int32](flags) defer func() { labelFin() @@ -2489,8 +2494,8 @@ func CheckboxFlagsIntPtr(label string, flags *int32, flags_value int32) bool { } func CheckboxFlagsUintPtr(label string, flags *uint32, flags_value uint32) bool { - labelArg, labelFin := WrapString(label) - flagsArg, flagsFin := WrapNumberPtr[C.uint, uint32](flags) + labelArg, labelFin := wrapper.WrapString(label) + flagsArg, flagsFin := wrapper.WrapNumberPtr[C.uint, uint32](flags) defer func() { labelFin() @@ -2512,7 +2517,7 @@ func InternalClearIniSettings() { } func InternalClearWindowSettings(name string) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.igClearWindowSettings(nameArg) nameFin() @@ -2545,8 +2550,8 @@ func InternalCollapseButton(id ID, pos Vec2, dock_node DockNode) bool { // CollapsingHeaderBoolPtrV parameter default value hint: // flags: 0 func CollapsingHeaderBoolPtrV(label string, p_visible *bool, flags TreeNodeFlags) bool { - labelArg, labelFin := WrapString(label) - p_visibleArg, p_visibleFin := WrapBool(p_visible) + labelArg, labelFin := wrapper.WrapString(label) + p_visibleArg, p_visibleFin := wrapper.WrapBool(p_visible) defer func() { labelFin() @@ -2558,7 +2563,7 @@ func CollapsingHeaderBoolPtrV(label string, p_visible *bool, flags TreeNodeFlags // CollapsingHeaderTreeNodeFlagsV parameter default value hint: // flags: 0 func CollapsingHeaderTreeNodeFlagsV(label string, flags TreeNodeFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -2570,7 +2575,7 @@ func CollapsingHeaderTreeNodeFlagsV(label string, flags TreeNodeFlags) bool { // flags: 0 // size: ImVec2(0,0) func ColorButtonV(desc_id string, col Vec4, flags ColorEditFlags, size Vec2) bool { - desc_idArg, desc_idFin := WrapString(desc_id) + desc_idArg, desc_idFin := wrapper.WrapString(desc_id) defer func() { desc_idFin() @@ -2583,9 +2588,9 @@ func ColorConvertFloat4ToU32(in Vec4) uint32 { } func ColorConvertHSVtoRGB(h float32, s float32, v float32, out_r *float32, out_g *float32, out_b *float32) { - out_rArg, out_rFin := WrapNumberPtr[C.float, float32](out_r) - out_gArg, out_gFin := WrapNumberPtr[C.float, float32](out_g) - out_bArg, out_bFin := WrapNumberPtr[C.float, float32](out_b) + out_rArg, out_rFin := wrapper.WrapNumberPtr[C.float, float32](out_r) + out_gArg, out_gFin := wrapper.WrapNumberPtr[C.float, float32](out_g) + out_bArg, out_bFin := wrapper.WrapNumberPtr[C.float, float32](out_b) C.igColorConvertHSVtoRGB(C.float(h), C.float(s), C.float(v), out_rArg, out_gArg, out_bArg) out_rFin() @@ -2594,9 +2599,9 @@ func ColorConvertHSVtoRGB(h float32, s float32, v float32, out_r *float32, out_g } func ColorConvertRGBtoHSV(r float32, g float32, b float32, out_h *float32, out_s *float32, out_v *float32) { - out_hArg, out_hFin := WrapNumberPtr[C.float, float32](out_h) - out_sArg, out_sFin := WrapNumberPtr[C.float, float32](out_s) - out_vArg, out_vFin := WrapNumberPtr[C.float, float32](out_v) + out_hArg, out_hFin := wrapper.WrapNumberPtr[C.float, float32](out_h) + out_sArg, out_sFin := wrapper.WrapNumberPtr[C.float, float32](out_s) + out_vArg, out_vFin := wrapper.WrapNumberPtr[C.float, float32](out_v) C.igColorConvertRGBtoHSV(C.float(r), C.float(g), C.float(b), out_hArg, out_sArg, out_vArg) out_hFin() @@ -2618,7 +2623,7 @@ func ColorConvertU32ToFloat4(in uint32) Vec4 { // ColorEdit3V parameter default value hint: // flags: 0 func ColorEdit3V(label string, col *[3]float32, flags ColorEditFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2638,7 +2643,7 @@ func ColorEdit3V(label string, col *[3]float32, flags ColorEditFlags) bool { // ColorEdit4V parameter default value hint: // flags: 0 func ColorEdit4V(label string, col *[4]float32, flags ColorEditFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2662,7 +2667,7 @@ func InternalColorEditOptionsPopup(col []float32, flags ColorEditFlags) { // ColorPicker3V parameter default value hint: // flags: 0 func ColorPicker3V(label string, col *[3]float32, flags ColorEditFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2683,7 +2688,7 @@ func ColorPicker3V(label string, col *[3]float32, flags ColorEditFlags) bool { // flags: 0 // ref_col: NULL func ColorPicker4V(label string, col *[4]float32, flags ColorEditFlags, ref_col []float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2705,7 +2710,7 @@ func InternalColorPickerOptionsPopup(ref_col []float32, flags ColorEditFlags) { } func InternalColorTooltip(text string, col []float32, flags ColorEditFlags) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.igColorTooltip(textArg, (*C.float)(&(col[0])), C.ImGuiColorEditFlags(flags)) textFin() @@ -2716,7 +2721,7 @@ func InternalColorTooltip(text string, col []float32, flags ColorEditFlags) { // count: 1 // id: NULL func ColumnsV(count int32, id string, border bool) { - idArg, idFin := WrapString(id) + idArg, idFin := wrapper.WrapString(id) C.igColumns(C.int(count), idArg, C.bool(border)) idFin() @@ -2725,9 +2730,9 @@ func ColumnsV(count int32, id string, border bool) { // ComboStrV parameter default value hint: // popup_max_height_in_items: -1 func ComboStrV(label string, current_item *int32, items_separated_by_zeros string, popup_max_height_in_items int32) bool { - labelArg, labelFin := WrapString(label) - current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) - items_separated_by_zerosArg, items_separated_by_zerosFin := WrapString(items_separated_by_zeros) + labelArg, labelFin := wrapper.WrapString(label) + current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) + items_separated_by_zerosArg, items_separated_by_zerosFin := wrapper.WrapString(items_separated_by_zeros) defer func() { labelFin() @@ -2740,9 +2745,9 @@ func ComboStrV(label string, current_item *int32, items_separated_by_zeros strin // ComboStrarrV parameter default value hint: // popup_max_height_in_items: -1 func ComboStrarrV(label string, current_item *int32, items []string, items_count int32, popup_max_height_in_items int32) bool { - labelArg, labelFin := WrapString(label) - current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := WrapStringList(items) + labelArg, labelFin := wrapper.WrapString(label) + current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := wrapper.WrapStringList(items) defer func() { labelFin() @@ -2763,7 +2768,7 @@ func CreateContextV(shared_font_atlas FontAtlas) Context { } func InternalCreateNewWindowSettings(name string) WindowSettings { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -2772,8 +2777,8 @@ func InternalCreateNewWindowSettings(name string) WindowSettings { } func InternalDataTypeApplyFromText(buf string, data_type DataType, p_data unsafe.Pointer, format string) bool { - bufArg, bufFin := WrapString(buf) - formatArg, formatFin := WrapString(format) + bufArg, bufFin := wrapper.WrapString(buf) + formatArg, formatFin := wrapper.WrapString(format) defer func() { bufFin() @@ -2795,8 +2800,8 @@ func InternalDataTypeCompare(data_type DataType, arg_1 unsafe.Pointer, arg_2 uns } func InternalDataTypeFormatString(buf string, buf_size int32, data_type DataType, p_data unsafe.Pointer, format string) int { - bufArg, bufFin := WrapString(buf) - formatArg, formatFin := WrapString(format) + bufArg, bufFin := wrapper.WrapString(buf) + formatArg, formatFin := wrapper.WrapString(format) defer func() { bufFin() @@ -2810,7 +2815,7 @@ func InternalDataTypeGetInfo(data_type DataType) DataTypeInfo { } func DebugCheckVersionAndDataLayout(version_str string, sz_io uint64, sz_style uint64, sz_vec2 uint64, sz_vec4 uint64, sz_drawvert uint64, sz_drawidx uint64) bool { - version_strArg, version_strFin := WrapString(version_str) + version_strArg, version_strFin := wrapper.WrapString(version_str) defer func() { version_strFin() @@ -2841,7 +2846,7 @@ func InternalDebugLocateItemResolveWithLastItem() { } func InternalDebugLog(fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igDebugLog(fmtArg) fmtFin() @@ -2852,7 +2857,7 @@ func InternalDebugNodeColumns(columns OldColumns) { } func InternalDebugNodeDockNode(node DockNode, label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igDebugNodeDockNode(node.handle(), labelArg) labelFin() @@ -2863,7 +2868,7 @@ func InternalDebugNodeDrawCmdShowMeshAndBoundingBox(out_draw_list DrawList, draw } func InternalDebugNodeDrawList(window Window, viewport ViewportP, draw_list DrawList, label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igDebugNodeDrawList(window.handle(), viewport.handle(), draw_list.handle(), labelArg) labelFin() @@ -2882,7 +2887,7 @@ func InternalDebugNodeInputTextState(state InputTextState) { } func InternalDebugNodeTabBar(tab_bar TabBar, label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igDebugNodeTabBar(tab_bar.handle(), labelArg) labelFin() @@ -2901,7 +2906,7 @@ func InternalDebugNodeViewport(viewport ViewportP) { } func InternalDebugNodeWindow(window Window, label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igDebugNodeWindow(window.handle(), labelArg) labelFin() @@ -2924,7 +2929,7 @@ func InternalDebugStartItemPicker() { } func DebugTextEncoding(text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.igDebugTextEncoding(textArg) textFin() @@ -2952,8 +2957,8 @@ func InternalDockBuilderAddNodeV(node_id ID, flags DockNodeFlags) ID { } func InternalDockBuilderCopyWindowSettings(src_name string, dst_name string) { - src_nameArg, src_nameFin := WrapString(src_name) - dst_nameArg, dst_nameFin := WrapString(dst_name) + src_nameArg, src_nameFin := wrapper.WrapString(src_name) + dst_nameArg, dst_nameFin := wrapper.WrapString(dst_name) C.igDockBuilderCopyWindowSettings(src_nameArg, dst_nameArg) src_nameFin() @@ -2961,7 +2966,7 @@ func InternalDockBuilderCopyWindowSettings(src_name string, dst_name string) { } func InternalDockBuilderDockWindow(window_name string, node_id ID) { - window_nameArg, window_nameFin := WrapString(window_name) + window_nameArg, window_nameFin := wrapper.WrapString(window_name) C.igDockBuilderDockWindow(window_nameArg, C.ImGuiID(node_id)) window_nameFin() @@ -3113,7 +3118,7 @@ func DockSpaceOverViewportV(viewport Viewport, flags DockNodeFlags, window_class } func InternalDragBehavior(id ID, data_type DataType, p_v unsafe.Pointer, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { formatFin() @@ -3128,9 +3133,9 @@ func InternalDragBehavior(id ID, data_type DataType, p_v unsafe.Pointer, v_speed // v_min: 0.0f // v_speed: 1.0f func DragFloatV(label string, v *float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.float, float32](v) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3147,13 +3152,13 @@ func DragFloatV(label string, v *float32, v_speed float32, v_min float32, v_max // v_min: 0.0f // v_speed: 1.0f func DragFloat2V(label string, v *[2]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3174,13 +3179,13 @@ func DragFloat2V(label string, v *[2]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloat3V(label string, v *[3]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3201,13 +3206,13 @@ func DragFloat3V(label string, v *[3]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloat4V(label string, v *[4]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3229,11 +3234,11 @@ func DragFloat4V(label string, v *[4]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloatRange2V(label string, v_current_min *float32, v_current_max *float32, v_speed float32, v_min float32, v_max float32, format string, format_max string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - v_current_minArg, v_current_minFin := WrapNumberPtr[C.float, float32](v_current_min) - v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.float, float32](v_current_max) - formatArg, formatFin := WrapString(format) - format_maxArg, format_maxFin := WrapString(format_max) + labelArg, labelFin := wrapper.WrapString(label) + v_current_minArg, v_current_minFin := wrapper.WrapNumberPtr[C.float, float32](v_current_min) + v_current_maxArg, v_current_maxFin := wrapper.WrapNumberPtr[C.float, float32](v_current_max) + formatArg, formatFin := wrapper.WrapString(format) + format_maxArg, format_maxFin := wrapper.WrapString(format_max) defer func() { labelFin() @@ -3252,9 +3257,9 @@ func DragFloatRange2V(label string, v_current_min *float32, v_current_max *float // v_min: 0 // v_speed: 1.0f func DragIntV(label string, v *int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3271,13 +3276,13 @@ func DragIntV(label string, v *int32, v_speed float32, v_min int32, v_max int32, // v_min: 0 // v_speed: 1.0f func DragInt2V(label string, v *[2]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3298,13 +3303,13 @@ func DragInt2V(label string, v *[2]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragInt3V(label string, v *[3]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3325,13 +3330,13 @@ func DragInt3V(label string, v *[3]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragInt4V(label string, v *[4]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3353,11 +3358,11 @@ func DragInt4V(label string, v *[4]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragIntRange2V(label string, v_current_min *int32, v_current_max *int32, v_speed float32, v_min int32, v_max int32, format string, format_max string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - v_current_minArg, v_current_minFin := WrapNumberPtr[C.int, int32](v_current_min) - v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.int, int32](v_current_max) - formatArg, formatFin := WrapString(format) - format_maxArg, format_maxFin := WrapString(format_max) + labelArg, labelFin := wrapper.WrapString(label) + v_current_minArg, v_current_minFin := wrapper.WrapNumberPtr[C.int, int32](v_current_min) + v_current_maxArg, v_current_maxFin := wrapper.WrapNumberPtr[C.int, int32](v_current_max) + formatArg, formatFin := wrapper.WrapString(format) + format_maxArg, format_maxFin := wrapper.WrapString(format_max) defer func() { labelFin() @@ -3376,8 +3381,8 @@ func DragIntRange2V(label string, v_current_min *int32, v_current_max *int32, v_ // p_min: NULL // v_speed: 1.0f func DragScalarV(label string, data_type DataType, p_data unsafe.Pointer, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3393,8 +3398,8 @@ func DragScalarV(label string, data_type DataType, p_data unsafe.Pointer, v_spee // p_min: NULL // v_speed: 1.0f func DragScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -3517,7 +3522,7 @@ func InternalFindOrCreateColumns(window Window, id ID) OldColumns { // InternalFindRenderedTextEndV parameter default value hint: // text_end: NULL func InternalFindRenderedTextEndV(text string) string { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) defer func() { textFin() @@ -3526,7 +3531,7 @@ func InternalFindRenderedTextEndV(text string) string { } func InternalFindSettingsHandler(type_name string) SettingsHandler { - type_nameArg, type_nameFin := WrapString(type_name) + type_nameArg, type_nameFin := wrapper.WrapString(type_name) defer func() { type_nameFin() @@ -3547,7 +3552,7 @@ func InternalFindWindowByID(id ID) Window { } func InternalFindWindowByName(name string) Window { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -3646,7 +3651,7 @@ func ColumnsCount() int { } func InternalColumnsID(str_id string, count int32) ID { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -3824,8 +3829,8 @@ func InternalIDWithSeedInt(n int32, seed ID) ID { } func InternalIDWithSeedStr(str_id_begin string, str_id_end string, seed ID) ID { - str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) - str_id_endArg, str_id_endFin := WrapString(str_id_end) + str_id_beginArg, str_id_beginFin := wrapper.WrapString(str_id_begin) + str_id_endArg, str_id_endFin := wrapper.WrapString(str_id_end) defer func() { str_id_beginFin() @@ -3839,7 +3844,7 @@ func IDPtr(ptr_id unsafe.Pointer) ID { } func IDStr(str_id string) ID { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -3848,8 +3853,8 @@ func IDStr(str_id string) ID { } func IDStrStr(str_id_begin string, str_id_end string) ID { - str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) - str_id_endArg, str_id_endFin := WrapString(str_id_end) + str_id_beginArg, str_id_beginFin := wrapper.WrapString(str_id_begin) + str_id_endArg, str_id_endFin := wrapper.WrapString(str_id_end) defer func() { str_id_beginFin() @@ -3912,7 +3917,7 @@ func InternalItemStatusFlags() ItemStatusFlags { } func InternalKeyChordName(key_chord KeyChord, out_buf string, out_buf_size int32) { - out_bufArg, out_bufFin := WrapString(out_buf) + out_bufArg, out_bufFin := wrapper.WrapString(out_buf) C.igGetKeyChordName(C.ImGuiKeyChord(key_chord), out_bufArg, C.int(out_buf_size)) out_bufFin() @@ -4083,8 +4088,8 @@ func TreeNodeToLabelSpacing() float32 { } func InternalTypematicRepeatRate(flags InputFlags, repeat_delay *float32, repeat_rate *float32) { - repeat_delayArg, repeat_delayFin := WrapNumberPtr[C.float, float32](repeat_delay) - repeat_rateArg, repeat_rateFin := WrapNumberPtr[C.float, float32](repeat_rate) + repeat_delayArg, repeat_delayFin := wrapper.WrapNumberPtr[C.float, float32](repeat_delay) + repeat_rateArg, repeat_rateFin := wrapper.WrapNumberPtr[C.float, float32](repeat_rate) C.igGetTypematicRepeatRate(C.ImGuiInputFlags(flags), repeat_delayArg, repeat_rateArg) repeat_delayFin() @@ -4299,8 +4304,8 @@ func InternalImExponentialMovingAverage(avg float32, sample float32, n int32) fl // out_file_size: NULL // padding_bytes: 0 func InternalImFileLoadToMemoryV(filename string, mode string, out_file_size *uint64, padding_bytes int32) unsafe.Pointer { - filenameArg, filenameFin := WrapString(filename) - modeArg, modeFin := WrapString(mode) + filenameArg, filenameFin := wrapper.WrapString(filename) + modeArg, modeFin := wrapper.WrapString(mode) defer func() { filenameFin() @@ -4360,8 +4365,8 @@ func InternalImFontAtlasGetBuilderForStbTruetype() FontBuilderIO { } func InternalImFormatString(buf string, buf_size uint64, fmt string) int { - bufArg, bufFin := WrapString(buf) - fmtArg, fmtFin := WrapString(fmt) + bufArg, bufFin := wrapper.WrapString(buf) + fmtArg, fmtFin := wrapper.WrapString(fmt) defer func() { bufFin() @@ -4371,9 +4376,9 @@ func InternalImFormatString(buf string, buf_size uint64, fmt string) int { } func InternalImFormatStringToTempBuffer(out_buf []string, out_buf_end []string, fmt string) { - out_bufArg, out_bufFin := WrapStringList(out_buf) - out_buf_endArg, out_buf_endFin := WrapStringList(out_buf_end) - fmtArg, fmtFin := WrapString(fmt) + out_bufArg, out_bufFin := wrapper.WrapStringList(out_buf) + out_buf_endArg, out_buf_endFin := wrapper.WrapStringList(out_buf_end) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igImFormatStringToTempBuffer(out_bufArg, out_buf_endArg, fmtArg) out_bufFin() @@ -4395,7 +4400,7 @@ func InternalImHashDataV(data unsafe.Pointer, data_size uint64, seed ID) ID { // data_size: 0 // seed: 0 func InternalImHashStrV(data string, data_size uint64, seed ID) ID { - dataArg, dataFin := WrapString(data) + dataArg, dataFin := wrapper.WrapString(data) defer func() { dataFin() @@ -4521,7 +4526,7 @@ func InternalImMul(lhs Vec2, rhs Vec2) Vec2 { } func InternalImParseFormatFindEnd(format string) string { - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { formatFin() @@ -4530,7 +4535,7 @@ func InternalImParseFormatFindEnd(format string) string { } func InternalImParseFormatFindStart(format string) string { - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { formatFin() @@ -4539,7 +4544,7 @@ func InternalImParseFormatFindStart(format string) string { } func InternalImParseFormatPrecision(format string, default_value int32) int { - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { formatFin() @@ -4548,8 +4553,8 @@ func InternalImParseFormatPrecision(format string, default_value int32) int { } func InternalImParseFormatSanitizeForPrinting(fmt_in string, fmt_out string, fmt_out_size uint64) { - fmt_inArg, fmt_inFin := WrapString(fmt_in) - fmt_outArg, fmt_outFin := WrapString(fmt_out) + fmt_inArg, fmt_inFin := wrapper.WrapString(fmt_in) + fmt_outArg, fmt_outFin := wrapper.WrapString(fmt_out) C.igImParseFormatSanitizeForPrinting(fmt_inArg, fmt_outArg, C.xulong(fmt_out_size)) fmt_inFin() @@ -4557,8 +4562,8 @@ func InternalImParseFormatSanitizeForPrinting(fmt_in string, fmt_out string, fmt } func InternalImParseFormatSanitizeForScanning(fmt_in string, fmt_out string, fmt_out_size uint64) string { - fmt_inArg, fmt_inFin := WrapString(fmt_in) - fmt_outArg, fmt_outFin := WrapString(fmt_out) + fmt_inArg, fmt_inFin := wrapper.WrapString(fmt_in) + fmt_outArg, fmt_outFin := wrapper.WrapString(fmt_out) defer func() { fmt_inFin() @@ -4568,8 +4573,8 @@ func InternalImParseFormatSanitizeForScanning(fmt_in string, fmt_out string, fmt } func InternalImParseFormatTrimDecorations(format string, buf string, buf_size uint64) string { - formatArg, formatFin := WrapString(format) - bufArg, bufFin := WrapString(buf) + formatArg, formatFin := wrapper.WrapString(format) + bufArg, bufFin := wrapper.WrapString(buf) defer func() { formatFin() @@ -4618,7 +4623,7 @@ func InternalImSignDouble(x float64) float64 { } func InternalImStrSkipBlank(str string) string { - strArg, strFin := WrapString(str) + strArg, strFin := wrapper.WrapString(str) defer func() { strFin() @@ -4627,7 +4632,7 @@ func InternalImStrSkipBlank(str string) string { } func InternalImStrTrimBlanks(str string) { - strArg, strFin := WrapString(str) + strArg, strFin := wrapper.WrapString(str) C.igImStrTrimBlanks(strArg) strFin() @@ -4638,7 +4643,7 @@ func InternalImStrbolW(buf_mid_line *Wchar, buf_begin *Wchar) *Wchar { } func InternalImStrdup(str string) string { - strArg, strFin := WrapString(str) + strArg, strFin := wrapper.WrapString(str) defer func() { strFin() @@ -4647,8 +4652,8 @@ func InternalImStrdup(str string) string { } func InternalImStrdupcpy(dst string, p_dst_size *uint64, str string) string { - dstArg, dstFin := WrapString(dst) - strArg, strFin := WrapString(str) + dstArg, dstFin := wrapper.WrapString(dst) + strArg, strFin := wrapper.WrapString(str) defer func() { dstFin() @@ -4658,8 +4663,8 @@ func InternalImStrdupcpy(dst string, p_dst_size *uint64, str string) string { } func InternalImStreolRange(str string, str_end string) string { - strArg, strFin := WrapString(str) - str_endArg, str_endFin := WrapString(str_end) + strArg, strFin := wrapper.WrapString(str) + str_endArg, str_endFin := wrapper.WrapString(str_end) defer func() { strFin() @@ -4669,8 +4674,8 @@ func InternalImStreolRange(str string, str_end string) string { } func InternalImStricmp(str1 string, str2 string) int { - str1Arg, str1Fin := WrapString(str1) - str2Arg, str2Fin := WrapString(str2) + str1Arg, str1Fin := wrapper.WrapString(str1) + str2Arg, str2Fin := wrapper.WrapString(str2) defer func() { str1Fin() @@ -4680,10 +4685,10 @@ func InternalImStricmp(str1 string, str2 string) int { } func InternalImStristr(haystack string, haystack_end string, needle string, needle_end string) string { - haystackArg, haystackFin := WrapString(haystack) - haystack_endArg, haystack_endFin := WrapString(haystack_end) - needleArg, needleFin := WrapString(needle) - needle_endArg, needle_endFin := WrapString(needle_end) + haystackArg, haystackFin := wrapper.WrapString(haystack) + haystack_endArg, haystack_endFin := wrapper.WrapString(haystack_end) + needleArg, needleFin := wrapper.WrapString(needle) + needle_endArg, needle_endFin := wrapper.WrapString(needle_end) defer func() { haystackFin() @@ -4699,8 +4704,8 @@ func InternalImStrlenW(str *Wchar) int { } func InternalImStrncpy(dst string, src string, count uint64) { - dstArg, dstFin := WrapString(dst) - srcArg, srcFin := WrapString(src) + dstArg, dstFin := wrapper.WrapString(dst) + srcArg, srcFin := wrapper.WrapString(src) C.igImStrncpy(dstArg, srcArg, C.xulong(count)) dstFin() @@ -4708,8 +4713,8 @@ func InternalImStrncpy(dst string, src string, count uint64) { } func InternalImStrnicmp(str1 string, str2 string, count uint64) int { - str1Arg, str1Fin := WrapString(str1) - str2Arg, str2Fin := WrapString(str2) + str1Arg, str1Fin := wrapper.WrapString(str1) + str2Arg, str2Fin := wrapper.WrapString(str2) defer func() { str1Fin() @@ -4719,9 +4724,9 @@ func InternalImStrnicmp(str1 string, str2 string, count uint64) int { } func InternalImTextCharFromUtf8(out_char *uint32, in_text string, in_text_end string) int { - out_charArg, out_charFin := WrapNumberPtr[C.uint, uint32](out_char) - in_textArg, in_textFin := WrapString(in_text) - in_text_endArg, in_text_endFin := WrapString(in_text_end) + out_charArg, out_charFin := wrapper.WrapNumberPtr[C.uint, uint32](out_char) + in_textArg, in_textFin := wrapper.WrapString(in_text) + in_text_endArg, in_text_endFin := wrapper.WrapString(in_text_end) defer func() { out_charFin() @@ -4732,8 +4737,8 @@ func InternalImTextCharFromUtf8(out_char *uint32, in_text string, in_text_end st } func InternalImTextCountCharsFromUtf8(in_text string, in_text_end string) int { - in_textArg, in_textFin := WrapString(in_text) - in_text_endArg, in_text_endFin := WrapString(in_text_end) + in_textArg, in_textFin := wrapper.WrapString(in_text) + in_text_endArg, in_text_endFin := wrapper.WrapString(in_text_end) defer func() { in_textFin() @@ -4743,8 +4748,8 @@ func InternalImTextCountCharsFromUtf8(in_text string, in_text_end string) int { } func InternalImTextCountUtf8BytesFromChar(in_text string, in_text_end string) int { - in_textArg, in_textFin := WrapString(in_text) - in_text_endArg, in_text_endFin := WrapString(in_text_end) + in_textArg, in_textFin := wrapper.WrapString(in_text) + in_text_endArg, in_text_endFin := wrapper.WrapString(in_text_end) defer func() { in_textFin() @@ -4758,7 +4763,7 @@ func InternalImTextCountUtf8BytesFromStr(in_text *Wchar, in_text_end *Wchar) int } func InternalImTextStrToUtf8(out_buf string, out_buf_size int32, in_text *Wchar, in_text_end *Wchar) int { - out_bufArg, out_bufFin := WrapString(out_buf) + out_bufArg, out_bufFin := wrapper.WrapString(out_buf) defer func() { out_bufFin() @@ -4771,9 +4776,9 @@ func InternalImTriangleArea(a Vec2, b Vec2, c Vec2) float32 { } func InternalImTriangleBarycentricCoords(a Vec2, b Vec2, c Vec2, p Vec2, out_u *float32, out_v *float32, out_w *float32) { - out_uArg, out_uFin := WrapNumberPtr[C.float, float32](out_u) - out_vArg, out_vFin := WrapNumberPtr[C.float, float32](out_v) - out_wArg, out_wFin := WrapNumberPtr[C.float, float32](out_w) + out_uArg, out_uFin := wrapper.WrapNumberPtr[C.float, float32](out_u) + out_vArg, out_vFin := wrapper.WrapNumberPtr[C.float, float32](out_v) + out_wArg, out_wFin := wrapper.WrapNumberPtr[C.float, float32](out_w) C.igImTriangleBarycentricCoords(a.toC(), b.toC(), c.toC(), p.toC(), out_uArg, out_vArg, out_wArg) out_uFin() @@ -4815,7 +4820,7 @@ func ImageV(user_texture_id TextureID, size Vec2, uv0 Vec2, uv1 Vec2, tint_col V // uv0: ImVec2(0,0) // uv1: ImVec2(1,1) func ImageButtonV(str_id string, user_texture_id TextureID, size Vec2, uv0 Vec2, uv1 Vec2, bg_col Vec4, tint_col Vec4) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -4845,9 +4850,9 @@ func InternalInitialize() { // step: 0.0 // step_fast: 0.0 func InputDoubleV(label string, v *float64, step float64, step_fast float64, format string, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.double, float64](v) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.double, float64](v) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -4863,9 +4868,9 @@ func InputDoubleV(label string, v *float64, step float64, step_fast float64, for // step: 0.0f // step_fast: 0.0f func InputFloatV(label string, v *float32, step float32, step_fast float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.float, float32](v) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -4879,13 +4884,13 @@ func InputFloatV(label string, v *float32, step float32, step_fast float32, form // flags: 0 // format: "%.3f" func InputFloat2V(label string, v *[2]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -4903,13 +4908,13 @@ func InputFloat2V(label string, v *[2]float32, format string, flags InputTextFla // flags: 0 // format: "%.3f" func InputFloat3V(label string, v *[3]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -4927,13 +4932,13 @@ func InputFloat3V(label string, v *[3]float32, format string, flags InputTextFla // flags: 0 // format: "%.3f" func InputFloat4V(label string, v *[4]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -4952,8 +4957,8 @@ func InputFloat4V(label string, v *[4]float32, format string, flags InputTextFla // step: 1 // step_fast: 100 func InputIntV(label string, v *int32, step int32, step_fast int32, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -4965,7 +4970,7 @@ func InputIntV(label string, v *int32, step int32, step_fast int32, flags InputT // InputInt2V parameter default value hint: // flags: 0 func InputInt2V(label string, v *[2]int32, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -4985,7 +4990,7 @@ func InputInt2V(label string, v *[2]int32, flags InputTextFlags) bool { // InputInt3V parameter default value hint: // flags: 0 func InputInt3V(label string, v *[3]int32, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -5005,7 +5010,7 @@ func InputInt3V(label string, v *[3]int32, flags InputTextFlags) bool { // InputInt4V parameter default value hint: // flags: 0 func InputInt4V(label string, v *[4]int32, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -5028,8 +5033,8 @@ func InputInt4V(label string, v *[4]int32, flags InputTextFlags) bool { // p_step: NULL // p_step_fast: NULL func InputScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_step unsafe.Pointer, p_step_fast unsafe.Pointer, format string, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -5044,8 +5049,8 @@ func InputScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_ste // p_step: NULL // p_step_fast: NULL func InputScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_step unsafe.Pointer, p_step_fast unsafe.Pointer, format string, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -5057,7 +5062,7 @@ func InputScalarNV(label string, data_type DataType, p_data unsafe.Pointer, comp // InvisibleButtonV parameter default value hint: // flags: 0 func InvisibleButtonV(str_id string, size Vec2, flags ButtonFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -5275,7 +5280,7 @@ func InternalIsPopupOpenID(id ID, popup_flags PopupFlags) bool { // IsPopupOpenStrV parameter default value hint: // flags: 0 func IsPopupOpenStrV(str_id string, flags PopupFlags) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -5352,8 +5357,8 @@ func InternalKeepAliveID(id ID) { } func LabelText(label string, fmt string) { - labelArg, labelFin := WrapString(label) - fmtArg, fmtFin := WrapString(fmt) + labelArg, labelFin := wrapper.WrapString(label) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igLabelText(labelArg, fmtArg) labelFin() @@ -5363,9 +5368,9 @@ func LabelText(label string, fmt string) { // ListBoxStrarrV parameter default value hint: // height_in_items: -1 func ListBoxStrarrV(label string, current_item *int32, items []string, items_count int32, height_in_items int32) bool { - labelArg, labelFin := WrapString(label) - current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := WrapStringList(items) + labelArg, labelFin := wrapper.WrapString(label) + current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := wrapper.WrapStringList(items) defer func() { labelFin() @@ -5376,7 +5381,7 @@ func ListBoxStrarrV(label string, current_item *int32, items []string, items_cou } func LoadIniSettingsFromDisk(ini_filename string) { - ini_filenameArg, ini_filenameFin := WrapString(ini_filename) + ini_filenameArg, ini_filenameFin := wrapper.WrapString(ini_filename) C.igLoadIniSettingsFromDisk(ini_filenameArg) ini_filenameFin() @@ -5385,7 +5390,7 @@ func LoadIniSettingsFromDisk(ini_filename string) { // LoadIniSettingsFromMemoryV parameter default value hint: // ini_size: 0 func LoadIniSettingsFromMemoryV(ini_data string, ini_size uint64) { - ini_dataArg, ini_dataFin := WrapString(ini_data) + ini_dataArg, ini_dataFin := wrapper.WrapString(ini_data) C.igLoadIniSettingsFromMemory(ini_dataArg, C.xulong(ini_size)) ini_dataFin() @@ -5415,7 +5420,7 @@ func LogFinish() { // text_end: NULL func InternalLogRenderedTextV(ref_pos *Vec2, text string) { ref_posArg, ref_posFin := wrap[C.ImVec2, *Vec2](ref_pos) - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igLogRenderedTextV(ref_posArg, textArg) ref_posFin() @@ -5423,8 +5428,8 @@ func InternalLogRenderedTextV(ref_pos *Vec2, text string) { } func InternalLogSetNextTextDecoration(prefix string, suffix string) { - prefixArg, prefixFin := WrapString(prefix) - suffixArg, suffixFin := WrapString(suffix) + prefixArg, prefixFin := wrapper.WrapString(prefix) + suffixArg, suffixFin := wrapper.WrapString(suffix) C.igLogSetNextTextDecoration(prefixArg, suffixArg) prefixFin() @@ -5432,7 +5437,7 @@ func InternalLogSetNextTextDecoration(prefix string, suffix string) { } func LogText(fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igLogText(fmtArg) fmtFin() @@ -5454,7 +5459,7 @@ func LogToClipboardV(auto_open_depth int32) { // auto_open_depth: -1 // filename: NULL func LogToFileV(auto_open_depth int32, filename string) { - filenameArg, filenameFin := WrapString(filename) + filenameArg, filenameFin := wrapper.WrapString(filename) C.igLogToFile(C.int(auto_open_depth), filenameArg) filenameFin() @@ -5491,9 +5496,9 @@ func MemFree(ptr unsafe.Pointer) { // selected: false // shortcut: NULL func InternalMenuItemExV(label string, icon string, shortcut string, selected bool, enabled bool) bool { - labelArg, labelFin := WrapString(label) - iconArg, iconFin := WrapString(icon) - shortcutArg, shortcutFin := WrapString(shortcut) + labelArg, labelFin := wrapper.WrapString(label) + iconArg, iconFin := wrapper.WrapString(icon) + shortcutArg, shortcutFin := wrapper.WrapString(shortcut) defer func() { labelFin() @@ -5508,8 +5513,8 @@ func InternalMenuItemExV(label string, icon string, shortcut string, selected bo // selected: false // shortcut: NULL func MenuItemBoolV(label string, shortcut string, selected bool, enabled bool) bool { - labelArg, labelFin := WrapString(label) - shortcutArg, shortcutFin := WrapString(shortcut) + labelArg, labelFin := wrapper.WrapString(label) + shortcutArg, shortcutFin := wrapper.WrapString(shortcut) defer func() { labelFin() @@ -5521,9 +5526,9 @@ func MenuItemBoolV(label string, shortcut string, selected bool, enabled bool) b // MenuItemBoolPtrV parameter default value hint: // enabled: true func MenuItemBoolPtrV(label string, shortcut string, p_selected *bool, enabled bool) bool { - labelArg, labelFin := WrapString(label) - shortcutArg, shortcutFin := WrapString(shortcut) - p_selectedArg, p_selectedFin := WrapBool(p_selected) + labelArg, labelFin := wrapper.WrapString(label) + shortcutArg, shortcutFin := wrapper.WrapString(shortcut) + p_selectedArg, p_selectedFin := wrapper.WrapBool(p_selected) defer func() { labelFin() @@ -5595,7 +5600,7 @@ func InternalOpenPopupExV(id ID, popup_flags PopupFlags) { // popup_flags: 1 // str_id: NULL func OpenPopupOnItemClickV(str_id string, popup_flags PopupFlags) { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) C.igOpenPopupOnItemClick(str_idArg, C.ImGuiPopupFlags(popup_flags)) str_idFin() @@ -5610,7 +5615,7 @@ func OpenPopupIDV(id ID, popup_flags PopupFlags) { // OpenPopupStrV parameter default value hint: // popup_flags: 0 func OpenPopupStrV(str_id string, popup_flags PopupFlags) { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) C.igOpenPopup_Str(str_idArg, C.ImGuiPopupFlags(popup_flags)) str_idFin() @@ -5624,8 +5629,8 @@ func OpenPopupStrV(str_id string, popup_flags PopupFlags) { // stride: sizeof(float) // values_offset: 0 func PlotHistogramFloatPtrV(label string, values []float32, values_count int32, values_offset int32, overlay_text string, scale_min float32, scale_max float32, graph_size Vec2, stride int32) { - labelArg, labelFin := WrapString(label) - overlay_textArg, overlay_textFin := WrapString(overlay_text) + labelArg, labelFin := wrapper.WrapString(label) + overlay_textArg, overlay_textFin := wrapper.WrapString(overlay_text) C.igPlotHistogram_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count), C.int(values_offset), overlay_textArg, C.float(scale_min), C.float(scale_max), graph_size.toC(), C.int(stride)) labelFin() @@ -5640,8 +5645,8 @@ func PlotHistogramFloatPtrV(label string, values []float32, values_count int32, // stride: sizeof(float) // values_offset: 0 func PlotLinesFloatPtrV(label string, values []float32, values_count int32, values_offset int32, overlay_text string, scale_min float32, scale_max float32, graph_size Vec2, stride int32) { - labelArg, labelFin := WrapString(label) - overlay_textArg, overlay_textFin := WrapString(overlay_text) + labelArg, labelFin := wrapper.WrapString(label) + overlay_textArg, overlay_textFin := wrapper.WrapString(overlay_text) C.igPlotLines_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count), C.int(values_offset), overlay_textArg, C.float(scale_min), C.float(scale_max), graph_size.toC(), C.int(stride)) labelFin() @@ -5704,7 +5709,7 @@ func PopTextWrapPos() { // overlay: NULL // size_arg: ImVec2(-FLT_MIN,0) func ProgressBarV(fraction float32, size_arg Vec2, overlay string) { - overlayArg, overlayFin := WrapString(overlay) + overlayArg, overlayFin := wrapper.WrapString(overlay) C.igProgressBar(C.float(fraction), size_arg.toC(), overlayArg) overlayFin() @@ -5743,15 +5748,15 @@ func PushIDPtr(ptr_id unsafe.Pointer) { } func PushIDStr(str_id string) { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) C.igPushID_Str(str_idArg) str_idFin() } func PushIDStrStr(str_id_begin string, str_id_end string) { - str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) - str_id_endArg, str_id_endFin := WrapString(str_id_end) + str_id_beginArg, str_id_beginFin := wrapper.WrapString(str_id_begin) + str_id_endArg, str_id_endFin := wrapper.WrapString(str_id_end) C.igPushID_StrStr(str_id_beginArg, str_id_endArg) str_id_beginFin() @@ -5801,7 +5806,7 @@ func PushTextWrapPosV(wrap_local_pos_x float32) { } func RadioButtonBool(label string, active bool) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -5810,8 +5815,8 @@ func RadioButtonBool(label string, active bool) bool { } func RadioButtonIntPtr(label string, v *int32, v_button int32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -5825,7 +5830,7 @@ func InternalRemoveContextHook(context Context, hook_to_remove ID) { } func InternalRemoveSettingsHandler(type_name string) { - type_nameArg, type_nameFin := WrapString(type_name) + type_nameArg, type_nameFin := wrapper.WrapString(type_name) C.igRemoveSettingsHandler(type_nameArg) type_nameFin() @@ -5910,14 +5915,14 @@ func InternalRenderRectFilledWithHole(draw_list DrawList, outer Rect, inner Rect // hide_text_after_hash: true // text_end: NULL func InternalRenderTextV(pos Vec2, text string, hide_text_after_hash bool) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igRenderTextV(pos.toC(), textArg, C.bool(hide_text_after_hash)) textFin() } func InternalRenderTextEllipsis(draw_list DrawList, pos_min Vec2, pos_max Vec2, clip_max_x float32, ellipsis_max_x float32, text string, text_size_if_known *Vec2) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextEllipsis(draw_list.handle(), pos_min.toC(), pos_max.toC(), C.float(clip_max_x), C.float(ellipsis_max_x), textArg, text_size_if_knownArg) @@ -5926,7 +5931,7 @@ func InternalRenderTextEllipsis(draw_list DrawList, pos_min Vec2, pos_max Vec2, } func InternalRenderTextWrapped(pos Vec2, text string, wrap_width float32) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igRenderTextWrapped(pos.toC(), textArg, C.float(wrap_width)) textFin() @@ -5946,7 +5951,7 @@ func SameLineV(offset_from_start_x float32, spacing float32) { } func SaveIniSettingsToDisk(ini_filename string) { - ini_filenameArg, ini_filenameFin := WrapString(ini_filename) + ini_filenameArg, ini_filenameFin := wrapper.WrapString(ini_filename) C.igSaveIniSettingsToDisk(ini_filenameArg) ini_filenameFin() @@ -6000,7 +6005,7 @@ func InternalScrollbar(axis Axis) { // selected: false // size: ImVec2(0,0) func SelectableBoolV(label string, selected bool, flags SelectableFlags, size Vec2) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -6012,8 +6017,8 @@ func SelectableBoolV(label string, selected bool, flags SelectableFlags, size Ve // flags: 0 // size: ImVec2(0,0) func SelectableBoolPtrV(label string, p_selected *bool, flags SelectableFlags, size Vec2) bool { - labelArg, labelFin := WrapString(label) - p_selectedArg, p_selectedFin := WrapBool(p_selected) + labelArg, labelFin := wrapper.WrapString(label) + p_selectedArg, p_selectedFin := wrapper.WrapBool(p_selected) defer func() { labelFin() @@ -6031,15 +6036,15 @@ func InternalSeparatorEx(flags SeparatorFlags) { } func SeparatorText(label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igSeparatorText(labelArg) labelFin() } func InternalSeparatorTextEx(id ID, label string, label_end string, extra_width float32) { - labelArg, labelFin := WrapString(label) - label_endArg, label_endFin := WrapString(label_end) + labelArg, labelFin := wrapper.WrapString(label) + label_endArg, label_endFin := wrapper.WrapString(label_end) C.igSeparatorTextEx(C.ImGuiID(id), labelArg, label_endArg, C.float(extra_width)) labelFin() @@ -6055,7 +6060,7 @@ func InternalSetActiveIdUsingAllKeyboardKeys() { } func SetClipboardText(text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.igSetClipboardText(textArg) textFin() @@ -6104,7 +6109,7 @@ func SetCursorScreenPos(pos Vec2) { // SetDragDropPayloadV parameter default value hint: // cond: 0 func SetDragDropPayloadV(typeArg string, data unsafe.Pointer, sz uint64, cond Cond) bool { - typeArgArg, typeArgFin := WrapString(typeArg) + typeArgArg, typeArgFin := wrapper.WrapString(typeArg) defer func() { typeArgFin() @@ -6285,14 +6290,14 @@ func InternalSetShortcutRoutingV(key_chord KeyChord, owner_id ID, flags InputFla } func SetTabItemClosed(tab_or_docked_window_label string) { - tab_or_docked_window_labelArg, tab_or_docked_window_labelFin := WrapString(tab_or_docked_window_label) + tab_or_docked_window_labelArg, tab_or_docked_window_labelFin := wrapper.WrapString(tab_or_docked_window_label) C.igSetTabItemClosed(tab_or_docked_window_labelArg) tab_or_docked_window_labelFin() } func SetTooltip(fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igSetTooltip(fmtArg) fmtFin() @@ -6311,7 +6316,7 @@ func SetWindowCollapsedBoolV(collapsed bool, cond Cond) { // SetWindowCollapsedStrV parameter default value hint: // cond: 0 func SetWindowCollapsedStrV(name string, collapsed bool, cond Cond) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.igSetWindowCollapsed_Str(nameArg, C.bool(collapsed), C.ImGuiCond(cond)) nameFin() @@ -6332,7 +6337,7 @@ func SetWindowFocusNil() { } func SetWindowFocusStr(name string) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.igSetWindowFocus_Str(nameArg) nameFin() @@ -6353,7 +6358,7 @@ func InternalSetWindowHitTestHole(window Window, pos Vec2, size Vec2) { // SetWindowPosStrV parameter default value hint: // cond: 0 func SetWindowPosStrV(name string, pos Vec2, cond Cond) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.igSetWindowPos_Str(nameArg, pos.toC(), C.ImGuiCond(cond)) nameFin() @@ -6374,7 +6379,7 @@ func InternalSetWindowPosWindowPtrV(window Window, pos Vec2, cond Cond) { // SetWindowSizeStrV parameter default value hint: // cond: 0 func SetWindowSizeStrV(name string, size Vec2, cond Cond) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.igSetWindowSize_Str(nameArg, size.toC(), C.ImGuiCond(cond)) nameFin() @@ -6414,7 +6419,7 @@ func InternalShortcutV(key_chord KeyChord, owner_id ID, flags InputFlags) bool { // ShowAboutWindowV parameter default value hint: // p_open: NULL func ShowAboutWindowV(p_open *bool) { - p_openArg, p_openFin := WrapBool(p_open) + p_openArg, p_openFin := wrapper.WrapBool(p_open) C.igShowAboutWindow(p_openArg) p_openFin() @@ -6423,7 +6428,7 @@ func ShowAboutWindowV(p_open *bool) { // ShowDebugLogWindowV parameter default value hint: // p_open: NULL func ShowDebugLogWindowV(p_open *bool) { - p_openArg, p_openFin := WrapBool(p_open) + p_openArg, p_openFin := wrapper.WrapBool(p_open) C.igShowDebugLogWindow(p_openArg) p_openFin() @@ -6432,7 +6437,7 @@ func ShowDebugLogWindowV(p_open *bool) { // ShowDemoWindowV parameter default value hint: // p_open: NULL func ShowDemoWindowV(p_open *bool) { - p_openArg, p_openFin := WrapBool(p_open) + p_openArg, p_openFin := wrapper.WrapBool(p_open) C.igShowDemoWindow(p_openArg) p_openFin() @@ -6443,7 +6448,7 @@ func InternalShowFontAtlas(atlas FontAtlas) { } func ShowFontSelector(label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igShowFontSelector(labelArg) labelFin() @@ -6452,7 +6457,7 @@ func ShowFontSelector(label string) { // ShowMetricsWindowV parameter default value hint: // p_open: NULL func ShowMetricsWindowV(p_open *bool) { - p_openArg, p_openFin := WrapBool(p_open) + p_openArg, p_openFin := wrapper.WrapBool(p_open) C.igShowMetricsWindow(p_openArg) p_openFin() @@ -6461,7 +6466,7 @@ func ShowMetricsWindowV(p_open *bool) { // ShowStackToolWindowV parameter default value hint: // p_open: NULL func ShowStackToolWindowV(p_open *bool) { - p_openArg, p_openFin := WrapBool(p_open) + p_openArg, p_openFin := wrapper.WrapBool(p_open) C.igShowStackToolWindow(p_openArg) p_openFin() @@ -6474,7 +6479,7 @@ func ShowStyleEditorV(ref Style) { } func ShowStyleSelector(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -6500,9 +6505,9 @@ func InternalShutdown() { // v_degrees_max: +360.0f // v_degrees_min: -360.0f func SliderAngleV(label string, v_rad *float32, v_degrees_min float32, v_degrees_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - v_radArg, v_radFin := WrapNumberPtr[C.float, float32](v_rad) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + v_radArg, v_radFin := wrapper.WrapNumberPtr[C.float, float32](v_rad) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6513,7 +6518,7 @@ func SliderAngleV(label string, v_rad *float32, v_degrees_min float32, v_degrees } func InternalSliderBehavior(bb Rect, id ID, data_type DataType, p_v unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags, out_grab_bb *Rect) bool { - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) out_grab_bbArg, out_grab_bbFin := wrap[C.ImRect, *Rect](out_grab_bb) defer func() { @@ -6527,9 +6532,9 @@ func InternalSliderBehavior(bb Rect, id ID, data_type DataType, p_v unsafe.Point // flags: 0 // format: "%.3f" func SliderFloatV(label string, v *float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.float, float32](v) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6543,13 +6548,13 @@ func SliderFloatV(label string, v *float32, v_min float32, v_max float32, format // flags: 0 // format: "%.3f" func SliderFloat2V(label string, v *[2]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6567,13 +6572,13 @@ func SliderFloat2V(label string, v *[2]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%.3f" func SliderFloat3V(label string, v *[3]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6591,13 +6596,13 @@ func SliderFloat3V(label string, v *[3]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%.3f" func SliderFloat4V(label string, v *[4]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6615,9 +6620,9 @@ func SliderFloat4V(label string, v *[4]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%d" func SliderIntV(label string, v *int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6631,13 +6636,13 @@ func SliderIntV(label string, v *int32, v_min int32, v_max int32, format string, // flags: 0 // format: "%d" func SliderInt2V(label string, v *[2]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6655,13 +6660,13 @@ func SliderInt2V(label string, v *[2]int32, v_min int32, v_max int32, format str // flags: 0 // format: "%d" func SliderInt3V(label string, v *[3]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6679,13 +6684,13 @@ func SliderInt3V(label string, v *[3]int32, v_min int32, v_max int32, format str // flags: 0 // format: "%d" func SliderInt4V(label string, v *[4]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6703,8 +6708,8 @@ func SliderInt4V(label string, v *[4]int32, v_min int32, v_max int32, format str // flags: 0 // format: NULL func SliderScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6717,8 +6722,8 @@ func SliderScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_mi // flags: 0 // format: NULL func SliderScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -6728,7 +6733,7 @@ func SliderScalarNV(label string, data_type DataType, p_data unsafe.Pointer, com } func SmallButton(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -6745,8 +6750,8 @@ func Spacing() { // hover_extend: 0.0f // hover_visibility_delay: 0.0f func InternalSplitterBehaviorV(bb Rect, id ID, axis Axis, size1 *float32, size2 *float32, min_size1 float32, min_size2 float32, hover_extend float32, hover_visibility_delay float32, bg_col uint32) bool { - size1Arg, size1Fin := WrapNumberPtr[C.float, float32](size1) - size2Arg, size2Fin := WrapNumberPtr[C.float, float32](size2) + size1Arg, size1Fin := wrapper.WrapNumberPtr[C.float, float32](size1) + size2Arg, size2Fin := wrapper.WrapNumberPtr[C.float, float32](size2) defer func() { size1Fin() @@ -6840,7 +6845,7 @@ func InternalTabItemBackground(draw_list DrawList, bb Rect, flags TabItemFlags, // TabItemButtonV parameter default value hint: // flags: 0 func TabItemButtonV(label string, flags TabItemFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -6852,7 +6857,7 @@ func InternalTabItemCalcSizeStr(label string, has_close_button_or_unsaved_marker pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igTabItemCalcSize_Str(pOutArg, labelArg, C.bool(has_close_button_or_unsaved_marker)) pOutFin() @@ -6873,8 +6878,8 @@ func InternalTabItemCalcSizeWindowPtr(window Window) Vec2 { } func InternalTabItemEx(tab_bar TabBar, label string, p_open *bool, flags TabItemFlags, docked_window Window) bool { - labelArg, labelFin := WrapString(label) - p_openArg, p_openFin := WrapBool(p_open) + labelArg, labelFin := wrapper.WrapString(label) + p_openArg, p_openFin := wrapper.WrapBool(p_open) defer func() { labelFin() @@ -6884,9 +6889,9 @@ func InternalTabItemEx(tab_bar TabBar, label string, p_open *bool, flags TabItem } func InternalTabItemLabelAndCloseButton(draw_list DrawList, bb Rect, flags TabItemFlags, frame_padding Vec2, label string, tab_id ID, close_button_id ID, is_contents_visible bool, out_just_closed *bool, out_text_clipped *bool) { - labelArg, labelFin := WrapString(label) - out_just_closedArg, out_just_closedFin := WrapBool(out_just_closed) - out_text_clippedArg, out_text_clippedFin := WrapBool(out_text_clipped) + labelArg, labelFin := wrapper.WrapString(label) + out_just_closedArg, out_just_closedFin := wrapper.WrapBool(out_just_closed) + out_text_clippedArg, out_text_clippedFin := wrapper.WrapBool(out_text_clipped) C.igTabItemLabelAndCloseButton(draw_list.handle(), bb.toC(), C.ImGuiTabItemFlags(flags), frame_padding.toC(), labelArg, C.ImGuiID(tab_id), C.ImGuiID(close_button_id), C.bool(is_contents_visible), out_just_closedArg, out_text_clippedArg) labelFin() @@ -7032,7 +7037,7 @@ func TableGetSortSpecs() TableSortSpecs { } func TableHeader(label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igTableHeader(labelArg) labelFin() @@ -7134,7 +7139,7 @@ func InternalTableSettingsFindByID(id ID) TableSettings { // init_width_or_weight: 0.0f // user_id: 0 func TableSetupColumnV(label string, flags TableColumnFlags, init_width_or_weight float32, user_id ID) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.igTableSetupColumn(labelArg, C.ImGuiTableColumnFlags(flags), C.float(init_width_or_weight), C.ImGuiID(user_id)) labelFin() @@ -7176,8 +7181,8 @@ func InternalTempInputIsActive(id ID) bool { // p_clamp_max: NULL // p_clamp_min: NULL func InternalTempInputScalarV(bb Rect, id ID, label string, data_type DataType, p_data unsafe.Pointer, format string, p_clamp_min unsafe.Pointer, p_clamp_max unsafe.Pointer) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -7187,8 +7192,8 @@ func InternalTempInputScalarV(bb Rect, id ID, label string, data_type DataType, } func InternalTempInputText(bb Rect, id ID, label string, buf string, buf_size int32, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) - bufArg, bufFin := WrapString(buf) + labelArg, labelFin := wrapper.WrapString(label) + bufArg, bufFin := wrapper.WrapString(buf) defer func() { labelFin() @@ -7206,21 +7211,21 @@ func InternalTestShortcutRouting(key_chord KeyChord, owner_id ID) bool { } func Text(fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igText(fmtArg) fmtFin() } func TextColored(col Vec4, fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igTextColored(col.toC(), fmtArg) fmtFin() } func TextDisabled(fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igTextDisabled(fmtArg) fmtFin() @@ -7230,7 +7235,7 @@ func TextDisabled(fmt string) { // flags: 0 // text_end: NULL func InternalTextExV(text string, flags TextFlags) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igTextExV(textArg, C.ImGuiTextFlags(flags)) textFin() @@ -7239,14 +7244,14 @@ func InternalTextExV(text string, flags TextFlags) { // TextUnformattedV parameter default value hint: // text_end: NULL func TextUnformattedV(text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igTextUnformattedV(textArg) textFin() } func TextWrapped(fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_igTextWrapped(fmtArg) fmtFin() @@ -7259,8 +7264,8 @@ func InternalTranslateWindowsInViewport(viewport ViewportP, old_pos Vec2, new_po // InternalTreeNodeBehaviorV parameter default value hint: // label_end: NULL func InternalTreeNodeBehaviorV(id ID, flags TreeNodeFlags, label string, label_end string) bool { - labelArg, labelFin := WrapString(label) - label_endArg, label_endFin := WrapString(label_end) + labelArg, labelFin := wrapper.WrapString(label) + label_endArg, label_endFin := wrapper.WrapString(label_end) defer func() { labelFin() @@ -7270,7 +7275,7 @@ func InternalTreeNodeBehaviorV(id ID, flags TreeNodeFlags, label string, label_e } func TreeNodeExPtr(ptr_id unsafe.Pointer, flags TreeNodeFlags, fmt string) bool { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) defer func() { fmtFin() @@ -7281,7 +7286,7 @@ func TreeNodeExPtr(ptr_id unsafe.Pointer, flags TreeNodeFlags, fmt string) bool // TreeNodeExStrV parameter default value hint: // flags: 0 func TreeNodeExStrV(label string, flags TreeNodeFlags) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7290,8 +7295,8 @@ func TreeNodeExStrV(label string, flags TreeNodeFlags) bool { } func TreeNodeExStrStr(str_id string, flags TreeNodeFlags, fmt string) bool { - str_idArg, str_idFin := WrapString(str_id) - fmtArg, fmtFin := WrapString(fmt) + str_idArg, str_idFin := wrapper.WrapString(str_id) + fmtArg, fmtFin := wrapper.WrapString(fmt) defer func() { str_idFin() @@ -7309,7 +7314,7 @@ func InternalTreeNodeUpdateNextOpen(id ID, flags TreeNodeFlags) bool { } func TreeNodePtr(ptr_id unsafe.Pointer, fmt string) bool { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) defer func() { fmtFin() @@ -7318,7 +7323,7 @@ func TreeNodePtr(ptr_id unsafe.Pointer, fmt string) bool { } func TreeNodeStr(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7327,8 +7332,8 @@ func TreeNodeStr(label string) bool { } func TreeNodeStrStr(str_id string, fmt string) bool { - str_idArg, str_idFin := WrapString(str_id) - fmtArg, fmtFin := WrapString(fmt) + str_idArg, str_idFin := wrapper.WrapString(str_id) + fmtArg, fmtFin := wrapper.WrapString(fmt) defer func() { str_idFin() @@ -7350,7 +7355,7 @@ func TreePushPtr(ptr_id unsafe.Pointer) { } func TreePushStr(str_id string) { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) C.igTreePush_Str(str_idArg) str_idFin() @@ -7390,9 +7395,9 @@ func InternalUpdateWindowParentAndRootLinks(window Window, flags WindowFlags, pa // flags: 0 // format: "%.3f" func VSliderFloatV(label string, size Vec2, v *float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.float, float32](v) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -7406,9 +7411,9 @@ func VSliderFloatV(label string, size Vec2, v *float32, v_min float32, v_max flo // flags: 0 // format: "%d" func VSliderIntV(label string, size Vec2, v *int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -7422,8 +7427,8 @@ func VSliderIntV(label string, size Vec2, v *int32, v_min int32, v_max int32, fo // flags: 0 // format: NULL func VSliderScalarV(label string, size Vec2, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -7433,7 +7438,7 @@ func VSliderScalarV(label string, size Vec2, data_type DataType, p_data unsafe.P } func ValueBool(prefix string, b bool) { - prefixArg, prefixFin := WrapString(prefix) + prefixArg, prefixFin := wrapper.WrapString(prefix) C.igValue_Bool(prefixArg, C.bool(b)) prefixFin() @@ -7442,8 +7447,8 @@ func ValueBool(prefix string, b bool) { // ValueFloatV parameter default value hint: // float_format: NULL func ValueFloatV(prefix string, v float32, float_format string) { - prefixArg, prefixFin := WrapString(prefix) - float_formatArg, float_formatFin := WrapString(float_format) + prefixArg, prefixFin := wrapper.WrapString(prefix) + float_formatArg, float_formatFin := wrapper.WrapString(float_format) C.igValue_Float(prefixArg, C.float(v), float_formatArg) prefixFin() @@ -7451,14 +7456,14 @@ func ValueFloatV(prefix string, v float32, float_format string) { } func ValueInt(prefix string, v int32) { - prefixArg, prefixFin := WrapString(prefix) + prefixArg, prefixFin := wrapper.WrapString(prefix) C.igValue_Int(prefixArg, C.int(v)) prefixFin() } func ValueUint(prefix string, v uint32) { - prefixArg, prefixFin := WrapString(prefix) + prefixArg, prefixFin := wrapper.WrapString(prefix) C.igValue_Uint(prefixArg, C.uint(v)) prefixFin() @@ -7553,14 +7558,14 @@ func (self DrawList) AddRectFilled(p_min Vec2, p_max Vec2, col uint32) { } func (self DrawList) AddTextFontPtr(font Font, font_size float32, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImDrawList_AddText_FontPtr(self.handle(), font.handle(), C.float(font_size), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() } func (self DrawList) AddTextVec2(pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImDrawList_AddText_Vec2(self.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -7603,7 +7608,7 @@ func (self FontAtlas) AddFontDefault() Font { } func (self FontAtlas) AddFontFromFileTTF(filename string, size_pixels float32) Font { - filenameArg, filenameFin := WrapString(filename) + filenameArg, filenameFin := wrapper.WrapString(filename) defer func() { filenameFin() @@ -7612,7 +7617,7 @@ func (self FontAtlas) AddFontFromFileTTF(filename string, size_pixels float32) F } func (self FontAtlas) AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85 string, size_pixels float32) Font { - compressed_font_data_base85Arg, compressed_font_data_base85Fin := WrapString(compressed_font_data_base85) + compressed_font_data_base85Arg, compressed_font_data_base85Fin := wrapper.WrapString(compressed_font_data_base85) defer func() { compressed_font_data_base85Fin() @@ -7629,7 +7634,7 @@ func (self FontAtlas) AddFontFromMemoryTTF(font_data unsafe.Pointer, font_size i } func (self FontGlyphRangesBuilder) AddText(text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_ImFontGlyphRangesBuilder_AddText(self.handle(), textArg) textFin() @@ -7643,7 +7648,7 @@ func (self Font) CalcTextSizeA(size float32, max_width float32, wrap_width float pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImFont_CalcTextSizeA(pOutArg, self.handle(), C.float(size), C.float(max_width), C.float(wrap_width), text_beginArg) pOutFin() @@ -7653,7 +7658,7 @@ func (self Font) CalcTextSizeA(size float32, max_width float32, wrap_width float } func (self Font) RenderText(draw_list DrawList, size float32, pos Vec2, col uint32, clip_rect Vec4, text_begin string) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImFont_RenderText(self.handle(), draw_list.handle(), C.float(size), pos.toC(), C.ImU32(col), clip_rect.toC(), text_beginArg) text_beginFin() @@ -7664,7 +7669,7 @@ func (self IO) SetKeyEventNativeData(key Key, native_keycode int32, native_scanc } func (self InputTextCallbackData) InsertChars(pos int32, text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_ImGuiInputTextCallbackData_InsertChars(self.handle(), C.int(pos), textArg) textFin() @@ -7675,7 +7680,7 @@ func (self ListClipper) Begin(items_count int32) { } func (self TextBuffer) Append(str string) { - strArg, strFin := WrapString(str) + strArg, strFin := wrapper.WrapString(str) C.wrap_ImGuiTextBuffer_Append(self.handle(), strArg) strFin() @@ -7686,7 +7691,7 @@ func (self TextFilter) Draw() bool { } func (self TextFilter) PassFilter(text string) bool { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) defer func() { textFin() @@ -7695,7 +7700,7 @@ func (self TextFilter) PassFilter(text string) bool { } func (self Window) InternalIDStr(str string) ID { - strArg, strFin := WrapString(str) + strArg, strFin := wrapper.WrapString(str) defer func() { strFin() @@ -7704,7 +7709,7 @@ func (self Window) InternalIDStr(str string) ID { } func AcceptDragDropPayload(typeArg string) Payload { - typeArgArg, typeArgFin := WrapString(typeArg) + typeArgArg, typeArgFin := wrapper.WrapString(typeArg) defer func() { typeArgFin() @@ -7713,7 +7718,7 @@ func AcceptDragDropPayload(typeArg string) Payload { } func InternalArrowButtonEx(str_id string, dir Dir, size_arg Vec2) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -7722,7 +7727,7 @@ func InternalArrowButtonEx(str_id string, dir Dir, size_arg Vec2) bool { } func Begin(name string) bool { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -7739,7 +7744,7 @@ func BeginChildID(id ID) bool { } func BeginChildStr(str_id string) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -7748,15 +7753,15 @@ func BeginChildStr(str_id string) bool { } func InternalBeginColumns(str_id string, count int32) { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) C.wrap_igBeginColumns(str_idArg, C.int(count)) str_idFin() } func BeginCombo(label string, preview_value string) bool { - labelArg, labelFin := WrapString(label) - preview_valueArg, preview_valueFin := WrapString(preview_value) + labelArg, labelFin := wrapper.WrapString(label) + preview_valueArg, preview_valueFin := wrapper.WrapString(preview_value) defer func() { labelFin() @@ -7774,7 +7779,7 @@ func BeginDragDropSource() bool { } func BeginListBox(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7783,7 +7788,7 @@ func BeginListBox(label string) bool { } func BeginMenu(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7792,8 +7797,8 @@ func BeginMenu(label string) bool { } func InternalBeginMenuEx(label string, icon string) bool { - labelArg, labelFin := WrapString(label) - iconArg, iconFin := WrapString(icon) + labelArg, labelFin := wrapper.WrapString(label) + iconArg, iconFin := wrapper.WrapString(icon) defer func() { labelFin() @@ -7803,7 +7808,7 @@ func InternalBeginMenuEx(label string, icon string) bool { } func BeginPopup(str_id string) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -7824,7 +7829,7 @@ func BeginPopupContextWindow() bool { } func BeginPopupModal(name string) bool { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -7833,7 +7838,7 @@ func BeginPopupModal(name string) bool { } func BeginTabBar(str_id string) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -7842,7 +7847,7 @@ func BeginTabBar(str_id string) bool { } func BeginTabItem(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7851,7 +7856,7 @@ func BeginTabItem(label string) bool { } func BeginTable(str_id string, column int32) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -7860,7 +7865,7 @@ func BeginTable(str_id string, column int32) bool { } func InternalBeginTableEx(name string, id ID, columns_count int32) bool { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -7869,7 +7874,7 @@ func InternalBeginTableEx(name string, id ID, columns_count int32) bool { } func Button(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7878,8 +7883,8 @@ func Button(label string) bool { } func InternalButtonBehavior(bb Rect, id ID, out_hovered *bool, out_held *bool) bool { - out_hoveredArg, out_hoveredFin := WrapBool(out_hovered) - out_heldArg, out_heldFin := WrapBool(out_held) + out_hoveredArg, out_hoveredFin := wrapper.WrapBool(out_hovered) + out_heldArg, out_heldFin := wrapper.WrapBool(out_held) defer func() { out_hoveredFin() @@ -7889,7 +7894,7 @@ func InternalButtonBehavior(bb Rect, id ID, out_hovered *bool, out_held *bool) b } func InternalButtonEx(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7901,7 +7906,7 @@ func CalcTextSize(text string) Vec2 { pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igCalcTextSize(pOutArg, textArg) pOutFin() @@ -7911,8 +7916,8 @@ func CalcTextSize(text string) Vec2 { } func CollapsingHeaderBoolPtr(label string, p_visible *bool) bool { - labelArg, labelFin := WrapString(label) - p_visibleArg, p_visibleFin := WrapBool(p_visible) + labelArg, labelFin := wrapper.WrapString(label) + p_visibleArg, p_visibleFin := wrapper.WrapBool(p_visible) defer func() { labelFin() @@ -7922,7 +7927,7 @@ func CollapsingHeaderBoolPtr(label string, p_visible *bool) bool { } func CollapsingHeaderTreeNodeFlags(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7931,7 +7936,7 @@ func CollapsingHeaderTreeNodeFlags(label string) bool { } func ColorButton(desc_id string, col Vec4) bool { - desc_idArg, desc_idFin := WrapString(desc_id) + desc_idArg, desc_idFin := wrapper.WrapString(desc_id) defer func() { desc_idFin() @@ -7940,7 +7945,7 @@ func ColorButton(desc_id string, col Vec4) bool { } func ColorEdit3(label string, col *[3]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7958,7 +7963,7 @@ func ColorEdit3(label string, col *[3]float32) bool { } func ColorEdit4(label string, col *[4]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7976,7 +7981,7 @@ func ColorEdit4(label string, col *[4]float32) bool { } func ColorPicker3(label string, col *[3]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7994,7 +7999,7 @@ func ColorPicker3(label string, col *[3]float32) bool { } func ColorPicker4(label string, col *[4]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -8016,9 +8021,9 @@ func Columns() { } func ComboStr(label string, current_item *int32, items_separated_by_zeros string) bool { - labelArg, labelFin := WrapString(label) - current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) - items_separated_by_zerosArg, items_separated_by_zerosFin := WrapString(items_separated_by_zeros) + labelArg, labelFin := wrapper.WrapString(label) + current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) + items_separated_by_zerosArg, items_separated_by_zerosFin := wrapper.WrapString(items_separated_by_zeros) defer func() { labelFin() @@ -8029,9 +8034,9 @@ func ComboStr(label string, current_item *int32, items_separated_by_zeros string } func ComboStrarr(label string, current_item *int32, items []string, items_count int32) bool { - labelArg, labelFin := WrapString(label) - current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := WrapStringList(items) + labelArg, labelFin := wrapper.WrapString(label) + current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := wrapper.WrapStringList(items) defer func() { labelFin() @@ -8074,8 +8079,8 @@ func DockSpaceOverViewport() ID { } func DragFloat(label string, v *float32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.float, float32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8085,7 +8090,7 @@ func DragFloat(label string, v *float32) bool { } func DragFloat2(label string, v *[2]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8103,7 +8108,7 @@ func DragFloat2(label string, v *[2]float32) bool { } func DragFloat3(label string, v *[3]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8121,7 +8126,7 @@ func DragFloat3(label string, v *[3]float32) bool { } func DragFloat4(label string, v *[4]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8139,9 +8144,9 @@ func DragFloat4(label string, v *[4]float32) bool { } func DragFloatRange2(label string, v_current_min *float32, v_current_max *float32) bool { - labelArg, labelFin := WrapString(label) - v_current_minArg, v_current_minFin := WrapNumberPtr[C.float, float32](v_current_min) - v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.float, float32](v_current_max) + labelArg, labelFin := wrapper.WrapString(label) + v_current_minArg, v_current_minFin := wrapper.WrapNumberPtr[C.float, float32](v_current_min) + v_current_maxArg, v_current_maxFin := wrapper.WrapNumberPtr[C.float, float32](v_current_max) defer func() { labelFin() @@ -8152,8 +8157,8 @@ func DragFloatRange2(label string, v_current_min *float32, v_current_max *float3 } func DragInt(label string, v *int32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -8163,7 +8168,7 @@ func DragInt(label string, v *int32) bool { } func DragInt2(label string, v *[2]int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8181,7 +8186,7 @@ func DragInt2(label string, v *[2]int32) bool { } func DragInt3(label string, v *[3]int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8199,7 +8204,7 @@ func DragInt3(label string, v *[3]int32) bool { } func DragInt4(label string, v *[4]int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8217,9 +8222,9 @@ func DragInt4(label string, v *[4]int32) bool { } func DragIntRange2(label string, v_current_min *int32, v_current_max *int32) bool { - labelArg, labelFin := WrapString(label) - v_current_minArg, v_current_minFin := WrapNumberPtr[C.int, int32](v_current_min) - v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.int, int32](v_current_max) + labelArg, labelFin := wrapper.WrapString(label) + v_current_minArg, v_current_minFin := wrapper.WrapNumberPtr[C.int, int32](v_current_min) + v_current_maxArg, v_current_maxFin := wrapper.WrapNumberPtr[C.int, int32](v_current_max) defer func() { labelFin() @@ -8230,7 +8235,7 @@ func DragIntRange2(label string, v_current_min *int32, v_current_max *int32) boo } func DragScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -8239,7 +8244,7 @@ func DragScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { } func DragScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -8248,7 +8253,7 @@ func DragScalarN(label string, data_type DataType, p_data unsafe.Pointer, compon } func InternalFindRenderedTextEnd(text string) string { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) defer func() { textFin() @@ -8280,8 +8285,8 @@ func MouseDragDelta() Vec2 { } func InternalImFileLoadToMemory(filename string, mode string) unsafe.Pointer { - filenameArg, filenameFin := WrapString(filename) - modeArg, modeFin := WrapString(mode) + filenameArg, filenameFin := wrapper.WrapString(filename) + modeArg, modeFin := wrapper.WrapString(mode) defer func() { filenameFin() @@ -8295,7 +8300,7 @@ func InternalImHashData(data unsafe.Pointer, data_size uint64) ID { } func InternalImHashStr(data string) ID { - dataArg, dataFin := WrapString(data) + dataArg, dataFin := wrapper.WrapString(data) defer func() { dataFin() @@ -8308,7 +8313,7 @@ func Image(user_texture_id TextureID, size Vec2) { } func ImageButton(str_id string, user_texture_id TextureID, size Vec2) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -8325,8 +8330,8 @@ func Indent() { } func InputDouble(label string, v *float64) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.double, float64](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.double, float64](v) defer func() { labelFin() @@ -8336,8 +8341,8 @@ func InputDouble(label string, v *float64) bool { } func InputFloat(label string, v *float32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.float, float32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8347,7 +8352,7 @@ func InputFloat(label string, v *float32) bool { } func InputFloat2(label string, v *[2]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8365,7 +8370,7 @@ func InputFloat2(label string, v *[2]float32) bool { } func InputFloat3(label string, v *[3]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8383,7 +8388,7 @@ func InputFloat3(label string, v *[3]float32) bool { } func InputFloat4(label string, v *[4]float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8401,8 +8406,8 @@ func InputFloat4(label string, v *[4]float32) bool { } func InputInt(label string, v *int32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -8412,7 +8417,7 @@ func InputInt(label string, v *int32) bool { } func InputInt2(label string, v *[2]int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8430,7 +8435,7 @@ func InputInt2(label string, v *[2]int32) bool { } func InputInt3(label string, v *[3]int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8448,7 +8453,7 @@ func InputInt3(label string, v *[3]int32) bool { } func InputInt4(label string, v *[4]int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8466,7 +8471,7 @@ func InputInt4(label string, v *[4]int32) bool { } func InputScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -8475,7 +8480,7 @@ func InputScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { } func InputScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -8484,9 +8489,9 @@ func InputScalarN(label string, data_type DataType, p_data unsafe.Pointer, compo } func InternalInputTextEx(label string, hint string, buf string, buf_size int32, size_arg Vec2, flags InputTextFlags) bool { - labelArg, labelFin := WrapString(label) - hintArg, hintFin := WrapString(hint) - bufArg, bufFin := WrapString(buf) + labelArg, labelFin := wrapper.WrapString(label) + hintArg, hintFin := wrapper.WrapString(hint) + bufArg, bufFin := wrapper.WrapString(buf) defer func() { labelFin() @@ -8497,7 +8502,7 @@ func InternalInputTextEx(label string, hint string, buf string, buf_size int32, } func InvisibleButton(str_id string, size Vec2) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -8550,7 +8555,7 @@ func IsMousePosValid() bool { } func IsPopupOpenStr(str_id string) bool { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) defer func() { str_idFin() @@ -8579,9 +8584,9 @@ func InternalItemSizeVec2(size Vec2) { } func ListBoxStrarr(label string, current_item *int32, items []string, items_count int32) bool { - labelArg, labelFin := WrapString(label) - current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := WrapStringList(items) + labelArg, labelFin := wrapper.WrapString(label) + current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := wrapper.WrapStringList(items) defer func() { labelFin() @@ -8592,7 +8597,7 @@ func ListBoxStrarr(label string, current_item *int32, items []string, items_coun } func LoadIniSettingsFromMemory(ini_data string) { - ini_dataArg, ini_dataFin := WrapString(ini_data) + ini_dataArg, ini_dataFin := wrapper.WrapString(ini_data) C.wrap_igLoadIniSettingsFromMemory(ini_dataArg) ini_dataFin() @@ -8600,7 +8605,7 @@ func LoadIniSettingsFromMemory(ini_data string) { func InternalLogRenderedText(ref_pos *Vec2, text string) { ref_posArg, ref_posFin := wrap[C.ImVec2, *Vec2](ref_pos) - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igLogRenderedText(ref_posArg, textArg) ref_posFin() @@ -8624,8 +8629,8 @@ func LogToTTY() { } func InternalMenuItemEx(label string, icon string) bool { - labelArg, labelFin := WrapString(label) - iconArg, iconFin := WrapString(icon) + labelArg, labelFin := wrapper.WrapString(label) + iconArg, iconFin := wrapper.WrapString(icon) defer func() { labelFin() @@ -8635,7 +8640,7 @@ func InternalMenuItemEx(label string, icon string) bool { } func MenuItemBool(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -8644,9 +8649,9 @@ func MenuItemBool(label string) bool { } func MenuItemBoolPtr(label string, shortcut string, p_selected *bool) bool { - labelArg, labelFin := WrapString(label) - shortcutArg, shortcutFin := WrapString(shortcut) - p_selectedArg, p_selectedFin := WrapBool(p_selected) + labelArg, labelFin := wrapper.WrapString(label) + shortcutArg, shortcutFin := wrapper.WrapString(shortcut) + p_selectedArg, p_selectedFin := wrapper.WrapBool(p_selected) defer func() { labelFin() @@ -8669,21 +8674,21 @@ func OpenPopupID(id ID) { } func OpenPopupStr(str_id string) { - str_idArg, str_idFin := WrapString(str_id) + str_idArg, str_idFin := wrapper.WrapString(str_id) C.wrap_igOpenPopup_Str(str_idArg) str_idFin() } func PlotHistogramFloatPtr(label string, values []float32, values_count int32) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.wrap_igPlotHistogram_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count)) labelFin() } func PlotLinesFloatPtr(label string, values []float32, values_count int32) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.wrap_igPlotLines_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count)) labelFin() @@ -8730,14 +8735,14 @@ func RenderPlatformWindowsDefault() { } func InternalRenderText(pos Vec2, text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igRenderText(pos.toC(), textArg) textFin() } func InternalRenderTextClipped(pos_min Vec2, pos_max Vec2, text string, text_size_if_known *Vec2) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextClipped(pos_min.toC(), pos_max.toC(), textArg, text_size_if_knownArg) @@ -8746,7 +8751,7 @@ func InternalRenderTextClipped(pos_min Vec2, pos_max Vec2, text string, text_siz } func InternalRenderTextClippedEx(draw_list DrawList, pos_min Vec2, pos_max Vec2, text string, text_size_if_known *Vec2) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextClippedEx(draw_list.handle(), pos_min.toC(), pos_max.toC(), textArg, text_size_if_knownArg) @@ -8786,7 +8791,7 @@ func InternalScrollToRectEx(window Window, rect Rect) Vec2 { } func SelectableBool(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -8795,8 +8800,8 @@ func SelectableBool(label string) bool { } func SelectableBoolPtr(label string, p_selected *bool) bool { - labelArg, labelFin := WrapString(label) - p_selectedArg, p_selectedFin := WrapBool(p_selected) + labelArg, labelFin := wrapper.WrapString(label) + p_selectedArg, p_selectedFin := wrapper.WrapBool(p_selected) defer func() { labelFin() @@ -8806,7 +8811,7 @@ func SelectableBoolPtr(label string, p_selected *bool) bool { } func SetDragDropPayload(typeArg string, data unsafe.Pointer, sz uint64) bool { - typeArgArg, typeArgFin := WrapString(typeArg) + typeArgArg, typeArgFin := wrapper.WrapString(typeArg) defer func() { typeArgFin() @@ -8875,7 +8880,7 @@ func SetWindowCollapsedBool(collapsed bool) { } func SetWindowCollapsedStr(name string, collapsed bool) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.wrap_igSetWindowCollapsed_Str(nameArg, C.bool(collapsed)) nameFin() @@ -8886,7 +8891,7 @@ func InternalSetWindowCollapsedWindowPtr(window Window, collapsed bool) { } func SetWindowPosStr(name string, pos Vec2) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.wrap_igSetWindowPos_Str(nameArg, pos.toC()) nameFin() @@ -8901,7 +8906,7 @@ func InternalSetWindowPosWindowPtr(window Window, pos Vec2) { } func SetWindowSizeStr(name string, size Vec2) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.wrap_igSetWindowSize_Str(nameArg, size.toC()) nameFin() @@ -8944,8 +8949,8 @@ func ShowStyleEditor() { } func SliderAngle(label string, v_rad *float32) bool { - labelArg, labelFin := WrapString(label) - v_radArg, v_radFin := WrapNumberPtr[C.float, float32](v_rad) + labelArg, labelFin := wrapper.WrapString(label) + v_radArg, v_radFin := wrapper.WrapNumberPtr[C.float, float32](v_rad) defer func() { labelFin() @@ -8955,8 +8960,8 @@ func SliderAngle(label string, v_rad *float32) bool { } func SliderFloat(label string, v *float32, v_min float32, v_max float32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.float, float32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8966,7 +8971,7 @@ func SliderFloat(label string, v *float32, v_min float32, v_max float32) bool { } func SliderFloat2(label string, v *[2]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8984,7 +8989,7 @@ func SliderFloat2(label string, v *[2]float32, v_min float32, v_max float32) boo } func SliderFloat3(label string, v *[3]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -9002,7 +9007,7 @@ func SliderFloat3(label string, v *[3]float32, v_min float32, v_max float32) boo } func SliderFloat4(label string, v *[4]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -9020,8 +9025,8 @@ func SliderFloat4(label string, v *[4]float32, v_min float32, v_max float32) boo } func SliderInt(label string, v *int32, v_min int32, v_max int32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -9031,7 +9036,7 @@ func SliderInt(label string, v *int32, v_min int32, v_max int32) bool { } func SliderInt2(label string, v *[2]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9049,7 +9054,7 @@ func SliderInt2(label string, v *[2]int32, v_min int32, v_max int32) bool { } func SliderInt3(label string, v *[3]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9067,7 +9072,7 @@ func SliderInt3(label string, v *[3]int32, v_min int32, v_max int32) bool { } func SliderInt4(label string, v *[4]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9085,7 +9090,7 @@ func SliderInt4(label string, v *[4]int32, v_min int32, v_max int32) bool { } func SliderScalar(label string, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -9094,7 +9099,7 @@ func SliderScalar(label string, data_type DataType, p_data unsafe.Pointer, p_min } func SliderScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -9103,8 +9108,8 @@ func SliderScalarN(label string, data_type DataType, p_data unsafe.Pointer, comp } func InternalSplitterBehavior(bb Rect, id ID, axis Axis, size1 *float32, size2 *float32, min_size1 float32, min_size2 float32) bool { - size1Arg, size1Fin := WrapNumberPtr[C.float, float32](size1) - size2Arg, size2Fin := WrapNumberPtr[C.float, float32](size2) + size1Arg, size1Fin := wrapper.WrapNumberPtr[C.float, float32](size1) + size2Arg, size2Fin := wrapper.WrapNumberPtr[C.float, float32](size2) defer func() { size1Fin() @@ -9126,7 +9131,7 @@ func StyleColorsLight() { } func TabItemButton(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -9159,15 +9164,15 @@ func TableSetBgColor(target TableBgTarget, color uint32) { } func TableSetupColumn(label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.wrap_igTableSetupColumn(labelArg) labelFin() } func InternalTempInputScalar(bb Rect, id ID, label string, data_type DataType, p_data unsafe.Pointer, format string) bool { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -9177,21 +9182,21 @@ func InternalTempInputScalar(bb Rect, id ID, label string, data_type DataType, p } func InternalTextEx(text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igTextEx(textArg) textFin() } func TextUnformatted(text string) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_igTextUnformatted(textArg) textFin() } func InternalTreeNodeBehavior(id ID, flags TreeNodeFlags, label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -9200,7 +9205,7 @@ func InternalTreeNodeBehavior(id ID, flags TreeNodeFlags, label string) bool { } func TreeNodeExStr(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -9213,8 +9218,8 @@ func Unindent() { } func VSliderFloat(label string, size Vec2, v *float32, v_min float32, v_max float32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.float, float32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -9224,8 +9229,8 @@ func VSliderFloat(label string, size Vec2, v *float32, v_min float32, v_max floa } func VSliderInt(label string, size Vec2, v *int32, v_min int32, v_max int32) bool { - labelArg, labelFin := WrapString(label) - vArg, vFin := WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := wrapper.WrapString(label) + vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -9235,7 +9240,7 @@ func VSliderInt(label string, size Vec2, v *int32, v_min int32, v_max int32) boo } func VSliderScalar(label string, size Vec2, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -9244,7 +9249,7 @@ func VSliderScalar(label string, size Vec2, data_type DataType, p_data unsafe.Po } func ValueFloat(prefix string, v float32) { - prefixArg, prefixFin := WrapString(prefix) + prefixArg, prefixFin := wrapper.WrapString(prefix) C.wrap_igValue_Float(prefixArg, C.float(v)) prefixFin() @@ -9421,7 +9426,7 @@ func (self DrawList) Data() DrawListSharedData { } func (self DrawList) SetOwnerName(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImDrawList_Set_OwnerName(self.handle(), vArg) vFin() @@ -9765,7 +9770,7 @@ func (self FontAtlas) TexPixelsUseColors() bool { } func (self FontAtlas) SetTexPixelsRGBA32(v *uint32) { - vArg, vFin := WrapNumberPtr[C.uint, uint32](v) + vArg, vFin := wrapper.WrapNumberPtr[C.uint, uint32](v) C.wrap_ImFontAtlas_SetTexPixelsRGBA32(self.handle(), vArg) vFin() @@ -11630,7 +11635,7 @@ func (self Context) LogBuffer() TextBuffer { } func (self Context) SetLogNextPrefix(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiContext_SetLogNextPrefix(self.handle(), vArg) vFin() @@ -11641,7 +11646,7 @@ func (self Context) LogNextPrefix() string { } func (self Context) SetLogNextSuffix(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiContext_SetLogNextSuffix(self.handle(), vArg) vFin() @@ -11860,7 +11865,7 @@ func (self DataTypeInfo) Size() float64 { } func (self DataTypeInfo) SetName(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiDataTypeInfo_SetName(self.handle(), vArg) vFin() @@ -11871,7 +11876,7 @@ func (self DataTypeInfo) Name() string { } func (self DataTypeInfo) SetPrintFmt(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiDataTypeInfo_SetPrintFmt(self.handle(), vArg) vFin() @@ -11882,7 +11887,7 @@ func (self DataTypeInfo) PrintFmt() string { } func (self DataTypeInfo) SetScanFmt(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiDataTypeInfo_SetScanFmt(self.handle(), vArg) vFin() @@ -12355,7 +12360,7 @@ func (self IO) IniSavingRate() float32 { } func (self IO) SetIniFilename(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiIO_SetIniFilename(self.handle(), vArg) vFin() @@ -12366,7 +12371,7 @@ func (self IO) IniFilename() string { } func (self IO) SetLogFilename(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiIO_SetLogFilename(self.handle(), vArg) vFin() @@ -12635,7 +12640,7 @@ func (self IO) ConfigDebugBeginReturnValueLoop() bool { } func (self IO) SetBackendPlatformName(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiIO_SetBackendPlatformName(self.handle(), vArg) vFin() @@ -12646,7 +12651,7 @@ func (self IO) BackendPlatformName() string { } func (self IO) SetBackendRendererName(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiIO_SetBackendRendererName(self.handle(), vArg) vFin() @@ -13107,7 +13112,7 @@ func (self InputTextCallbackData) EventKey() Key { } func (self InputTextCallbackData) SetBuf(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiInputTextCallbackData_SetBuf(self.handle(), vArg) vFin() @@ -13548,7 +13553,7 @@ func (self LocEntry) Key() LocKey { } func (self LocEntry) SetText(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiLocEntry_SetText(self.handle(), vArg) vFin() @@ -14357,7 +14362,7 @@ func (self PtrOrIndex) Index() int { } func (self SettingsHandler) SetTypeName(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiSettingsHandler_SetTypeName(self.handle(), vArg) vFin() @@ -16752,7 +16757,7 @@ func (self TextIndex) EndOffset() int { } func (self TextRange) Setb(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiTextRange_Setb(self.handle(), vArg) vFin() @@ -16763,7 +16768,7 @@ func (self TextRange) b() string { } func (self TextRange) Sete(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiTextRange_Sete(self.handle(), vArg) vFin() @@ -17082,7 +17087,7 @@ func (self Window) Ctx() Context { } func (self Window) SetName(v string) { - vArg, vFin := WrapString(v) + vArg, vFin := wrapper.WrapString(v) C.wrap_ImGuiWindow_SetName(self.handle(), vArg) vFin() diff --git a/cimplot_funcs.go b/cimplot_funcs.go index 645acd207..be0d3e76a 100644 --- a/cimplot_funcs.go +++ b/cimplot_funcs.go @@ -7,7 +7,12 @@ package imgui // #include "cimplot_structs_accessor.h" // #include "cimplot_wrapper.h" import "C" -import "unsafe" + +import ( + "unsafe" + + "github.com/AllenDang/cimgui-go/internal/wrapper" +) func (self PlotAlignmentData) Begin() { C.ImPlotAlignmentData_Begin(self.handle()) @@ -26,10 +31,10 @@ func (self PlotAlignmentData) Reset() { } func (self PlotAlignmentData) Update(pad_a *float32, pad_b *float32, delta_a *float32, delta_b *float32) { - pad_aArg, pad_aFin := WrapNumberPtr[C.float, float32](pad_a) - pad_bArg, pad_bFin := WrapNumberPtr[C.float, float32](pad_b) - delta_aArg, delta_aFin := WrapNumberPtr[C.float, float32](delta_a) - delta_bArg, delta_bFin := WrapNumberPtr[C.float, float32](delta_b) + pad_aArg, pad_aFin := wrapper.WrapNumberPtr[C.float, float32](pad_a) + pad_bArg, pad_bFin := wrapper.WrapNumberPtr[C.float, float32](pad_b) + delta_aArg, delta_aFin := wrapper.WrapNumberPtr[C.float, float32](delta_a) + delta_bArg, delta_bFin := wrapper.WrapNumberPtr[C.float, float32](delta_b) C.ImPlotAlignmentData_Update(self.handle(), pad_aArg, pad_bArg, delta_aArg, delta_bArg) pad_aFin() @@ -43,7 +48,7 @@ func (self PlotAlignmentData) Destroy() { } func (self PlotAnnotationCollection) Append(pos Vec2, off Vec2, bg uint32, fg uint32, clamp bool, fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_ImPlotAnnotationCollection_Append(self.handle(), pos.toC(), off.toC(), C.ImU32(bg), C.ImU32(fg), C.bool(clamp), fmtArg) fmtFin() @@ -226,7 +231,7 @@ func (self PlotAxis) Destroy() { } func (self PlotColormapData) Append(name string, keys *[]uint32, count int32, qual bool) int { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) keysArg := make([]C.ImU32, len(*keys)) for i, keysV := range *keys { keysArg[i] = C.ImU32(keysV) @@ -243,7 +248,7 @@ func (self PlotColormapData) Append(name string, keys *[]uint32, count int32, qu } func (self PlotColormapData) Index(name string) PlotColormap { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -327,7 +332,7 @@ func (self PlotItemGroup) ItemCount() int { } func (self PlotItemGroup) ItemID(label_id string) ID { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -344,7 +349,7 @@ func (self PlotItemGroup) ItemByID(id ID) PlotItem { } func (self PlotItemGroup) ItemStr(label_id string) PlotItem { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -453,14 +458,14 @@ func (self PlotPlot) IsInputLocked() bool { } func (self PlotPlot) SetAxisLabel(axis PlotAxis, label string) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.ImPlotPlot_SetAxisLabel(self.handle(), axis.handle(), labelArg) labelFin() } func (self PlotPlot) SetTitle(title string) { - titleArg, titleFin := WrapString(title) + titleArg, titleFin := wrapper.WrapString(title) C.ImPlotPlot_SetTitle(self.handle(), titleArg) titleFin() @@ -609,7 +614,7 @@ func (self PlotSubplot) Destroy() { } func (self PlotTagCollection) Append(axis PlotAxisEnum, value float64, bg uint32, fg uint32, fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_ImPlotTagCollection_Append(self.handle(), C.ImAxis(axis), C.double(value), C.ImU32(bg), C.ImU32(fg), fmtArg) fmtFin() @@ -640,7 +645,7 @@ func (self PlotTick) Destroy() { } func (self PlotTicker) AddTickdoubleStr(value float64, major bool, level int32, show_label bool, label string) PlotTick { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -709,7 +714,7 @@ func (self *PlotTime) Destroy() { // PlotAddColormapU32PtrV parameter default value hint: // qual: true func PlotAddColormapU32PtrV(name string, cols *[]uint32, size int32, qual bool) PlotColormap { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) colsArg := make([]C.ImU32, len(*cols)) for i, colsV := range *cols { colsArg[i] = C.ImU32(colsV) @@ -728,7 +733,7 @@ func PlotAddColormapU32PtrV(name string, cols *[]uint32, size int32, qual bool) // PlotAddColormapVec4PtrV parameter default value hint: // qual: true func PlotAddColormapVec4PtrV(name string, cols *Vec4, size int32, qual bool) PlotColormap { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) colsArg, colsFin := wrap[C.ImVec4, *Vec4](cols) defer func() { @@ -741,7 +746,7 @@ func PlotAddColormapVec4PtrV(name string, cols *Vec4, size int32, qual bool) Plo // PlotAddTextCenteredV parameter default value hint: // text_end: NULL func PlotAddTextCenteredV(DrawList DrawList, top_center Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImPlot_AddTextCenteredV(DrawList.handle(), top_center.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -750,7 +755,7 @@ func PlotAddTextCenteredV(DrawList DrawList, top_center Vec2, col uint32, text_b // PlotAddTextVerticalV parameter default value hint: // text_end: NULL func PlotAddTextVerticalV(DrawList DrawList, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImPlot_AddTextVerticalV(DrawList.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -778,7 +783,7 @@ func PlotAnnotationBoolV(x float64, y float64, col Vec4, pix_offset Vec2, clamp } func PlotAnnotationStr(x float64, y float64, col Vec4, pix_offset Vec2, clamp bool, fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_ImPlot_Annotation_Str(C.double(x), C.double(y), col.toC(), pix_offset.toC(), C.bool(clamp), fmtArg) fmtFin() @@ -799,7 +804,7 @@ func PlotAnyAxesInputLocked(axes PlotAxis, count int32) bool { // PlotBeginAlignedPlotsV parameter default value hint: // vertical: true func PlotBeginAlignedPlotsV(group_id string, vertical bool) bool { - group_idArg, group_idFin := WrapString(group_id) + group_idArg, group_idFin := wrapper.WrapString(group_id) defer func() { group_idFin() @@ -823,7 +828,7 @@ func PlotBeginDragDropTargetPlot() bool { // flags: 0 // recolor_from: -1 func PlotBeginItemV(label_id string, flags PlotItemFlags, recolor_from PlotCol) bool { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -835,7 +840,7 @@ func PlotBeginItemV(label_id string, flags PlotItemFlags, recolor_from PlotCol) // flags: 0 // size: ImVec2(-1,0) func PlotBeginPlotV(title_id string, size Vec2, flags PlotFlags) bool { - title_idArg, title_idFin := WrapString(title_id) + title_idArg, title_idFin := wrapper.WrapString(title_id) defer func() { title_idFin() @@ -848,9 +853,9 @@ func PlotBeginPlotV(title_id string, size Vec2, flags PlotFlags) bool { // flags: 0 // row_ratios: NULL func PlotBeginSubplotsV(title_id string, rows int32, cols int32, size Vec2, flags PlotSubplotFlags, row_ratios *float32, col_ratios *float32) bool { - title_idArg, title_idFin := WrapString(title_id) - row_ratiosArg, row_ratiosFin := WrapNumberPtr[C.float, float32](row_ratios) - col_ratiosArg, col_ratiosFin := WrapNumberPtr[C.float, float32](col_ratios) + title_idArg, title_idFin := wrapper.WrapString(title_id) + row_ratiosArg, row_ratiosFin := wrapper.WrapNumberPtr[C.float, float32](row_ratios) + col_ratiosArg, col_ratiosFin := wrapper.WrapNumberPtr[C.float, float32](col_ratios) defer func() { title_idFin() @@ -863,7 +868,7 @@ func PlotBeginSubplotsV(title_id string, rows int32, cols int32, size Vec2, flag // PlotBustColorCacheV parameter default value hint: // plot_title_id: NULL func PlotBustColorCacheV(plot_title_id string) { - plot_title_idArg, plot_title_idFin := WrapString(plot_title_id) + plot_title_idArg, plot_title_idFin := wrapper.WrapString(plot_title_id) C.ImPlot_BustColorCache(plot_title_idArg) plot_title_idFin() @@ -904,7 +909,7 @@ func PlotCalcTextSizeVertical(text string) Vec2 { pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.ImPlot_CalcTextSizeVertical(pOutArg, textArg) pOutFin() @@ -943,7 +948,7 @@ func PlotClampLabelPos(pos Vec2, size Vec2, Min Vec2, Max Vec2) Vec2 { // cmap: -1 // size: ImVec2(0,0) func PlotColormapButtonV(label string, size Vec2, cmap PlotColormap) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -961,8 +966,8 @@ func PlotColormapIcon(cmap PlotColormap) { // format: "%g" // size: ImVec2(0,0) func PlotColormapScaleV(label string, scale_min float64, scale_max float64, size Vec2, format string, flags PlotColormapScaleFlags, cmap PlotColormap) { - labelArg, labelFin := WrapString(label) - formatArg, formatFin := WrapString(format) + labelArg, labelFin := wrapper.WrapString(label) + formatArg, formatFin := wrapper.WrapString(format) C.ImPlot_ColormapScale(labelArg, C.double(scale_min), C.double(scale_max), size.toC(), formatArg, C.ImPlotColormapScaleFlags(flags), C.ImPlotColormap(cmap)) labelFin() @@ -974,10 +979,10 @@ func PlotColormapScaleV(label string, scale_min float64, scale_max float64, size // format: "" // out: NULL func PlotColormapSliderV(label string, t *float32, out *Vec4, format string, cmap PlotColormap) bool { - labelArg, labelFin := WrapString(label) - tArg, tFin := WrapNumberPtr[C.float, float32](t) + labelArg, labelFin := wrapper.WrapString(label) + tArg, tFin := wrapper.WrapNumberPtr[C.float, float32](t) outArg, outFin := wrap[C.ImVec4, *Vec4](out) - formatArg, formatFin := WrapString(format) + formatArg, formatFin := wrapper.WrapString(format) defer func() { labelFin() @@ -1013,7 +1018,7 @@ func PlotDestroyContextV(ctx PlotContext) { // flags: 0 // thickness: 1 func PlotDragLineXV(id int32, x *float64, col Vec4, thickness float32, flags PlotDragToolFlags) bool { - xArg, xFin := WrapNumberPtr[C.double, float64](x) + xArg, xFin := wrapper.WrapNumberPtr[C.double, float64](x) defer func() { xFin() @@ -1025,7 +1030,7 @@ func PlotDragLineXV(id int32, x *float64, col Vec4, thickness float32, flags Plo // flags: 0 // thickness: 1 func PlotDragLineYV(id int32, y *float64, col Vec4, thickness float32, flags PlotDragToolFlags) bool { - yArg, yFin := WrapNumberPtr[C.double, float64](y) + yArg, yFin := wrapper.WrapNumberPtr[C.double, float64](y) defer func() { yFin() @@ -1037,8 +1042,8 @@ func PlotDragLineYV(id int32, y *float64, col Vec4, thickness float32, flags Plo // flags: 0 // size: 4 func PlotDragPointV(id int32, x *float64, y *float64, col Vec4, size float32, flags PlotDragToolFlags) bool { - xArg, xFin := WrapNumberPtr[C.double, float64](x) - yArg, yFin := WrapNumberPtr[C.double, float64](y) + xArg, xFin := wrapper.WrapNumberPtr[C.double, float64](x) + yArg, yFin := wrapper.WrapNumberPtr[C.double, float64](y) defer func() { xFin() @@ -1050,10 +1055,10 @@ func PlotDragPointV(id int32, x *float64, y *float64, col Vec4, size float32, fl // PlotDragRectV parameter default value hint: // flags: 0 func PlotDragRectV(id int32, x1 *float64, y1 *float64, x2 *float64, y2 *float64, col Vec4, flags PlotDragToolFlags) bool { - x1Arg, x1Fin := WrapNumberPtr[C.double, float64](x1) - y1Arg, y1Fin := WrapNumberPtr[C.double, float64](y1) - x2Arg, x2Fin := WrapNumberPtr[C.double, float64](x2) - y2Arg, y2Fin := WrapNumberPtr[C.double, float64](y2) + x1Arg, x1Fin := wrapper.WrapNumberPtr[C.double, float64](x1) + y1Arg, y1Fin := wrapper.WrapNumberPtr[C.double, float64](y1) + x2Arg, x2Fin := wrapper.WrapNumberPtr[C.double, float64](x2) + y2Arg, y2Fin := wrapper.WrapNumberPtr[C.double, float64](y2) defer func() { x1Fin() @@ -1120,7 +1125,7 @@ func PlotFloorTime(t PlotTime, unit PlotTimeUnit) PlotTime { } func PlotFormatDate(t PlotTime, buffer string, size int32, fmt PlotDateFmt, use_iso_8601 bool) int { - bufferArg, bufferFin := WrapString(buffer) + bufferArg, bufferFin := wrapper.WrapString(buffer) defer func() { bufferFin() @@ -1129,7 +1134,7 @@ func PlotFormatDate(t PlotTime, buffer string, size int32, fmt PlotDateFmt, use_ } func PlotFormatTime(t PlotTime, buffer string, size int32, fmt PlotTimeFmt, use_24_hr_clk bool) int { - bufferArg, bufferFin := WrapString(buffer) + bufferArg, bufferFin := wrapper.WrapString(buffer) defer func() { bufferFin() @@ -1138,7 +1143,7 @@ func PlotFormatTime(t PlotTime, buffer string, size int32, fmt PlotTimeFmt, use_ } func PlotFormatterDefault(value float64, buff string, size int32, data unsafe.Pointer) int { - buffArg, buffFin := WrapString(buff) + buffArg, buffFin := wrapper.WrapString(buff) defer func() { buffFin() @@ -1147,7 +1152,7 @@ func PlotFormatterDefault(value float64, buff string, size int32, data unsafe.Po } func PlotFormatterLogit(value float64, buff string, size int32, noname1 unsafe.Pointer) int { - buffArg, buffFin := WrapString(buff) + buffArg, buffFin := wrapper.WrapString(buff) defer func() { buffFin() @@ -1156,7 +1161,7 @@ func PlotFormatterLogit(value float64, buff string, size int32, noname1 unsafe.P } func PlotFormatterTime(noname1 float64, buff string, size int32, data unsafe.Pointer) int { - buffArg, buffFin := WrapString(buff) + buffArg, buffFin := wrapper.WrapString(buff) defer func() { buffFin() @@ -1197,7 +1202,7 @@ func PlotGetColormapCount() int { } func PlotGetColormapIndex(name string) PlotColormap { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) defer func() { nameFin() @@ -1236,7 +1241,7 @@ func PlotGetInputMap() PlotInputMap { } func PlotGetItem(label_id string) PlotItem { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -1277,7 +1282,7 @@ func PlotGetMarkerName(idx PlotMarker) string { } func PlotGetPlot(title string) PlotPlot { - titleArg, titleFin := WrapString(title) + titleArg, titleFin := wrapper.WrapString(title) defer func() { titleFin() @@ -1758,8 +1763,8 @@ func PlotImMinArraydoublePtr(values *[]float64, count int32) float64 { } func PlotImMinMaxArrayFloatPtr(values []float32, count int32, min_out *float32, max_out *float32) { - min_outArg, min_outFin := WrapNumberPtr[C.float, float32](min_out) - max_outArg, max_outFin := WrapNumberPtr[C.float, float32](max_out) + min_outArg, min_outFin := wrapper.WrapNumberPtr[C.float, float32](min_out) + max_outArg, max_outFin := wrapper.WrapNumberPtr[C.float, float32](max_out) C.ImPlot_ImMinMaxArray_FloatPtr((*C.float)(&(values[0])), C.int(count), min_outArg, max_outArg) min_outFin() @@ -1772,8 +1777,8 @@ func PlotImMinMaxArraydoublePtr(values *[]float64, count int32, min_out *float64 valuesArg[i] = C.double(valuesV) } - min_outArg, min_outFin := WrapNumberPtr[C.double, float64](min_out) - max_outArg, max_outFin := WrapNumberPtr[C.double, float64](max_out) + min_outArg, min_outFin := wrapper.WrapNumberPtr[C.double, float64](min_out) + max_outArg, max_outFin := wrapper.WrapNumberPtr[C.double, float64](max_out) C.ImPlot_ImMinMaxArray_doublePtr((*C.double)(&valuesArg[0]), C.int(count), min_outArg, max_outArg) for i, valuesV := range valuesArg { @@ -2164,7 +2169,7 @@ func PlotIsLeapYear(year int32) bool { } func PlotIsLegendEntryHovered(label_id string) bool { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -2264,7 +2269,7 @@ func PlotPixelsToPlotVec2V(pix Vec2, x_axis PlotAxisEnum, y_axis PlotAxisEnum) P // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsFloatPtrV(label_ids []string, values []float32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.ImPlot_PlotBarGroups_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2275,7 +2280,7 @@ func PlotPlotBarGroupsFloatPtrV(label_ids []string, values []float32, item_count // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS16PtrV(label_ids []string, values *[]int, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -2295,7 +2300,7 @@ func PlotPlotBarGroupsS16PtrV(label_ids []string, values *[]int, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS32PtrV(label_ids []string, values *[]int32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -2315,7 +2320,7 @@ func PlotPlotBarGroupsS32PtrV(label_ids []string, values *[]int32, item_count in // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS64PtrV(label_ids []string, values []int64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.ImPlot_PlotBarGroups_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2326,7 +2331,7 @@ func PlotPlotBarGroupsS64PtrV(label_ids []string, values []int64, item_count int // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS8PtrV(label_ids []string, values *[]int8, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -2346,7 +2351,7 @@ func PlotPlotBarGroupsS8PtrV(label_ids []string, values *[]int8, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU16PtrV(label_ids []string, values *[]uint16, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -2366,7 +2371,7 @@ func PlotPlotBarGroupsU16PtrV(label_ids []string, values *[]uint16, item_count i // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU32PtrV(label_ids []string, values *[]uint32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -2386,7 +2391,7 @@ func PlotPlotBarGroupsU32PtrV(label_ids []string, values *[]uint32, item_count i // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU64PtrV(label_ids []string, values []uint64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.ImPlot_PlotBarGroups_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2397,7 +2402,7 @@ func PlotPlotBarGroupsU64PtrV(label_ids []string, values []uint64, item_count in // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU8PtrV(label_ids []string, values *[]byte, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -2417,7 +2422,7 @@ func PlotPlotBarGroupsU8PtrV(label_ids []string, values *[]byte, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsdoublePtrV(label_ids []string, values *[]float64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -2437,7 +2442,7 @@ func PlotPlotBarGroupsdoublePtrV(label_ids []string, values *[]float64, item_cou // offset: 0 // stride: sizeof(float) func PlotPlotBarsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotBars_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2450,7 +2455,7 @@ func PlotPlotBarsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // shift: 0 // stride: sizeof(float) func PlotPlotBarsFloatPtrIntV(label_id string, values []float32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotBars_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2463,7 +2468,7 @@ func PlotPlotBarsFloatPtrIntV(label_id string, values []float32, count int32, ba // shift: 0 // stride: sizeof(ImS16) func PlotPlotBarsS16PtrIntV(label_id string, values *[]int, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -2483,7 +2488,7 @@ func PlotPlotBarsS16PtrIntV(label_id string, values *[]int, count int32, bar_siz // offset: 0 // stride: sizeof(ImS16) func PlotPlotBarsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -2514,7 +2519,7 @@ func PlotPlotBarsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int3 // shift: 0 // stride: sizeof(ImS32) func PlotPlotBarsS32PtrIntV(label_id string, values *[]int32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -2534,7 +2539,7 @@ func PlotPlotBarsS32PtrIntV(label_id string, values *[]int32, count int32, bar_s // offset: 0 // stride: sizeof(ImS32) func PlotPlotBarsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -2565,7 +2570,7 @@ func PlotPlotBarsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // shift: 0 // stride: sizeof(ImS64) func PlotPlotBarsS64PtrIntV(label_id string, values []int64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotBars_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2576,7 +2581,7 @@ func PlotPlotBarsS64PtrIntV(label_id string, values []int64, count int32, bar_si // offset: 0 // stride: sizeof(ImS64) func PlotPlotBarsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotBars_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2589,7 +2594,7 @@ func PlotPlotBarsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count in // shift: 0 // stride: sizeof(ImS8) func PlotPlotBarsS8PtrIntV(label_id string, values *[]int8, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -2609,7 +2614,7 @@ func PlotPlotBarsS8PtrIntV(label_id string, values *[]int8, count int32, bar_siz // offset: 0 // stride: sizeof(ImS8) func PlotPlotBarsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -2640,7 +2645,7 @@ func PlotPlotBarsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int3 // shift: 0 // stride: sizeof(ImU16) func PlotPlotBarsU16PtrIntV(label_id string, values *[]uint16, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -2660,7 +2665,7 @@ func PlotPlotBarsU16PtrIntV(label_id string, values *[]uint16, count int32, bar_ // offset: 0 // stride: sizeof(ImU16) func PlotPlotBarsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -2691,7 +2696,7 @@ func PlotPlotBarsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, coun // shift: 0 // stride: sizeof(ImU32) func PlotPlotBarsU32PtrIntV(label_id string, values *[]uint32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -2711,7 +2716,7 @@ func PlotPlotBarsU32PtrIntV(label_id string, values *[]uint32, count int32, bar_ // offset: 0 // stride: sizeof(ImU32) func PlotPlotBarsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -2742,7 +2747,7 @@ func PlotPlotBarsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, coun // shift: 0 // stride: sizeof(ImU64) func PlotPlotBarsU64PtrIntV(label_id string, values []uint64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotBars_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2753,7 +2758,7 @@ func PlotPlotBarsU64PtrIntV(label_id string, values []uint64, count int32, bar_s // offset: 0 // stride: sizeof(ImU64) func PlotPlotBarsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotBars_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2766,7 +2771,7 @@ func PlotPlotBarsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // shift: 0 // stride: sizeof(ImU8) func PlotPlotBarsU8PtrIntV(label_id string, values *[]byte, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -2786,7 +2791,7 @@ func PlotPlotBarsU8PtrIntV(label_id string, values *[]byte, count int32, bar_siz // offset: 0 // stride: sizeof(ImU8) func PlotPlotBarsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -2817,7 +2822,7 @@ func PlotPlotBarsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int3 // shift: 0 // stride: sizeof(double) func PlotPlotBarsdoublePtrIntV(label_id string, values *[]float64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -2837,7 +2842,7 @@ func PlotPlotBarsdoublePtrIntV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotBarsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -2866,7 +2871,7 @@ func PlotPlotBarsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float // offset: 0 // stride: sizeof(float) func PlotPlotDigitalFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotDigital_FloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2877,7 +2882,7 @@ func PlotPlotDigitalFloatPtrV(label_id string, xs []float32, ys []float32, count // offset: 0 // stride: sizeof(ImS16) func PlotPlotDigitalS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -2906,7 +2911,7 @@ func PlotPlotDigitalS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, // offset: 0 // stride: sizeof(ImS32) func PlotPlotDigitalS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -2935,7 +2940,7 @@ func PlotPlotDigitalS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int // offset: 0 // stride: sizeof(ImS64) func PlotPlotDigitalS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotDigital_S64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2946,7 +2951,7 @@ func PlotPlotDigitalS64PtrV(label_id string, xs []int64, ys []int64, count int32 // offset: 0 // stride: sizeof(ImS8) func PlotPlotDigitalS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -2975,7 +2980,7 @@ func PlotPlotDigitalS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, // offset: 0 // stride: sizeof(ImU16) func PlotPlotDigitalU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3004,7 +3009,7 @@ func PlotPlotDigitalU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count i // offset: 0 // stride: sizeof(ImU32) func PlotPlotDigitalU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3033,7 +3038,7 @@ func PlotPlotDigitalU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count i // offset: 0 // stride: sizeof(ImU64) func PlotPlotDigitalU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotDigital_U64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3044,7 +3049,7 @@ func PlotPlotDigitalU64PtrV(label_id string, xs []uint64, ys []uint64, count int // offset: 0 // stride: sizeof(ImU8) func PlotPlotDigitalU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3073,7 +3078,7 @@ func PlotPlotDigitalU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotDigitaldoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3100,7 +3105,7 @@ func PlotPlotDigitaldoublePtrV(label_id string, xs *[]float64, ys *[]float64, co // PlotPlotDummyV parameter default value hint: // flags: 0 func PlotPlotDummyV(label_id string, flags PlotDummyFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotDummy(label_idArg, C.ImPlotDummyFlags(flags)) label_idFin() @@ -3111,7 +3116,7 @@ func PlotPlotDummyV(label_id string, flags PlotDummyFlags) { // offset: 0 // stride: sizeof(float) func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, neg []float32, pos []float32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(neg[0])), (*C.float)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3122,7 +3127,7 @@ func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtrV(label_id string, xs []fl // offset: 0 // stride: sizeof(float) func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []float32, err []float32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3133,7 +3138,7 @@ func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrIntV(label_id string, xs []float32 // offset: 0 // stride: sizeof(ImS16) func PlotPlotErrorBarsS16PtrS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, err *[]int, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -3171,7 +3176,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]i // offset: 0 // stride: sizeof(ImS16) func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, neg *[]int, pos *[]int, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -3218,7 +3223,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys * // offset: 0 // stride: sizeof(ImS32) func PlotPlotErrorBarsS32PtrS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, err *[]int32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -3256,7 +3261,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[ // offset: 0 // stride: sizeof(ImS32) func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, neg *[]int32, pos *[]int32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -3303,7 +3308,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys // offset: 0 // stride: sizeof(ImS64) func PlotPlotErrorBarsS64PtrS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, err []int64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3314,7 +3319,7 @@ func PlotPlotErrorBarsS64PtrS64PtrS64PtrIntV(label_id string, xs []int64, ys []i // offset: 0 // stride: sizeof(ImS64) func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys []int64, neg []int64, pos []int64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(neg[0])), (*C.longlong)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3325,7 +3330,7 @@ func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys // offset: 0 // stride: sizeof(ImS8) func PlotPlotErrorBarsS8PtrS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, err *[]int8, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -3363,7 +3368,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int // offset: 0 // stride: sizeof(ImS8) func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, neg *[]int8, pos *[]int8, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -3410,7 +3415,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]i // offset: 0 // stride: sizeof(ImU16) func PlotPlotErrorBarsU16PtrU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, err *[]uint16, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3448,7 +3453,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys * // offset: 0 // stride: sizeof(ImU16) func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, neg *[]uint16, pos *[]uint16, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3495,7 +3500,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, y // offset: 0 // stride: sizeof(ImU32) func PlotPlotErrorBarsU32PtrU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, err *[]uint32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3533,7 +3538,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys * // offset: 0 // stride: sizeof(ImU32) func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, neg *[]uint32, pos *[]uint32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3580,7 +3585,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, y // offset: 0 // stride: sizeof(ImU64) func PlotPlotErrorBarsU64PtrU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, err []uint64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3591,7 +3596,7 @@ func PlotPlotErrorBarsU64PtrU64PtrU64PtrIntV(label_id string, xs []uint64, ys [] // offset: 0 // stride: sizeof(ImU64) func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, neg []uint64, pos []uint64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(neg[0])), (*C.ulonglong)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3602,7 +3607,7 @@ func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys // offset: 0 // stride: sizeof(ImU8) func PlotPlotErrorBarsU8PtrU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, err *[]byte, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3640,7 +3645,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byt // offset: 0 // stride: sizeof(ImU8) func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, neg *[]byte, pos *[]byte, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3687,7 +3692,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]b // offset: 0 // stride: sizeof(double) func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[]float64, err *[]float64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3725,7 +3730,7 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrIntV(label_id string, xs *[]flo // offset: 0 // stride: sizeof(double) func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, neg *[]float64, pos *[]float64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3775,8 +3780,8 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtrV(label_id string, xs // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapFloatPtrV(label_id string, values []float32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_idArg, label_idFin := wrapper.WrapString(label_id) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3791,13 +3796,13 @@ func PlotPlotHeatmapFloatPtrV(label_id string, values []float32, rows int32, col // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS16PtrV(label_id string, values *[]int, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_S16Ptr(label_idArg, (*C.ImS16)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3817,13 +3822,13 @@ func PlotPlotHeatmapS16PtrV(label_id string, values *[]int, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS32PtrV(label_id string, values *[]int32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_S32Ptr(label_idArg, (*C.ImS32)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3843,8 +3848,8 @@ func PlotPlotHeatmapS32PtrV(label_id string, values *[]int32, rows int32, cols i // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS64PtrV(label_id string, values []int64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_idArg, label_idFin := wrapper.WrapString(label_id) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3859,13 +3864,13 @@ func PlotPlotHeatmapS64PtrV(label_id string, values []int64, rows int32, cols in // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS8PtrV(label_id string, values *[]int8, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_S8Ptr(label_idArg, (*C.ImS8)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3885,13 +3890,13 @@ func PlotPlotHeatmapS8PtrV(label_id string, values *[]int8, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU16PtrV(label_id string, values *[]uint16, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_U16Ptr(label_idArg, (*C.ImU16)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3911,13 +3916,13 @@ func PlotPlotHeatmapU16PtrV(label_id string, values *[]uint16, rows int32, cols // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU32PtrV(label_id string, values *[]uint32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_U32Ptr(label_idArg, (*C.ImU32)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3937,8 +3942,8 @@ func PlotPlotHeatmapU32PtrV(label_id string, values *[]uint32, rows int32, cols // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU64PtrV(label_id string, values []uint64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_idArg, label_idFin := wrapper.WrapString(label_id) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3953,13 +3958,13 @@ func PlotPlotHeatmapU64PtrV(label_id string, values []uint64, rows int32, cols i // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU8PtrV(label_id string, values *[]byte, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_U8Ptr(label_idArg, (*C.ImU8)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3979,13 +3984,13 @@ func PlotPlotHeatmapU8PtrV(label_id string, values *[]byte, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapdoublePtrV(label_id string, values *[]float64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotHeatmap_doublePtr(label_idArg, (*C.double)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -4003,7 +4008,7 @@ func PlotPlotHeatmapdoublePtrV(label_id string, values *[]float64, rows int32, c // uv0: ImVec2(0,0) // uv1: ImVec2(1,1) func PlotPlotImageV(label_id string, user_texture_id TextureID, bounds_min PlotPoint, bounds_max PlotPoint, uv0 Vec2, uv1 Vec2, tint_col Vec4, flags PlotImageFlags) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotImage(label_idArg, C.ImTextureID(user_texture_id), bounds_min.toC(), bounds_max.toC(), uv0.toC(), uv1.toC(), tint_col.toC(), C.ImPlotImageFlags(flags)) label_idFin() @@ -4014,7 +4019,7 @@ func PlotPlotImageV(label_id string, user_texture_id TextureID, bounds_min PlotP // offset: 0 // stride: sizeof(float) func PlotPlotInfLinesFloatPtrV(label_id string, values []float32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotInfLines_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4025,7 +4030,7 @@ func PlotPlotInfLinesFloatPtrV(label_id string, values []float32, count int32, f // offset: 0 // stride: sizeof(ImS16) func PlotPlotInfLinesS16PtrV(label_id string, values *[]int, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4045,7 +4050,7 @@ func PlotPlotInfLinesS16PtrV(label_id string, values *[]int, count int32, flags // offset: 0 // stride: sizeof(ImS32) func PlotPlotInfLinesS32PtrV(label_id string, values *[]int32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4065,7 +4070,7 @@ func PlotPlotInfLinesS32PtrV(label_id string, values *[]int32, count int32, flag // offset: 0 // stride: sizeof(ImS64) func PlotPlotInfLinesS64PtrV(label_id string, values []int64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotInfLines_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4076,7 +4081,7 @@ func PlotPlotInfLinesS64PtrV(label_id string, values []int64, count int32, flags // offset: 0 // stride: sizeof(ImS8) func PlotPlotInfLinesS8PtrV(label_id string, values *[]int8, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4096,7 +4101,7 @@ func PlotPlotInfLinesS8PtrV(label_id string, values *[]int8, count int32, flags // offset: 0 // stride: sizeof(ImU16) func PlotPlotInfLinesU16PtrV(label_id string, values *[]uint16, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -4116,7 +4121,7 @@ func PlotPlotInfLinesU16PtrV(label_id string, values *[]uint16, count int32, fla // offset: 0 // stride: sizeof(ImU32) func PlotPlotInfLinesU32PtrV(label_id string, values *[]uint32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -4136,7 +4141,7 @@ func PlotPlotInfLinesU32PtrV(label_id string, values *[]uint32, count int32, fla // offset: 0 // stride: sizeof(ImU64) func PlotPlotInfLinesU64PtrV(label_id string, values []uint64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotInfLines_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4147,7 +4152,7 @@ func PlotPlotInfLinesU64PtrV(label_id string, values []uint64, count int32, flag // offset: 0 // stride: sizeof(ImU8) func PlotPlotInfLinesU8PtrV(label_id string, values *[]byte, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -4167,7 +4172,7 @@ func PlotPlotInfLinesU8PtrV(label_id string, values *[]byte, count int32, flags // offset: 0 // stride: sizeof(double) func PlotPlotInfLinesdoublePtrV(label_id string, values *[]float64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -4187,7 +4192,7 @@ func PlotPlotInfLinesdoublePtrV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(float) func PlotPlotLineFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotLine_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4200,7 +4205,7 @@ func PlotPlotLineFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // xscale: 1 // xstart: 0 func PlotPlotLineFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotLine_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4213,7 +4218,7 @@ func PlotPlotLineFloatPtrIntV(label_id string, values []float32, count int32, xs // xscale: 1 // xstart: 0 func PlotPlotLineS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4233,7 +4238,7 @@ func PlotPlotLineS16PtrIntV(label_id string, values *[]int, count int32, xscale // offset: 0 // stride: sizeof(ImS16) func PlotPlotLineS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -4264,7 +4269,7 @@ func PlotPlotLineS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int3 // xscale: 1 // xstart: 0 func PlotPlotLineS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4284,7 +4289,7 @@ func PlotPlotLineS32PtrIntV(label_id string, values *[]int32, count int32, xscal // offset: 0 // stride: sizeof(ImS32) func PlotPlotLineS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -4315,7 +4320,7 @@ func PlotPlotLineS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // xscale: 1 // xstart: 0 func PlotPlotLineS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotLine_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4326,7 +4331,7 @@ func PlotPlotLineS64PtrIntV(label_id string, values []int64, count int32, xscale // offset: 0 // stride: sizeof(ImS64) func PlotPlotLineS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotLine_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4339,7 +4344,7 @@ func PlotPlotLineS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count in // xscale: 1 // xstart: 0 func PlotPlotLineS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4359,7 +4364,7 @@ func PlotPlotLineS8PtrIntV(label_id string, values *[]int8, count int32, xscale // offset: 0 // stride: sizeof(ImS8) func PlotPlotLineS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -4390,7 +4395,7 @@ func PlotPlotLineS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int3 // xscale: 1 // xstart: 0 func PlotPlotLineU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -4410,7 +4415,7 @@ func PlotPlotLineU16PtrIntV(label_id string, values *[]uint16, count int32, xsca // offset: 0 // stride: sizeof(ImU16) func PlotPlotLineU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -4441,7 +4446,7 @@ func PlotPlotLineU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, coun // xscale: 1 // xstart: 0 func PlotPlotLineU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -4461,7 +4466,7 @@ func PlotPlotLineU32PtrIntV(label_id string, values *[]uint32, count int32, xsca // offset: 0 // stride: sizeof(ImU32) func PlotPlotLineU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -4492,7 +4497,7 @@ func PlotPlotLineU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, coun // xscale: 1 // xstart: 0 func PlotPlotLineU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotLine_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4503,7 +4508,7 @@ func PlotPlotLineU64PtrIntV(label_id string, values []uint64, count int32, xscal // offset: 0 // stride: sizeof(ImU64) func PlotPlotLineU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotLine_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4516,7 +4521,7 @@ func PlotPlotLineU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // xscale: 1 // xstart: 0 func PlotPlotLineU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -4536,7 +4541,7 @@ func PlotPlotLineU8PtrIntV(label_id string, values *[]byte, count int32, xscale // offset: 0 // stride: sizeof(ImU8) func PlotPlotLineU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -4567,7 +4572,7 @@ func PlotPlotLineU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int3 // xscale: 1 // xstart: 0 func PlotPlotLinedoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -4587,7 +4592,7 @@ func PlotPlotLinedoublePtrIntV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotLinedoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -4616,8 +4621,8 @@ func PlotPlotLinedoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartFloatPtrV(label_ids []string, values []float32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4629,13 +4634,13 @@ func PlotPlotPieChartFloatPtrV(label_ids []string, values []float32, count int32 // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS16PtrV(label_ids []string, values *[]int, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_S16Ptr(label_idsArg, (*C.ImS16)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4652,13 +4657,13 @@ func PlotPlotPieChartS16PtrV(label_ids []string, values *[]int, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS32PtrV(label_ids []string, values *[]int32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_S32Ptr(label_idsArg, (*C.ImS32)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4675,8 +4680,8 @@ func PlotPlotPieChartS32PtrV(label_ids []string, values *[]int32, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS64PtrV(label_ids []string, values []int64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4688,13 +4693,13 @@ func PlotPlotPieChartS64PtrV(label_ids []string, values []int64, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS8PtrV(label_ids []string, values *[]int8, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_S8Ptr(label_idsArg, (*C.ImS8)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4711,13 +4716,13 @@ func PlotPlotPieChartS8PtrV(label_ids []string, values *[]int8, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU16PtrV(label_ids []string, values *[]uint16, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_U16Ptr(label_idsArg, (*C.ImU16)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4734,13 +4739,13 @@ func PlotPlotPieChartU16PtrV(label_ids []string, values *[]uint16, count int32, // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU32PtrV(label_ids []string, values *[]uint32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_U32Ptr(label_idsArg, (*C.ImU32)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4757,8 +4762,8 @@ func PlotPlotPieChartU32PtrV(label_ids []string, values *[]uint32, count int32, // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU64PtrV(label_ids []string, values []uint64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4770,13 +4775,13 @@ func PlotPlotPieChartU64PtrV(label_ids []string, values []uint64, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU8PtrV(label_ids []string, values *[]byte, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_U8Ptr(label_idsArg, (*C.ImU8)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4793,13 +4798,13 @@ func PlotPlotPieChartU8PtrV(label_ids []string, values *[]byte, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartdoublePtrV(label_ids []string, values *[]float64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) } - label_fmtArg, label_fmtFin := WrapString(label_fmt) + label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) C.ImPlot_PlotPieChart_doublePtr(label_idsArg, (*C.double)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4816,7 +4821,7 @@ func PlotPlotPieChartdoublePtrV(label_ids []string, values *[]float64, count int // offset: 0 // stride: sizeof(float) func PlotPlotScatterFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotScatter_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4829,7 +4834,7 @@ func PlotPlotScatterFloatPtrFloatPtrV(label_id string, xs []float32, ys []float3 // xscale: 1 // xstart: 0 func PlotPlotScatterFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotScatter_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4842,7 +4847,7 @@ func PlotPlotScatterFloatPtrIntV(label_id string, values []float32, count int32, // xscale: 1 // xstart: 0 func PlotPlotScatterS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4862,7 +4867,7 @@ func PlotPlotScatterS16PtrIntV(label_id string, values *[]int, count int32, xsca // offset: 0 // stride: sizeof(ImS16) func PlotPlotScatterS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -4893,7 +4898,7 @@ func PlotPlotScatterS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count i // xscale: 1 // xstart: 0 func PlotPlotScatterS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4913,7 +4918,7 @@ func PlotPlotScatterS32PtrIntV(label_id string, values *[]int32, count int32, xs // offset: 0 // stride: sizeof(ImS32) func PlotPlotScatterS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -4944,7 +4949,7 @@ func PlotPlotScatterS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, cou // xscale: 1 // xstart: 0 func PlotPlotScatterS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotScatter_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4955,7 +4960,7 @@ func PlotPlotScatterS64PtrIntV(label_id string, values []int64, count int32, xsc // offset: 0 // stride: sizeof(ImS64) func PlotPlotScatterS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotScatter_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4968,7 +4973,7 @@ func PlotPlotScatterS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count // xscale: 1 // xstart: 0 func PlotPlotScatterS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4988,7 +4993,7 @@ func PlotPlotScatterS8PtrIntV(label_id string, values *[]int8, count int32, xsca // offset: 0 // stride: sizeof(ImS8) func PlotPlotScatterS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5019,7 +5024,7 @@ func PlotPlotScatterS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count i // xscale: 1 // xstart: 0 func PlotPlotScatterU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -5039,7 +5044,7 @@ func PlotPlotScatterU16PtrIntV(label_id string, values *[]uint16, count int32, x // offset: 0 // stride: sizeof(ImU16) func PlotPlotScatterU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5070,7 +5075,7 @@ func PlotPlotScatterU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, c // xscale: 1 // xstart: 0 func PlotPlotScatterU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -5090,7 +5095,7 @@ func PlotPlotScatterU32PtrIntV(label_id string, values *[]uint32, count int32, x // offset: 0 // stride: sizeof(ImU32) func PlotPlotScatterU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5121,7 +5126,7 @@ func PlotPlotScatterU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, c // xscale: 1 // xstart: 0 func PlotPlotScatterU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotScatter_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5132,7 +5137,7 @@ func PlotPlotScatterU64PtrIntV(label_id string, values []uint64, count int32, xs // offset: 0 // stride: sizeof(ImU64) func PlotPlotScatterU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotScatter_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5145,7 +5150,7 @@ func PlotPlotScatterU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, cou // xscale: 1 // xstart: 0 func PlotPlotScatterU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -5165,7 +5170,7 @@ func PlotPlotScatterU8PtrIntV(label_id string, values *[]byte, count int32, xsca // offset: 0 // stride: sizeof(ImU8) func PlotPlotScatterU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5196,7 +5201,7 @@ func PlotPlotScatterU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count i // xscale: 1 // xstart: 0 func PlotPlotScatterdoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -5216,7 +5221,7 @@ func PlotPlotScatterdoublePtrIntV(label_id string, values *[]float64, count int3 // offset: 0 // stride: sizeof(double) func PlotPlotScatterdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5245,7 +5250,7 @@ func PlotPlotScatterdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]fl // offset: 0 // stride: sizeof(float) func PlotPlotShadedFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys1 []float32, ys2 []float32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys1[0])), (*C.float)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5257,7 +5262,7 @@ func PlotPlotShadedFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys1 // stride: sizeof(float) // yref: 0 func PlotPlotShadedFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []float32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5271,7 +5276,7 @@ func PlotPlotShadedFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []floa // xstart: 0 // yref: 0 func PlotPlotShadedFloatPtrIntV(label_id string, values []float32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5285,7 +5290,7 @@ func PlotPlotShadedFloatPtrIntV(label_id string, values []float32, count int32, // xstart: 0 // yref: 0 func PlotPlotShadedS16PtrIntV(label_id string, values *[]int, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -5306,7 +5311,7 @@ func PlotPlotShadedS16PtrIntV(label_id string, values *[]int, count int32, yref // stride: sizeof(ImS16) // yref: 0 func PlotPlotShadedS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -5335,7 +5340,7 @@ func PlotPlotShadedS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, count // offset: 0 // stride: sizeof(ImS16) func PlotPlotShadedS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys1 *[]int, ys2 *[]int, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -5376,7 +5381,7 @@ func PlotPlotShadedS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys1 *[]int, y // xstart: 0 // yref: 0 func PlotPlotShadedS32PtrIntV(label_id string, values *[]int32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -5397,7 +5402,7 @@ func PlotPlotShadedS32PtrIntV(label_id string, values *[]int32, count int32, yre // stride: sizeof(ImS32) // yref: 0 func PlotPlotShadedS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -5426,7 +5431,7 @@ func PlotPlotShadedS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, c // offset: 0 // stride: sizeof(ImS32) func PlotPlotShadedS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys1 *[]int32, ys2 *[]int32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -5467,7 +5472,7 @@ func PlotPlotShadedS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys1 *[]int3 // xstart: 0 // yref: 0 func PlotPlotShadedS64PtrIntV(label_id string, values []int64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5479,7 +5484,7 @@ func PlotPlotShadedS64PtrIntV(label_id string, values []int64, count int32, yref // stride: sizeof(ImS64) // yref: 0 func PlotPlotShadedS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_S64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5490,7 +5495,7 @@ func PlotPlotShadedS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, cou // offset: 0 // stride: sizeof(ImS64) func PlotPlotShadedS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys1 []int64, ys2 []int64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_S64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys1[0])), (*C.longlong)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5504,7 +5509,7 @@ func PlotPlotShadedS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys1 []int64, // xstart: 0 // yref: 0 func PlotPlotShadedS8PtrIntV(label_id string, values *[]int8, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -5525,7 +5530,7 @@ func PlotPlotShadedS8PtrIntV(label_id string, values *[]int8, count int32, yref // stride: sizeof(ImS8) // yref: 0 func PlotPlotShadedS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5554,7 +5559,7 @@ func PlotPlotShadedS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, count // offset: 0 // stride: sizeof(ImS8) func PlotPlotShadedS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys1 *[]int8, ys2 *[]int8, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5595,7 +5600,7 @@ func PlotPlotShadedS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys1 *[]int8, ys // xstart: 0 // yref: 0 func PlotPlotShadedU16PtrIntV(label_id string, values *[]uint16, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -5616,7 +5621,7 @@ func PlotPlotShadedU16PtrIntV(label_id string, values *[]uint16, count int32, yr // stride: sizeof(ImU16) // yref: 0 func PlotPlotShadedU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5645,7 +5650,7 @@ func PlotPlotShadedU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, // offset: 0 // stride: sizeof(ImU16) func PlotPlotShadedU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys1 *[]uint16, ys2 *[]uint16, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5686,7 +5691,7 @@ func PlotPlotShadedU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys1 *[]uin // xstart: 0 // yref: 0 func PlotPlotShadedU32PtrIntV(label_id string, values *[]uint32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -5707,7 +5712,7 @@ func PlotPlotShadedU32PtrIntV(label_id string, values *[]uint32, count int32, yr // stride: sizeof(ImU32) // yref: 0 func PlotPlotShadedU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5736,7 +5741,7 @@ func PlotPlotShadedU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, // offset: 0 // stride: sizeof(ImU32) func PlotPlotShadedU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys1 *[]uint32, ys2 *[]uint32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5777,7 +5782,7 @@ func PlotPlotShadedU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys1 *[]uin // xstart: 0 // yref: 0 func PlotPlotShadedU64PtrIntV(label_id string, values []uint64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5789,7 +5794,7 @@ func PlotPlotShadedU64PtrIntV(label_id string, values []uint64, count int32, yre // stride: sizeof(ImU64) // yref: 0 func PlotPlotShadedU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_U64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5800,7 +5805,7 @@ func PlotPlotShadedU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, c // offset: 0 // stride: sizeof(ImU64) func PlotPlotShadedU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys1 []uint64, ys2 []uint64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotShaded_U64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys1[0])), (*C.ulonglong)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5814,7 +5819,7 @@ func PlotPlotShadedU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys1 []uint6 // xstart: 0 // yref: 0 func PlotPlotShadedU8PtrIntV(label_id string, values *[]byte, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -5835,7 +5840,7 @@ func PlotPlotShadedU8PtrIntV(label_id string, values *[]byte, count int32, yref // stride: sizeof(ImU8) // yref: 0 func PlotPlotShadedU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5864,7 +5869,7 @@ func PlotPlotShadedU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, count // offset: 0 // stride: sizeof(ImU8) func PlotPlotShadedU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys1 *[]byte, ys2 *[]byte, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5905,7 +5910,7 @@ func PlotPlotShadedU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys1 *[]byte, ys // xstart: 0 // yref: 0 func PlotPlotShadeddoublePtrIntV(label_id string, values *[]float64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -5926,7 +5931,7 @@ func PlotPlotShadeddoublePtrIntV(label_id string, values *[]float64, count int32 // stride: sizeof(double) // yref: 0 func PlotPlotShadeddoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[]float64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5955,7 +5960,7 @@ func PlotPlotShadeddoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[] // offset: 0 // stride: sizeof(double) func PlotPlotShadeddoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, ys1 *[]float64, ys2 *[]float64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5993,7 +5998,7 @@ func PlotPlotShadeddoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, // offset: 0 // stride: sizeof(float) func PlotPlotStairsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStairs_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6006,7 +6011,7 @@ func PlotPlotStairsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32 // xscale: 1 // xstart: 0 func PlotPlotStairsFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStairs_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6019,7 +6024,7 @@ func PlotPlotStairsFloatPtrIntV(label_id string, values []float32, count int32, // xscale: 1 // xstart: 0 func PlotPlotStairsS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -6039,7 +6044,7 @@ func PlotPlotStairsS16PtrIntV(label_id string, values *[]int, count int32, xscal // offset: 0 // stride: sizeof(ImS16) func PlotPlotStairsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -6070,7 +6075,7 @@ func PlotPlotStairsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count in // xscale: 1 // xstart: 0 func PlotPlotStairsS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -6090,7 +6095,7 @@ func PlotPlotStairsS32PtrIntV(label_id string, values *[]int32, count int32, xsc // offset: 0 // stride: sizeof(ImS32) func PlotPlotStairsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -6121,7 +6126,7 @@ func PlotPlotStairsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, coun // xscale: 1 // xstart: 0 func PlotPlotStairsS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStairs_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6132,7 +6137,7 @@ func PlotPlotStairsS64PtrIntV(label_id string, values []int64, count int32, xsca // offset: 0 // stride: sizeof(ImS64) func PlotPlotStairsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStairs_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6145,7 +6150,7 @@ func PlotPlotStairsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count // xscale: 1 // xstart: 0 func PlotPlotStairsS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -6165,7 +6170,7 @@ func PlotPlotStairsS8PtrIntV(label_id string, values *[]int8, count int32, xscal // offset: 0 // stride: sizeof(ImS8) func PlotPlotStairsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -6196,7 +6201,7 @@ func PlotPlotStairsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count in // xscale: 1 // xstart: 0 func PlotPlotStairsU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -6216,7 +6221,7 @@ func PlotPlotStairsU16PtrIntV(label_id string, values *[]uint16, count int32, xs // offset: 0 // stride: sizeof(ImU16) func PlotPlotStairsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -6247,7 +6252,7 @@ func PlotPlotStairsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, co // xscale: 1 // xstart: 0 func PlotPlotStairsU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -6267,7 +6272,7 @@ func PlotPlotStairsU32PtrIntV(label_id string, values *[]uint32, count int32, xs // offset: 0 // stride: sizeof(ImU32) func PlotPlotStairsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -6298,7 +6303,7 @@ func PlotPlotStairsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, co // xscale: 1 // xstart: 0 func PlotPlotStairsU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStairs_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6309,7 +6314,7 @@ func PlotPlotStairsU64PtrIntV(label_id string, values []uint64, count int32, xsc // offset: 0 // stride: sizeof(ImU64) func PlotPlotStairsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStairs_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6322,7 +6327,7 @@ func PlotPlotStairsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, coun // xscale: 1 // xstart: 0 func PlotPlotStairsU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -6342,7 +6347,7 @@ func PlotPlotStairsU8PtrIntV(label_id string, values *[]byte, count int32, xscal // offset: 0 // stride: sizeof(ImU8) func PlotPlotStairsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -6373,7 +6378,7 @@ func PlotPlotStairsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count in // xscale: 1 // xstart: 0 func PlotPlotStairsdoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -6393,7 +6398,7 @@ func PlotPlotStairsdoublePtrIntV(label_id string, values *[]float64, count int32 // offset: 0 // stride: sizeof(double) func PlotPlotStairsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -6423,7 +6428,7 @@ func PlotPlotStairsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]flo // ref: 0 // stride: sizeof(float) func PlotPlotStemsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStems_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6437,7 +6442,7 @@ func PlotPlotStemsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // start: 0 // stride: sizeof(float) func PlotPlotStemsFloatPtrIntV(label_id string, values []float32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStems_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6451,7 +6456,7 @@ func PlotPlotStemsFloatPtrIntV(label_id string, values []float32, count int32, r // start: 0 // stride: sizeof(ImS16) func PlotPlotStemsS16PtrIntV(label_id string, values *[]int, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -6472,7 +6477,7 @@ func PlotPlotStemsS16PtrIntV(label_id string, values *[]int, count int32, ref fl // ref: 0 // stride: sizeof(ImS16) func PlotPlotStemsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -6504,7 +6509,7 @@ func PlotPlotStemsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int // start: 0 // stride: sizeof(ImS32) func PlotPlotStemsS32PtrIntV(label_id string, values *[]int32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -6525,7 +6530,7 @@ func PlotPlotStemsS32PtrIntV(label_id string, values *[]int32, count int32, ref // ref: 0 // stride: sizeof(ImS32) func PlotPlotStemsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -6557,7 +6562,7 @@ func PlotPlotStemsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // start: 0 // stride: sizeof(ImS64) func PlotPlotStemsS64PtrIntV(label_id string, values []int64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStems_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6569,7 +6574,7 @@ func PlotPlotStemsS64PtrIntV(label_id string, values []int64, count int32, ref f // ref: 0 // stride: sizeof(ImS64) func PlotPlotStemsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStems_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6583,7 +6588,7 @@ func PlotPlotStemsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count i // start: 0 // stride: sizeof(ImS8) func PlotPlotStemsS8PtrIntV(label_id string, values *[]int8, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -6604,7 +6609,7 @@ func PlotPlotStemsS8PtrIntV(label_id string, values *[]int8, count int32, ref fl // ref: 0 // stride: sizeof(ImS8) func PlotPlotStemsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -6636,7 +6641,7 @@ func PlotPlotStemsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int // start: 0 // stride: sizeof(ImU16) func PlotPlotStemsU16PtrIntV(label_id string, values *[]uint16, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -6657,7 +6662,7 @@ func PlotPlotStemsU16PtrIntV(label_id string, values *[]uint16, count int32, ref // ref: 0 // stride: sizeof(ImU16) func PlotPlotStemsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -6689,7 +6694,7 @@ func PlotPlotStemsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, cou // start: 0 // stride: sizeof(ImU32) func PlotPlotStemsU32PtrIntV(label_id string, values *[]uint32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -6710,7 +6715,7 @@ func PlotPlotStemsU32PtrIntV(label_id string, values *[]uint32, count int32, ref // ref: 0 // stride: sizeof(ImU32) func PlotPlotStemsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -6742,7 +6747,7 @@ func PlotPlotStemsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, cou // start: 0 // stride: sizeof(ImU64) func PlotPlotStemsU64PtrIntV(label_id string, values []uint64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStems_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6754,7 +6759,7 @@ func PlotPlotStemsU64PtrIntV(label_id string, values []uint64, count int32, ref // ref: 0 // stride: sizeof(ImU64) func PlotPlotStemsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.ImPlot_PlotStems_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6768,7 +6773,7 @@ func PlotPlotStemsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // start: 0 // stride: sizeof(ImU8) func PlotPlotStemsU8PtrIntV(label_id string, values *[]byte, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -6789,7 +6794,7 @@ func PlotPlotStemsU8PtrIntV(label_id string, values *[]byte, count int32, ref fl // ref: 0 // stride: sizeof(ImU8) func PlotPlotStemsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -6821,7 +6826,7 @@ func PlotPlotStemsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int // start: 0 // stride: sizeof(double) func PlotPlotStemsdoublePtrIntV(label_id string, values *[]float64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -6842,7 +6847,7 @@ func PlotPlotStemsdoublePtrIntV(label_id string, values *[]float64, count int32, // ref: 0 // stride: sizeof(double) func PlotPlotStemsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -6870,7 +6875,7 @@ func PlotPlotStemsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]floa // flags: 0 // pix_offset: ImVec2(0,0) func PlotPlotTextV(text string, x float64, y float64, pix_offset Vec2, flags PlotTextFlags) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.ImPlot_PlotText(textArg, C.double(x), C.double(y), pix_offset.toC(), C.ImPlotTextFlags(flags)) textFin() @@ -6935,7 +6940,7 @@ func PlotPushColormapPlotColormap(cmap PlotColormap) { } func PlotPushColormapStr(name string) { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) C.ImPlot_PushColormap_Str(nameArg) nameFin() @@ -6970,8 +6975,8 @@ func PlotPushStyleVarVec2(idx PlotStyleVar, val Vec2) { // PlotRegisterOrGetItemV parameter default value hint: // just_created: NULL func PlotRegisterOrGetItemV(label_id string, flags PlotItemFlags, just_created *bool) PlotItem { - label_idArg, label_idFin := WrapString(label_id) - just_createdArg, just_createdFin := WrapBool(just_created) + label_idArg, label_idFin := wrapper.WrapString(label_id) + just_createdArg, just_createdFin := wrapper.WrapBool(just_created) defer func() { label_idFin() @@ -7070,8 +7075,8 @@ func PlotSetNextAxisLimitsV(axis PlotAxisEnum, v_min float64, v_max float64, con } func PlotSetNextAxisLinks(axis PlotAxisEnum, link_min *float64, link_max *float64) { - link_minArg, link_minFin := WrapNumberPtr[C.double, float64](link_min) - link_maxArg, link_maxFin := WrapNumberPtr[C.double, float64](link_max) + link_minArg, link_minFin := wrapper.WrapNumberPtr[C.double, float64](link_min) + link_maxArg, link_maxFin := wrapper.WrapNumberPtr[C.double, float64](link_max) C.ImPlot_SetNextAxisLinks(C.ImAxis(axis), link_minArg, link_maxArg) link_minFin() @@ -7118,8 +7123,8 @@ func PlotSetNextMarkerStyleV(marker PlotMarker, size float32, fill Vec4, weight // x_flags: 0 // y_flags: 0 func PlotSetupAxesV(x_label string, y_label string, x_flags PlotAxisFlags, y_flags PlotAxisFlags) { - x_labelArg, x_labelFin := WrapString(x_label) - y_labelArg, y_labelFin := WrapString(y_label) + x_labelArg, x_labelFin := wrapper.WrapString(x_label) + y_labelArg, y_labelFin := wrapper.WrapString(y_label) C.ImPlot_SetupAxes(x_labelArg, y_labelArg, C.ImPlotAxisFlags(x_flags), C.ImPlotAxisFlags(y_flags)) x_labelFin() @@ -7136,14 +7141,14 @@ func PlotSetupAxesLimitsV(x_min float64, x_max float64, y_min float64, y_max flo // flags: 0 // label: NULL func PlotSetupAxisV(axis PlotAxisEnum, label string, flags PlotAxisFlags) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.ImPlot_SetupAxis(C.ImAxis(axis), labelArg, C.ImPlotAxisFlags(flags)) labelFin() } func PlotSetupAxisFormatStr(axis PlotAxisEnum, fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.ImPlot_SetupAxisFormat_Str(C.ImAxis(axis), fmtArg) fmtFin() @@ -7160,8 +7165,8 @@ func PlotSetupAxisLimitsConstraints(axis PlotAxisEnum, v_min float64, v_max floa } func PlotSetupAxisLinks(axis PlotAxisEnum, link_min *float64, link_max *float64) { - link_minArg, link_minFin := WrapNumberPtr[C.double, float64](link_min) - link_maxArg, link_maxFin := WrapNumberPtr[C.double, float64](link_max) + link_minArg, link_minFin := wrapper.WrapNumberPtr[C.double, float64](link_min) + link_maxArg, link_maxFin := wrapper.WrapNumberPtr[C.double, float64](link_max) C.ImPlot_SetupAxisLinks(C.ImAxis(axis), link_minArg, link_maxArg) link_minFin() @@ -7176,7 +7181,7 @@ func PlotSetupAxisScalePlotScale(axis PlotAxisEnum, scale PlotScale) { // keep_default: false // labels: NULL func PlotSetupAxisTicksdoubleV(axis PlotAxisEnum, v_min float64, v_max float64, n_ticks int32, labels []string, keep_default bool) { - labelsArg, labelsFin := WrapStringList(labels) + labelsArg, labelsFin := wrapper.WrapStringList(labels) C.ImPlot_SetupAxisTicks_double(C.ImAxis(axis), C.double(v_min), C.double(v_max), C.int(n_ticks), labelsArg, C.bool(keep_default)) labelsFin() @@ -7191,7 +7196,7 @@ func PlotSetupAxisTicksdoublePtrV(axis PlotAxisEnum, values *[]float64, n_ticks valuesArg[i] = C.double(valuesV) } - labelsArg, labelsFin := WrapStringList(labels) + labelsArg, labelsFin := wrapper.WrapStringList(labels) C.ImPlot_SetupAxisTicks_doublePtr(C.ImAxis(axis), (*C.double)(&valuesArg[0]), C.int(n_ticks), labelsArg, C.bool(keep_default)) for i, valuesV := range valuesArg { @@ -7230,7 +7235,7 @@ func PlotSetupMouseTextV(location PlotLocation, flags PlotMouseTextFlags) { // size: ImVec2(0,0) // vertical: true func PlotShowAltLegendV(title_id string, vertical bool, size Vec2, interactable bool) { - title_idArg, title_idFin := WrapString(title_id) + title_idArg, title_idFin := wrapper.WrapString(title_id) C.ImPlot_ShowAltLegend(title_idArg, C.bool(vertical), size.toC(), C.bool(interactable)) title_idFin() @@ -7243,7 +7248,7 @@ func PlotShowAxisContextMenuV(axis PlotAxis, equal_axis PlotAxis, time_allowed b } func PlotShowColormapSelector(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7254,14 +7259,14 @@ func PlotShowColormapSelector(label string) bool { // PlotShowDemoWindowV parameter default value hint: // p_open: NULL func PlotShowDemoWindowV(p_open *bool) { - p_openArg, p_openFin := WrapBool(p_open) + p_openArg, p_openFin := wrapper.WrapBool(p_open) C.ImPlot_ShowDemoWindow(p_openArg) p_openFin() } func PlotShowInputMapSelector(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7280,7 +7285,7 @@ func PlotShowLegendEntries(items PlotItemGroup, legend_bb Rect, interactable boo // PlotShowMetricsWindowV parameter default value hint: // p_popen: NULL func PlotShowMetricsWindowV(p_popen *bool) { - p_popenArg, p_popenFin := WrapBool(p_popen) + p_popenArg, p_popenFin := wrapper.WrapBool(p_popen) C.ImPlot_ShowMetricsWindow(p_popenArg) p_popenFin() @@ -7297,7 +7302,7 @@ func PlotShowStyleEditorV(ref PlotStyle) { } func PlotShowStyleSelector(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7310,7 +7315,7 @@ func PlotShowSubplotsContextMenu(subplot PlotSubplot) { } func PlotShowTimePicker(id string, t *PlotTime) bool { - idArg, idFin := WrapString(id) + idArg, idFin := wrapper.WrapString(id) tArg, tFin := wrap[C.ImPlotTime, *PlotTime](t) defer func() { @@ -7359,7 +7364,7 @@ func PlotTagXBoolV(x float64, col Vec4, round bool) { } func PlotTagXStr(x float64, col Vec4, fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_ImPlot_TagX_Str(C.double(x), col.toC(), fmtArg) fmtFin() @@ -7372,7 +7377,7 @@ func PlotTagYBoolV(y float64, col Vec4, round bool) { } func PlotTagYStr(y float64, col Vec4, fmt string) { - fmtArg, fmtFin := WrapString(fmt) + fmtArg, fmtFin := wrapper.WrapString(fmt) C.wrap_ImPlot_TagY_Str(C.double(y), col.toC(), fmtArg) fmtFin() @@ -7411,7 +7416,7 @@ func (self PlotAxis) SetMin(_min float64) bool { } func PlotAddColormapU32Ptr(name string, cols *[]uint32, size int32) PlotColormap { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) colsArg := make([]C.ImU32, len(*cols)) for i, colsV := range *cols { colsArg[i] = C.ImU32(colsV) @@ -7428,7 +7433,7 @@ func PlotAddColormapU32Ptr(name string, cols *[]uint32, size int32) PlotColormap } func PlotAddColormapVec4Ptr(name string, cols *Vec4, size int32) PlotColormap { - nameArg, nameFin := WrapString(name) + nameArg, nameFin := wrapper.WrapString(name) colsArg, colsFin := wrap[C.ImVec4, *Vec4](cols) defer func() { @@ -7439,14 +7444,14 @@ func PlotAddColormapVec4Ptr(name string, cols *Vec4, size int32) PlotColormap { } func PlotAddTextCentered(DrawList DrawList, top_center Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImPlot_AddTextCentered(DrawList.handle(), top_center.toC(), C.ImU32(col), text_beginArg) text_beginFin() } func PlotAddTextVertical(DrawList DrawList, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := WrapString(text_begin) + text_beginArg, text_beginFin := wrapper.WrapString(text_begin) C.wrap_ImPlot_AddTextVertical(DrawList.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -7457,7 +7462,7 @@ func PlotAnnotationBool(x float64, y float64, col Vec4, pix_offset Vec2, clamp b } func PlotBeginAlignedPlots(group_id string) bool { - group_idArg, group_idFin := WrapString(group_id) + group_idArg, group_idFin := wrapper.WrapString(group_id) defer func() { group_idFin() @@ -7470,7 +7475,7 @@ func PlotBeginDragDropSourceAxis(axis PlotAxisEnum) bool { } func PlotBeginDragDropSourceItem(label_id string) bool { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -7483,7 +7488,7 @@ func PlotBeginDragDropSourcePlot() bool { } func PlotBeginItem(label_id string) bool { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -7492,7 +7497,7 @@ func PlotBeginItem(label_id string) bool { } func PlotBeginLegendPopup(label_id string) bool { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -7501,7 +7506,7 @@ func PlotBeginLegendPopup(label_id string) bool { } func PlotBeginPlot(title_id string) bool { - title_idArg, title_idFin := WrapString(title_id) + title_idArg, title_idFin := wrapper.WrapString(title_id) defer func() { title_idFin() @@ -7510,7 +7515,7 @@ func PlotBeginPlot(title_id string) bool { } func PlotBeginSubplots(title_id string, rows int32, cols int32, size Vec2) bool { - title_idArg, title_idFin := WrapString(title_id) + title_idArg, title_idFin := wrapper.WrapString(title_id) defer func() { title_idFin() @@ -7523,7 +7528,7 @@ func PlotBustColorCache() { } func PlotColormapButton(label string) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer func() { labelFin() @@ -7532,15 +7537,15 @@ func PlotColormapButton(label string) bool { } func PlotColormapScale(label string, scale_min float64, scale_max float64) { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) C.wrap_ImPlot_ColormapScale(labelArg, C.double(scale_min), C.double(scale_max)) labelFin() } func PlotColormapSlider(label string, t *float32) bool { - labelArg, labelFin := WrapString(label) - tArg, tFin := WrapNumberPtr[C.float, float32](t) + labelArg, labelFin := wrapper.WrapString(label) + tArg, tFin := wrapper.WrapNumberPtr[C.float, float32](t) defer func() { labelFin() @@ -7554,7 +7559,7 @@ func PlotDestroyContext() { } func PlotDragLineX(id int32, x *float64, col Vec4) bool { - xArg, xFin := WrapNumberPtr[C.double, float64](x) + xArg, xFin := wrapper.WrapNumberPtr[C.double, float64](x) defer func() { xFin() @@ -7563,7 +7568,7 @@ func PlotDragLineX(id int32, x *float64, col Vec4) bool { } func PlotDragLineY(id int32, y *float64, col Vec4) bool { - yArg, yFin := WrapNumberPtr[C.double, float64](y) + yArg, yFin := wrapper.WrapNumberPtr[C.double, float64](y) defer func() { yFin() @@ -7572,8 +7577,8 @@ func PlotDragLineY(id int32, y *float64, col Vec4) bool { } func PlotDragPoint(id int32, x *float64, y *float64, col Vec4) bool { - xArg, xFin := WrapNumberPtr[C.double, float64](x) - yArg, yFin := WrapNumberPtr[C.double, float64](y) + xArg, xFin := wrapper.WrapNumberPtr[C.double, float64](x) + yArg, yFin := wrapper.WrapNumberPtr[C.double, float64](y) defer func() { xFin() @@ -7583,10 +7588,10 @@ func PlotDragPoint(id int32, x *float64, y *float64, col Vec4) bool { } func PlotDragRect(id int32, x1 *float64, y1 *float64, x2 *float64, y2 *float64, col Vec4) bool { - x1Arg, x1Fin := WrapNumberPtr[C.double, float64](x1) - y1Arg, y1Fin := WrapNumberPtr[C.double, float64](y1) - x2Arg, x2Fin := WrapNumberPtr[C.double, float64](x2) - y2Arg, y2Fin := WrapNumberPtr[C.double, float64](y2) + x1Arg, x1Fin := wrapper.WrapNumberPtr[C.double, float64](x1) + y1Arg, y1Fin := wrapper.WrapNumberPtr[C.double, float64](y1) + x2Arg, x2Fin := wrapper.WrapNumberPtr[C.double, float64](x2) + y2Arg, y2Fin := wrapper.WrapNumberPtr[C.double, float64](y2) defer func() { x1Fin() @@ -7687,14 +7692,14 @@ func PlotPixelsToPlotVec2(pix Vec2) PlotPoint { } func PlotPlotBarGroupsFloatPtr(label_ids []string, values []float32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsS16Ptr(label_ids []string, values *[]int, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -7710,7 +7715,7 @@ func PlotPlotBarGroupsS16Ptr(label_ids []string, values *[]int, item_count int32 } func PlotPlotBarGroupsS32Ptr(label_ids []string, values *[]int32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -7726,14 +7731,14 @@ func PlotPlotBarGroupsS32Ptr(label_ids []string, values *[]int32, item_count int } func PlotPlotBarGroupsS64Ptr(label_ids []string, values []int64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsS8Ptr(label_ids []string, values *[]int8, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -7749,7 +7754,7 @@ func PlotPlotBarGroupsS8Ptr(label_ids []string, values *[]int8, item_count int32 } func PlotPlotBarGroupsU16Ptr(label_ids []string, values *[]uint16, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -7765,7 +7770,7 @@ func PlotPlotBarGroupsU16Ptr(label_ids []string, values *[]uint16, item_count in } func PlotPlotBarGroupsU32Ptr(label_ids []string, values *[]uint32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -7781,14 +7786,14 @@ func PlotPlotBarGroupsU32Ptr(label_ids []string, values *[]uint32, item_count in } func PlotPlotBarGroupsU64Ptr(label_ids []string, values []uint64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsU8Ptr(label_ids []string, values *[]byte, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -7804,7 +7809,7 @@ func PlotPlotBarGroupsU8Ptr(label_ids []string, values *[]byte, item_count int32 } func PlotPlotBarGroupsdoublePtr(label_ids []string, values *[]float64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -7820,21 +7825,21 @@ func PlotPlotBarGroupsdoublePtr(label_ids []string, values *[]float64, item_coun } func PlotPlotBarsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotBars_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotBars_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -7850,7 +7855,7 @@ func PlotPlotBarsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotBarsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -7875,7 +7880,7 @@ func PlotPlotBarsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32 } func PlotPlotBarsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -7891,7 +7896,7 @@ func PlotPlotBarsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotBarsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -7916,21 +7921,21 @@ func PlotPlotBarsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count i } func PlotPlotBarsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotBars_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotBars_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -7946,7 +7951,7 @@ func PlotPlotBarsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotBarsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -7971,7 +7976,7 @@ func PlotPlotBarsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32 } func PlotPlotBarsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -7987,7 +7992,7 @@ func PlotPlotBarsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotBarsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8012,7 +8017,7 @@ func PlotPlotBarsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count } func PlotPlotBarsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -8028,7 +8033,7 @@ func PlotPlotBarsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotBarsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8053,21 +8058,21 @@ func PlotPlotBarsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count } func PlotPlotBarsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotBars_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotBars_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -8083,7 +8088,7 @@ func PlotPlotBarsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotBarsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8108,7 +8113,7 @@ func PlotPlotBarsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32 } func PlotPlotBarsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -8124,7 +8129,7 @@ func PlotPlotBarsdoublePtrInt(label_id string, values *[]float64, count int32) { } func PlotPlotBarsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32, bar_size float64) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8149,14 +8154,14 @@ func PlotPlotBarsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float6 } func PlotPlotDigitalFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotDigital_FloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8181,7 +8186,7 @@ func PlotPlotDigitalS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { } func PlotPlotDigitalS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8206,14 +8211,14 @@ func PlotPlotDigitalS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int3 } func PlotPlotDigitalS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotDigital_S64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8238,7 +8243,7 @@ func PlotPlotDigitalS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) } func PlotPlotDigitalU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8263,7 +8268,7 @@ func PlotPlotDigitalU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count in } func PlotPlotDigitalU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8288,14 +8293,14 @@ func PlotPlotDigitalU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count in } func PlotPlotDigitalU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotDigital_U64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8320,7 +8325,7 @@ func PlotPlotDigitalU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) } func PlotPlotDigitaldoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8345,28 +8350,28 @@ func PlotPlotDigitaldoublePtr(label_id string, xs *[]float64, ys *[]float64, cou } func PlotPlotDummy(label_id string) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotDummy(label_idArg) label_idFin() } func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, neg []float32, pos []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(neg[0])), (*C.float)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrInt(label_id string, xs []float32, ys []float32, err []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS16PtrS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, err *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8400,7 +8405,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]in } func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, neg *[]int, pos *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8443,7 +8448,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys *[ } func PlotPlotErrorBarsS32PtrS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, err *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8477,7 +8482,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[] } func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, neg *[]int32, pos *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8520,21 +8525,21 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys } func PlotPlotErrorBarsS64PtrS64PtrS64PtrInt(label_id string, xs []int64, ys []int64, err []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64Ptr(label_id string, xs []int64, ys []int64, neg []int64, pos []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(neg[0])), (*C.longlong)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS8PtrS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, err *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8568,7 +8573,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8 } func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, neg *[]int8, pos *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8611,7 +8616,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]in } func PlotPlotErrorBarsU16PtrU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, err *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8645,7 +8650,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[ } func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, neg *[]uint16, pos *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8688,7 +8693,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys } func PlotPlotErrorBarsU32PtrU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, err *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8722,7 +8727,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[ } func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, neg *[]uint32, pos *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8765,21 +8770,21 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys } func PlotPlotErrorBarsU64PtrU64PtrU64PtrInt(label_id string, xs []uint64, ys []uint64, err []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, neg []uint64, pos []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(neg[0])), (*C.ulonglong)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsU8PtrU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, err *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8813,7 +8818,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte } func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, neg *[]byte, pos *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8856,7 +8861,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]by } func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]float64, err *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8890,7 +8895,7 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrInt(label_id string, xs *[]floa } func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, neg *[]float64, pos *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8933,14 +8938,14 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtr(label_id string, xs * } func PlotPlotHeatmapFloatPtr(label_id string, values []float32, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapS16Ptr(label_id string, values *[]int, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -8956,7 +8961,7 @@ func PlotPlotHeatmapS16Ptr(label_id string, values *[]int, rows int32, cols int3 } func PlotPlotHeatmapS32Ptr(label_id string, values *[]int32, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -8972,14 +8977,14 @@ func PlotPlotHeatmapS32Ptr(label_id string, values *[]int32, rows int32, cols in } func PlotPlotHeatmapS64Ptr(label_id string, values []int64, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapS8Ptr(label_id string, values *[]int8, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -8995,7 +9000,7 @@ func PlotPlotHeatmapS8Ptr(label_id string, values *[]int8, rows int32, cols int3 } func PlotPlotHeatmapU16Ptr(label_id string, values *[]uint16, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9011,7 +9016,7 @@ func PlotPlotHeatmapU16Ptr(label_id string, values *[]uint16, rows int32, cols i } func PlotPlotHeatmapU32Ptr(label_id string, values *[]uint32, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9027,14 +9032,14 @@ func PlotPlotHeatmapU32Ptr(label_id string, values *[]uint32, rows int32, cols i } func PlotPlotHeatmapU64Ptr(label_id string, values []uint64, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapU8Ptr(label_id string, values *[]byte, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9050,7 +9055,7 @@ func PlotPlotHeatmapU8Ptr(label_id string, values *[]byte, rows int32, cols int3 } func PlotPlotHeatmapdoublePtr(label_id string, values *[]float64, rows int32, cols int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9066,7 +9071,7 @@ func PlotPlotHeatmapdoublePtr(label_id string, values *[]float64, rows int32, co } func PlotPlotHistogram2DFloatPtr(label_id string, xs []float32, ys []float32, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -9075,7 +9080,7 @@ func PlotPlotHistogram2DFloatPtr(label_id string, xs []float32, ys []float32, co } func PlotPlotHistogram2DS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -9101,7 +9106,7 @@ func PlotPlotHistogram2DS16Ptr(label_id string, xs *[]int, ys *[]int, count int3 } func PlotPlotHistogram2DS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -9127,7 +9132,7 @@ func PlotPlotHistogram2DS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotHistogram2DS64Ptr(label_id string, xs []int64, ys []int64, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -9136,7 +9141,7 @@ func PlotPlotHistogram2DS64Ptr(label_id string, xs []int64, ys []int64, count in } func PlotPlotHistogram2DS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -9162,7 +9167,7 @@ func PlotPlotHistogram2DS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int } func PlotPlotHistogram2DU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -9188,7 +9193,7 @@ func PlotPlotHistogram2DU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, coun } func PlotPlotHistogram2DU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -9214,7 +9219,7 @@ func PlotPlotHistogram2DU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, coun } func PlotPlotHistogram2DU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -9223,7 +9228,7 @@ func PlotPlotHistogram2DU64Ptr(label_id string, xs []uint64, ys []uint64, count } func PlotPlotHistogram2DU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -9249,7 +9254,7 @@ func PlotPlotHistogram2DU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int } func PlotPlotHistogram2DdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -9275,7 +9280,7 @@ func PlotPlotHistogram2DdoublePtr(label_id string, xs *[]float64, ys *[]float64, } func PlotPlotHistogramFloatPtr(label_id string, values []float32, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -9284,7 +9289,7 @@ func PlotPlotHistogramFloatPtr(label_id string, values []float32, count int32) f } func PlotPlotHistogramS16Ptr(label_id string, values *[]int, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9301,7 +9306,7 @@ func PlotPlotHistogramS16Ptr(label_id string, values *[]int, count int32) float6 } func PlotPlotHistogramS32Ptr(label_id string, values *[]int32, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9318,7 +9323,7 @@ func PlotPlotHistogramS32Ptr(label_id string, values *[]int32, count int32) floa } func PlotPlotHistogramS64Ptr(label_id string, values []int64, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -9327,7 +9332,7 @@ func PlotPlotHistogramS64Ptr(label_id string, values []int64, count int32) float } func PlotPlotHistogramS8Ptr(label_id string, values *[]int8, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9344,7 +9349,7 @@ func PlotPlotHistogramS8Ptr(label_id string, values *[]int8, count int32) float6 } func PlotPlotHistogramU16Ptr(label_id string, values *[]uint16, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9361,7 +9366,7 @@ func PlotPlotHistogramU16Ptr(label_id string, values *[]uint16, count int32) flo } func PlotPlotHistogramU32Ptr(label_id string, values *[]uint32, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9378,7 +9383,7 @@ func PlotPlotHistogramU32Ptr(label_id string, values *[]uint32, count int32) flo } func PlotPlotHistogramU64Ptr(label_id string, values []uint64, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -9387,7 +9392,7 @@ func PlotPlotHistogramU64Ptr(label_id string, values []uint64, count int32) floa } func PlotPlotHistogramU8Ptr(label_id string, values *[]byte, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9404,7 +9409,7 @@ func PlotPlotHistogramU8Ptr(label_id string, values *[]byte, count int32) float6 } func PlotPlotHistogramdoublePtr(label_id string, values *[]float64, count int32) float64 { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9421,21 +9426,21 @@ func PlotPlotHistogramdoublePtr(label_id string, values *[]float64, count int32) } func PlotPlotImage(label_id string, user_texture_id TextureID, bounds_min PlotPoint, bounds_max PlotPoint) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotImage(label_idArg, C.ImTextureID(user_texture_id), bounds_min.toC(), bounds_max.toC()) label_idFin() } func PlotPlotInfLinesFloatPtr(label_id string, values []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotInfLines_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesS16Ptr(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9451,7 +9456,7 @@ func PlotPlotInfLinesS16Ptr(label_id string, values *[]int, count int32) { } func PlotPlotInfLinesS32Ptr(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9467,14 +9472,14 @@ func PlotPlotInfLinesS32Ptr(label_id string, values *[]int32, count int32) { } func PlotPlotInfLinesS64Ptr(label_id string, values []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotInfLines_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesS8Ptr(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9490,7 +9495,7 @@ func PlotPlotInfLinesS8Ptr(label_id string, values *[]int8, count int32) { } func PlotPlotInfLinesU16Ptr(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9506,7 +9511,7 @@ func PlotPlotInfLinesU16Ptr(label_id string, values *[]uint16, count int32) { } func PlotPlotInfLinesU32Ptr(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9522,14 +9527,14 @@ func PlotPlotInfLinesU32Ptr(label_id string, values *[]uint32, count int32) { } func PlotPlotInfLinesU64Ptr(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotInfLines_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesU8Ptr(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9545,7 +9550,7 @@ func PlotPlotInfLinesU8Ptr(label_id string, values *[]byte, count int32) { } func PlotPlotInfLinesdoublePtr(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9561,21 +9566,21 @@ func PlotPlotInfLinesdoublePtr(label_id string, values *[]float64, count int32) } func PlotPlotLineFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotLine_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotLine_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9591,7 +9596,7 @@ func PlotPlotLineS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotLineS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -9616,7 +9621,7 @@ func PlotPlotLineS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32 } func PlotPlotLineS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9632,7 +9637,7 @@ func PlotPlotLineS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotLineS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -9657,21 +9662,21 @@ func PlotPlotLineS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count i } func PlotPlotLineS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotLine_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotLine_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9687,7 +9692,7 @@ func PlotPlotLineS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotLineS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -9712,7 +9717,7 @@ func PlotPlotLineS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32 } func PlotPlotLineU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9728,7 +9733,7 @@ func PlotPlotLineU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotLineU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -9753,7 +9758,7 @@ func PlotPlotLineU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count } func PlotPlotLineU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9769,7 +9774,7 @@ func PlotPlotLineU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotLineU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -9794,21 +9799,21 @@ func PlotPlotLineU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count } func PlotPlotLineU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotLine_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotLine_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9824,7 +9829,7 @@ func PlotPlotLineU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotLineU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -9849,7 +9854,7 @@ func PlotPlotLineU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32 } func PlotPlotLinedoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9865,7 +9870,7 @@ func PlotPlotLinedoublePtrInt(label_id string, values *[]float64, count int32) { } func PlotPlotLinedoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -9890,14 +9895,14 @@ func PlotPlotLinedoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float6 } func PlotPlotPieChartFloatPtr(label_ids []string, values []float32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartS16Ptr(label_ids []string, values *[]int, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9913,7 +9918,7 @@ func PlotPlotPieChartS16Ptr(label_ids []string, values *[]int, count int32, x fl } func PlotPlotPieChartS32Ptr(label_ids []string, values *[]int32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9929,14 +9934,14 @@ func PlotPlotPieChartS32Ptr(label_ids []string, values *[]int32, count int32, x } func PlotPlotPieChartS64Ptr(label_ids []string, values []int64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartS8Ptr(label_ids []string, values *[]int8, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9952,7 +9957,7 @@ func PlotPlotPieChartS8Ptr(label_ids []string, values *[]int8, count int32, x fl } func PlotPlotPieChartU16Ptr(label_ids []string, values *[]uint16, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9968,7 +9973,7 @@ func PlotPlotPieChartU16Ptr(label_ids []string, values *[]uint16, count int32, x } func PlotPlotPieChartU32Ptr(label_ids []string, values *[]uint32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9984,14 +9989,14 @@ func PlotPlotPieChartU32Ptr(label_ids []string, values *[]uint32, count int32, x } func PlotPlotPieChartU64Ptr(label_ids []string, values []uint64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartU8Ptr(label_ids []string, values *[]byte, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10007,7 +10012,7 @@ func PlotPlotPieChartU8Ptr(label_ids []string, values *[]byte, count int32, x fl } func PlotPlotPieChartdoublePtr(label_ids []string, values *[]float64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := WrapStringList(label_ids) + label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10023,21 +10028,21 @@ func PlotPlotPieChartdoublePtr(label_ids []string, values *[]float64, count int3 } func PlotPlotScatterFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotScatter_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotScatter_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10053,7 +10058,7 @@ func PlotPlotScatterS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotScatterS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10078,7 +10083,7 @@ func PlotPlotScatterS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count in } func PlotPlotScatterS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -10094,7 +10099,7 @@ func PlotPlotScatterS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotScatterS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10119,21 +10124,21 @@ func PlotPlotScatterS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, coun } func PlotPlotScatterS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotScatter_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotScatter_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -10149,7 +10154,7 @@ func PlotPlotScatterS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotScatterS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10174,7 +10179,7 @@ func PlotPlotScatterS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count in } func PlotPlotScatterU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -10190,7 +10195,7 @@ func PlotPlotScatterU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotScatterU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10215,7 +10220,7 @@ func PlotPlotScatterU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, co } func PlotPlotScatterU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -10231,7 +10236,7 @@ func PlotPlotScatterU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotScatterU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10256,21 +10261,21 @@ func PlotPlotScatterU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, co } func PlotPlotScatterU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotScatter_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotScatter_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10286,7 +10291,7 @@ func PlotPlotScatterU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotScatterU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10311,7 +10316,7 @@ func PlotPlotScatterU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count in } func PlotPlotScatterdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10327,7 +10332,7 @@ func PlotPlotScatterdoublePtrInt(label_id string, values *[]float64, count int32 } func PlotPlotScatterdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10352,28 +10357,28 @@ func PlotPlotScatterdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]flo } func PlotPlotShadedFloatPtrFloatPtrFloatPtr(label_id string, xs []float32, ys1 []float32, ys2 []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys1[0])), (*C.float)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedFloatPtrFloatPtrInt(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10389,7 +10394,7 @@ func PlotPlotShadedS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotShadedS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10414,7 +10419,7 @@ func PlotPlotShadedS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, count } func PlotPlotShadedS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys1 *[]int, ys2 *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10448,7 +10453,7 @@ func PlotPlotShadedS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys1 *[]int, ys } func PlotPlotShadedS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -10464,7 +10469,7 @@ func PlotPlotShadedS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotShadedS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10489,7 +10494,7 @@ func PlotPlotShadedS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, co } func PlotPlotShadedS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys1 *[]int32, ys2 *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10523,28 +10528,28 @@ func PlotPlotShadedS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys1 *[]int32 } func PlotPlotShadedS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedS64PtrS64PtrInt(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedS64PtrS64PtrS64Ptr(label_id string, xs []int64, ys1 []int64, ys2 []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys1[0])), (*C.longlong)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -10560,7 +10565,7 @@ func PlotPlotShadedS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotShadedS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10585,7 +10590,7 @@ func PlotPlotShadedS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, count } func PlotPlotShadedS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys1 *[]int8, ys2 *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10619,7 +10624,7 @@ func PlotPlotShadedS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys1 *[]int8, ys2 } func PlotPlotShadedU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -10635,7 +10640,7 @@ func PlotPlotShadedU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotShadedU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10660,7 +10665,7 @@ func PlotPlotShadedU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, } func PlotPlotShadedU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys1 *[]uint16, ys2 *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10694,7 +10699,7 @@ func PlotPlotShadedU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys1 *[]uint } func PlotPlotShadedU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -10710,7 +10715,7 @@ func PlotPlotShadedU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotShadedU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10735,7 +10740,7 @@ func PlotPlotShadedU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, } func PlotPlotShadedU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys1 *[]uint32, ys2 *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10769,28 +10774,28 @@ func PlotPlotShadedU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys1 *[]uint } func PlotPlotShadedU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedU64PtrU64PtrInt(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedU64PtrU64PtrU64Ptr(label_id string, xs []uint64, ys1 []uint64, ys2 []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys1[0])), (*C.ulonglong)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10806,7 +10811,7 @@ func PlotPlotShadedU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotShadedU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10831,7 +10836,7 @@ func PlotPlotShadedU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, count } func PlotPlotShadedU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys1 *[]byte, ys2 *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10865,7 +10870,7 @@ func PlotPlotShadedU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys1 *[]byte, ys2 } func PlotPlotShadeddoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10881,7 +10886,7 @@ func PlotPlotShadeddoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotShadeddoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10906,7 +10911,7 @@ func PlotPlotShadeddoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]f } func PlotPlotShadeddoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, ys1 *[]float64, ys2 *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10940,21 +10945,21 @@ func PlotPlotShadeddoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, y } func PlotPlotStairsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStairs_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStairs_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10970,7 +10975,7 @@ func PlotPlotStairsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotStairsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10995,7 +11000,7 @@ func PlotPlotStairsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int } func PlotPlotStairsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -11011,7 +11016,7 @@ func PlotPlotStairsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotStairsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -11036,21 +11041,21 @@ func PlotPlotStairsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotStairsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStairs_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStairs_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -11066,7 +11071,7 @@ func PlotPlotStairsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotStairsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -11091,7 +11096,7 @@ func PlotPlotStairsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int } func PlotPlotStairsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -11107,7 +11112,7 @@ func PlotPlotStairsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotStairsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -11132,7 +11137,7 @@ func PlotPlotStairsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, cou } func PlotPlotStairsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -11148,7 +11153,7 @@ func PlotPlotStairsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotStairsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -11173,21 +11178,21 @@ func PlotPlotStairsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, cou } func PlotPlotStairsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStairs_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStairs_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -11203,7 +11208,7 @@ func PlotPlotStairsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotStairsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -11228,7 +11233,7 @@ func PlotPlotStairsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int } func PlotPlotStairsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -11244,7 +11249,7 @@ func PlotPlotStairsdoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotStairsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -11269,21 +11274,21 @@ func PlotPlotStairsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]floa } func PlotPlotStemsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStems_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStems_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -11299,7 +11304,7 @@ func PlotPlotStemsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotStemsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -11324,7 +11329,7 @@ func PlotPlotStemsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int3 } func PlotPlotStemsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -11340,7 +11345,7 @@ func PlotPlotStemsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotStemsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -11365,21 +11370,21 @@ func PlotPlotStemsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotStemsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStems_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStems_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -11395,7 +11400,7 @@ func PlotPlotStemsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotStemsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -11420,7 +11425,7 @@ func PlotPlotStemsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int3 } func PlotPlotStemsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -11436,7 +11441,7 @@ func PlotPlotStemsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotStemsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -11461,7 +11466,7 @@ func PlotPlotStemsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, coun } func PlotPlotStemsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -11477,7 +11482,7 @@ func PlotPlotStemsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotStemsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -11502,21 +11507,21 @@ func PlotPlotStemsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, coun } func PlotPlotStemsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStems_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) C.wrap_ImPlot_PlotStems_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -11532,7 +11537,7 @@ func PlotPlotStemsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotStemsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -11557,7 +11562,7 @@ func PlotPlotStemsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int3 } func PlotPlotStemsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -11573,7 +11578,7 @@ func PlotPlotStemsdoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotStemsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -11598,7 +11603,7 @@ func PlotPlotStemsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float } func PlotPlotText(text string, x float64, y float64) { - textArg, textFin := WrapString(text) + textArg, textFin := wrapper.WrapString(text) C.wrap_ImPlot_PlotText(textArg, C.double(x), C.double(y)) textFin() @@ -11643,7 +11648,7 @@ func PlotPushPlotClipRect() { } func PlotRegisterOrGetItem(label_id string, flags PlotItemFlags) PlotItem { - label_idArg, label_idFin := WrapString(label_id) + label_idArg, label_idFin := wrapper.WrapString(label_id) defer func() { label_idFin() @@ -11687,8 +11692,8 @@ func PlotSetNextMarkerStyle() { } func PlotSetupAxes(x_label string, y_label string) { - x_labelArg, x_labelFin := WrapString(x_label) - y_labelArg, y_labelFin := WrapString(y_label) + x_labelArg, x_labelFin := wrapper.WrapString(x_label) + y_labelArg, y_labelFin := wrapper.WrapString(y_label) C.wrap_ImPlot_SetupAxes(x_labelArg, y_labelArg) x_labelFin() @@ -11733,7 +11738,7 @@ func PlotSetupMouseText(location PlotLocation) { } func PlotShowAltLegend(title_id string) { - title_idArg, title_idFin := WrapString(title_id) + title_idArg, title_idFin := wrapper.WrapString(title_id) C.wrap_ImPlot_ShowAltLegend(title_idArg) title_idFin() @@ -11744,8 +11749,8 @@ func PlotShowAxisContextMenu(axis PlotAxis, equal_axis PlotAxis) { } func PlotShowDatePicker(id string, level *int32, t *PlotTime) bool { - idArg, idFin := WrapString(id) - levelArg, levelFin := WrapNumberPtr[C.int, int32](level) + idArg, idFin := wrapper.WrapString(id) + levelArg, levelFin := wrapper.WrapNumberPtr[C.int, int32](level) tArg, tFin := wrap[C.ImPlotTime, *PlotTime](t) defer func() { @@ -11973,14 +11978,14 @@ func (self PlotAxis) FormatterData() unsafe.Pointer { } func (self PlotAxis) SetLinkedMin(v *float64) { - vArg, vFin := WrapNumberPtr[C.double, float64](v) + vArg, vFin := wrapper.WrapNumberPtr[C.double, float64](v) C.wrap_ImPlotAxis_SetLinkedMin(self.handle(), vArg) vFin() } func (self PlotAxis) SetLinkedMax(v *float64) { - vArg, vFin := WrapNumberPtr[C.double, float64](v) + vArg, vFin := wrapper.WrapNumberPtr[C.double, float64](v) C.wrap_ImPlotAxis_SetLinkedMax(self.handle(), vArg) vFin() diff --git a/cmd/codegen/arguments_wrapper.go b/cmd/codegen/arguments_wrapper.go index 44af30767..9d556237d 100644 --- a/cmd/codegen/arguments_wrapper.go +++ b/cmd/codegen/arguments_wrapper.go @@ -108,7 +108,7 @@ func constCharW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "string", VarName: fmt.Sprintf("%sArg", arg.Name), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapString(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapper.WrapString(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%sFin()", arg.Name), } } @@ -117,7 +117,7 @@ func charPtrPtrW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "[]string", VarName: fmt.Sprintf("%sArg", arg.Name), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapStringList(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapper.WrapStringList(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%sFin()", arg.Name), } } @@ -158,7 +158,7 @@ func floatArrayW(arg ArgDef) ArgumentWrapperData { func boolPtrW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "*bool", - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapBool(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapper.WrapBool(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%[1]sFin()", arg.Name), VarName: fmt.Sprintf("%sArg", arg.Name), } @@ -203,7 +203,7 @@ func simplePtrW(goType, cType string) argumentWrapper { return func(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: fmt.Sprintf("*%s", goType), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapNumberPtr[%[2]s, %[3]s](%[1]s)", arg.Name, cType, goType), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapper.WrapNumberPtr[%[2]s, %[3]s](%[1]s)", arg.Name, cType, goType), Finalizer: fmt.Sprintf("%[1]sFin()", arg.Name, cType, goType), VarName: fmt.Sprintf("%sArg", arg.Name), } diff --git a/cmd/codegen/gengo_funcs.go b/cmd/codegen/gengo_funcs.go index 37ab32e3f..0d016b666 100644 --- a/cmd/codegen/gengo_funcs.go +++ b/cmd/codegen/gengo_funcs.go @@ -113,7 +113,11 @@ func (g *goFuncsGenerator) writeFuncsFileHeader() { // #include "%[1]s_structs_accessor.h" // #include "%[1]s_wrapper.h" import "C" -import "unsafe" +import ( + "unsafe" + + "github.com/AllenDang/cimgui-go/internal/wrapper" +) `, g.prefix)) } diff --git a/glfw_backend.go b/glfw_backend.go index 940ef0b7c..ba4a08023 100644 --- a/glfw_backend.go +++ b/glfw_backend.go @@ -21,6 +21,7 @@ package imgui import "C" import ( + "github.com/AllenDang/cimgui-go/internal/wrapper" "image" "unsafe" ) @@ -97,10 +98,10 @@ func (b *GLFWBackend) loopFunc() func() { } func (b GLFWBackend) DisplaySize() (width int32, height int32) { - widthArg, widthFin := WrapNumberPtr[C.int, int32](&width) + widthArg, widthFin := wrapper.WrapNumberPtr[C.int, int32](&width) defer widthFin() - heightArg, heightFin := WrapNumberPtr[C.int, int32](&height) + heightArg, heightFin := wrapper.WrapNumberPtr[C.int, int32](&height) defer heightFin() C.igGLFWWindow_GetDisplaySize(b.handle(), widthArg, heightArg) @@ -109,11 +110,11 @@ func (b GLFWBackend) DisplaySize() (width int32, height int32) { } func (b GLFWBackend) SetShouldClose(value bool) { - C.igGLFWWindow_SetShouldClose(b.handle(), C.int(CastBool(value))) + C.igGLFWWindow_SetShouldClose(b.handle(), C.int(wrapper.CastBool(value))) } func (b *GLFWBackend) CreateWindow(title string, width, height int, flags GLFWWindowFlags) { - titleArg, titleFin := WrapString(title) + titleArg, titleFin := wrapper.WrapString(title) defer titleFin() // b.window = uintptr(unsafe.Pointer(C.igCreateGLFWWindow(titleArg, C.int(width), C.int(height), C.GLFWWindowFlags(flags), C.VoidCallback(C.afterCreateContext)))) diff --git a/input_text.go b/input_text.go index 58d4fe924..8b04c6acd 100644 --- a/input_text.go +++ b/input_text.go @@ -9,6 +9,7 @@ package imgui import "C" import ( + "github.com/AllenDang/cimgui-go/internal/wrapper" "runtime/cgo" "unsafe" ) @@ -16,7 +17,7 @@ import ( type InputTextCallback func(data InputTextCallbackData) int type inputTextInternalState struct { - buf *StringBuffer + buf *wrapper.StringBuffer callback InputTextCallback } @@ -33,8 +34,8 @@ func generalInputTextCallback(cbData *C.ImGuiInputTextCallbackData) C.int { if data.EventFlag() == InputTextFlagsCallbackResize { statePtr.buf.ResizeTo(data.BufSize()) - C.wrap_ImGuiInputTextCallbackData_SetBuf(cbData, (*C.char)(statePtr.buf.ptr)) - data.SetBufSize(int32(statePtr.buf.size)) + C.wrap_ImGuiInputTextCallbackData_SetBuf(cbData, (*C.char)(statePtr.buf.Ptr())) + data.SetBufSize(int32(statePtr.buf.Size())) data.SetBufTextLen(int32(data.BufTextLen())) data.SetBufDirty(true) } @@ -47,14 +48,14 @@ func generalInputTextCallback(cbData *C.ImGuiInputTextCallbackData) C.int { } func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, callback InputTextCallback) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer labelFin() - hintArg, hintFin := WrapString(hint) + hintArg, hintFin := wrapper.WrapString(hint) defer hintFin() state := &inputTextInternalState{ - buf: NewStringBuffer(*buf), + buf: wrapper.NewStringBuffer(*buf), callback: callback, } @@ -71,7 +72,7 @@ func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, ca return C.igInputTextWithHint( labelArg, hintArg, - (*C.char)(state.buf.ptr), + (*C.char)(state.buf.Ptr()), C.xulong(len(*buf)+1), C.ImGuiInputTextFlags(flags), C.ImGuiInputTextCallback(C.generalInputTextCallback), @@ -80,11 +81,11 @@ func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, ca } func InputTextMultiline(label string, buf *string, size Vec2, flags InputTextFlags, callback InputTextCallback) bool { - labelArg, labelFin := WrapString(label) + labelArg, labelFin := wrapper.WrapString(label) defer labelFin() state := &inputTextInternalState{ - buf: NewStringBuffer(*buf), + buf: wrapper.NewStringBuffer(*buf), callback: callback, } @@ -100,7 +101,7 @@ func InputTextMultiline(label string, buf *string, size Vec2, flags InputTextFla return C.igInputTextMultiline( labelArg, - (*C.char)(state.buf.ptr), + (*C.char)(state.buf.Ptr()), C.xulong(len(*buf)+1), size.toC(), C.ImGuiInputTextFlags(flags), diff --git a/type_wrapper.go b/internal/wrapper/type_wrapper.go similarity index 96% rename from type_wrapper.go rename to internal/wrapper/type_wrapper.go index 073be9959..cb4ce14a0 100644 --- a/type_wrapper.go +++ b/internal/wrapper/type_wrapper.go @@ -1,4 +1,4 @@ -package imgui +package wrapper // #include // #include @@ -144,3 +144,11 @@ func (buf *StringBuffer) ToGo() string { PtrToByteSlice(buf.ptr)[buf.size-1] = 0 return C.GoString((*C.char)(buf.ptr)) } + +func (buf *StringBuffer) Ptr() unsafe.Pointer { + return buf.ptr +} + +func (buf *StringBuffer) Size() int { + return buf.size +} From 48c2ccf1c7a3200ae37c382ce7c1b3b0dcea8b1e Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:39:24 +0200 Subject: [PATCH 4/7] Revert "type wrapper: move to internal/wrapper" This reverts commit 3dc42aba314b457f5c3c01532ab54c110e76e7b1. --- cimgui_funcs.go | 1019 ++++++++------- cimplot_funcs.go | 1109 ++++++++--------- cmd/codegen/arguments_wrapper.go | 8 +- cmd/codegen/gengo_funcs.go | 6 +- glfw_backend.go | 9 +- input_text.go | 21 +- .../type_wrapper.go => type_wrapper.go | 10 +- 7 files changed, 1079 insertions(+), 1103 deletions(-) rename internal/wrapper/type_wrapper.go => type_wrapper.go (96%) diff --git a/cimgui_funcs.go b/cimgui_funcs.go index 697b588b5..aab299dab 100644 --- a/cimgui_funcs.go +++ b/cimgui_funcs.go @@ -7,12 +7,7 @@ package imgui // #include "cimgui_structs_accessor.h" // #include "cimgui_wrapper.h" import "C" - -import ( - "unsafe" - - "github.com/AllenDang/cimgui-go/internal/wrapper" -) +import "unsafe" func (self BitVector) InternalClear() { C.ImBitVector_Clear(self.handle()) @@ -268,7 +263,7 @@ func (self DrawList) AddRectFilledMultiColor(p_min Vec2, p_max Vec2, col_upr_lef // text_end: NULL // wrap_width: 0.0f func (self DrawList) AddTextFontPtrV(font Font, font_size float32, pos Vec2, col uint32, text_begin string, wrap_width float32, cpu_fine_clip_rect *Vec4) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) cpu_fine_clip_rectArg, cpu_fine_clip_rectFin := wrap[C.ImVec4, *Vec4](cpu_fine_clip_rect) C.wrap_ImDrawList_AddText_FontPtrV(self.handle(), font.handle(), C.float(font_size), pos.toC(), C.ImU32(col), text_beginArg, C.float(wrap_width), cpu_fine_clip_rectArg) @@ -279,7 +274,7 @@ func (self DrawList) AddTextFontPtrV(font Font, font_size float32, pos Vec2, col // AddTextVec2V parameter default value hint: // text_end: NULL func (self DrawList) AddTextVec2V(pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImDrawList_AddText_Vec2V(self.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -483,7 +478,7 @@ func (self FontAtlas) AddFontDefaultV(font_cfg FontConfig) Font { // font_cfg: NULL // glyph_ranges: NULL func (self FontAtlas) AddFontFromFileTTFV(filename string, size_pixels float32, font_cfg FontConfig, glyph_ranges *Wchar) Font { - filenameArg, filenameFin := wrapper.WrapString(filename) + filenameArg, filenameFin := WrapString(filename) defer func() { filenameFin() @@ -495,7 +490,7 @@ func (self FontAtlas) AddFontFromFileTTFV(filename string, size_pixels float32, // font_cfg: NULL // glyph_ranges: NULL func (self FontAtlas) AddFontFromMemoryCompressedBase85TTFV(compressed_font_data_base85 string, size_pixels float32, font_cfg FontConfig, glyph_ranges *Wchar) Font { - compressed_font_data_base85Arg, compressed_font_data_base85Fin := wrapper.WrapString(compressed_font_data_base85) + compressed_font_data_base85Arg, compressed_font_data_base85Fin := WrapString(compressed_font_data_base85) defer func() { compressed_font_data_base85Fin() @@ -655,7 +650,7 @@ func (self FontGlyphRangesBuilder) AddRanges(ranges *Wchar) { // AddTextV parameter default value hint: // text_end: NULL func (self FontGlyphRangesBuilder) AddTextV(text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImFontGlyphRangesBuilder_AddTextV(self.handle(), textArg) textFin() @@ -702,8 +697,8 @@ func (self Font) CalcTextSizeAV(size float32, max_width float32, wrap_width floa pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) - remainingArg, remainingFin := wrapper.WrapStringList(remaining) + text_beginArg, text_beginFin := WrapString(text_begin) + remainingArg, remainingFin := WrapStringList(remaining) C.wrap_ImFont_CalcTextSizeAV(pOutArg, self.handle(), C.float(size), C.float(max_width), C.float(wrap_width), text_beginArg, remainingArg) pOutFin() @@ -714,7 +709,7 @@ func (self Font) CalcTextSizeAV(size float32, max_width float32, wrap_width floa } func (self Font) CalcWordWrapPositionA(scale float32, text string, wrap_width float32) string { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -766,7 +761,7 @@ func (self Font) RenderChar(draw_list DrawList, size float32, pos Vec2, col uint // cpu_fine_clip: false // wrap_width: 0.0f func (self Font) RenderTextV(draw_list DrawList, size float32, pos Vec2, col uint32, clip_rect Vec4, text_begin string, wrap_width float32, cpu_fine_clip bool) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImFont_RenderTextV(self.handle(), draw_list.handle(), C.float(size), pos.toC(), C.ImU32(col), clip_rect.toC(), text_beginArg, C.float(wrap_width), C.bool(cpu_fine_clip)) text_beginFin() @@ -888,7 +883,7 @@ func (self IO) AddInputCharacter(c uint32) { } func (self IO) AddInputCharactersUTF8(str string) { - strArg, strFin := wrapper.WrapString(str) + strArg, strFin := WrapString(str) C.ImGuiIO_AddInputCharactersUTF8(self.handle(), strArg) strFin() @@ -971,7 +966,7 @@ func NewInputTextCallbackData() InputTextCallbackData { // InsertCharsV parameter default value hint: // text_end: NULL func (self InputTextCallbackData) InsertCharsV(pos int32, text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImGuiInputTextCallbackData_InsertCharsV(self.handle(), C.int(pos), textArg) textFin() @@ -1208,7 +1203,7 @@ func NewPayload() Payload { } func (self Payload) IsDataType(typeArg string) bool { - typeArgArg, typeArgFin := wrapper.WrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -1431,8 +1426,8 @@ func NewTextBuffer() TextBuffer { // AppendV parameter default value hint: // str_end: NULL func (self TextBuffer) AppendV(str string, str_end string) { - strArg, strFin := wrapper.WrapString(str) - str_endArg, str_endFin := wrapper.WrapString(str_end) + strArg, strFin := WrapString(str) + str_endArg, str_endFin := WrapString(str_end) C.ImGuiTextBuffer_append(self.handle(), strArg, str_endArg) strFin() @@ -1440,7 +1435,7 @@ func (self TextBuffer) AppendV(str string, str_end string) { } func (self TextBuffer) Appendf(fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImGuiTextBuffer_Appendf(self.handle(), fmtArg) fmtFin() @@ -1490,7 +1485,7 @@ func (self TextFilter) Clear() { // label: "Filter(inc,-exc)" // width: 0.0f func (self TextFilter) DrawV(label string, width float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -1501,7 +1496,7 @@ func (self TextFilter) DrawV(label string, width float32) bool { // NewTextFilter parameter default value hint: // default_filter: "" func NewTextFilter(default_filter string) TextFilter { - default_filterArg, default_filterFin := wrapper.WrapString(default_filter) + default_filterArg, default_filterFin := WrapString(default_filter) defer func() { default_filterFin() @@ -1516,7 +1511,7 @@ func (self TextFilter) IsActive() bool { // PassFilterV parameter default value hint: // text_end: NULL func (self TextFilter) PassFilterV(text string) bool { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -1529,7 +1524,7 @@ func (self TextFilter) Destroy() { } func (self TextIndex) InternalAppend(base string, old_size int32, new_size int32) { - baseArg, baseFin := wrapper.WrapString(base) + baseArg, baseFin := WrapString(base) C.ImGuiTextIndex_append(self.handle(), baseArg, C.int(old_size), C.int(new_size)) baseFin() @@ -1540,7 +1535,7 @@ func (self TextIndex) InternalClear() { } func (self TextIndex) Internalgetlinebegin(base string, n int32) string { - baseArg, baseFin := wrapper.WrapString(base) + baseArg, baseFin := WrapString(base) defer func() { baseFin() @@ -1549,7 +1544,7 @@ func (self TextIndex) Internalgetlinebegin(base string, n int32) string { } func (self TextIndex) Internalgetlineend(base string, n int32) string { - baseArg, baseFin := wrapper.WrapString(base) + baseArg, baseFin := WrapString(base) defer func() { baseFin() @@ -1701,8 +1696,8 @@ func (self Window) InternalIDPtr(ptr unsafe.Pointer) ID { // InternalIDStrV parameter default value hint: // str_end: NULL func (self Window) InternalIDStrV(str string, str_end string) ID { - strArg, strFin := wrapper.WrapString(str) - str_endArg, str_endFin := wrapper.WrapString(str_end) + strArg, strFin := WrapString(str) + str_endArg, str_endFin := WrapString(str_end) defer func() { strFin() @@ -1712,7 +1707,7 @@ func (self Window) InternalIDStrV(str string, str_end string) ID { } func InternalNewWindow(context Context, name string) Window { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2006,7 +2001,7 @@ func (self *Vec4) Destroy() { // AcceptDragDropPayloadV parameter default value hint: // flags: 0 func AcceptDragDropPayloadV(typeArg string, flags DragDropFlags) Payload { - typeArgArg, typeArgFin := wrapper.WrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -2031,7 +2026,7 @@ func AlignTextToFramePadding() { } func ArrowButton(str_id string, dir Dir) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2042,7 +2037,7 @@ func ArrowButton(str_id string, dir Dir) bool { // InternalArrowButtonExV parameter default value hint: // flags: 0 func InternalArrowButtonExV(str_id string, dir Dir, size_arg Vec2, flags ButtonFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2054,8 +2049,8 @@ func InternalArrowButtonExV(str_id string, dir Dir, size_arg Vec2, flags ButtonF // flags: 0 // p_open: NULL func BeginV(name string, p_open *bool, flags WindowFlags) bool { - nameArg, nameFin := wrapper.WrapString(name) - p_openArg, p_openFin := wrapper.WrapBool(p_open) + nameArg, nameFin := WrapString(name) + p_openArg, p_openFin := WrapBool(p_open) defer func() { nameFin() @@ -2065,7 +2060,7 @@ func BeginV(name string, p_open *bool, flags WindowFlags) bool { } func InternalBeginChildEx(name string, id ID, size_arg Vec2, border bool, flags WindowFlags) bool { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2092,7 +2087,7 @@ func BeginChildIDV(id ID, size Vec2, border bool, flags WindowFlags) bool { // flags: 0 // size: ImVec2(0,0) func BeginChildStrV(str_id string, size Vec2, border bool, flags WindowFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2103,7 +2098,7 @@ func BeginChildStrV(str_id string, size Vec2, border bool, flags WindowFlags) bo // InternalBeginColumnsV parameter default value hint: // flags: 0 func InternalBeginColumnsV(str_id string, count int32, flags OldColumnFlags) { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igBeginColumns(str_idArg, C.int(count), C.ImGuiOldColumnFlags(flags)) str_idFin() @@ -2112,8 +2107,8 @@ func InternalBeginColumnsV(str_id string, count int32, flags OldColumnFlags) { // BeginComboV parameter default value hint: // flags: 0 func BeginComboV(label string, preview_value string, flags ComboFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - preview_valueArg, preview_valueFin := wrapper.WrapString(preview_value) + labelArg, labelFin := WrapString(label) + preview_valueArg, preview_valueFin := WrapString(preview_value) defer func() { labelFin() @@ -2145,7 +2140,7 @@ func InternalBeginDockableDragDropTarget(window Window) { } func InternalBeginDocked(window Window, p_open *bool) { - p_openArg, p_openFin := wrapper.WrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igBeginDocked(window.handle(), p_openArg) p_openFin() @@ -2172,7 +2167,7 @@ func BeginGroup() { // BeginListBoxV parameter default value hint: // size: ImVec2(0,0) func BeginListBoxV(label string, size Vec2) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2187,7 +2182,7 @@ func BeginMainMenuBar() bool { // BeginMenuV parameter default value hint: // enabled: true func BeginMenuV(label string, enabled bool) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2202,8 +2197,8 @@ func BeginMenuBar() bool { // InternalBeginMenuExV parameter default value hint: // enabled: true func InternalBeginMenuExV(label string, icon string, enabled bool) bool { - labelArg, labelFin := wrapper.WrapString(label) - iconArg, iconFin := wrapper.WrapString(icon) + labelArg, labelFin := WrapString(label) + iconArg, iconFin := WrapString(icon) defer func() { labelFin() @@ -2215,7 +2210,7 @@ func InternalBeginMenuExV(label string, icon string, enabled bool) bool { // BeginPopupV parameter default value hint: // flags: 0 func BeginPopupV(str_id string, flags WindowFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2227,7 +2222,7 @@ func BeginPopupV(str_id string, flags WindowFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextItemV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2239,7 +2234,7 @@ func BeginPopupContextItemV(str_id string, popup_flags PopupFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextVoidV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2251,7 +2246,7 @@ func BeginPopupContextVoidV(str_id string, popup_flags PopupFlags) bool { // popup_flags: 1 // str_id: NULL func BeginPopupContextWindowV(str_id string, popup_flags PopupFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2267,8 +2262,8 @@ func InternalBeginPopupEx(id ID, extra_flags WindowFlags) bool { // flags: 0 // p_open: NULL func BeginPopupModalV(name string, p_open *bool, flags WindowFlags) bool { - nameArg, nameFin := wrapper.WrapString(name) - p_openArg, p_openFin := wrapper.WrapBool(p_open) + nameArg, nameFin := WrapString(name) + p_openArg, p_openFin := WrapBool(p_open) defer func() { nameFin() @@ -2280,7 +2275,7 @@ func BeginPopupModalV(name string, p_open *bool, flags WindowFlags) bool { // BeginTabBarV parameter default value hint: // flags: 0 func BeginTabBarV(str_id string, flags TabBarFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2296,8 +2291,8 @@ func InternalBeginTabBarEx(tab_bar TabBar, bb Rect, flags TabBarFlags, dock_node // flags: 0 // p_open: NULL func BeginTabItemV(label string, p_open *bool, flags TabItemFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - p_openArg, p_openFin := wrapper.WrapBool(p_open) + labelArg, labelFin := WrapString(label) + p_openArg, p_openFin := WrapBool(p_open) defer func() { labelFin() @@ -2311,7 +2306,7 @@ func BeginTabItemV(label string, p_open *bool, flags TabItemFlags) bool { // inner_width: 0.0f // outer_size: ImVec2(0.0f,0.0f) func BeginTableV(str_id string, column int32, flags TableFlags, outer_size Vec2, inner_width float32) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -2324,7 +2319,7 @@ func BeginTableV(str_id string, column int32, flags TableFlags, outer_size Vec2, // inner_width: 0.0f // outer_size: ImVec2(0,0) func InternalBeginTableExV(name string, id ID, columns_count int32, flags TableFlags, outer_size Vec2, inner_width float32) bool { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2341,7 +2336,7 @@ func InternalBeginTooltipEx(tooltip_flags TooltipFlags, extra_window_flags Windo } func InternalBeginViewportSideBar(name string, viewport Viewport, dir Dir, size float32, window_flags WindowFlags) bool { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2370,7 +2365,7 @@ func Bullet() { } func BulletText(fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igBulletText(fmtArg) fmtFin() @@ -2379,7 +2374,7 @@ func BulletText(fmt string) { // ButtonV parameter default value hint: // size: ImVec2(0,0) func ButtonV(label string, size Vec2) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2390,8 +2385,8 @@ func ButtonV(label string, size Vec2) bool { // InternalButtonBehaviorV parameter default value hint: // flags: 0 func InternalButtonBehaviorV(bb Rect, id ID, out_hovered *bool, out_held *bool, flags ButtonFlags) bool { - out_hoveredArg, out_hoveredFin := wrapper.WrapBool(out_hovered) - out_heldArg, out_heldFin := wrapper.WrapBool(out_held) + out_hoveredArg, out_hoveredFin := WrapBool(out_hovered) + out_heldArg, out_heldFin := WrapBool(out_held) defer func() { out_hoveredFin() @@ -2404,7 +2399,7 @@ func InternalButtonBehaviorV(bb Rect, id ID, out_hovered *bool, out_held *bool, // flags: 0 // size_arg: ImVec2(0,0) func InternalButtonExV(label string, size_arg Vec2, flags ButtonFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2439,7 +2434,7 @@ func CalcTextSizeV(text string, hide_text_after_double_hash bool, wrap_width flo pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igCalcTextSizeV(pOutArg, textArg, C.bool(hide_text_after_double_hash), C.float(wrap_width)) pOutFin() @@ -2472,8 +2467,8 @@ func InternalCallContextHooks(context Context, typeArg ContextHookType) { } func Checkbox(label string, v *bool) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapBool(v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapBool(v) defer func() { labelFin() @@ -2483,8 +2478,8 @@ func Checkbox(label string, v *bool) bool { } func CheckboxFlagsIntPtr(label string, flags *int32, flags_value int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - flagsArg, flagsFin := wrapper.WrapNumberPtr[C.int, int32](flags) + labelArg, labelFin := WrapString(label) + flagsArg, flagsFin := WrapNumberPtr[C.int, int32](flags) defer func() { labelFin() @@ -2494,8 +2489,8 @@ func CheckboxFlagsIntPtr(label string, flags *int32, flags_value int32) bool { } func CheckboxFlagsUintPtr(label string, flags *uint32, flags_value uint32) bool { - labelArg, labelFin := wrapper.WrapString(label) - flagsArg, flagsFin := wrapper.WrapNumberPtr[C.uint, uint32](flags) + labelArg, labelFin := WrapString(label) + flagsArg, flagsFin := WrapNumberPtr[C.uint, uint32](flags) defer func() { labelFin() @@ -2517,7 +2512,7 @@ func InternalClearIniSettings() { } func InternalClearWindowSettings(name string) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.igClearWindowSettings(nameArg) nameFin() @@ -2550,8 +2545,8 @@ func InternalCollapseButton(id ID, pos Vec2, dock_node DockNode) bool { // CollapsingHeaderBoolPtrV parameter default value hint: // flags: 0 func CollapsingHeaderBoolPtrV(label string, p_visible *bool, flags TreeNodeFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - p_visibleArg, p_visibleFin := wrapper.WrapBool(p_visible) + labelArg, labelFin := WrapString(label) + p_visibleArg, p_visibleFin := WrapBool(p_visible) defer func() { labelFin() @@ -2563,7 +2558,7 @@ func CollapsingHeaderBoolPtrV(label string, p_visible *bool, flags TreeNodeFlags // CollapsingHeaderTreeNodeFlagsV parameter default value hint: // flags: 0 func CollapsingHeaderTreeNodeFlagsV(label string, flags TreeNodeFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -2575,7 +2570,7 @@ func CollapsingHeaderTreeNodeFlagsV(label string, flags TreeNodeFlags) bool { // flags: 0 // size: ImVec2(0,0) func ColorButtonV(desc_id string, col Vec4, flags ColorEditFlags, size Vec2) bool { - desc_idArg, desc_idFin := wrapper.WrapString(desc_id) + desc_idArg, desc_idFin := WrapString(desc_id) defer func() { desc_idFin() @@ -2588,9 +2583,9 @@ func ColorConvertFloat4ToU32(in Vec4) uint32 { } func ColorConvertHSVtoRGB(h float32, s float32, v float32, out_r *float32, out_g *float32, out_b *float32) { - out_rArg, out_rFin := wrapper.WrapNumberPtr[C.float, float32](out_r) - out_gArg, out_gFin := wrapper.WrapNumberPtr[C.float, float32](out_g) - out_bArg, out_bFin := wrapper.WrapNumberPtr[C.float, float32](out_b) + out_rArg, out_rFin := WrapNumberPtr[C.float, float32](out_r) + out_gArg, out_gFin := WrapNumberPtr[C.float, float32](out_g) + out_bArg, out_bFin := WrapNumberPtr[C.float, float32](out_b) C.igColorConvertHSVtoRGB(C.float(h), C.float(s), C.float(v), out_rArg, out_gArg, out_bArg) out_rFin() @@ -2599,9 +2594,9 @@ func ColorConvertHSVtoRGB(h float32, s float32, v float32, out_r *float32, out_g } func ColorConvertRGBtoHSV(r float32, g float32, b float32, out_h *float32, out_s *float32, out_v *float32) { - out_hArg, out_hFin := wrapper.WrapNumberPtr[C.float, float32](out_h) - out_sArg, out_sFin := wrapper.WrapNumberPtr[C.float, float32](out_s) - out_vArg, out_vFin := wrapper.WrapNumberPtr[C.float, float32](out_v) + out_hArg, out_hFin := WrapNumberPtr[C.float, float32](out_h) + out_sArg, out_sFin := WrapNumberPtr[C.float, float32](out_s) + out_vArg, out_vFin := WrapNumberPtr[C.float, float32](out_v) C.igColorConvertRGBtoHSV(C.float(r), C.float(g), C.float(b), out_hArg, out_sArg, out_vArg) out_hFin() @@ -2623,7 +2618,7 @@ func ColorConvertU32ToFloat4(in uint32) Vec4 { // ColorEdit3V parameter default value hint: // flags: 0 func ColorEdit3V(label string, col *[3]float32, flags ColorEditFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2643,7 +2638,7 @@ func ColorEdit3V(label string, col *[3]float32, flags ColorEditFlags) bool { // ColorEdit4V parameter default value hint: // flags: 0 func ColorEdit4V(label string, col *[4]float32, flags ColorEditFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2667,7 +2662,7 @@ func InternalColorEditOptionsPopup(col []float32, flags ColorEditFlags) { // ColorPicker3V parameter default value hint: // flags: 0 func ColorPicker3V(label string, col *[3]float32, flags ColorEditFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2688,7 +2683,7 @@ func ColorPicker3V(label string, col *[3]float32, flags ColorEditFlags) bool { // flags: 0 // ref_col: NULL func ColorPicker4V(label string, col *[4]float32, flags ColorEditFlags, ref_col []float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -2710,7 +2705,7 @@ func InternalColorPickerOptionsPopup(ref_col []float32, flags ColorEditFlags) { } func InternalColorTooltip(text string, col []float32, flags ColorEditFlags) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.igColorTooltip(textArg, (*C.float)(&(col[0])), C.ImGuiColorEditFlags(flags)) textFin() @@ -2721,7 +2716,7 @@ func InternalColorTooltip(text string, col []float32, flags ColorEditFlags) { // count: 1 // id: NULL func ColumnsV(count int32, id string, border bool) { - idArg, idFin := wrapper.WrapString(id) + idArg, idFin := WrapString(id) C.igColumns(C.int(count), idArg, C.bool(border)) idFin() @@ -2730,9 +2725,9 @@ func ColumnsV(count int32, id string, border bool) { // ComboStrV parameter default value hint: // popup_max_height_in_items: -1 func ComboStrV(label string, current_item *int32, items_separated_by_zeros string, popup_max_height_in_items int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) - items_separated_by_zerosArg, items_separated_by_zerosFin := wrapper.WrapString(items_separated_by_zeros) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + items_separated_by_zerosArg, items_separated_by_zerosFin := WrapString(items_separated_by_zeros) defer func() { labelFin() @@ -2745,9 +2740,9 @@ func ComboStrV(label string, current_item *int32, items_separated_by_zeros strin // ComboStrarrV parameter default value hint: // popup_max_height_in_items: -1 func ComboStrarrV(label string, current_item *int32, items []string, items_count int32, popup_max_height_in_items int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := wrapper.WrapStringList(items) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := WrapStringList(items) defer func() { labelFin() @@ -2768,7 +2763,7 @@ func CreateContextV(shared_font_atlas FontAtlas) Context { } func InternalCreateNewWindowSettings(name string) WindowSettings { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -2777,8 +2772,8 @@ func InternalCreateNewWindowSettings(name string) WindowSettings { } func InternalDataTypeApplyFromText(buf string, data_type DataType, p_data unsafe.Pointer, format string) bool { - bufArg, bufFin := wrapper.WrapString(buf) - formatArg, formatFin := wrapper.WrapString(format) + bufArg, bufFin := WrapString(buf) + formatArg, formatFin := WrapString(format) defer func() { bufFin() @@ -2800,8 +2795,8 @@ func InternalDataTypeCompare(data_type DataType, arg_1 unsafe.Pointer, arg_2 uns } func InternalDataTypeFormatString(buf string, buf_size int32, data_type DataType, p_data unsafe.Pointer, format string) int { - bufArg, bufFin := wrapper.WrapString(buf) - formatArg, formatFin := wrapper.WrapString(format) + bufArg, bufFin := WrapString(buf) + formatArg, formatFin := WrapString(format) defer func() { bufFin() @@ -2815,7 +2810,7 @@ func InternalDataTypeGetInfo(data_type DataType) DataTypeInfo { } func DebugCheckVersionAndDataLayout(version_str string, sz_io uint64, sz_style uint64, sz_vec2 uint64, sz_vec4 uint64, sz_drawvert uint64, sz_drawidx uint64) bool { - version_strArg, version_strFin := wrapper.WrapString(version_str) + version_strArg, version_strFin := WrapString(version_str) defer func() { version_strFin() @@ -2846,7 +2841,7 @@ func InternalDebugLocateItemResolveWithLastItem() { } func InternalDebugLog(fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igDebugLog(fmtArg) fmtFin() @@ -2857,7 +2852,7 @@ func InternalDebugNodeColumns(columns OldColumns) { } func InternalDebugNodeDockNode(node DockNode, label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igDebugNodeDockNode(node.handle(), labelArg) labelFin() @@ -2868,7 +2863,7 @@ func InternalDebugNodeDrawCmdShowMeshAndBoundingBox(out_draw_list DrawList, draw } func InternalDebugNodeDrawList(window Window, viewport ViewportP, draw_list DrawList, label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igDebugNodeDrawList(window.handle(), viewport.handle(), draw_list.handle(), labelArg) labelFin() @@ -2887,7 +2882,7 @@ func InternalDebugNodeInputTextState(state InputTextState) { } func InternalDebugNodeTabBar(tab_bar TabBar, label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igDebugNodeTabBar(tab_bar.handle(), labelArg) labelFin() @@ -2906,7 +2901,7 @@ func InternalDebugNodeViewport(viewport ViewportP) { } func InternalDebugNodeWindow(window Window, label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igDebugNodeWindow(window.handle(), labelArg) labelFin() @@ -2929,7 +2924,7 @@ func InternalDebugStartItemPicker() { } func DebugTextEncoding(text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.igDebugTextEncoding(textArg) textFin() @@ -2957,8 +2952,8 @@ func InternalDockBuilderAddNodeV(node_id ID, flags DockNodeFlags) ID { } func InternalDockBuilderCopyWindowSettings(src_name string, dst_name string) { - src_nameArg, src_nameFin := wrapper.WrapString(src_name) - dst_nameArg, dst_nameFin := wrapper.WrapString(dst_name) + src_nameArg, src_nameFin := WrapString(src_name) + dst_nameArg, dst_nameFin := WrapString(dst_name) C.igDockBuilderCopyWindowSettings(src_nameArg, dst_nameArg) src_nameFin() @@ -2966,7 +2961,7 @@ func InternalDockBuilderCopyWindowSettings(src_name string, dst_name string) { } func InternalDockBuilderDockWindow(window_name string, node_id ID) { - window_nameArg, window_nameFin := wrapper.WrapString(window_name) + window_nameArg, window_nameFin := WrapString(window_name) C.igDockBuilderDockWindow(window_nameArg, C.ImGuiID(node_id)) window_nameFin() @@ -3118,7 +3113,7 @@ func DockSpaceOverViewportV(viewport Viewport, flags DockNodeFlags, window_class } func InternalDragBehavior(id ID, data_type DataType, p_v unsafe.Pointer, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { formatFin() @@ -3133,9 +3128,9 @@ func InternalDragBehavior(id ID, data_type DataType, p_v unsafe.Pointer, v_speed // v_min: 0.0f // v_speed: 1.0f func DragFloatV(label string, v *float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3152,13 +3147,13 @@ func DragFloatV(label string, v *float32, v_speed float32, v_min float32, v_max // v_min: 0.0f // v_speed: 1.0f func DragFloat2V(label string, v *[2]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3179,13 +3174,13 @@ func DragFloat2V(label string, v *[2]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloat3V(label string, v *[3]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3206,13 +3201,13 @@ func DragFloat3V(label string, v *[3]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloat4V(label string, v *[4]float32, v_speed float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3234,11 +3229,11 @@ func DragFloat4V(label string, v *[4]float32, v_speed float32, v_min float32, v_ // v_min: 0.0f // v_speed: 1.0f func DragFloatRange2V(label string, v_current_min *float32, v_current_max *float32, v_speed float32, v_min float32, v_max float32, format string, format_max string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - v_current_minArg, v_current_minFin := wrapper.WrapNumberPtr[C.float, float32](v_current_min) - v_current_maxArg, v_current_maxFin := wrapper.WrapNumberPtr[C.float, float32](v_current_max) - formatArg, formatFin := wrapper.WrapString(format) - format_maxArg, format_maxFin := wrapper.WrapString(format_max) + labelArg, labelFin := WrapString(label) + v_current_minArg, v_current_minFin := WrapNumberPtr[C.float, float32](v_current_min) + v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.float, float32](v_current_max) + formatArg, formatFin := WrapString(format) + format_maxArg, format_maxFin := WrapString(format_max) defer func() { labelFin() @@ -3257,9 +3252,9 @@ func DragFloatRange2V(label string, v_current_min *float32, v_current_max *float // v_min: 0 // v_speed: 1.0f func DragIntV(label string, v *int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3276,13 +3271,13 @@ func DragIntV(label string, v *int32, v_speed float32, v_min int32, v_max int32, // v_min: 0 // v_speed: 1.0f func DragInt2V(label string, v *[2]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3303,13 +3298,13 @@ func DragInt2V(label string, v *[2]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragInt3V(label string, v *[3]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3330,13 +3325,13 @@ func DragInt3V(label string, v *[3]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragInt4V(label string, v *[4]int32, v_speed float32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3358,11 +3353,11 @@ func DragInt4V(label string, v *[4]int32, v_speed float32, v_min int32, v_max in // v_min: 0 // v_speed: 1.0f func DragIntRange2V(label string, v_current_min *int32, v_current_max *int32, v_speed float32, v_min int32, v_max int32, format string, format_max string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - v_current_minArg, v_current_minFin := wrapper.WrapNumberPtr[C.int, int32](v_current_min) - v_current_maxArg, v_current_maxFin := wrapper.WrapNumberPtr[C.int, int32](v_current_max) - formatArg, formatFin := wrapper.WrapString(format) - format_maxArg, format_maxFin := wrapper.WrapString(format_max) + labelArg, labelFin := WrapString(label) + v_current_minArg, v_current_minFin := WrapNumberPtr[C.int, int32](v_current_min) + v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.int, int32](v_current_max) + formatArg, formatFin := WrapString(format) + format_maxArg, format_maxFin := WrapString(format_max) defer func() { labelFin() @@ -3381,8 +3376,8 @@ func DragIntRange2V(label string, v_current_min *int32, v_current_max *int32, v_ // p_min: NULL // v_speed: 1.0f func DragScalarV(label string, data_type DataType, p_data unsafe.Pointer, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3398,8 +3393,8 @@ func DragScalarV(label string, data_type DataType, p_data unsafe.Pointer, v_spee // p_min: NULL // v_speed: 1.0f func DragScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, v_speed float32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -3522,7 +3517,7 @@ func InternalFindOrCreateColumns(window Window, id ID) OldColumns { // InternalFindRenderedTextEndV parameter default value hint: // text_end: NULL func InternalFindRenderedTextEndV(text string) string { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -3531,7 +3526,7 @@ func InternalFindRenderedTextEndV(text string) string { } func InternalFindSettingsHandler(type_name string) SettingsHandler { - type_nameArg, type_nameFin := wrapper.WrapString(type_name) + type_nameArg, type_nameFin := WrapString(type_name) defer func() { type_nameFin() @@ -3552,7 +3547,7 @@ func InternalFindWindowByID(id ID) Window { } func InternalFindWindowByName(name string) Window { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -3651,7 +3646,7 @@ func ColumnsCount() int { } func InternalColumnsID(str_id string, count int32) ID { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -3829,8 +3824,8 @@ func InternalIDWithSeedInt(n int32, seed ID) ID { } func InternalIDWithSeedStr(str_id_begin string, str_id_end string, seed ID) ID { - str_id_beginArg, str_id_beginFin := wrapper.WrapString(str_id_begin) - str_id_endArg, str_id_endFin := wrapper.WrapString(str_id_end) + str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) + str_id_endArg, str_id_endFin := WrapString(str_id_end) defer func() { str_id_beginFin() @@ -3844,7 +3839,7 @@ func IDPtr(ptr_id unsafe.Pointer) ID { } func IDStr(str_id string) ID { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -3853,8 +3848,8 @@ func IDStr(str_id string) ID { } func IDStrStr(str_id_begin string, str_id_end string) ID { - str_id_beginArg, str_id_beginFin := wrapper.WrapString(str_id_begin) - str_id_endArg, str_id_endFin := wrapper.WrapString(str_id_end) + str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) + str_id_endArg, str_id_endFin := WrapString(str_id_end) defer func() { str_id_beginFin() @@ -3917,7 +3912,7 @@ func InternalItemStatusFlags() ItemStatusFlags { } func InternalKeyChordName(key_chord KeyChord, out_buf string, out_buf_size int32) { - out_bufArg, out_bufFin := wrapper.WrapString(out_buf) + out_bufArg, out_bufFin := WrapString(out_buf) C.igGetKeyChordName(C.ImGuiKeyChord(key_chord), out_bufArg, C.int(out_buf_size)) out_bufFin() @@ -4088,8 +4083,8 @@ func TreeNodeToLabelSpacing() float32 { } func InternalTypematicRepeatRate(flags InputFlags, repeat_delay *float32, repeat_rate *float32) { - repeat_delayArg, repeat_delayFin := wrapper.WrapNumberPtr[C.float, float32](repeat_delay) - repeat_rateArg, repeat_rateFin := wrapper.WrapNumberPtr[C.float, float32](repeat_rate) + repeat_delayArg, repeat_delayFin := WrapNumberPtr[C.float, float32](repeat_delay) + repeat_rateArg, repeat_rateFin := WrapNumberPtr[C.float, float32](repeat_rate) C.igGetTypematicRepeatRate(C.ImGuiInputFlags(flags), repeat_delayArg, repeat_rateArg) repeat_delayFin() @@ -4304,8 +4299,8 @@ func InternalImExponentialMovingAverage(avg float32, sample float32, n int32) fl // out_file_size: NULL // padding_bytes: 0 func InternalImFileLoadToMemoryV(filename string, mode string, out_file_size *uint64, padding_bytes int32) unsafe.Pointer { - filenameArg, filenameFin := wrapper.WrapString(filename) - modeArg, modeFin := wrapper.WrapString(mode) + filenameArg, filenameFin := WrapString(filename) + modeArg, modeFin := WrapString(mode) defer func() { filenameFin() @@ -4365,8 +4360,8 @@ func InternalImFontAtlasGetBuilderForStbTruetype() FontBuilderIO { } func InternalImFormatString(buf string, buf_size uint64, fmt string) int { - bufArg, bufFin := wrapper.WrapString(buf) - fmtArg, fmtFin := wrapper.WrapString(fmt) + bufArg, bufFin := WrapString(buf) + fmtArg, fmtFin := WrapString(fmt) defer func() { bufFin() @@ -4376,9 +4371,9 @@ func InternalImFormatString(buf string, buf_size uint64, fmt string) int { } func InternalImFormatStringToTempBuffer(out_buf []string, out_buf_end []string, fmt string) { - out_bufArg, out_bufFin := wrapper.WrapStringList(out_buf) - out_buf_endArg, out_buf_endFin := wrapper.WrapStringList(out_buf_end) - fmtArg, fmtFin := wrapper.WrapString(fmt) + out_bufArg, out_bufFin := WrapStringList(out_buf) + out_buf_endArg, out_buf_endFin := WrapStringList(out_buf_end) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igImFormatStringToTempBuffer(out_bufArg, out_buf_endArg, fmtArg) out_bufFin() @@ -4400,7 +4395,7 @@ func InternalImHashDataV(data unsafe.Pointer, data_size uint64, seed ID) ID { // data_size: 0 // seed: 0 func InternalImHashStrV(data string, data_size uint64, seed ID) ID { - dataArg, dataFin := wrapper.WrapString(data) + dataArg, dataFin := WrapString(data) defer func() { dataFin() @@ -4526,7 +4521,7 @@ func InternalImMul(lhs Vec2, rhs Vec2) Vec2 { } func InternalImParseFormatFindEnd(format string) string { - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { formatFin() @@ -4535,7 +4530,7 @@ func InternalImParseFormatFindEnd(format string) string { } func InternalImParseFormatFindStart(format string) string { - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { formatFin() @@ -4544,7 +4539,7 @@ func InternalImParseFormatFindStart(format string) string { } func InternalImParseFormatPrecision(format string, default_value int32) int { - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { formatFin() @@ -4553,8 +4548,8 @@ func InternalImParseFormatPrecision(format string, default_value int32) int { } func InternalImParseFormatSanitizeForPrinting(fmt_in string, fmt_out string, fmt_out_size uint64) { - fmt_inArg, fmt_inFin := wrapper.WrapString(fmt_in) - fmt_outArg, fmt_outFin := wrapper.WrapString(fmt_out) + fmt_inArg, fmt_inFin := WrapString(fmt_in) + fmt_outArg, fmt_outFin := WrapString(fmt_out) C.igImParseFormatSanitizeForPrinting(fmt_inArg, fmt_outArg, C.xulong(fmt_out_size)) fmt_inFin() @@ -4562,8 +4557,8 @@ func InternalImParseFormatSanitizeForPrinting(fmt_in string, fmt_out string, fmt } func InternalImParseFormatSanitizeForScanning(fmt_in string, fmt_out string, fmt_out_size uint64) string { - fmt_inArg, fmt_inFin := wrapper.WrapString(fmt_in) - fmt_outArg, fmt_outFin := wrapper.WrapString(fmt_out) + fmt_inArg, fmt_inFin := WrapString(fmt_in) + fmt_outArg, fmt_outFin := WrapString(fmt_out) defer func() { fmt_inFin() @@ -4573,8 +4568,8 @@ func InternalImParseFormatSanitizeForScanning(fmt_in string, fmt_out string, fmt } func InternalImParseFormatTrimDecorations(format string, buf string, buf_size uint64) string { - formatArg, formatFin := wrapper.WrapString(format) - bufArg, bufFin := wrapper.WrapString(buf) + formatArg, formatFin := WrapString(format) + bufArg, bufFin := WrapString(buf) defer func() { formatFin() @@ -4623,7 +4618,7 @@ func InternalImSignDouble(x float64) float64 { } func InternalImStrSkipBlank(str string) string { - strArg, strFin := wrapper.WrapString(str) + strArg, strFin := WrapString(str) defer func() { strFin() @@ -4632,7 +4627,7 @@ func InternalImStrSkipBlank(str string) string { } func InternalImStrTrimBlanks(str string) { - strArg, strFin := wrapper.WrapString(str) + strArg, strFin := WrapString(str) C.igImStrTrimBlanks(strArg) strFin() @@ -4643,7 +4638,7 @@ func InternalImStrbolW(buf_mid_line *Wchar, buf_begin *Wchar) *Wchar { } func InternalImStrdup(str string) string { - strArg, strFin := wrapper.WrapString(str) + strArg, strFin := WrapString(str) defer func() { strFin() @@ -4652,8 +4647,8 @@ func InternalImStrdup(str string) string { } func InternalImStrdupcpy(dst string, p_dst_size *uint64, str string) string { - dstArg, dstFin := wrapper.WrapString(dst) - strArg, strFin := wrapper.WrapString(str) + dstArg, dstFin := WrapString(dst) + strArg, strFin := WrapString(str) defer func() { dstFin() @@ -4663,8 +4658,8 @@ func InternalImStrdupcpy(dst string, p_dst_size *uint64, str string) string { } func InternalImStreolRange(str string, str_end string) string { - strArg, strFin := wrapper.WrapString(str) - str_endArg, str_endFin := wrapper.WrapString(str_end) + strArg, strFin := WrapString(str) + str_endArg, str_endFin := WrapString(str_end) defer func() { strFin() @@ -4674,8 +4669,8 @@ func InternalImStreolRange(str string, str_end string) string { } func InternalImStricmp(str1 string, str2 string) int { - str1Arg, str1Fin := wrapper.WrapString(str1) - str2Arg, str2Fin := wrapper.WrapString(str2) + str1Arg, str1Fin := WrapString(str1) + str2Arg, str2Fin := WrapString(str2) defer func() { str1Fin() @@ -4685,10 +4680,10 @@ func InternalImStricmp(str1 string, str2 string) int { } func InternalImStristr(haystack string, haystack_end string, needle string, needle_end string) string { - haystackArg, haystackFin := wrapper.WrapString(haystack) - haystack_endArg, haystack_endFin := wrapper.WrapString(haystack_end) - needleArg, needleFin := wrapper.WrapString(needle) - needle_endArg, needle_endFin := wrapper.WrapString(needle_end) + haystackArg, haystackFin := WrapString(haystack) + haystack_endArg, haystack_endFin := WrapString(haystack_end) + needleArg, needleFin := WrapString(needle) + needle_endArg, needle_endFin := WrapString(needle_end) defer func() { haystackFin() @@ -4704,8 +4699,8 @@ func InternalImStrlenW(str *Wchar) int { } func InternalImStrncpy(dst string, src string, count uint64) { - dstArg, dstFin := wrapper.WrapString(dst) - srcArg, srcFin := wrapper.WrapString(src) + dstArg, dstFin := WrapString(dst) + srcArg, srcFin := WrapString(src) C.igImStrncpy(dstArg, srcArg, C.xulong(count)) dstFin() @@ -4713,8 +4708,8 @@ func InternalImStrncpy(dst string, src string, count uint64) { } func InternalImStrnicmp(str1 string, str2 string, count uint64) int { - str1Arg, str1Fin := wrapper.WrapString(str1) - str2Arg, str2Fin := wrapper.WrapString(str2) + str1Arg, str1Fin := WrapString(str1) + str2Arg, str2Fin := WrapString(str2) defer func() { str1Fin() @@ -4724,9 +4719,9 @@ func InternalImStrnicmp(str1 string, str2 string, count uint64) int { } func InternalImTextCharFromUtf8(out_char *uint32, in_text string, in_text_end string) int { - out_charArg, out_charFin := wrapper.WrapNumberPtr[C.uint, uint32](out_char) - in_textArg, in_textFin := wrapper.WrapString(in_text) - in_text_endArg, in_text_endFin := wrapper.WrapString(in_text_end) + out_charArg, out_charFin := WrapNumberPtr[C.uint, uint32](out_char) + in_textArg, in_textFin := WrapString(in_text) + in_text_endArg, in_text_endFin := WrapString(in_text_end) defer func() { out_charFin() @@ -4737,8 +4732,8 @@ func InternalImTextCharFromUtf8(out_char *uint32, in_text string, in_text_end st } func InternalImTextCountCharsFromUtf8(in_text string, in_text_end string) int { - in_textArg, in_textFin := wrapper.WrapString(in_text) - in_text_endArg, in_text_endFin := wrapper.WrapString(in_text_end) + in_textArg, in_textFin := WrapString(in_text) + in_text_endArg, in_text_endFin := WrapString(in_text_end) defer func() { in_textFin() @@ -4748,8 +4743,8 @@ func InternalImTextCountCharsFromUtf8(in_text string, in_text_end string) int { } func InternalImTextCountUtf8BytesFromChar(in_text string, in_text_end string) int { - in_textArg, in_textFin := wrapper.WrapString(in_text) - in_text_endArg, in_text_endFin := wrapper.WrapString(in_text_end) + in_textArg, in_textFin := WrapString(in_text) + in_text_endArg, in_text_endFin := WrapString(in_text_end) defer func() { in_textFin() @@ -4763,7 +4758,7 @@ func InternalImTextCountUtf8BytesFromStr(in_text *Wchar, in_text_end *Wchar) int } func InternalImTextStrToUtf8(out_buf string, out_buf_size int32, in_text *Wchar, in_text_end *Wchar) int { - out_bufArg, out_bufFin := wrapper.WrapString(out_buf) + out_bufArg, out_bufFin := WrapString(out_buf) defer func() { out_bufFin() @@ -4776,9 +4771,9 @@ func InternalImTriangleArea(a Vec2, b Vec2, c Vec2) float32 { } func InternalImTriangleBarycentricCoords(a Vec2, b Vec2, c Vec2, p Vec2, out_u *float32, out_v *float32, out_w *float32) { - out_uArg, out_uFin := wrapper.WrapNumberPtr[C.float, float32](out_u) - out_vArg, out_vFin := wrapper.WrapNumberPtr[C.float, float32](out_v) - out_wArg, out_wFin := wrapper.WrapNumberPtr[C.float, float32](out_w) + out_uArg, out_uFin := WrapNumberPtr[C.float, float32](out_u) + out_vArg, out_vFin := WrapNumberPtr[C.float, float32](out_v) + out_wArg, out_wFin := WrapNumberPtr[C.float, float32](out_w) C.igImTriangleBarycentricCoords(a.toC(), b.toC(), c.toC(), p.toC(), out_uArg, out_vArg, out_wArg) out_uFin() @@ -4820,7 +4815,7 @@ func ImageV(user_texture_id TextureID, size Vec2, uv0 Vec2, uv1 Vec2, tint_col V // uv0: ImVec2(0,0) // uv1: ImVec2(1,1) func ImageButtonV(str_id string, user_texture_id TextureID, size Vec2, uv0 Vec2, uv1 Vec2, bg_col Vec4, tint_col Vec4) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -4850,9 +4845,9 @@ func InternalInitialize() { // step: 0.0 // step_fast: 0.0 func InputDoubleV(label string, v *float64, step float64, step_fast float64, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.double, float64](v) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.double, float64](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4868,9 +4863,9 @@ func InputDoubleV(label string, v *float64, step float64, step_fast float64, for // step: 0.0f // step_fast: 0.0f func InputFloatV(label string, v *float32, step float32, step_fast float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4884,13 +4879,13 @@ func InputFloatV(label string, v *float32, step float32, step_fast float32, form // flags: 0 // format: "%.3f" func InputFloat2V(label string, v *[2]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4908,13 +4903,13 @@ func InputFloat2V(label string, v *[2]float32, format string, flags InputTextFla // flags: 0 // format: "%.3f" func InputFloat3V(label string, v *[3]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4932,13 +4927,13 @@ func InputFloat3V(label string, v *[3]float32, format string, flags InputTextFla // flags: 0 // format: "%.3f" func InputFloat4V(label string, v *[4]float32, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -4957,8 +4952,8 @@ func InputFloat4V(label string, v *[4]float32, format string, flags InputTextFla // step: 1 // step_fast: 100 func InputIntV(label string, v *int32, step int32, step_fast int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -4970,7 +4965,7 @@ func InputIntV(label string, v *int32, step int32, step_fast int32, flags InputT // InputInt2V parameter default value hint: // flags: 0 func InputInt2V(label string, v *[2]int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -4990,7 +4985,7 @@ func InputInt2V(label string, v *[2]int32, flags InputTextFlags) bool { // InputInt3V parameter default value hint: // flags: 0 func InputInt3V(label string, v *[3]int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -5010,7 +5005,7 @@ func InputInt3V(label string, v *[3]int32, flags InputTextFlags) bool { // InputInt4V parameter default value hint: // flags: 0 func InputInt4V(label string, v *[4]int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -5033,8 +5028,8 @@ func InputInt4V(label string, v *[4]int32, flags InputTextFlags) bool { // p_step: NULL // p_step_fast: NULL func InputScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_step unsafe.Pointer, p_step_fast unsafe.Pointer, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -5049,8 +5044,8 @@ func InputScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_ste // p_step: NULL // p_step_fast: NULL func InputScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_step unsafe.Pointer, p_step_fast unsafe.Pointer, format string, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -5062,7 +5057,7 @@ func InputScalarNV(label string, data_type DataType, p_data unsafe.Pointer, comp // InvisibleButtonV parameter default value hint: // flags: 0 func InvisibleButtonV(str_id string, size Vec2, flags ButtonFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -5280,7 +5275,7 @@ func InternalIsPopupOpenID(id ID, popup_flags PopupFlags) bool { // IsPopupOpenStrV parameter default value hint: // flags: 0 func IsPopupOpenStrV(str_id string, flags PopupFlags) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -5357,8 +5352,8 @@ func InternalKeepAliveID(id ID) { } func LabelText(label string, fmt string) { - labelArg, labelFin := wrapper.WrapString(label) - fmtArg, fmtFin := wrapper.WrapString(fmt) + labelArg, labelFin := WrapString(label) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igLabelText(labelArg, fmtArg) labelFin() @@ -5368,9 +5363,9 @@ func LabelText(label string, fmt string) { // ListBoxStrarrV parameter default value hint: // height_in_items: -1 func ListBoxStrarrV(label string, current_item *int32, items []string, items_count int32, height_in_items int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := wrapper.WrapStringList(items) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := WrapStringList(items) defer func() { labelFin() @@ -5381,7 +5376,7 @@ func ListBoxStrarrV(label string, current_item *int32, items []string, items_cou } func LoadIniSettingsFromDisk(ini_filename string) { - ini_filenameArg, ini_filenameFin := wrapper.WrapString(ini_filename) + ini_filenameArg, ini_filenameFin := WrapString(ini_filename) C.igLoadIniSettingsFromDisk(ini_filenameArg) ini_filenameFin() @@ -5390,7 +5385,7 @@ func LoadIniSettingsFromDisk(ini_filename string) { // LoadIniSettingsFromMemoryV parameter default value hint: // ini_size: 0 func LoadIniSettingsFromMemoryV(ini_data string, ini_size uint64) { - ini_dataArg, ini_dataFin := wrapper.WrapString(ini_data) + ini_dataArg, ini_dataFin := WrapString(ini_data) C.igLoadIniSettingsFromMemory(ini_dataArg, C.xulong(ini_size)) ini_dataFin() @@ -5420,7 +5415,7 @@ func LogFinish() { // text_end: NULL func InternalLogRenderedTextV(ref_pos *Vec2, text string) { ref_posArg, ref_posFin := wrap[C.ImVec2, *Vec2](ref_pos) - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igLogRenderedTextV(ref_posArg, textArg) ref_posFin() @@ -5428,8 +5423,8 @@ func InternalLogRenderedTextV(ref_pos *Vec2, text string) { } func InternalLogSetNextTextDecoration(prefix string, suffix string) { - prefixArg, prefixFin := wrapper.WrapString(prefix) - suffixArg, suffixFin := wrapper.WrapString(suffix) + prefixArg, prefixFin := WrapString(prefix) + suffixArg, suffixFin := WrapString(suffix) C.igLogSetNextTextDecoration(prefixArg, suffixArg) prefixFin() @@ -5437,7 +5432,7 @@ func InternalLogSetNextTextDecoration(prefix string, suffix string) { } func LogText(fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igLogText(fmtArg) fmtFin() @@ -5459,7 +5454,7 @@ func LogToClipboardV(auto_open_depth int32) { // auto_open_depth: -1 // filename: NULL func LogToFileV(auto_open_depth int32, filename string) { - filenameArg, filenameFin := wrapper.WrapString(filename) + filenameArg, filenameFin := WrapString(filename) C.igLogToFile(C.int(auto_open_depth), filenameArg) filenameFin() @@ -5496,9 +5491,9 @@ func MemFree(ptr unsafe.Pointer) { // selected: false // shortcut: NULL func InternalMenuItemExV(label string, icon string, shortcut string, selected bool, enabled bool) bool { - labelArg, labelFin := wrapper.WrapString(label) - iconArg, iconFin := wrapper.WrapString(icon) - shortcutArg, shortcutFin := wrapper.WrapString(shortcut) + labelArg, labelFin := WrapString(label) + iconArg, iconFin := WrapString(icon) + shortcutArg, shortcutFin := WrapString(shortcut) defer func() { labelFin() @@ -5513,8 +5508,8 @@ func InternalMenuItemExV(label string, icon string, shortcut string, selected bo // selected: false // shortcut: NULL func MenuItemBoolV(label string, shortcut string, selected bool, enabled bool) bool { - labelArg, labelFin := wrapper.WrapString(label) - shortcutArg, shortcutFin := wrapper.WrapString(shortcut) + labelArg, labelFin := WrapString(label) + shortcutArg, shortcutFin := WrapString(shortcut) defer func() { labelFin() @@ -5526,9 +5521,9 @@ func MenuItemBoolV(label string, shortcut string, selected bool, enabled bool) b // MenuItemBoolPtrV parameter default value hint: // enabled: true func MenuItemBoolPtrV(label string, shortcut string, p_selected *bool, enabled bool) bool { - labelArg, labelFin := wrapper.WrapString(label) - shortcutArg, shortcutFin := wrapper.WrapString(shortcut) - p_selectedArg, p_selectedFin := wrapper.WrapBool(p_selected) + labelArg, labelFin := WrapString(label) + shortcutArg, shortcutFin := WrapString(shortcut) + p_selectedArg, p_selectedFin := WrapBool(p_selected) defer func() { labelFin() @@ -5600,7 +5595,7 @@ func InternalOpenPopupExV(id ID, popup_flags PopupFlags) { // popup_flags: 1 // str_id: NULL func OpenPopupOnItemClickV(str_id string, popup_flags PopupFlags) { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igOpenPopupOnItemClick(str_idArg, C.ImGuiPopupFlags(popup_flags)) str_idFin() @@ -5615,7 +5610,7 @@ func OpenPopupIDV(id ID, popup_flags PopupFlags) { // OpenPopupStrV parameter default value hint: // popup_flags: 0 func OpenPopupStrV(str_id string, popup_flags PopupFlags) { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igOpenPopup_Str(str_idArg, C.ImGuiPopupFlags(popup_flags)) str_idFin() @@ -5629,8 +5624,8 @@ func OpenPopupStrV(str_id string, popup_flags PopupFlags) { // stride: sizeof(float) // values_offset: 0 func PlotHistogramFloatPtrV(label string, values []float32, values_count int32, values_offset int32, overlay_text string, scale_min float32, scale_max float32, graph_size Vec2, stride int32) { - labelArg, labelFin := wrapper.WrapString(label) - overlay_textArg, overlay_textFin := wrapper.WrapString(overlay_text) + labelArg, labelFin := WrapString(label) + overlay_textArg, overlay_textFin := WrapString(overlay_text) C.igPlotHistogram_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count), C.int(values_offset), overlay_textArg, C.float(scale_min), C.float(scale_max), graph_size.toC(), C.int(stride)) labelFin() @@ -5645,8 +5640,8 @@ func PlotHistogramFloatPtrV(label string, values []float32, values_count int32, // stride: sizeof(float) // values_offset: 0 func PlotLinesFloatPtrV(label string, values []float32, values_count int32, values_offset int32, overlay_text string, scale_min float32, scale_max float32, graph_size Vec2, stride int32) { - labelArg, labelFin := wrapper.WrapString(label) - overlay_textArg, overlay_textFin := wrapper.WrapString(overlay_text) + labelArg, labelFin := WrapString(label) + overlay_textArg, overlay_textFin := WrapString(overlay_text) C.igPlotLines_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count), C.int(values_offset), overlay_textArg, C.float(scale_min), C.float(scale_max), graph_size.toC(), C.int(stride)) labelFin() @@ -5709,7 +5704,7 @@ func PopTextWrapPos() { // overlay: NULL // size_arg: ImVec2(-FLT_MIN,0) func ProgressBarV(fraction float32, size_arg Vec2, overlay string) { - overlayArg, overlayFin := wrapper.WrapString(overlay) + overlayArg, overlayFin := WrapString(overlay) C.igProgressBar(C.float(fraction), size_arg.toC(), overlayArg) overlayFin() @@ -5748,15 +5743,15 @@ func PushIDPtr(ptr_id unsafe.Pointer) { } func PushIDStr(str_id string) { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igPushID_Str(str_idArg) str_idFin() } func PushIDStrStr(str_id_begin string, str_id_end string) { - str_id_beginArg, str_id_beginFin := wrapper.WrapString(str_id_begin) - str_id_endArg, str_id_endFin := wrapper.WrapString(str_id_end) + str_id_beginArg, str_id_beginFin := WrapString(str_id_begin) + str_id_endArg, str_id_endFin := WrapString(str_id_end) C.igPushID_StrStr(str_id_beginArg, str_id_endArg) str_id_beginFin() @@ -5806,7 +5801,7 @@ func PushTextWrapPosV(wrap_local_pos_x float32) { } func RadioButtonBool(label string, active bool) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -5815,8 +5810,8 @@ func RadioButtonBool(label string, active bool) bool { } func RadioButtonIntPtr(label string, v *int32, v_button int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -5830,7 +5825,7 @@ func InternalRemoveContextHook(context Context, hook_to_remove ID) { } func InternalRemoveSettingsHandler(type_name string) { - type_nameArg, type_nameFin := wrapper.WrapString(type_name) + type_nameArg, type_nameFin := WrapString(type_name) C.igRemoveSettingsHandler(type_nameArg) type_nameFin() @@ -5915,14 +5910,14 @@ func InternalRenderRectFilledWithHole(draw_list DrawList, outer Rect, inner Rect // hide_text_after_hash: true // text_end: NULL func InternalRenderTextV(pos Vec2, text string, hide_text_after_hash bool) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igRenderTextV(pos.toC(), textArg, C.bool(hide_text_after_hash)) textFin() } func InternalRenderTextEllipsis(draw_list DrawList, pos_min Vec2, pos_max Vec2, clip_max_x float32, ellipsis_max_x float32, text string, text_size_if_known *Vec2) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextEllipsis(draw_list.handle(), pos_min.toC(), pos_max.toC(), C.float(clip_max_x), C.float(ellipsis_max_x), textArg, text_size_if_knownArg) @@ -5931,7 +5926,7 @@ func InternalRenderTextEllipsis(draw_list DrawList, pos_min Vec2, pos_max Vec2, } func InternalRenderTextWrapped(pos Vec2, text string, wrap_width float32) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igRenderTextWrapped(pos.toC(), textArg, C.float(wrap_width)) textFin() @@ -5951,7 +5946,7 @@ func SameLineV(offset_from_start_x float32, spacing float32) { } func SaveIniSettingsToDisk(ini_filename string) { - ini_filenameArg, ini_filenameFin := wrapper.WrapString(ini_filename) + ini_filenameArg, ini_filenameFin := WrapString(ini_filename) C.igSaveIniSettingsToDisk(ini_filenameArg) ini_filenameFin() @@ -6005,7 +6000,7 @@ func InternalScrollbar(axis Axis) { // selected: false // size: ImVec2(0,0) func SelectableBoolV(label string, selected bool, flags SelectableFlags, size Vec2) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -6017,8 +6012,8 @@ func SelectableBoolV(label string, selected bool, flags SelectableFlags, size Ve // flags: 0 // size: ImVec2(0,0) func SelectableBoolPtrV(label string, p_selected *bool, flags SelectableFlags, size Vec2) bool { - labelArg, labelFin := wrapper.WrapString(label) - p_selectedArg, p_selectedFin := wrapper.WrapBool(p_selected) + labelArg, labelFin := WrapString(label) + p_selectedArg, p_selectedFin := WrapBool(p_selected) defer func() { labelFin() @@ -6036,15 +6031,15 @@ func InternalSeparatorEx(flags SeparatorFlags) { } func SeparatorText(label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igSeparatorText(labelArg) labelFin() } func InternalSeparatorTextEx(id ID, label string, label_end string, extra_width float32) { - labelArg, labelFin := wrapper.WrapString(label) - label_endArg, label_endFin := wrapper.WrapString(label_end) + labelArg, labelFin := WrapString(label) + label_endArg, label_endFin := WrapString(label_end) C.igSeparatorTextEx(C.ImGuiID(id), labelArg, label_endArg, C.float(extra_width)) labelFin() @@ -6060,7 +6055,7 @@ func InternalSetActiveIdUsingAllKeyboardKeys() { } func SetClipboardText(text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.igSetClipboardText(textArg) textFin() @@ -6109,7 +6104,7 @@ func SetCursorScreenPos(pos Vec2) { // SetDragDropPayloadV parameter default value hint: // cond: 0 func SetDragDropPayloadV(typeArg string, data unsafe.Pointer, sz uint64, cond Cond) bool { - typeArgArg, typeArgFin := wrapper.WrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -6290,14 +6285,14 @@ func InternalSetShortcutRoutingV(key_chord KeyChord, owner_id ID, flags InputFla } func SetTabItemClosed(tab_or_docked_window_label string) { - tab_or_docked_window_labelArg, tab_or_docked_window_labelFin := wrapper.WrapString(tab_or_docked_window_label) + tab_or_docked_window_labelArg, tab_or_docked_window_labelFin := WrapString(tab_or_docked_window_label) C.igSetTabItemClosed(tab_or_docked_window_labelArg) tab_or_docked_window_labelFin() } func SetTooltip(fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igSetTooltip(fmtArg) fmtFin() @@ -6316,7 +6311,7 @@ func SetWindowCollapsedBoolV(collapsed bool, cond Cond) { // SetWindowCollapsedStrV parameter default value hint: // cond: 0 func SetWindowCollapsedStrV(name string, collapsed bool, cond Cond) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.igSetWindowCollapsed_Str(nameArg, C.bool(collapsed), C.ImGuiCond(cond)) nameFin() @@ -6337,7 +6332,7 @@ func SetWindowFocusNil() { } func SetWindowFocusStr(name string) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.igSetWindowFocus_Str(nameArg) nameFin() @@ -6358,7 +6353,7 @@ func InternalSetWindowHitTestHole(window Window, pos Vec2, size Vec2) { // SetWindowPosStrV parameter default value hint: // cond: 0 func SetWindowPosStrV(name string, pos Vec2, cond Cond) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.igSetWindowPos_Str(nameArg, pos.toC(), C.ImGuiCond(cond)) nameFin() @@ -6379,7 +6374,7 @@ func InternalSetWindowPosWindowPtrV(window Window, pos Vec2, cond Cond) { // SetWindowSizeStrV parameter default value hint: // cond: 0 func SetWindowSizeStrV(name string, size Vec2, cond Cond) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.igSetWindowSize_Str(nameArg, size.toC(), C.ImGuiCond(cond)) nameFin() @@ -6419,7 +6414,7 @@ func InternalShortcutV(key_chord KeyChord, owner_id ID, flags InputFlags) bool { // ShowAboutWindowV parameter default value hint: // p_open: NULL func ShowAboutWindowV(p_open *bool) { - p_openArg, p_openFin := wrapper.WrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowAboutWindow(p_openArg) p_openFin() @@ -6428,7 +6423,7 @@ func ShowAboutWindowV(p_open *bool) { // ShowDebugLogWindowV parameter default value hint: // p_open: NULL func ShowDebugLogWindowV(p_open *bool) { - p_openArg, p_openFin := wrapper.WrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowDebugLogWindow(p_openArg) p_openFin() @@ -6437,7 +6432,7 @@ func ShowDebugLogWindowV(p_open *bool) { // ShowDemoWindowV parameter default value hint: // p_open: NULL func ShowDemoWindowV(p_open *bool) { - p_openArg, p_openFin := wrapper.WrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowDemoWindow(p_openArg) p_openFin() @@ -6448,7 +6443,7 @@ func InternalShowFontAtlas(atlas FontAtlas) { } func ShowFontSelector(label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igShowFontSelector(labelArg) labelFin() @@ -6457,7 +6452,7 @@ func ShowFontSelector(label string) { // ShowMetricsWindowV parameter default value hint: // p_open: NULL func ShowMetricsWindowV(p_open *bool) { - p_openArg, p_openFin := wrapper.WrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowMetricsWindow(p_openArg) p_openFin() @@ -6466,7 +6461,7 @@ func ShowMetricsWindowV(p_open *bool) { // ShowStackToolWindowV parameter default value hint: // p_open: NULL func ShowStackToolWindowV(p_open *bool) { - p_openArg, p_openFin := wrapper.WrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.igShowStackToolWindow(p_openArg) p_openFin() @@ -6479,7 +6474,7 @@ func ShowStyleEditorV(ref Style) { } func ShowStyleSelector(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -6505,9 +6500,9 @@ func InternalShutdown() { // v_degrees_max: +360.0f // v_degrees_min: -360.0f func SliderAngleV(label string, v_rad *float32, v_degrees_min float32, v_degrees_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - v_radArg, v_radFin := wrapper.WrapNumberPtr[C.float, float32](v_rad) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + v_radArg, v_radFin := WrapNumberPtr[C.float, float32](v_rad) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6518,7 +6513,7 @@ func SliderAngleV(label string, v_rad *float32, v_degrees_min float32, v_degrees } func InternalSliderBehavior(bb Rect, id ID, data_type DataType, p_v unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags, out_grab_bb *Rect) bool { - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) out_grab_bbArg, out_grab_bbFin := wrap[C.ImRect, *Rect](out_grab_bb) defer func() { @@ -6532,9 +6527,9 @@ func InternalSliderBehavior(bb Rect, id ID, data_type DataType, p_v unsafe.Point // flags: 0 // format: "%.3f" func SliderFloatV(label string, v *float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6548,13 +6543,13 @@ func SliderFloatV(label string, v *float32, v_min float32, v_max float32, format // flags: 0 // format: "%.3f" func SliderFloat2V(label string, v *[2]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6572,13 +6567,13 @@ func SliderFloat2V(label string, v *[2]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%.3f" func SliderFloat3V(label string, v *[3]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6596,13 +6591,13 @@ func SliderFloat3V(label string, v *[3]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%.3f" func SliderFloat4V(label string, v *[4]float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { vArg[i] = C.float(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6620,9 +6615,9 @@ func SliderFloat4V(label string, v *[4]float32, v_min float32, v_max float32, fo // flags: 0 // format: "%d" func SliderIntV(label string, v *int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6636,13 +6631,13 @@ func SliderIntV(label string, v *int32, v_min int32, v_max int32, format string, // flags: 0 // format: "%d" func SliderInt2V(label string, v *[2]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6660,13 +6655,13 @@ func SliderInt2V(label string, v *[2]int32, v_min int32, v_max int32, format str // flags: 0 // format: "%d" func SliderInt3V(label string, v *[3]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6684,13 +6679,13 @@ func SliderInt3V(label string, v *[3]int32, v_min int32, v_max int32, format str // flags: 0 // format: "%d" func SliderInt4V(label string, v *[4]int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { vArg[i] = C.int(vV) } - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6708,8 +6703,8 @@ func SliderInt4V(label string, v *[4]int32, v_min int32, v_max int32, format str // flags: 0 // format: NULL func SliderScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6722,8 +6717,8 @@ func SliderScalarV(label string, data_type DataType, p_data unsafe.Pointer, p_mi // flags: 0 // format: NULL func SliderScalarNV(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -6733,7 +6728,7 @@ func SliderScalarNV(label string, data_type DataType, p_data unsafe.Pointer, com } func SmallButton(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -6750,8 +6745,8 @@ func Spacing() { // hover_extend: 0.0f // hover_visibility_delay: 0.0f func InternalSplitterBehaviorV(bb Rect, id ID, axis Axis, size1 *float32, size2 *float32, min_size1 float32, min_size2 float32, hover_extend float32, hover_visibility_delay float32, bg_col uint32) bool { - size1Arg, size1Fin := wrapper.WrapNumberPtr[C.float, float32](size1) - size2Arg, size2Fin := wrapper.WrapNumberPtr[C.float, float32](size2) + size1Arg, size1Fin := WrapNumberPtr[C.float, float32](size1) + size2Arg, size2Fin := WrapNumberPtr[C.float, float32](size2) defer func() { size1Fin() @@ -6845,7 +6840,7 @@ func InternalTabItemBackground(draw_list DrawList, bb Rect, flags TabItemFlags, // TabItemButtonV parameter default value hint: // flags: 0 func TabItemButtonV(label string, flags TabItemFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -6857,7 +6852,7 @@ func InternalTabItemCalcSizeStr(label string, has_close_button_or_unsaved_marker pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igTabItemCalcSize_Str(pOutArg, labelArg, C.bool(has_close_button_or_unsaved_marker)) pOutFin() @@ -6878,8 +6873,8 @@ func InternalTabItemCalcSizeWindowPtr(window Window) Vec2 { } func InternalTabItemEx(tab_bar TabBar, label string, p_open *bool, flags TabItemFlags, docked_window Window) bool { - labelArg, labelFin := wrapper.WrapString(label) - p_openArg, p_openFin := wrapper.WrapBool(p_open) + labelArg, labelFin := WrapString(label) + p_openArg, p_openFin := WrapBool(p_open) defer func() { labelFin() @@ -6889,9 +6884,9 @@ func InternalTabItemEx(tab_bar TabBar, label string, p_open *bool, flags TabItem } func InternalTabItemLabelAndCloseButton(draw_list DrawList, bb Rect, flags TabItemFlags, frame_padding Vec2, label string, tab_id ID, close_button_id ID, is_contents_visible bool, out_just_closed *bool, out_text_clipped *bool) { - labelArg, labelFin := wrapper.WrapString(label) - out_just_closedArg, out_just_closedFin := wrapper.WrapBool(out_just_closed) - out_text_clippedArg, out_text_clippedFin := wrapper.WrapBool(out_text_clipped) + labelArg, labelFin := WrapString(label) + out_just_closedArg, out_just_closedFin := WrapBool(out_just_closed) + out_text_clippedArg, out_text_clippedFin := WrapBool(out_text_clipped) C.igTabItemLabelAndCloseButton(draw_list.handle(), bb.toC(), C.ImGuiTabItemFlags(flags), frame_padding.toC(), labelArg, C.ImGuiID(tab_id), C.ImGuiID(close_button_id), C.bool(is_contents_visible), out_just_closedArg, out_text_clippedArg) labelFin() @@ -7037,7 +7032,7 @@ func TableGetSortSpecs() TableSortSpecs { } func TableHeader(label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igTableHeader(labelArg) labelFin() @@ -7139,7 +7134,7 @@ func InternalTableSettingsFindByID(id ID) TableSettings { // init_width_or_weight: 0.0f // user_id: 0 func TableSetupColumnV(label string, flags TableColumnFlags, init_width_or_weight float32, user_id ID) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.igTableSetupColumn(labelArg, C.ImGuiTableColumnFlags(flags), C.float(init_width_or_weight), C.ImGuiID(user_id)) labelFin() @@ -7181,8 +7176,8 @@ func InternalTempInputIsActive(id ID) bool { // p_clamp_max: NULL // p_clamp_min: NULL func InternalTempInputScalarV(bb Rect, id ID, label string, data_type DataType, p_data unsafe.Pointer, format string, p_clamp_min unsafe.Pointer, p_clamp_max unsafe.Pointer) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -7192,8 +7187,8 @@ func InternalTempInputScalarV(bb Rect, id ID, label string, data_type DataType, } func InternalTempInputText(bb Rect, id ID, label string, buf string, buf_size int32, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - bufArg, bufFin := wrapper.WrapString(buf) + labelArg, labelFin := WrapString(label) + bufArg, bufFin := WrapString(buf) defer func() { labelFin() @@ -7211,21 +7206,21 @@ func InternalTestShortcutRouting(key_chord KeyChord, owner_id ID) bool { } func Text(fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igText(fmtArg) fmtFin() } func TextColored(col Vec4, fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igTextColored(col.toC(), fmtArg) fmtFin() } func TextDisabled(fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igTextDisabled(fmtArg) fmtFin() @@ -7235,7 +7230,7 @@ func TextDisabled(fmt string) { // flags: 0 // text_end: NULL func InternalTextExV(text string, flags TextFlags) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igTextExV(textArg, C.ImGuiTextFlags(flags)) textFin() @@ -7244,14 +7239,14 @@ func InternalTextExV(text string, flags TextFlags) { // TextUnformattedV parameter default value hint: // text_end: NULL func TextUnformattedV(text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igTextUnformattedV(textArg) textFin() } func TextWrapped(fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_igTextWrapped(fmtArg) fmtFin() @@ -7264,8 +7259,8 @@ func InternalTranslateWindowsInViewport(viewport ViewportP, old_pos Vec2, new_po // InternalTreeNodeBehaviorV parameter default value hint: // label_end: NULL func InternalTreeNodeBehaviorV(id ID, flags TreeNodeFlags, label string, label_end string) bool { - labelArg, labelFin := wrapper.WrapString(label) - label_endArg, label_endFin := wrapper.WrapString(label_end) + labelArg, labelFin := WrapString(label) + label_endArg, label_endFin := WrapString(label_end) defer func() { labelFin() @@ -7275,7 +7270,7 @@ func InternalTreeNodeBehaviorV(id ID, flags TreeNodeFlags, label string, label_e } func TreeNodeExPtr(ptr_id unsafe.Pointer, flags TreeNodeFlags, fmt string) bool { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) defer func() { fmtFin() @@ -7286,7 +7281,7 @@ func TreeNodeExPtr(ptr_id unsafe.Pointer, flags TreeNodeFlags, fmt string) bool // TreeNodeExStrV parameter default value hint: // flags: 0 func TreeNodeExStrV(label string, flags TreeNodeFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7295,8 +7290,8 @@ func TreeNodeExStrV(label string, flags TreeNodeFlags) bool { } func TreeNodeExStrStr(str_id string, flags TreeNodeFlags, fmt string) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) - fmtArg, fmtFin := wrapper.WrapString(fmt) + str_idArg, str_idFin := WrapString(str_id) + fmtArg, fmtFin := WrapString(fmt) defer func() { str_idFin() @@ -7314,7 +7309,7 @@ func InternalTreeNodeUpdateNextOpen(id ID, flags TreeNodeFlags) bool { } func TreeNodePtr(ptr_id unsafe.Pointer, fmt string) bool { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) defer func() { fmtFin() @@ -7323,7 +7318,7 @@ func TreeNodePtr(ptr_id unsafe.Pointer, fmt string) bool { } func TreeNodeStr(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7332,8 +7327,8 @@ func TreeNodeStr(label string) bool { } func TreeNodeStrStr(str_id string, fmt string) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) - fmtArg, fmtFin := wrapper.WrapString(fmt) + str_idArg, str_idFin := WrapString(str_id) + fmtArg, fmtFin := WrapString(fmt) defer func() { str_idFin() @@ -7355,7 +7350,7 @@ func TreePushPtr(ptr_id unsafe.Pointer) { } func TreePushStr(str_id string) { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.igTreePush_Str(str_idArg) str_idFin() @@ -7395,9 +7390,9 @@ func InternalUpdateWindowParentAndRootLinks(window Window, flags WindowFlags, pa // flags: 0 // format: "%.3f" func VSliderFloatV(label string, size Vec2, v *float32, v_min float32, v_max float32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -7411,9 +7406,9 @@ func VSliderFloatV(label string, size Vec2, v *float32, v_min float32, v_max flo // flags: 0 // format: "%d" func VSliderIntV(label string, size Vec2, v *int32, v_min int32, v_max int32, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -7427,8 +7422,8 @@ func VSliderIntV(label string, size Vec2, v *int32, v_min int32, v_max int32, fo // flags: 0 // format: NULL func VSliderScalarV(label string, size Vec2, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer, format string, flags SliderFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -7438,7 +7433,7 @@ func VSliderScalarV(label string, size Vec2, data_type DataType, p_data unsafe.P } func ValueBool(prefix string, b bool) { - prefixArg, prefixFin := wrapper.WrapString(prefix) + prefixArg, prefixFin := WrapString(prefix) C.igValue_Bool(prefixArg, C.bool(b)) prefixFin() @@ -7447,8 +7442,8 @@ func ValueBool(prefix string, b bool) { // ValueFloatV parameter default value hint: // float_format: NULL func ValueFloatV(prefix string, v float32, float_format string) { - prefixArg, prefixFin := wrapper.WrapString(prefix) - float_formatArg, float_formatFin := wrapper.WrapString(float_format) + prefixArg, prefixFin := WrapString(prefix) + float_formatArg, float_formatFin := WrapString(float_format) C.igValue_Float(prefixArg, C.float(v), float_formatArg) prefixFin() @@ -7456,14 +7451,14 @@ func ValueFloatV(prefix string, v float32, float_format string) { } func ValueInt(prefix string, v int32) { - prefixArg, prefixFin := wrapper.WrapString(prefix) + prefixArg, prefixFin := WrapString(prefix) C.igValue_Int(prefixArg, C.int(v)) prefixFin() } func ValueUint(prefix string, v uint32) { - prefixArg, prefixFin := wrapper.WrapString(prefix) + prefixArg, prefixFin := WrapString(prefix) C.igValue_Uint(prefixArg, C.uint(v)) prefixFin() @@ -7558,14 +7553,14 @@ func (self DrawList) AddRectFilled(p_min Vec2, p_max Vec2, col uint32) { } func (self DrawList) AddTextFontPtr(font Font, font_size float32, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImDrawList_AddText_FontPtr(self.handle(), font.handle(), C.float(font_size), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() } func (self DrawList) AddTextVec2(pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImDrawList_AddText_Vec2(self.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -7608,7 +7603,7 @@ func (self FontAtlas) AddFontDefault() Font { } func (self FontAtlas) AddFontFromFileTTF(filename string, size_pixels float32) Font { - filenameArg, filenameFin := wrapper.WrapString(filename) + filenameArg, filenameFin := WrapString(filename) defer func() { filenameFin() @@ -7617,7 +7612,7 @@ func (self FontAtlas) AddFontFromFileTTF(filename string, size_pixels float32) F } func (self FontAtlas) AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85 string, size_pixels float32) Font { - compressed_font_data_base85Arg, compressed_font_data_base85Fin := wrapper.WrapString(compressed_font_data_base85) + compressed_font_data_base85Arg, compressed_font_data_base85Fin := WrapString(compressed_font_data_base85) defer func() { compressed_font_data_base85Fin() @@ -7634,7 +7629,7 @@ func (self FontAtlas) AddFontFromMemoryTTF(font_data unsafe.Pointer, font_size i } func (self FontGlyphRangesBuilder) AddText(text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImFontGlyphRangesBuilder_AddText(self.handle(), textArg) textFin() @@ -7648,7 +7643,7 @@ func (self Font) CalcTextSizeA(size float32, max_width float32, wrap_width float pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImFont_CalcTextSizeA(pOutArg, self.handle(), C.float(size), C.float(max_width), C.float(wrap_width), text_beginArg) pOutFin() @@ -7658,7 +7653,7 @@ func (self Font) CalcTextSizeA(size float32, max_width float32, wrap_width float } func (self Font) RenderText(draw_list DrawList, size float32, pos Vec2, col uint32, clip_rect Vec4, text_begin string) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImFont_RenderText(self.handle(), draw_list.handle(), C.float(size), pos.toC(), C.ImU32(col), clip_rect.toC(), text_beginArg) text_beginFin() @@ -7669,7 +7664,7 @@ func (self IO) SetKeyEventNativeData(key Key, native_keycode int32, native_scanc } func (self InputTextCallbackData) InsertChars(pos int32, text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImGuiInputTextCallbackData_InsertChars(self.handle(), C.int(pos), textArg) textFin() @@ -7680,7 +7675,7 @@ func (self ListClipper) Begin(items_count int32) { } func (self TextBuffer) Append(str string) { - strArg, strFin := wrapper.WrapString(str) + strArg, strFin := WrapString(str) C.wrap_ImGuiTextBuffer_Append(self.handle(), strArg) strFin() @@ -7691,7 +7686,7 @@ func (self TextFilter) Draw() bool { } func (self TextFilter) PassFilter(text string) bool { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -7700,7 +7695,7 @@ func (self TextFilter) PassFilter(text string) bool { } func (self Window) InternalIDStr(str string) ID { - strArg, strFin := wrapper.WrapString(str) + strArg, strFin := WrapString(str) defer func() { strFin() @@ -7709,7 +7704,7 @@ func (self Window) InternalIDStr(str string) ID { } func AcceptDragDropPayload(typeArg string) Payload { - typeArgArg, typeArgFin := wrapper.WrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -7718,7 +7713,7 @@ func AcceptDragDropPayload(typeArg string) Payload { } func InternalArrowButtonEx(str_id string, dir Dir, size_arg Vec2) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7727,7 +7722,7 @@ func InternalArrowButtonEx(str_id string, dir Dir, size_arg Vec2) bool { } func Begin(name string) bool { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -7744,7 +7739,7 @@ func BeginChildID(id ID) bool { } func BeginChildStr(str_id string) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7753,15 +7748,15 @@ func BeginChildStr(str_id string) bool { } func InternalBeginColumns(str_id string, count int32) { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.wrap_igBeginColumns(str_idArg, C.int(count)) str_idFin() } func BeginCombo(label string, preview_value string) bool { - labelArg, labelFin := wrapper.WrapString(label) - preview_valueArg, preview_valueFin := wrapper.WrapString(preview_value) + labelArg, labelFin := WrapString(label) + preview_valueArg, preview_valueFin := WrapString(preview_value) defer func() { labelFin() @@ -7779,7 +7774,7 @@ func BeginDragDropSource() bool { } func BeginListBox(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7788,7 +7783,7 @@ func BeginListBox(label string) bool { } func BeginMenu(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7797,8 +7792,8 @@ func BeginMenu(label string) bool { } func InternalBeginMenuEx(label string, icon string) bool { - labelArg, labelFin := wrapper.WrapString(label) - iconArg, iconFin := wrapper.WrapString(icon) + labelArg, labelFin := WrapString(label) + iconArg, iconFin := WrapString(icon) defer func() { labelFin() @@ -7808,7 +7803,7 @@ func InternalBeginMenuEx(label string, icon string) bool { } func BeginPopup(str_id string) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7829,7 +7824,7 @@ func BeginPopupContextWindow() bool { } func BeginPopupModal(name string) bool { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -7838,7 +7833,7 @@ func BeginPopupModal(name string) bool { } func BeginTabBar(str_id string) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7847,7 +7842,7 @@ func BeginTabBar(str_id string) bool { } func BeginTabItem(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7856,7 +7851,7 @@ func BeginTabItem(label string) bool { } func BeginTable(str_id string, column int32) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -7865,7 +7860,7 @@ func BeginTable(str_id string, column int32) bool { } func InternalBeginTableEx(name string, id ID, columns_count int32) bool { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -7874,7 +7869,7 @@ func InternalBeginTableEx(name string, id ID, columns_count int32) bool { } func Button(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7883,8 +7878,8 @@ func Button(label string) bool { } func InternalButtonBehavior(bb Rect, id ID, out_hovered *bool, out_held *bool) bool { - out_hoveredArg, out_hoveredFin := wrapper.WrapBool(out_hovered) - out_heldArg, out_heldFin := wrapper.WrapBool(out_held) + out_hoveredArg, out_hoveredFin := WrapBool(out_hovered) + out_heldArg, out_heldFin := WrapBool(out_held) defer func() { out_hoveredFin() @@ -7894,7 +7889,7 @@ func InternalButtonBehavior(bb Rect, id ID, out_hovered *bool, out_held *bool) b } func InternalButtonEx(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7906,7 +7901,7 @@ func CalcTextSize(text string) Vec2 { pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igCalcTextSize(pOutArg, textArg) pOutFin() @@ -7916,8 +7911,8 @@ func CalcTextSize(text string) Vec2 { } func CollapsingHeaderBoolPtr(label string, p_visible *bool) bool { - labelArg, labelFin := wrapper.WrapString(label) - p_visibleArg, p_visibleFin := wrapper.WrapBool(p_visible) + labelArg, labelFin := WrapString(label) + p_visibleArg, p_visibleFin := WrapBool(p_visible) defer func() { labelFin() @@ -7927,7 +7922,7 @@ func CollapsingHeaderBoolPtr(label string, p_visible *bool) bool { } func CollapsingHeaderTreeNodeFlags(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7936,7 +7931,7 @@ func CollapsingHeaderTreeNodeFlags(label string) bool { } func ColorButton(desc_id string, col Vec4) bool { - desc_idArg, desc_idFin := wrapper.WrapString(desc_id) + desc_idArg, desc_idFin := WrapString(desc_id) defer func() { desc_idFin() @@ -7945,7 +7940,7 @@ func ColorButton(desc_id string, col Vec4) bool { } func ColorEdit3(label string, col *[3]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7963,7 +7958,7 @@ func ColorEdit3(label string, col *[3]float32) bool { } func ColorEdit4(label string, col *[4]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7981,7 +7976,7 @@ func ColorEdit4(label string, col *[4]float32) bool { } func ColorPicker3(label string, col *[3]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -7999,7 +7994,7 @@ func ColorPicker3(label string, col *[3]float32) bool { } func ColorPicker4(label string, col *[4]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) colArg := make([]C.float, len(col)) for i, colV := range col { @@ -8021,9 +8016,9 @@ func Columns() { } func ComboStr(label string, current_item *int32, items_separated_by_zeros string) bool { - labelArg, labelFin := wrapper.WrapString(label) - current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) - items_separated_by_zerosArg, items_separated_by_zerosFin := wrapper.WrapString(items_separated_by_zeros) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + items_separated_by_zerosArg, items_separated_by_zerosFin := WrapString(items_separated_by_zeros) defer func() { labelFin() @@ -8034,9 +8029,9 @@ func ComboStr(label string, current_item *int32, items_separated_by_zeros string } func ComboStrarr(label string, current_item *int32, items []string, items_count int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := wrapper.WrapStringList(items) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := WrapStringList(items) defer func() { labelFin() @@ -8079,8 +8074,8 @@ func DockSpaceOverViewport() ID { } func DragFloat(label string, v *float32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8090,7 +8085,7 @@ func DragFloat(label string, v *float32) bool { } func DragFloat2(label string, v *[2]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8108,7 +8103,7 @@ func DragFloat2(label string, v *[2]float32) bool { } func DragFloat3(label string, v *[3]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8126,7 +8121,7 @@ func DragFloat3(label string, v *[3]float32) bool { } func DragFloat4(label string, v *[4]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8144,9 +8139,9 @@ func DragFloat4(label string, v *[4]float32) bool { } func DragFloatRange2(label string, v_current_min *float32, v_current_max *float32) bool { - labelArg, labelFin := wrapper.WrapString(label) - v_current_minArg, v_current_minFin := wrapper.WrapNumberPtr[C.float, float32](v_current_min) - v_current_maxArg, v_current_maxFin := wrapper.WrapNumberPtr[C.float, float32](v_current_max) + labelArg, labelFin := WrapString(label) + v_current_minArg, v_current_minFin := WrapNumberPtr[C.float, float32](v_current_min) + v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.float, float32](v_current_max) defer func() { labelFin() @@ -8157,8 +8152,8 @@ func DragFloatRange2(label string, v_current_min *float32, v_current_max *float3 } func DragInt(label string, v *int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -8168,7 +8163,7 @@ func DragInt(label string, v *int32) bool { } func DragInt2(label string, v *[2]int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8186,7 +8181,7 @@ func DragInt2(label string, v *[2]int32) bool { } func DragInt3(label string, v *[3]int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8204,7 +8199,7 @@ func DragInt3(label string, v *[3]int32) bool { } func DragInt4(label string, v *[4]int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8222,9 +8217,9 @@ func DragInt4(label string, v *[4]int32) bool { } func DragIntRange2(label string, v_current_min *int32, v_current_max *int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - v_current_minArg, v_current_minFin := wrapper.WrapNumberPtr[C.int, int32](v_current_min) - v_current_maxArg, v_current_maxFin := wrapper.WrapNumberPtr[C.int, int32](v_current_max) + labelArg, labelFin := WrapString(label) + v_current_minArg, v_current_minFin := WrapNumberPtr[C.int, int32](v_current_min) + v_current_maxArg, v_current_maxFin := WrapNumberPtr[C.int, int32](v_current_max) defer func() { labelFin() @@ -8235,7 +8230,7 @@ func DragIntRange2(label string, v_current_min *int32, v_current_max *int32) boo } func DragScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8244,7 +8239,7 @@ func DragScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { } func DragScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8253,7 +8248,7 @@ func DragScalarN(label string, data_type DataType, p_data unsafe.Pointer, compon } func InternalFindRenderedTextEnd(text string) string { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) defer func() { textFin() @@ -8285,8 +8280,8 @@ func MouseDragDelta() Vec2 { } func InternalImFileLoadToMemory(filename string, mode string) unsafe.Pointer { - filenameArg, filenameFin := wrapper.WrapString(filename) - modeArg, modeFin := wrapper.WrapString(mode) + filenameArg, filenameFin := WrapString(filename) + modeArg, modeFin := WrapString(mode) defer func() { filenameFin() @@ -8300,7 +8295,7 @@ func InternalImHashData(data unsafe.Pointer, data_size uint64) ID { } func InternalImHashStr(data string) ID { - dataArg, dataFin := wrapper.WrapString(data) + dataArg, dataFin := WrapString(data) defer func() { dataFin() @@ -8313,7 +8308,7 @@ func Image(user_texture_id TextureID, size Vec2) { } func ImageButton(str_id string, user_texture_id TextureID, size Vec2) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -8330,8 +8325,8 @@ func Indent() { } func InputDouble(label string, v *float64) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.double, float64](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.double, float64](v) defer func() { labelFin() @@ -8341,8 +8336,8 @@ func InputDouble(label string, v *float64) bool { } func InputFloat(label string, v *float32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8352,7 +8347,7 @@ func InputFloat(label string, v *float32) bool { } func InputFloat2(label string, v *[2]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8370,7 +8365,7 @@ func InputFloat2(label string, v *[2]float32) bool { } func InputFloat3(label string, v *[3]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8388,7 +8383,7 @@ func InputFloat3(label string, v *[3]float32) bool { } func InputFloat4(label string, v *[4]float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8406,8 +8401,8 @@ func InputFloat4(label string, v *[4]float32) bool { } func InputInt(label string, v *int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -8417,7 +8412,7 @@ func InputInt(label string, v *int32) bool { } func InputInt2(label string, v *[2]int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8435,7 +8430,7 @@ func InputInt2(label string, v *[2]int32) bool { } func InputInt3(label string, v *[3]int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8453,7 +8448,7 @@ func InputInt3(label string, v *[3]int32) bool { } func InputInt4(label string, v *[4]int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -8471,7 +8466,7 @@ func InputInt4(label string, v *[4]int32) bool { } func InputScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8480,7 +8475,7 @@ func InputScalar(label string, data_type DataType, p_data unsafe.Pointer) bool { } func InputScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8489,9 +8484,9 @@ func InputScalarN(label string, data_type DataType, p_data unsafe.Pointer, compo } func InternalInputTextEx(label string, hint string, buf string, buf_size int32, size_arg Vec2, flags InputTextFlags) bool { - labelArg, labelFin := wrapper.WrapString(label) - hintArg, hintFin := wrapper.WrapString(hint) - bufArg, bufFin := wrapper.WrapString(buf) + labelArg, labelFin := WrapString(label) + hintArg, hintFin := WrapString(hint) + bufArg, bufFin := WrapString(buf) defer func() { labelFin() @@ -8502,7 +8497,7 @@ func InternalInputTextEx(label string, hint string, buf string, buf_size int32, } func InvisibleButton(str_id string, size Vec2) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -8555,7 +8550,7 @@ func IsMousePosValid() bool { } func IsPopupOpenStr(str_id string) bool { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) defer func() { str_idFin() @@ -8584,9 +8579,9 @@ func InternalItemSizeVec2(size Vec2) { } func ListBoxStrarr(label string, current_item *int32, items []string, items_count int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - current_itemArg, current_itemFin := wrapper.WrapNumberPtr[C.int, int32](current_item) - itemsArg, itemsFin := wrapper.WrapStringList(items) + labelArg, labelFin := WrapString(label) + current_itemArg, current_itemFin := WrapNumberPtr[C.int, int32](current_item) + itemsArg, itemsFin := WrapStringList(items) defer func() { labelFin() @@ -8597,7 +8592,7 @@ func ListBoxStrarr(label string, current_item *int32, items []string, items_coun } func LoadIniSettingsFromMemory(ini_data string) { - ini_dataArg, ini_dataFin := wrapper.WrapString(ini_data) + ini_dataArg, ini_dataFin := WrapString(ini_data) C.wrap_igLoadIniSettingsFromMemory(ini_dataArg) ini_dataFin() @@ -8605,7 +8600,7 @@ func LoadIniSettingsFromMemory(ini_data string) { func InternalLogRenderedText(ref_pos *Vec2, text string) { ref_posArg, ref_posFin := wrap[C.ImVec2, *Vec2](ref_pos) - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igLogRenderedText(ref_posArg, textArg) ref_posFin() @@ -8629,8 +8624,8 @@ func LogToTTY() { } func InternalMenuItemEx(label string, icon string) bool { - labelArg, labelFin := wrapper.WrapString(label) - iconArg, iconFin := wrapper.WrapString(icon) + labelArg, labelFin := WrapString(label) + iconArg, iconFin := WrapString(icon) defer func() { labelFin() @@ -8640,7 +8635,7 @@ func InternalMenuItemEx(label string, icon string) bool { } func MenuItemBool(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8649,9 +8644,9 @@ func MenuItemBool(label string) bool { } func MenuItemBoolPtr(label string, shortcut string, p_selected *bool) bool { - labelArg, labelFin := wrapper.WrapString(label) - shortcutArg, shortcutFin := wrapper.WrapString(shortcut) - p_selectedArg, p_selectedFin := wrapper.WrapBool(p_selected) + labelArg, labelFin := WrapString(label) + shortcutArg, shortcutFin := WrapString(shortcut) + p_selectedArg, p_selectedFin := WrapBool(p_selected) defer func() { labelFin() @@ -8674,21 +8669,21 @@ func OpenPopupID(id ID) { } func OpenPopupStr(str_id string) { - str_idArg, str_idFin := wrapper.WrapString(str_id) + str_idArg, str_idFin := WrapString(str_id) C.wrap_igOpenPopup_Str(str_idArg) str_idFin() } func PlotHistogramFloatPtr(label string, values []float32, values_count int32) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.wrap_igPlotHistogram_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count)) labelFin() } func PlotLinesFloatPtr(label string, values []float32, values_count int32) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.wrap_igPlotLines_FloatPtr(labelArg, (*C.float)(&(values[0])), C.int(values_count)) labelFin() @@ -8735,14 +8730,14 @@ func RenderPlatformWindowsDefault() { } func InternalRenderText(pos Vec2, text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igRenderText(pos.toC(), textArg) textFin() } func InternalRenderTextClipped(pos_min Vec2, pos_max Vec2, text string, text_size_if_known *Vec2) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextClipped(pos_min.toC(), pos_max.toC(), textArg, text_size_if_knownArg) @@ -8751,7 +8746,7 @@ func InternalRenderTextClipped(pos_min Vec2, pos_max Vec2, text string, text_siz } func InternalRenderTextClippedEx(draw_list DrawList, pos_min Vec2, pos_max Vec2, text string, text_size_if_known *Vec2) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) text_size_if_knownArg, text_size_if_knownFin := wrap[C.ImVec2, *Vec2](text_size_if_known) C.wrap_igRenderTextClippedEx(draw_list.handle(), pos_min.toC(), pos_max.toC(), textArg, text_size_if_knownArg) @@ -8791,7 +8786,7 @@ func InternalScrollToRectEx(window Window, rect Rect) Vec2 { } func SelectableBool(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -8800,8 +8795,8 @@ func SelectableBool(label string) bool { } func SelectableBoolPtr(label string, p_selected *bool) bool { - labelArg, labelFin := wrapper.WrapString(label) - p_selectedArg, p_selectedFin := wrapper.WrapBool(p_selected) + labelArg, labelFin := WrapString(label) + p_selectedArg, p_selectedFin := WrapBool(p_selected) defer func() { labelFin() @@ -8811,7 +8806,7 @@ func SelectableBoolPtr(label string, p_selected *bool) bool { } func SetDragDropPayload(typeArg string, data unsafe.Pointer, sz uint64) bool { - typeArgArg, typeArgFin := wrapper.WrapString(typeArg) + typeArgArg, typeArgFin := WrapString(typeArg) defer func() { typeArgFin() @@ -8880,7 +8875,7 @@ func SetWindowCollapsedBool(collapsed bool) { } func SetWindowCollapsedStr(name string, collapsed bool) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.wrap_igSetWindowCollapsed_Str(nameArg, C.bool(collapsed)) nameFin() @@ -8891,7 +8886,7 @@ func InternalSetWindowCollapsedWindowPtr(window Window, collapsed bool) { } func SetWindowPosStr(name string, pos Vec2) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.wrap_igSetWindowPos_Str(nameArg, pos.toC()) nameFin() @@ -8906,7 +8901,7 @@ func InternalSetWindowPosWindowPtr(window Window, pos Vec2) { } func SetWindowSizeStr(name string, size Vec2) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.wrap_igSetWindowSize_Str(nameArg, size.toC()) nameFin() @@ -8949,8 +8944,8 @@ func ShowStyleEditor() { } func SliderAngle(label string, v_rad *float32) bool { - labelArg, labelFin := wrapper.WrapString(label) - v_radArg, v_radFin := wrapper.WrapNumberPtr[C.float, float32](v_rad) + labelArg, labelFin := WrapString(label) + v_radArg, v_radFin := WrapNumberPtr[C.float, float32](v_rad) defer func() { labelFin() @@ -8960,8 +8955,8 @@ func SliderAngle(label string, v_rad *float32) bool { } func SliderFloat(label string, v *float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -8971,7 +8966,7 @@ func SliderFloat(label string, v *float32, v_min float32, v_max float32) bool { } func SliderFloat2(label string, v *[2]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -8989,7 +8984,7 @@ func SliderFloat2(label string, v *[2]float32, v_min float32, v_max float32) boo } func SliderFloat3(label string, v *[3]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -9007,7 +9002,7 @@ func SliderFloat3(label string, v *[3]float32, v_min float32, v_max float32) boo } func SliderFloat4(label string, v *[4]float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.float, len(v)) for i, vV := range v { @@ -9025,8 +9020,8 @@ func SliderFloat4(label string, v *[4]float32, v_min float32, v_max float32) boo } func SliderInt(label string, v *int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -9036,7 +9031,7 @@ func SliderInt(label string, v *int32, v_min int32, v_max int32) bool { } func SliderInt2(label string, v *[2]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9054,7 +9049,7 @@ func SliderInt2(label string, v *[2]int32, v_min int32, v_max int32) bool { } func SliderInt3(label string, v *[3]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9072,7 +9067,7 @@ func SliderInt3(label string, v *[3]int32, v_min int32, v_max int32) bool { } func SliderInt4(label string, v *[4]int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) vArg := make([]C.int, len(v)) for i, vV := range v { @@ -9090,7 +9085,7 @@ func SliderInt4(label string, v *[4]int32, v_min int32, v_max int32) bool { } func SliderScalar(label string, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9099,7 +9094,7 @@ func SliderScalar(label string, data_type DataType, p_data unsafe.Pointer, p_min } func SliderScalarN(label string, data_type DataType, p_data unsafe.Pointer, components int32, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9108,8 +9103,8 @@ func SliderScalarN(label string, data_type DataType, p_data unsafe.Pointer, comp } func InternalSplitterBehavior(bb Rect, id ID, axis Axis, size1 *float32, size2 *float32, min_size1 float32, min_size2 float32) bool { - size1Arg, size1Fin := wrapper.WrapNumberPtr[C.float, float32](size1) - size2Arg, size2Fin := wrapper.WrapNumberPtr[C.float, float32](size2) + size1Arg, size1Fin := WrapNumberPtr[C.float, float32](size1) + size2Arg, size2Fin := WrapNumberPtr[C.float, float32](size2) defer func() { size1Fin() @@ -9131,7 +9126,7 @@ func StyleColorsLight() { } func TabItemButton(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9164,15 +9159,15 @@ func TableSetBgColor(target TableBgTarget, color uint32) { } func TableSetupColumn(label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.wrap_igTableSetupColumn(labelArg) labelFin() } func InternalTempInputScalar(bb Rect, id ID, label string, data_type DataType, p_data unsafe.Pointer, format string) bool { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -9182,21 +9177,21 @@ func InternalTempInputScalar(bb Rect, id ID, label string, data_type DataType, p } func InternalTextEx(text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igTextEx(textArg) textFin() } func TextUnformatted(text string) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_igTextUnformatted(textArg) textFin() } func InternalTreeNodeBehavior(id ID, flags TreeNodeFlags, label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9205,7 +9200,7 @@ func InternalTreeNodeBehavior(id ID, flags TreeNodeFlags, label string) bool { } func TreeNodeExStr(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9218,8 +9213,8 @@ func Unindent() { } func VSliderFloat(label string, size Vec2, v *float32, v_min float32, v_max float32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.float, float32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.float, float32](v) defer func() { labelFin() @@ -9229,8 +9224,8 @@ func VSliderFloat(label string, size Vec2, v *float32, v_min float32, v_max floa } func VSliderInt(label string, size Vec2, v *int32, v_min int32, v_max int32) bool { - labelArg, labelFin := wrapper.WrapString(label) - vArg, vFin := wrapper.WrapNumberPtr[C.int, int32](v) + labelArg, labelFin := WrapString(label) + vArg, vFin := WrapNumberPtr[C.int, int32](v) defer func() { labelFin() @@ -9240,7 +9235,7 @@ func VSliderInt(label string, size Vec2, v *int32, v_min int32, v_max int32) boo } func VSliderScalar(label string, size Vec2, data_type DataType, p_data unsafe.Pointer, p_min unsafe.Pointer, p_max unsafe.Pointer) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -9249,7 +9244,7 @@ func VSliderScalar(label string, size Vec2, data_type DataType, p_data unsafe.Po } func ValueFloat(prefix string, v float32) { - prefixArg, prefixFin := wrapper.WrapString(prefix) + prefixArg, prefixFin := WrapString(prefix) C.wrap_igValue_Float(prefixArg, C.float(v)) prefixFin() @@ -9426,7 +9421,7 @@ func (self DrawList) Data() DrawListSharedData { } func (self DrawList) SetOwnerName(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImDrawList_Set_OwnerName(self.handle(), vArg) vFin() @@ -9770,7 +9765,7 @@ func (self FontAtlas) TexPixelsUseColors() bool { } func (self FontAtlas) SetTexPixelsRGBA32(v *uint32) { - vArg, vFin := wrapper.WrapNumberPtr[C.uint, uint32](v) + vArg, vFin := WrapNumberPtr[C.uint, uint32](v) C.wrap_ImFontAtlas_SetTexPixelsRGBA32(self.handle(), vArg) vFin() @@ -11635,7 +11630,7 @@ func (self Context) LogBuffer() TextBuffer { } func (self Context) SetLogNextPrefix(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiContext_SetLogNextPrefix(self.handle(), vArg) vFin() @@ -11646,7 +11641,7 @@ func (self Context) LogNextPrefix() string { } func (self Context) SetLogNextSuffix(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiContext_SetLogNextSuffix(self.handle(), vArg) vFin() @@ -11865,7 +11860,7 @@ func (self DataTypeInfo) Size() float64 { } func (self DataTypeInfo) SetName(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiDataTypeInfo_SetName(self.handle(), vArg) vFin() @@ -11876,7 +11871,7 @@ func (self DataTypeInfo) Name() string { } func (self DataTypeInfo) SetPrintFmt(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiDataTypeInfo_SetPrintFmt(self.handle(), vArg) vFin() @@ -11887,7 +11882,7 @@ func (self DataTypeInfo) PrintFmt() string { } func (self DataTypeInfo) SetScanFmt(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiDataTypeInfo_SetScanFmt(self.handle(), vArg) vFin() @@ -12360,7 +12355,7 @@ func (self IO) IniSavingRate() float32 { } func (self IO) SetIniFilename(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiIO_SetIniFilename(self.handle(), vArg) vFin() @@ -12371,7 +12366,7 @@ func (self IO) IniFilename() string { } func (self IO) SetLogFilename(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiIO_SetLogFilename(self.handle(), vArg) vFin() @@ -12640,7 +12635,7 @@ func (self IO) ConfigDebugBeginReturnValueLoop() bool { } func (self IO) SetBackendPlatformName(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiIO_SetBackendPlatformName(self.handle(), vArg) vFin() @@ -12651,7 +12646,7 @@ func (self IO) BackendPlatformName() string { } func (self IO) SetBackendRendererName(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiIO_SetBackendRendererName(self.handle(), vArg) vFin() @@ -13112,7 +13107,7 @@ func (self InputTextCallbackData) EventKey() Key { } func (self InputTextCallbackData) SetBuf(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiInputTextCallbackData_SetBuf(self.handle(), vArg) vFin() @@ -13553,7 +13548,7 @@ func (self LocEntry) Key() LocKey { } func (self LocEntry) SetText(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiLocEntry_SetText(self.handle(), vArg) vFin() @@ -14362,7 +14357,7 @@ func (self PtrOrIndex) Index() int { } func (self SettingsHandler) SetTypeName(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiSettingsHandler_SetTypeName(self.handle(), vArg) vFin() @@ -16757,7 +16752,7 @@ func (self TextIndex) EndOffset() int { } func (self TextRange) Setb(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiTextRange_Setb(self.handle(), vArg) vFin() @@ -16768,7 +16763,7 @@ func (self TextRange) b() string { } func (self TextRange) Sete(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiTextRange_Sete(self.handle(), vArg) vFin() @@ -17087,7 +17082,7 @@ func (self Window) Ctx() Context { } func (self Window) SetName(v string) { - vArg, vFin := wrapper.WrapString(v) + vArg, vFin := WrapString(v) C.wrap_ImGuiWindow_SetName(self.handle(), vArg) vFin() diff --git a/cimplot_funcs.go b/cimplot_funcs.go index be0d3e76a..645acd207 100644 --- a/cimplot_funcs.go +++ b/cimplot_funcs.go @@ -7,12 +7,7 @@ package imgui // #include "cimplot_structs_accessor.h" // #include "cimplot_wrapper.h" import "C" - -import ( - "unsafe" - - "github.com/AllenDang/cimgui-go/internal/wrapper" -) +import "unsafe" func (self PlotAlignmentData) Begin() { C.ImPlotAlignmentData_Begin(self.handle()) @@ -31,10 +26,10 @@ func (self PlotAlignmentData) Reset() { } func (self PlotAlignmentData) Update(pad_a *float32, pad_b *float32, delta_a *float32, delta_b *float32) { - pad_aArg, pad_aFin := wrapper.WrapNumberPtr[C.float, float32](pad_a) - pad_bArg, pad_bFin := wrapper.WrapNumberPtr[C.float, float32](pad_b) - delta_aArg, delta_aFin := wrapper.WrapNumberPtr[C.float, float32](delta_a) - delta_bArg, delta_bFin := wrapper.WrapNumberPtr[C.float, float32](delta_b) + pad_aArg, pad_aFin := WrapNumberPtr[C.float, float32](pad_a) + pad_bArg, pad_bFin := WrapNumberPtr[C.float, float32](pad_b) + delta_aArg, delta_aFin := WrapNumberPtr[C.float, float32](delta_a) + delta_bArg, delta_bFin := WrapNumberPtr[C.float, float32](delta_b) C.ImPlotAlignmentData_Update(self.handle(), pad_aArg, pad_bArg, delta_aArg, delta_bArg) pad_aFin() @@ -48,7 +43,7 @@ func (self PlotAlignmentData) Destroy() { } func (self PlotAnnotationCollection) Append(pos Vec2, off Vec2, bg uint32, fg uint32, clamp bool, fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlotAnnotationCollection_Append(self.handle(), pos.toC(), off.toC(), C.ImU32(bg), C.ImU32(fg), C.bool(clamp), fmtArg) fmtFin() @@ -231,7 +226,7 @@ func (self PlotAxis) Destroy() { } func (self PlotColormapData) Append(name string, keys *[]uint32, count int32, qual bool) int { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) keysArg := make([]C.ImU32, len(*keys)) for i, keysV := range *keys { keysArg[i] = C.ImU32(keysV) @@ -248,7 +243,7 @@ func (self PlotColormapData) Append(name string, keys *[]uint32, count int32, qu } func (self PlotColormapData) Index(name string) PlotColormap { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -332,7 +327,7 @@ func (self PlotItemGroup) ItemCount() int { } func (self PlotItemGroup) ItemID(label_id string) ID { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -349,7 +344,7 @@ func (self PlotItemGroup) ItemByID(id ID) PlotItem { } func (self PlotItemGroup) ItemStr(label_id string) PlotItem { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -458,14 +453,14 @@ func (self PlotPlot) IsInputLocked() bool { } func (self PlotPlot) SetAxisLabel(axis PlotAxis, label string) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.ImPlotPlot_SetAxisLabel(self.handle(), axis.handle(), labelArg) labelFin() } func (self PlotPlot) SetTitle(title string) { - titleArg, titleFin := wrapper.WrapString(title) + titleArg, titleFin := WrapString(title) C.ImPlotPlot_SetTitle(self.handle(), titleArg) titleFin() @@ -614,7 +609,7 @@ func (self PlotSubplot) Destroy() { } func (self PlotTagCollection) Append(axis PlotAxisEnum, value float64, bg uint32, fg uint32, fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlotTagCollection_Append(self.handle(), C.ImAxis(axis), C.double(value), C.ImU32(bg), C.ImU32(fg), fmtArg) fmtFin() @@ -645,7 +640,7 @@ func (self PlotTick) Destroy() { } func (self PlotTicker) AddTickdoubleStr(value float64, major bool, level int32, show_label bool, label string) PlotTick { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -714,7 +709,7 @@ func (self *PlotTime) Destroy() { // PlotAddColormapU32PtrV parameter default value hint: // qual: true func PlotAddColormapU32PtrV(name string, cols *[]uint32, size int32, qual bool) PlotColormap { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) colsArg := make([]C.ImU32, len(*cols)) for i, colsV := range *cols { colsArg[i] = C.ImU32(colsV) @@ -733,7 +728,7 @@ func PlotAddColormapU32PtrV(name string, cols *[]uint32, size int32, qual bool) // PlotAddColormapVec4PtrV parameter default value hint: // qual: true func PlotAddColormapVec4PtrV(name string, cols *Vec4, size int32, qual bool) PlotColormap { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) colsArg, colsFin := wrap[C.ImVec4, *Vec4](cols) defer func() { @@ -746,7 +741,7 @@ func PlotAddColormapVec4PtrV(name string, cols *Vec4, size int32, qual bool) Plo // PlotAddTextCenteredV parameter default value hint: // text_end: NULL func PlotAddTextCenteredV(DrawList DrawList, top_center Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImPlot_AddTextCenteredV(DrawList.handle(), top_center.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -755,7 +750,7 @@ func PlotAddTextCenteredV(DrawList DrawList, top_center Vec2, col uint32, text_b // PlotAddTextVerticalV parameter default value hint: // text_end: NULL func PlotAddTextVerticalV(DrawList DrawList, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImPlot_AddTextVerticalV(DrawList.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -783,7 +778,7 @@ func PlotAnnotationBoolV(x float64, y float64, col Vec4, pix_offset Vec2, clamp } func PlotAnnotationStr(x float64, y float64, col Vec4, pix_offset Vec2, clamp bool, fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlot_Annotation_Str(C.double(x), C.double(y), col.toC(), pix_offset.toC(), C.bool(clamp), fmtArg) fmtFin() @@ -804,7 +799,7 @@ func PlotAnyAxesInputLocked(axes PlotAxis, count int32) bool { // PlotBeginAlignedPlotsV parameter default value hint: // vertical: true func PlotBeginAlignedPlotsV(group_id string, vertical bool) bool { - group_idArg, group_idFin := wrapper.WrapString(group_id) + group_idArg, group_idFin := WrapString(group_id) defer func() { group_idFin() @@ -828,7 +823,7 @@ func PlotBeginDragDropTargetPlot() bool { // flags: 0 // recolor_from: -1 func PlotBeginItemV(label_id string, flags PlotItemFlags, recolor_from PlotCol) bool { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -840,7 +835,7 @@ func PlotBeginItemV(label_id string, flags PlotItemFlags, recolor_from PlotCol) // flags: 0 // size: ImVec2(-1,0) func PlotBeginPlotV(title_id string, size Vec2, flags PlotFlags) bool { - title_idArg, title_idFin := wrapper.WrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) defer func() { title_idFin() @@ -853,9 +848,9 @@ func PlotBeginPlotV(title_id string, size Vec2, flags PlotFlags) bool { // flags: 0 // row_ratios: NULL func PlotBeginSubplotsV(title_id string, rows int32, cols int32, size Vec2, flags PlotSubplotFlags, row_ratios *float32, col_ratios *float32) bool { - title_idArg, title_idFin := wrapper.WrapString(title_id) - row_ratiosArg, row_ratiosFin := wrapper.WrapNumberPtr[C.float, float32](row_ratios) - col_ratiosArg, col_ratiosFin := wrapper.WrapNumberPtr[C.float, float32](col_ratios) + title_idArg, title_idFin := WrapString(title_id) + row_ratiosArg, row_ratiosFin := WrapNumberPtr[C.float, float32](row_ratios) + col_ratiosArg, col_ratiosFin := WrapNumberPtr[C.float, float32](col_ratios) defer func() { title_idFin() @@ -868,7 +863,7 @@ func PlotBeginSubplotsV(title_id string, rows int32, cols int32, size Vec2, flag // PlotBustColorCacheV parameter default value hint: // plot_title_id: NULL func PlotBustColorCacheV(plot_title_id string) { - plot_title_idArg, plot_title_idFin := wrapper.WrapString(plot_title_id) + plot_title_idArg, plot_title_idFin := WrapString(plot_title_id) C.ImPlot_BustColorCache(plot_title_idArg) plot_title_idFin() @@ -909,7 +904,7 @@ func PlotCalcTextSizeVertical(text string) Vec2 { pOut := new(Vec2) pOutArg, pOutFin := wrap[C.ImVec2, *Vec2](pOut) - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.ImPlot_CalcTextSizeVertical(pOutArg, textArg) pOutFin() @@ -948,7 +943,7 @@ func PlotClampLabelPos(pos Vec2, size Vec2, Min Vec2, Max Vec2) Vec2 { // cmap: -1 // size: ImVec2(0,0) func PlotColormapButtonV(label string, size Vec2, cmap PlotColormap) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -966,8 +961,8 @@ func PlotColormapIcon(cmap PlotColormap) { // format: "%g" // size: ImVec2(0,0) func PlotColormapScaleV(label string, scale_min float64, scale_max float64, size Vec2, format string, flags PlotColormapScaleFlags, cmap PlotColormap) { - labelArg, labelFin := wrapper.WrapString(label) - formatArg, formatFin := wrapper.WrapString(format) + labelArg, labelFin := WrapString(label) + formatArg, formatFin := WrapString(format) C.ImPlot_ColormapScale(labelArg, C.double(scale_min), C.double(scale_max), size.toC(), formatArg, C.ImPlotColormapScaleFlags(flags), C.ImPlotColormap(cmap)) labelFin() @@ -979,10 +974,10 @@ func PlotColormapScaleV(label string, scale_min float64, scale_max float64, size // format: "" // out: NULL func PlotColormapSliderV(label string, t *float32, out *Vec4, format string, cmap PlotColormap) bool { - labelArg, labelFin := wrapper.WrapString(label) - tArg, tFin := wrapper.WrapNumberPtr[C.float, float32](t) + labelArg, labelFin := WrapString(label) + tArg, tFin := WrapNumberPtr[C.float, float32](t) outArg, outFin := wrap[C.ImVec4, *Vec4](out) - formatArg, formatFin := wrapper.WrapString(format) + formatArg, formatFin := WrapString(format) defer func() { labelFin() @@ -1018,7 +1013,7 @@ func PlotDestroyContextV(ctx PlotContext) { // flags: 0 // thickness: 1 func PlotDragLineXV(id int32, x *float64, col Vec4, thickness float32, flags PlotDragToolFlags) bool { - xArg, xFin := wrapper.WrapNumberPtr[C.double, float64](x) + xArg, xFin := WrapNumberPtr[C.double, float64](x) defer func() { xFin() @@ -1030,7 +1025,7 @@ func PlotDragLineXV(id int32, x *float64, col Vec4, thickness float32, flags Plo // flags: 0 // thickness: 1 func PlotDragLineYV(id int32, y *float64, col Vec4, thickness float32, flags PlotDragToolFlags) bool { - yArg, yFin := wrapper.WrapNumberPtr[C.double, float64](y) + yArg, yFin := WrapNumberPtr[C.double, float64](y) defer func() { yFin() @@ -1042,8 +1037,8 @@ func PlotDragLineYV(id int32, y *float64, col Vec4, thickness float32, flags Plo // flags: 0 // size: 4 func PlotDragPointV(id int32, x *float64, y *float64, col Vec4, size float32, flags PlotDragToolFlags) bool { - xArg, xFin := wrapper.WrapNumberPtr[C.double, float64](x) - yArg, yFin := wrapper.WrapNumberPtr[C.double, float64](y) + xArg, xFin := WrapNumberPtr[C.double, float64](x) + yArg, yFin := WrapNumberPtr[C.double, float64](y) defer func() { xFin() @@ -1055,10 +1050,10 @@ func PlotDragPointV(id int32, x *float64, y *float64, col Vec4, size float32, fl // PlotDragRectV parameter default value hint: // flags: 0 func PlotDragRectV(id int32, x1 *float64, y1 *float64, x2 *float64, y2 *float64, col Vec4, flags PlotDragToolFlags) bool { - x1Arg, x1Fin := wrapper.WrapNumberPtr[C.double, float64](x1) - y1Arg, y1Fin := wrapper.WrapNumberPtr[C.double, float64](y1) - x2Arg, x2Fin := wrapper.WrapNumberPtr[C.double, float64](x2) - y2Arg, y2Fin := wrapper.WrapNumberPtr[C.double, float64](y2) + x1Arg, x1Fin := WrapNumberPtr[C.double, float64](x1) + y1Arg, y1Fin := WrapNumberPtr[C.double, float64](y1) + x2Arg, x2Fin := WrapNumberPtr[C.double, float64](x2) + y2Arg, y2Fin := WrapNumberPtr[C.double, float64](y2) defer func() { x1Fin() @@ -1125,7 +1120,7 @@ func PlotFloorTime(t PlotTime, unit PlotTimeUnit) PlotTime { } func PlotFormatDate(t PlotTime, buffer string, size int32, fmt PlotDateFmt, use_iso_8601 bool) int { - bufferArg, bufferFin := wrapper.WrapString(buffer) + bufferArg, bufferFin := WrapString(buffer) defer func() { bufferFin() @@ -1134,7 +1129,7 @@ func PlotFormatDate(t PlotTime, buffer string, size int32, fmt PlotDateFmt, use_ } func PlotFormatTime(t PlotTime, buffer string, size int32, fmt PlotTimeFmt, use_24_hr_clk bool) int { - bufferArg, bufferFin := wrapper.WrapString(buffer) + bufferArg, bufferFin := WrapString(buffer) defer func() { bufferFin() @@ -1143,7 +1138,7 @@ func PlotFormatTime(t PlotTime, buffer string, size int32, fmt PlotTimeFmt, use_ } func PlotFormatterDefault(value float64, buff string, size int32, data unsafe.Pointer) int { - buffArg, buffFin := wrapper.WrapString(buff) + buffArg, buffFin := WrapString(buff) defer func() { buffFin() @@ -1152,7 +1147,7 @@ func PlotFormatterDefault(value float64, buff string, size int32, data unsafe.Po } func PlotFormatterLogit(value float64, buff string, size int32, noname1 unsafe.Pointer) int { - buffArg, buffFin := wrapper.WrapString(buff) + buffArg, buffFin := WrapString(buff) defer func() { buffFin() @@ -1161,7 +1156,7 @@ func PlotFormatterLogit(value float64, buff string, size int32, noname1 unsafe.P } func PlotFormatterTime(noname1 float64, buff string, size int32, data unsafe.Pointer) int { - buffArg, buffFin := wrapper.WrapString(buff) + buffArg, buffFin := WrapString(buff) defer func() { buffFin() @@ -1202,7 +1197,7 @@ func PlotGetColormapCount() int { } func PlotGetColormapIndex(name string) PlotColormap { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) defer func() { nameFin() @@ -1241,7 +1236,7 @@ func PlotGetInputMap() PlotInputMap { } func PlotGetItem(label_id string) PlotItem { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -1282,7 +1277,7 @@ func PlotGetMarkerName(idx PlotMarker) string { } func PlotGetPlot(title string) PlotPlot { - titleArg, titleFin := wrapper.WrapString(title) + titleArg, titleFin := WrapString(title) defer func() { titleFin() @@ -1763,8 +1758,8 @@ func PlotImMinArraydoublePtr(values *[]float64, count int32) float64 { } func PlotImMinMaxArrayFloatPtr(values []float32, count int32, min_out *float32, max_out *float32) { - min_outArg, min_outFin := wrapper.WrapNumberPtr[C.float, float32](min_out) - max_outArg, max_outFin := wrapper.WrapNumberPtr[C.float, float32](max_out) + min_outArg, min_outFin := WrapNumberPtr[C.float, float32](min_out) + max_outArg, max_outFin := WrapNumberPtr[C.float, float32](max_out) C.ImPlot_ImMinMaxArray_FloatPtr((*C.float)(&(values[0])), C.int(count), min_outArg, max_outArg) min_outFin() @@ -1777,8 +1772,8 @@ func PlotImMinMaxArraydoublePtr(values *[]float64, count int32, min_out *float64 valuesArg[i] = C.double(valuesV) } - min_outArg, min_outFin := wrapper.WrapNumberPtr[C.double, float64](min_out) - max_outArg, max_outFin := wrapper.WrapNumberPtr[C.double, float64](max_out) + min_outArg, min_outFin := WrapNumberPtr[C.double, float64](min_out) + max_outArg, max_outFin := WrapNumberPtr[C.double, float64](max_out) C.ImPlot_ImMinMaxArray_doublePtr((*C.double)(&valuesArg[0]), C.int(count), min_outArg, max_outArg) for i, valuesV := range valuesArg { @@ -2169,7 +2164,7 @@ func PlotIsLeapYear(year int32) bool { } func PlotIsLegendEntryHovered(label_id string) bool { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -2269,7 +2264,7 @@ func PlotPixelsToPlotVec2V(pix Vec2, x_axis PlotAxisEnum, y_axis PlotAxisEnum) P // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsFloatPtrV(label_ids []string, values []float32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.ImPlot_PlotBarGroups_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2280,7 +2275,7 @@ func PlotPlotBarGroupsFloatPtrV(label_ids []string, values []float32, item_count // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS16PtrV(label_ids []string, values *[]int, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -2300,7 +2295,7 @@ func PlotPlotBarGroupsS16PtrV(label_ids []string, values *[]int, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS32PtrV(label_ids []string, values *[]int32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -2320,7 +2315,7 @@ func PlotPlotBarGroupsS32PtrV(label_ids []string, values *[]int32, item_count in // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS64PtrV(label_ids []string, values []int64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.ImPlot_PlotBarGroups_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2331,7 +2326,7 @@ func PlotPlotBarGroupsS64PtrV(label_ids []string, values []int64, item_count int // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsS8PtrV(label_ids []string, values *[]int8, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -2351,7 +2346,7 @@ func PlotPlotBarGroupsS8PtrV(label_ids []string, values *[]int8, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU16PtrV(label_ids []string, values *[]uint16, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -2371,7 +2366,7 @@ func PlotPlotBarGroupsU16PtrV(label_ids []string, values *[]uint16, item_count i // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU32PtrV(label_ids []string, values *[]uint32, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -2391,7 +2386,7 @@ func PlotPlotBarGroupsU32PtrV(label_ids []string, values *[]uint32, item_count i // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU64PtrV(label_ids []string, values []uint64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.ImPlot_PlotBarGroups_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(item_count), C.int(group_count), C.double(group_size), C.double(shift), C.ImPlotBarGroupsFlags(flags)) label_idsFin() @@ -2402,7 +2397,7 @@ func PlotPlotBarGroupsU64PtrV(label_ids []string, values []uint64, item_count in // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsU8PtrV(label_ids []string, values *[]byte, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -2422,7 +2417,7 @@ func PlotPlotBarGroupsU8PtrV(label_ids []string, values *[]byte, item_count int3 // group_size: 0.67 // shift: 0 func PlotPlotBarGroupsdoublePtrV(label_ids []string, values *[]float64, item_count int32, group_count int32, group_size float64, shift float64, flags PlotBarGroupsFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -2442,7 +2437,7 @@ func PlotPlotBarGroupsdoublePtrV(label_ids []string, values *[]float64, item_cou // offset: 0 // stride: sizeof(float) func PlotPlotBarsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2455,7 +2450,7 @@ func PlotPlotBarsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // shift: 0 // stride: sizeof(float) func PlotPlotBarsFloatPtrIntV(label_id string, values []float32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2468,7 +2463,7 @@ func PlotPlotBarsFloatPtrIntV(label_id string, values []float32, count int32, ba // shift: 0 // stride: sizeof(ImS16) func PlotPlotBarsS16PtrIntV(label_id string, values *[]int, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -2488,7 +2483,7 @@ func PlotPlotBarsS16PtrIntV(label_id string, values *[]int, count int32, bar_siz // offset: 0 // stride: sizeof(ImS16) func PlotPlotBarsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -2519,7 +2514,7 @@ func PlotPlotBarsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int3 // shift: 0 // stride: sizeof(ImS32) func PlotPlotBarsS32PtrIntV(label_id string, values *[]int32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -2539,7 +2534,7 @@ func PlotPlotBarsS32PtrIntV(label_id string, values *[]int32, count int32, bar_s // offset: 0 // stride: sizeof(ImS32) func PlotPlotBarsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -2570,7 +2565,7 @@ func PlotPlotBarsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // shift: 0 // stride: sizeof(ImS64) func PlotPlotBarsS64PtrIntV(label_id string, values []int64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2581,7 +2576,7 @@ func PlotPlotBarsS64PtrIntV(label_id string, values []int64, count int32, bar_si // offset: 0 // stride: sizeof(ImS64) func PlotPlotBarsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2594,7 +2589,7 @@ func PlotPlotBarsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count in // shift: 0 // stride: sizeof(ImS8) func PlotPlotBarsS8PtrIntV(label_id string, values *[]int8, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -2614,7 +2609,7 @@ func PlotPlotBarsS8PtrIntV(label_id string, values *[]int8, count int32, bar_siz // offset: 0 // stride: sizeof(ImS8) func PlotPlotBarsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -2645,7 +2640,7 @@ func PlotPlotBarsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int3 // shift: 0 // stride: sizeof(ImU16) func PlotPlotBarsU16PtrIntV(label_id string, values *[]uint16, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -2665,7 +2660,7 @@ func PlotPlotBarsU16PtrIntV(label_id string, values *[]uint16, count int32, bar_ // offset: 0 // stride: sizeof(ImU16) func PlotPlotBarsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -2696,7 +2691,7 @@ func PlotPlotBarsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, coun // shift: 0 // stride: sizeof(ImU32) func PlotPlotBarsU32PtrIntV(label_id string, values *[]uint32, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -2716,7 +2711,7 @@ func PlotPlotBarsU32PtrIntV(label_id string, values *[]uint32, count int32, bar_ // offset: 0 // stride: sizeof(ImU32) func PlotPlotBarsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -2747,7 +2742,7 @@ func PlotPlotBarsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, coun // shift: 0 // stride: sizeof(ImU64) func PlotPlotBarsU64PtrIntV(label_id string, values []uint64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(bar_size), C.double(shift), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2758,7 +2753,7 @@ func PlotPlotBarsU64PtrIntV(label_id string, values []uint64, count int32, bar_s // offset: 0 // stride: sizeof(ImU64) func PlotPlotBarsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotBars_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(bar_size), C.ImPlotBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2771,7 +2766,7 @@ func PlotPlotBarsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // shift: 0 // stride: sizeof(ImU8) func PlotPlotBarsU8PtrIntV(label_id string, values *[]byte, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -2791,7 +2786,7 @@ func PlotPlotBarsU8PtrIntV(label_id string, values *[]byte, count int32, bar_siz // offset: 0 // stride: sizeof(ImU8) func PlotPlotBarsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -2822,7 +2817,7 @@ func PlotPlotBarsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int3 // shift: 0 // stride: sizeof(double) func PlotPlotBarsdoublePtrIntV(label_id string, values *[]float64, count int32, bar_size float64, shift float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -2842,7 +2837,7 @@ func PlotPlotBarsdoublePtrIntV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotBarsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, bar_size float64, flags PlotBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -2871,7 +2866,7 @@ func PlotPlotBarsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float // offset: 0 // stride: sizeof(float) func PlotPlotDigitalFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotDigital_FloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2882,7 +2877,7 @@ func PlotPlotDigitalFloatPtrV(label_id string, xs []float32, ys []float32, count // offset: 0 // stride: sizeof(ImS16) func PlotPlotDigitalS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -2911,7 +2906,7 @@ func PlotPlotDigitalS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, // offset: 0 // stride: sizeof(ImS32) func PlotPlotDigitalS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -2940,7 +2935,7 @@ func PlotPlotDigitalS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int // offset: 0 // stride: sizeof(ImS64) func PlotPlotDigitalS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotDigital_S64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -2951,7 +2946,7 @@ func PlotPlotDigitalS64PtrV(label_id string, xs []int64, ys []int64, count int32 // offset: 0 // stride: sizeof(ImS8) func PlotPlotDigitalS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -2980,7 +2975,7 @@ func PlotPlotDigitalS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, // offset: 0 // stride: sizeof(ImU16) func PlotPlotDigitalU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3009,7 +3004,7 @@ func PlotPlotDigitalU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count i // offset: 0 // stride: sizeof(ImU32) func PlotPlotDigitalU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3038,7 +3033,7 @@ func PlotPlotDigitalU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count i // offset: 0 // stride: sizeof(ImU64) func PlotPlotDigitalU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotDigital_U64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotDigitalFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3049,7 +3044,7 @@ func PlotPlotDigitalU64PtrV(label_id string, xs []uint64, ys []uint64, count int // offset: 0 // stride: sizeof(ImU8) func PlotPlotDigitalU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3078,7 +3073,7 @@ func PlotPlotDigitalU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotDigitaldoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotDigitalFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3105,7 +3100,7 @@ func PlotPlotDigitaldoublePtrV(label_id string, xs *[]float64, ys *[]float64, co // PlotPlotDummyV parameter default value hint: // flags: 0 func PlotPlotDummyV(label_id string, flags PlotDummyFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotDummy(label_idArg, C.ImPlotDummyFlags(flags)) label_idFin() @@ -3116,7 +3111,7 @@ func PlotPlotDummyV(label_id string, flags PlotDummyFlags) { // offset: 0 // stride: sizeof(float) func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, neg []float32, pos []float32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(neg[0])), (*C.float)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3127,7 +3122,7 @@ func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtrV(label_id string, xs []fl // offset: 0 // stride: sizeof(float) func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []float32, err []float32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3138,7 +3133,7 @@ func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrIntV(label_id string, xs []float32 // offset: 0 // stride: sizeof(ImS16) func PlotPlotErrorBarsS16PtrS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, err *[]int, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -3176,7 +3171,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]i // offset: 0 // stride: sizeof(ImS16) func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, neg *[]int, pos *[]int, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -3223,7 +3218,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys * // offset: 0 // stride: sizeof(ImS32) func PlotPlotErrorBarsS32PtrS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, err *[]int32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -3261,7 +3256,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[ // offset: 0 // stride: sizeof(ImS32) func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, neg *[]int32, pos *[]int32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -3308,7 +3303,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys // offset: 0 // stride: sizeof(ImS64) func PlotPlotErrorBarsS64PtrS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, err []int64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3319,7 +3314,7 @@ func PlotPlotErrorBarsS64PtrS64PtrS64PtrIntV(label_id string, xs []int64, ys []i // offset: 0 // stride: sizeof(ImS64) func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys []int64, neg []int64, pos []int64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(neg[0])), (*C.longlong)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3330,7 +3325,7 @@ func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys // offset: 0 // stride: sizeof(ImS8) func PlotPlotErrorBarsS8PtrS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, err *[]int8, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -3368,7 +3363,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int // offset: 0 // stride: sizeof(ImS8) func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, neg *[]int8, pos *[]int8, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -3415,7 +3410,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]i // offset: 0 // stride: sizeof(ImU16) func PlotPlotErrorBarsU16PtrU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, err *[]uint16, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3453,7 +3448,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys * // offset: 0 // stride: sizeof(ImU16) func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, neg *[]uint16, pos *[]uint16, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -3500,7 +3495,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, y // offset: 0 // stride: sizeof(ImU32) func PlotPlotErrorBarsU32PtrU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, err *[]uint32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3538,7 +3533,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys * // offset: 0 // stride: sizeof(ImU32) func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, neg *[]uint32, pos *[]uint32, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -3585,7 +3580,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, y // offset: 0 // stride: sizeof(ImU64) func PlotPlotErrorBarsU64PtrU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, err []uint64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(err[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3596,7 +3591,7 @@ func PlotPlotErrorBarsU64PtrU64PtrU64PtrIntV(label_id string, xs []uint64, ys [] // offset: 0 // stride: sizeof(ImU64) func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, neg []uint64, pos []uint64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(neg[0])), (*C.ulonglong)(&(pos[0])), C.int(count), C.ImPlotErrorBarsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -3607,7 +3602,7 @@ func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys // offset: 0 // stride: sizeof(ImU8) func PlotPlotErrorBarsU8PtrU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, err *[]byte, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3645,7 +3640,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byt // offset: 0 // stride: sizeof(ImU8) func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, neg *[]byte, pos *[]byte, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -3692,7 +3687,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]b // offset: 0 // stride: sizeof(double) func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[]float64, err *[]float64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3730,7 +3725,7 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrIntV(label_id string, xs *[]flo // offset: 0 // stride: sizeof(double) func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, neg *[]float64, pos *[]float64, count int32, flags PlotErrorBarsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -3780,8 +3775,8 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtrV(label_id string, xs // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapFloatPtrV(label_id string, values []float32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_idArg, label_idFin := WrapString(label_id) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3796,13 +3791,13 @@ func PlotPlotHeatmapFloatPtrV(label_id string, values []float32, rows int32, col // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS16PtrV(label_id string, values *[]int, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_S16Ptr(label_idArg, (*C.ImS16)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3822,13 +3817,13 @@ func PlotPlotHeatmapS16PtrV(label_id string, values *[]int, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS32PtrV(label_id string, values *[]int32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_S32Ptr(label_idArg, (*C.ImS32)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3848,8 +3843,8 @@ func PlotPlotHeatmapS32PtrV(label_id string, values *[]int32, rows int32, cols i // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS64PtrV(label_id string, values []int64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_idArg, label_idFin := WrapString(label_id) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3864,13 +3859,13 @@ func PlotPlotHeatmapS64PtrV(label_id string, values []int64, rows int32, cols in // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapS8PtrV(label_id string, values *[]int8, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_S8Ptr(label_idArg, (*C.ImS8)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3890,13 +3885,13 @@ func PlotPlotHeatmapS8PtrV(label_id string, values *[]int8, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU16PtrV(label_id string, values *[]uint16, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_U16Ptr(label_idArg, (*C.ImU16)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3916,13 +3911,13 @@ func PlotPlotHeatmapU16PtrV(label_id string, values *[]uint16, rows int32, cols // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU32PtrV(label_id string, values *[]uint32, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_U32Ptr(label_idArg, (*C.ImU32)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3942,8 +3937,8 @@ func PlotPlotHeatmapU32PtrV(label_id string, values *[]uint32, rows int32, cols // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU64PtrV(label_id string, values []uint64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_idArg, label_idFin := WrapString(label_id) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3958,13 +3953,13 @@ func PlotPlotHeatmapU64PtrV(label_id string, values []uint64, rows int32, cols i // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapU8PtrV(label_id string, values *[]byte, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_U8Ptr(label_idArg, (*C.ImU8)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -3984,13 +3979,13 @@ func PlotPlotHeatmapU8PtrV(label_id string, values *[]byte, rows int32, cols int // scale_max: 0 // scale_min: 0 func PlotPlotHeatmapdoublePtrV(label_id string, values *[]float64, rows int32, cols int32, scale_min float64, scale_max float64, label_fmt string, bounds_min PlotPoint, bounds_max PlotPoint, flags PlotHeatmapFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotHeatmap_doublePtr(label_idArg, (*C.double)(&valuesArg[0]), C.int(rows), C.int(cols), C.double(scale_min), C.double(scale_max), label_fmtArg, bounds_min.toC(), bounds_max.toC(), C.ImPlotHeatmapFlags(flags)) label_idFin() @@ -4008,7 +4003,7 @@ func PlotPlotHeatmapdoublePtrV(label_id string, values *[]float64, rows int32, c // uv0: ImVec2(0,0) // uv1: ImVec2(1,1) func PlotPlotImageV(label_id string, user_texture_id TextureID, bounds_min PlotPoint, bounds_max PlotPoint, uv0 Vec2, uv1 Vec2, tint_col Vec4, flags PlotImageFlags) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotImage(label_idArg, C.ImTextureID(user_texture_id), bounds_min.toC(), bounds_max.toC(), uv0.toC(), uv1.toC(), tint_col.toC(), C.ImPlotImageFlags(flags)) label_idFin() @@ -4019,7 +4014,7 @@ func PlotPlotImageV(label_id string, user_texture_id TextureID, bounds_min PlotP // offset: 0 // stride: sizeof(float) func PlotPlotInfLinesFloatPtrV(label_id string, values []float32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotInfLines_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4030,7 +4025,7 @@ func PlotPlotInfLinesFloatPtrV(label_id string, values []float32, count int32, f // offset: 0 // stride: sizeof(ImS16) func PlotPlotInfLinesS16PtrV(label_id string, values *[]int, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4050,7 +4045,7 @@ func PlotPlotInfLinesS16PtrV(label_id string, values *[]int, count int32, flags // offset: 0 // stride: sizeof(ImS32) func PlotPlotInfLinesS32PtrV(label_id string, values *[]int32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4070,7 +4065,7 @@ func PlotPlotInfLinesS32PtrV(label_id string, values *[]int32, count int32, flag // offset: 0 // stride: sizeof(ImS64) func PlotPlotInfLinesS64PtrV(label_id string, values []int64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotInfLines_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4081,7 +4076,7 @@ func PlotPlotInfLinesS64PtrV(label_id string, values []int64, count int32, flags // offset: 0 // stride: sizeof(ImS8) func PlotPlotInfLinesS8PtrV(label_id string, values *[]int8, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4101,7 +4096,7 @@ func PlotPlotInfLinesS8PtrV(label_id string, values *[]int8, count int32, flags // offset: 0 // stride: sizeof(ImU16) func PlotPlotInfLinesU16PtrV(label_id string, values *[]uint16, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -4121,7 +4116,7 @@ func PlotPlotInfLinesU16PtrV(label_id string, values *[]uint16, count int32, fla // offset: 0 // stride: sizeof(ImU32) func PlotPlotInfLinesU32PtrV(label_id string, values *[]uint32, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -4141,7 +4136,7 @@ func PlotPlotInfLinesU32PtrV(label_id string, values *[]uint32, count int32, fla // offset: 0 // stride: sizeof(ImU64) func PlotPlotInfLinesU64PtrV(label_id string, values []uint64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotInfLines_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.ImPlotInfLinesFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4152,7 +4147,7 @@ func PlotPlotInfLinesU64PtrV(label_id string, values []uint64, count int32, flag // offset: 0 // stride: sizeof(ImU8) func PlotPlotInfLinesU8PtrV(label_id string, values *[]byte, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -4172,7 +4167,7 @@ func PlotPlotInfLinesU8PtrV(label_id string, values *[]byte, count int32, flags // offset: 0 // stride: sizeof(double) func PlotPlotInfLinesdoublePtrV(label_id string, values *[]float64, count int32, flags PlotInfLinesFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -4192,7 +4187,7 @@ func PlotPlotInfLinesdoublePtrV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(float) func PlotPlotLineFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4205,7 +4200,7 @@ func PlotPlotLineFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // xscale: 1 // xstart: 0 func PlotPlotLineFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4218,7 +4213,7 @@ func PlotPlotLineFloatPtrIntV(label_id string, values []float32, count int32, xs // xscale: 1 // xstart: 0 func PlotPlotLineS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4238,7 +4233,7 @@ func PlotPlotLineS16PtrIntV(label_id string, values *[]int, count int32, xscale // offset: 0 // stride: sizeof(ImS16) func PlotPlotLineS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -4269,7 +4264,7 @@ func PlotPlotLineS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int3 // xscale: 1 // xstart: 0 func PlotPlotLineS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4289,7 +4284,7 @@ func PlotPlotLineS32PtrIntV(label_id string, values *[]int32, count int32, xscal // offset: 0 // stride: sizeof(ImS32) func PlotPlotLineS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -4320,7 +4315,7 @@ func PlotPlotLineS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // xscale: 1 // xstart: 0 func PlotPlotLineS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4331,7 +4326,7 @@ func PlotPlotLineS64PtrIntV(label_id string, values []int64, count int32, xscale // offset: 0 // stride: sizeof(ImS64) func PlotPlotLineS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4344,7 +4339,7 @@ func PlotPlotLineS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count in // xscale: 1 // xstart: 0 func PlotPlotLineS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4364,7 +4359,7 @@ func PlotPlotLineS8PtrIntV(label_id string, values *[]int8, count int32, xscale // offset: 0 // stride: sizeof(ImS8) func PlotPlotLineS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -4395,7 +4390,7 @@ func PlotPlotLineS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int3 // xscale: 1 // xstart: 0 func PlotPlotLineU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -4415,7 +4410,7 @@ func PlotPlotLineU16PtrIntV(label_id string, values *[]uint16, count int32, xsca // offset: 0 // stride: sizeof(ImU16) func PlotPlotLineU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -4446,7 +4441,7 @@ func PlotPlotLineU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, coun // xscale: 1 // xstart: 0 func PlotPlotLineU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -4466,7 +4461,7 @@ func PlotPlotLineU32PtrIntV(label_id string, values *[]uint32, count int32, xsca // offset: 0 // stride: sizeof(ImU32) func PlotPlotLineU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -4497,7 +4492,7 @@ func PlotPlotLineU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, coun // xscale: 1 // xstart: 0 func PlotPlotLineU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4508,7 +4503,7 @@ func PlotPlotLineU64PtrIntV(label_id string, values []uint64, count int32, xscal // offset: 0 // stride: sizeof(ImU64) func PlotPlotLineU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotLine_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotLineFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4521,7 +4516,7 @@ func PlotPlotLineU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // xscale: 1 // xstart: 0 func PlotPlotLineU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -4541,7 +4536,7 @@ func PlotPlotLineU8PtrIntV(label_id string, values *[]byte, count int32, xscale // offset: 0 // stride: sizeof(ImU8) func PlotPlotLineU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -4572,7 +4567,7 @@ func PlotPlotLineU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int3 // xscale: 1 // xstart: 0 func PlotPlotLinedoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -4592,7 +4587,7 @@ func PlotPlotLinedoublePtrIntV(label_id string, values *[]float64, count int32, // offset: 0 // stride: sizeof(double) func PlotPlotLinedoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotLineFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -4621,8 +4616,8 @@ func PlotPlotLinedoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartFloatPtrV(label_ids []string, values []float32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_idsArg, label_idsFin := WrapStringList(label_ids) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4634,13 +4629,13 @@ func PlotPlotPieChartFloatPtrV(label_ids []string, values []float32, count int32 // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS16PtrV(label_ids []string, values *[]int, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_S16Ptr(label_idsArg, (*C.ImS16)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4657,13 +4652,13 @@ func PlotPlotPieChartS16PtrV(label_ids []string, values *[]int, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS32PtrV(label_ids []string, values *[]int32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_S32Ptr(label_idsArg, (*C.ImS32)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4680,8 +4675,8 @@ func PlotPlotPieChartS32PtrV(label_ids []string, values *[]int32, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS64PtrV(label_ids []string, values []int64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_idsArg, label_idsFin := WrapStringList(label_ids) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4693,13 +4688,13 @@ func PlotPlotPieChartS64PtrV(label_ids []string, values []int64, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartS8PtrV(label_ids []string, values *[]int8, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_S8Ptr(label_idsArg, (*C.ImS8)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4716,13 +4711,13 @@ func PlotPlotPieChartS8PtrV(label_ids []string, values *[]int8, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU16PtrV(label_ids []string, values *[]uint16, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_U16Ptr(label_idsArg, (*C.ImU16)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4739,13 +4734,13 @@ func PlotPlotPieChartU16PtrV(label_ids []string, values *[]uint16, count int32, // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU32PtrV(label_ids []string, values *[]uint32, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_U32Ptr(label_idsArg, (*C.ImU32)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4762,8 +4757,8 @@ func PlotPlotPieChartU32PtrV(label_ids []string, values *[]uint32, count int32, // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU64PtrV(label_ids []string, values []uint64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_idsArg, label_idsFin := WrapStringList(label_ids) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4775,13 +4770,13 @@ func PlotPlotPieChartU64PtrV(label_ids []string, values []uint64, count int32, x // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartU8PtrV(label_ids []string, values *[]byte, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_U8Ptr(label_idsArg, (*C.ImU8)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4798,13 +4793,13 @@ func PlotPlotPieChartU8PtrV(label_ids []string, values *[]byte, count int32, x f // flags: 0 // label_fmt: "%.1f" func PlotPlotPieChartdoublePtrV(label_ids []string, values *[]float64, count int32, x float64, y float64, radius float64, label_fmt string, angle0 float64, flags PlotPieChartFlags) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) } - label_fmtArg, label_fmtFin := wrapper.WrapString(label_fmt) + label_fmtArg, label_fmtFin := WrapString(label_fmt) C.ImPlot_PlotPieChart_doublePtr(label_idsArg, (*C.double)(&valuesArg[0]), C.int(count), C.double(x), C.double(y), C.double(radius), label_fmtArg, C.double(angle0), C.ImPlotPieChartFlags(flags)) label_idsFin() @@ -4821,7 +4816,7 @@ func PlotPlotPieChartdoublePtrV(label_ids []string, values *[]float64, count int // offset: 0 // stride: sizeof(float) func PlotPlotScatterFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4834,7 +4829,7 @@ func PlotPlotScatterFloatPtrFloatPtrV(label_id string, xs []float32, ys []float3 // xscale: 1 // xstart: 0 func PlotPlotScatterFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4847,7 +4842,7 @@ func PlotPlotScatterFloatPtrIntV(label_id string, values []float32, count int32, // xscale: 1 // xstart: 0 func PlotPlotScatterS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4867,7 +4862,7 @@ func PlotPlotScatterS16PtrIntV(label_id string, values *[]int, count int32, xsca // offset: 0 // stride: sizeof(ImS16) func PlotPlotScatterS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -4898,7 +4893,7 @@ func PlotPlotScatterS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count i // xscale: 1 // xstart: 0 func PlotPlotScatterS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4918,7 +4913,7 @@ func PlotPlotScatterS32PtrIntV(label_id string, values *[]int32, count int32, xs // offset: 0 // stride: sizeof(ImS32) func PlotPlotScatterS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -4949,7 +4944,7 @@ func PlotPlotScatterS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, cou // xscale: 1 // xstart: 0 func PlotPlotScatterS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4960,7 +4955,7 @@ func PlotPlotScatterS64PtrIntV(label_id string, values []int64, count int32, xsc // offset: 0 // stride: sizeof(ImS64) func PlotPlotScatterS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -4973,7 +4968,7 @@ func PlotPlotScatterS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count // xscale: 1 // xstart: 0 func PlotPlotScatterS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4993,7 +4988,7 @@ func PlotPlotScatterS8PtrIntV(label_id string, values *[]int8, count int32, xsca // offset: 0 // stride: sizeof(ImS8) func PlotPlotScatterS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5024,7 +5019,7 @@ func PlotPlotScatterS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count i // xscale: 1 // xstart: 0 func PlotPlotScatterU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -5044,7 +5039,7 @@ func PlotPlotScatterU16PtrIntV(label_id string, values *[]uint16, count int32, x // offset: 0 // stride: sizeof(ImU16) func PlotPlotScatterU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5075,7 +5070,7 @@ func PlotPlotScatterU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, c // xscale: 1 // xstart: 0 func PlotPlotScatterU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -5095,7 +5090,7 @@ func PlotPlotScatterU32PtrIntV(label_id string, values *[]uint32, count int32, x // offset: 0 // stride: sizeof(ImU32) func PlotPlotScatterU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5126,7 +5121,7 @@ func PlotPlotScatterU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, c // xscale: 1 // xstart: 0 func PlotPlotScatterU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5137,7 +5132,7 @@ func PlotPlotScatterU64PtrIntV(label_id string, values []uint64, count int32, xs // offset: 0 // stride: sizeof(ImU64) func PlotPlotScatterU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotScatter_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotScatterFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5150,7 +5145,7 @@ func PlotPlotScatterU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, cou // xscale: 1 // xstart: 0 func PlotPlotScatterU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -5170,7 +5165,7 @@ func PlotPlotScatterU8PtrIntV(label_id string, values *[]byte, count int32, xsca // offset: 0 // stride: sizeof(ImU8) func PlotPlotScatterU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5201,7 +5196,7 @@ func PlotPlotScatterU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count i // xscale: 1 // xstart: 0 func PlotPlotScatterdoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -5221,7 +5216,7 @@ func PlotPlotScatterdoublePtrIntV(label_id string, values *[]float64, count int3 // offset: 0 // stride: sizeof(double) func PlotPlotScatterdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotScatterFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5250,7 +5245,7 @@ func PlotPlotScatterdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]fl // offset: 0 // stride: sizeof(float) func PlotPlotShadedFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys1 []float32, ys2 []float32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys1[0])), (*C.float)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5262,7 +5257,7 @@ func PlotPlotShadedFloatPtrFloatPtrFloatPtrV(label_id string, xs []float32, ys1 // stride: sizeof(float) // yref: 0 func PlotPlotShadedFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []float32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5276,7 +5271,7 @@ func PlotPlotShadedFloatPtrFloatPtrIntV(label_id string, xs []float32, ys []floa // xstart: 0 // yref: 0 func PlotPlotShadedFloatPtrIntV(label_id string, values []float32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5290,7 +5285,7 @@ func PlotPlotShadedFloatPtrIntV(label_id string, values []float32, count int32, // xstart: 0 // yref: 0 func PlotPlotShadedS16PtrIntV(label_id string, values *[]int, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -5311,7 +5306,7 @@ func PlotPlotShadedS16PtrIntV(label_id string, values *[]int, count int32, yref // stride: sizeof(ImS16) // yref: 0 func PlotPlotShadedS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -5340,7 +5335,7 @@ func PlotPlotShadedS16PtrS16PtrIntV(label_id string, xs *[]int, ys *[]int, count // offset: 0 // stride: sizeof(ImS16) func PlotPlotShadedS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys1 *[]int, ys2 *[]int, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -5381,7 +5376,7 @@ func PlotPlotShadedS16PtrS16PtrS16PtrV(label_id string, xs *[]int, ys1 *[]int, y // xstart: 0 // yref: 0 func PlotPlotShadedS32PtrIntV(label_id string, values *[]int32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -5402,7 +5397,7 @@ func PlotPlotShadedS32PtrIntV(label_id string, values *[]int32, count int32, yre // stride: sizeof(ImS32) // yref: 0 func PlotPlotShadedS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -5431,7 +5426,7 @@ func PlotPlotShadedS32PtrS32PtrIntV(label_id string, xs *[]int32, ys *[]int32, c // offset: 0 // stride: sizeof(ImS32) func PlotPlotShadedS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys1 *[]int32, ys2 *[]int32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -5472,7 +5467,7 @@ func PlotPlotShadedS32PtrS32PtrS32PtrV(label_id string, xs *[]int32, ys1 *[]int3 // xstart: 0 // yref: 0 func PlotPlotShadedS64PtrIntV(label_id string, values []int64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5484,7 +5479,7 @@ func PlotPlotShadedS64PtrIntV(label_id string, values []int64, count int32, yref // stride: sizeof(ImS64) // yref: 0 func PlotPlotShadedS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_S64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5495,7 +5490,7 @@ func PlotPlotShadedS64PtrS64PtrIntV(label_id string, xs []int64, ys []int64, cou // offset: 0 // stride: sizeof(ImS64) func PlotPlotShadedS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys1 []int64, ys2 []int64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_S64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys1[0])), (*C.longlong)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5509,7 +5504,7 @@ func PlotPlotShadedS64PtrS64PtrS64PtrV(label_id string, xs []int64, ys1 []int64, // xstart: 0 // yref: 0 func PlotPlotShadedS8PtrIntV(label_id string, values *[]int8, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -5530,7 +5525,7 @@ func PlotPlotShadedS8PtrIntV(label_id string, values *[]int8, count int32, yref // stride: sizeof(ImS8) // yref: 0 func PlotPlotShadedS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5559,7 +5554,7 @@ func PlotPlotShadedS8PtrS8PtrIntV(label_id string, xs *[]int8, ys *[]int8, count // offset: 0 // stride: sizeof(ImS8) func PlotPlotShadedS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys1 *[]int8, ys2 *[]int8, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -5600,7 +5595,7 @@ func PlotPlotShadedS8PtrS8PtrS8PtrV(label_id string, xs *[]int8, ys1 *[]int8, ys // xstart: 0 // yref: 0 func PlotPlotShadedU16PtrIntV(label_id string, values *[]uint16, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -5621,7 +5616,7 @@ func PlotPlotShadedU16PtrIntV(label_id string, values *[]uint16, count int32, yr // stride: sizeof(ImU16) // yref: 0 func PlotPlotShadedU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5650,7 +5645,7 @@ func PlotPlotShadedU16PtrU16PtrIntV(label_id string, xs *[]uint16, ys *[]uint16, // offset: 0 // stride: sizeof(ImU16) func PlotPlotShadedU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys1 *[]uint16, ys2 *[]uint16, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -5691,7 +5686,7 @@ func PlotPlotShadedU16PtrU16PtrU16PtrV(label_id string, xs *[]uint16, ys1 *[]uin // xstart: 0 // yref: 0 func PlotPlotShadedU32PtrIntV(label_id string, values *[]uint32, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -5712,7 +5707,7 @@ func PlotPlotShadedU32PtrIntV(label_id string, values *[]uint32, count int32, yr // stride: sizeof(ImU32) // yref: 0 func PlotPlotShadedU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5741,7 +5736,7 @@ func PlotPlotShadedU32PtrU32PtrIntV(label_id string, xs *[]uint32, ys *[]uint32, // offset: 0 // stride: sizeof(ImU32) func PlotPlotShadedU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys1 *[]uint32, ys2 *[]uint32, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -5782,7 +5777,7 @@ func PlotPlotShadedU32PtrU32PtrU32PtrV(label_id string, xs *[]uint32, ys1 *[]uin // xstart: 0 // yref: 0 func PlotPlotShadedU64PtrIntV(label_id string, values []uint64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(yref), C.double(xscale), C.double(xstart), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5794,7 +5789,7 @@ func PlotPlotShadedU64PtrIntV(label_id string, values []uint64, count int32, yre // stride: sizeof(ImU64) // yref: 0 func PlotPlotShadedU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_U64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(yref), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5805,7 +5800,7 @@ func PlotPlotShadedU64PtrU64PtrIntV(label_id string, xs []uint64, ys []uint64, c // offset: 0 // stride: sizeof(ImU64) func PlotPlotShadedU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys1 []uint64, ys2 []uint64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotShaded_U64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys1[0])), (*C.ulonglong)(&(ys2[0])), C.int(count), C.ImPlotShadedFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -5819,7 +5814,7 @@ func PlotPlotShadedU64PtrU64PtrU64PtrV(label_id string, xs []uint64, ys1 []uint6 // xstart: 0 // yref: 0 func PlotPlotShadedU8PtrIntV(label_id string, values *[]byte, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -5840,7 +5835,7 @@ func PlotPlotShadedU8PtrIntV(label_id string, values *[]byte, count int32, yref // stride: sizeof(ImU8) // yref: 0 func PlotPlotShadedU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5869,7 +5864,7 @@ func PlotPlotShadedU8PtrU8PtrIntV(label_id string, xs *[]byte, ys *[]byte, count // offset: 0 // stride: sizeof(ImU8) func PlotPlotShadedU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys1 *[]byte, ys2 *[]byte, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -5910,7 +5905,7 @@ func PlotPlotShadedU8PtrU8PtrU8PtrV(label_id string, xs *[]byte, ys1 *[]byte, ys // xstart: 0 // yref: 0 func PlotPlotShadeddoublePtrIntV(label_id string, values *[]float64, count int32, yref float64, xscale float64, xstart float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -5931,7 +5926,7 @@ func PlotPlotShadeddoublePtrIntV(label_id string, values *[]float64, count int32 // stride: sizeof(double) // yref: 0 func PlotPlotShadeddoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[]float64, count int32, yref float64, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5960,7 +5955,7 @@ func PlotPlotShadeddoublePtrdoublePtrIntV(label_id string, xs *[]float64, ys *[] // offset: 0 // stride: sizeof(double) func PlotPlotShadeddoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, ys1 *[]float64, ys2 *[]float64, count int32, flags PlotShadedFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -5998,7 +5993,7 @@ func PlotPlotShadeddoublePtrdoublePtrdoublePtrV(label_id string, xs *[]float64, // offset: 0 // stride: sizeof(float) func PlotPlotStairsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6011,7 +6006,7 @@ func PlotPlotStairsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32 // xscale: 1 // xstart: 0 func PlotPlotStairsFloatPtrIntV(label_id string, values []float32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6024,7 +6019,7 @@ func PlotPlotStairsFloatPtrIntV(label_id string, values []float32, count int32, // xscale: 1 // xstart: 0 func PlotPlotStairsS16PtrIntV(label_id string, values *[]int, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -6044,7 +6039,7 @@ func PlotPlotStairsS16PtrIntV(label_id string, values *[]int, count int32, xscal // offset: 0 // stride: sizeof(ImS16) func PlotPlotStairsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -6075,7 +6070,7 @@ func PlotPlotStairsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count in // xscale: 1 // xstart: 0 func PlotPlotStairsS32PtrIntV(label_id string, values *[]int32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -6095,7 +6090,7 @@ func PlotPlotStairsS32PtrIntV(label_id string, values *[]int32, count int32, xsc // offset: 0 // stride: sizeof(ImS32) func PlotPlotStairsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -6126,7 +6121,7 @@ func PlotPlotStairsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, coun // xscale: 1 // xstart: 0 func PlotPlotStairsS64PtrIntV(label_id string, values []int64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6137,7 +6132,7 @@ func PlotPlotStairsS64PtrIntV(label_id string, values []int64, count int32, xsca // offset: 0 // stride: sizeof(ImS64) func PlotPlotStairsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6150,7 +6145,7 @@ func PlotPlotStairsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count // xscale: 1 // xstart: 0 func PlotPlotStairsS8PtrIntV(label_id string, values *[]int8, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -6170,7 +6165,7 @@ func PlotPlotStairsS8PtrIntV(label_id string, values *[]int8, count int32, xscal // offset: 0 // stride: sizeof(ImS8) func PlotPlotStairsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -6201,7 +6196,7 @@ func PlotPlotStairsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count in // xscale: 1 // xstart: 0 func PlotPlotStairsU16PtrIntV(label_id string, values *[]uint16, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -6221,7 +6216,7 @@ func PlotPlotStairsU16PtrIntV(label_id string, values *[]uint16, count int32, xs // offset: 0 // stride: sizeof(ImU16) func PlotPlotStairsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -6252,7 +6247,7 @@ func PlotPlotStairsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, co // xscale: 1 // xstart: 0 func PlotPlotStairsU32PtrIntV(label_id string, values *[]uint32, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -6272,7 +6267,7 @@ func PlotPlotStairsU32PtrIntV(label_id string, values *[]uint32, count int32, xs // offset: 0 // stride: sizeof(ImU32) func PlotPlotStairsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -6303,7 +6298,7 @@ func PlotPlotStairsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, co // xscale: 1 // xstart: 0 func PlotPlotStairsU64PtrIntV(label_id string, values []uint64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(xscale), C.double(xstart), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6314,7 +6309,7 @@ func PlotPlotStairsU64PtrIntV(label_id string, values []uint64, count int32, xsc // offset: 0 // stride: sizeof(ImU64) func PlotPlotStairsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStairs_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.ImPlotStairsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6327,7 +6322,7 @@ func PlotPlotStairsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, coun // xscale: 1 // xstart: 0 func PlotPlotStairsU8PtrIntV(label_id string, values *[]byte, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -6347,7 +6342,7 @@ func PlotPlotStairsU8PtrIntV(label_id string, values *[]byte, count int32, xscal // offset: 0 // stride: sizeof(ImU8) func PlotPlotStairsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -6378,7 +6373,7 @@ func PlotPlotStairsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count in // xscale: 1 // xstart: 0 func PlotPlotStairsdoublePtrIntV(label_id string, values *[]float64, count int32, xscale float64, xstart float64, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -6398,7 +6393,7 @@ func PlotPlotStairsdoublePtrIntV(label_id string, values *[]float64, count int32 // offset: 0 // stride: sizeof(double) func PlotPlotStairsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, flags PlotStairsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -6428,7 +6423,7 @@ func PlotPlotStairsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]flo // ref: 0 // stride: sizeof(float) func PlotPlotStemsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6442,7 +6437,7 @@ func PlotPlotStemsFloatPtrFloatPtrV(label_id string, xs []float32, ys []float32, // start: 0 // stride: sizeof(float) func PlotPlotStemsFloatPtrIntV(label_id string, values []float32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6456,7 +6451,7 @@ func PlotPlotStemsFloatPtrIntV(label_id string, values []float32, count int32, r // start: 0 // stride: sizeof(ImS16) func PlotPlotStemsS16PtrIntV(label_id string, values *[]int, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -6477,7 +6472,7 @@ func PlotPlotStemsS16PtrIntV(label_id string, values *[]int, count int32, ref fl // ref: 0 // stride: sizeof(ImS16) func PlotPlotStemsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -6509,7 +6504,7 @@ func PlotPlotStemsS16PtrS16PtrV(label_id string, xs *[]int, ys *[]int, count int // start: 0 // stride: sizeof(ImS32) func PlotPlotStemsS32PtrIntV(label_id string, values *[]int32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -6530,7 +6525,7 @@ func PlotPlotStemsS32PtrIntV(label_id string, values *[]int32, count int32, ref // ref: 0 // stride: sizeof(ImS32) func PlotPlotStemsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -6562,7 +6557,7 @@ func PlotPlotStemsS32PtrS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // start: 0 // stride: sizeof(ImS64) func PlotPlotStemsS64PtrIntV(label_id string, values []int64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6574,7 +6569,7 @@ func PlotPlotStemsS64PtrIntV(label_id string, values []int64, count int32, ref f // ref: 0 // stride: sizeof(ImS64) func PlotPlotStemsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6588,7 +6583,7 @@ func PlotPlotStemsS64PtrS64PtrV(label_id string, xs []int64, ys []int64, count i // start: 0 // stride: sizeof(ImS8) func PlotPlotStemsS8PtrIntV(label_id string, values *[]int8, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -6609,7 +6604,7 @@ func PlotPlotStemsS8PtrIntV(label_id string, values *[]int8, count int32, ref fl // ref: 0 // stride: sizeof(ImS8) func PlotPlotStemsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -6641,7 +6636,7 @@ func PlotPlotStemsS8PtrS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int // start: 0 // stride: sizeof(ImU16) func PlotPlotStemsU16PtrIntV(label_id string, values *[]uint16, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -6662,7 +6657,7 @@ func PlotPlotStemsU16PtrIntV(label_id string, values *[]uint16, count int32, ref // ref: 0 // stride: sizeof(ImU16) func PlotPlotStemsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -6694,7 +6689,7 @@ func PlotPlotStemsU16PtrU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, cou // start: 0 // stride: sizeof(ImU32) func PlotPlotStemsU32PtrIntV(label_id string, values *[]uint32, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -6715,7 +6710,7 @@ func PlotPlotStemsU32PtrIntV(label_id string, values *[]uint32, count int32, ref // ref: 0 // stride: sizeof(ImU32) func PlotPlotStemsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -6747,7 +6742,7 @@ func PlotPlotStemsU32PtrU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, cou // start: 0 // stride: sizeof(ImU64) func PlotPlotStemsU64PtrIntV(label_id string, values []uint64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(ref), C.double(scale), C.double(start), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6759,7 +6754,7 @@ func PlotPlotStemsU64PtrIntV(label_id string, values []uint64, count int32, ref // ref: 0 // stride: sizeof(ImU64) func PlotPlotStemsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.ImPlot_PlotStems_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(ref), C.ImPlotStemsFlags(flags), C.int(offset), C.int(stride)) label_idFin() @@ -6773,7 +6768,7 @@ func PlotPlotStemsU64PtrU64PtrV(label_id string, xs []uint64, ys []uint64, count // start: 0 // stride: sizeof(ImU8) func PlotPlotStemsU8PtrIntV(label_id string, values *[]byte, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -6794,7 +6789,7 @@ func PlotPlotStemsU8PtrIntV(label_id string, values *[]byte, count int32, ref fl // ref: 0 // stride: sizeof(ImU8) func PlotPlotStemsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -6826,7 +6821,7 @@ func PlotPlotStemsU8PtrU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int // start: 0 // stride: sizeof(double) func PlotPlotStemsdoublePtrIntV(label_id string, values *[]float64, count int32, ref float64, scale float64, start float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -6847,7 +6842,7 @@ func PlotPlotStemsdoublePtrIntV(label_id string, values *[]float64, count int32, // ref: 0 // stride: sizeof(double) func PlotPlotStemsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, ref float64, flags PlotStemsFlags, offset int32, stride int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -6875,7 +6870,7 @@ func PlotPlotStemsdoublePtrdoublePtrV(label_id string, xs *[]float64, ys *[]floa // flags: 0 // pix_offset: ImVec2(0,0) func PlotPlotTextV(text string, x float64, y float64, pix_offset Vec2, flags PlotTextFlags) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.ImPlot_PlotText(textArg, C.double(x), C.double(y), pix_offset.toC(), C.ImPlotTextFlags(flags)) textFin() @@ -6940,7 +6935,7 @@ func PlotPushColormapPlotColormap(cmap PlotColormap) { } func PlotPushColormapStr(name string) { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) C.ImPlot_PushColormap_Str(nameArg) nameFin() @@ -6975,8 +6970,8 @@ func PlotPushStyleVarVec2(idx PlotStyleVar, val Vec2) { // PlotRegisterOrGetItemV parameter default value hint: // just_created: NULL func PlotRegisterOrGetItemV(label_id string, flags PlotItemFlags, just_created *bool) PlotItem { - label_idArg, label_idFin := wrapper.WrapString(label_id) - just_createdArg, just_createdFin := wrapper.WrapBool(just_created) + label_idArg, label_idFin := WrapString(label_id) + just_createdArg, just_createdFin := WrapBool(just_created) defer func() { label_idFin() @@ -7075,8 +7070,8 @@ func PlotSetNextAxisLimitsV(axis PlotAxisEnum, v_min float64, v_max float64, con } func PlotSetNextAxisLinks(axis PlotAxisEnum, link_min *float64, link_max *float64) { - link_minArg, link_minFin := wrapper.WrapNumberPtr[C.double, float64](link_min) - link_maxArg, link_maxFin := wrapper.WrapNumberPtr[C.double, float64](link_max) + link_minArg, link_minFin := WrapNumberPtr[C.double, float64](link_min) + link_maxArg, link_maxFin := WrapNumberPtr[C.double, float64](link_max) C.ImPlot_SetNextAxisLinks(C.ImAxis(axis), link_minArg, link_maxArg) link_minFin() @@ -7123,8 +7118,8 @@ func PlotSetNextMarkerStyleV(marker PlotMarker, size float32, fill Vec4, weight // x_flags: 0 // y_flags: 0 func PlotSetupAxesV(x_label string, y_label string, x_flags PlotAxisFlags, y_flags PlotAxisFlags) { - x_labelArg, x_labelFin := wrapper.WrapString(x_label) - y_labelArg, y_labelFin := wrapper.WrapString(y_label) + x_labelArg, x_labelFin := WrapString(x_label) + y_labelArg, y_labelFin := WrapString(y_label) C.ImPlot_SetupAxes(x_labelArg, y_labelArg, C.ImPlotAxisFlags(x_flags), C.ImPlotAxisFlags(y_flags)) x_labelFin() @@ -7141,14 +7136,14 @@ func PlotSetupAxesLimitsV(x_min float64, x_max float64, y_min float64, y_max flo // flags: 0 // label: NULL func PlotSetupAxisV(axis PlotAxisEnum, label string, flags PlotAxisFlags) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.ImPlot_SetupAxis(C.ImAxis(axis), labelArg, C.ImPlotAxisFlags(flags)) labelFin() } func PlotSetupAxisFormatStr(axis PlotAxisEnum, fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.ImPlot_SetupAxisFormat_Str(C.ImAxis(axis), fmtArg) fmtFin() @@ -7165,8 +7160,8 @@ func PlotSetupAxisLimitsConstraints(axis PlotAxisEnum, v_min float64, v_max floa } func PlotSetupAxisLinks(axis PlotAxisEnum, link_min *float64, link_max *float64) { - link_minArg, link_minFin := wrapper.WrapNumberPtr[C.double, float64](link_min) - link_maxArg, link_maxFin := wrapper.WrapNumberPtr[C.double, float64](link_max) + link_minArg, link_minFin := WrapNumberPtr[C.double, float64](link_min) + link_maxArg, link_maxFin := WrapNumberPtr[C.double, float64](link_max) C.ImPlot_SetupAxisLinks(C.ImAxis(axis), link_minArg, link_maxArg) link_minFin() @@ -7181,7 +7176,7 @@ func PlotSetupAxisScalePlotScale(axis PlotAxisEnum, scale PlotScale) { // keep_default: false // labels: NULL func PlotSetupAxisTicksdoubleV(axis PlotAxisEnum, v_min float64, v_max float64, n_ticks int32, labels []string, keep_default bool) { - labelsArg, labelsFin := wrapper.WrapStringList(labels) + labelsArg, labelsFin := WrapStringList(labels) C.ImPlot_SetupAxisTicks_double(C.ImAxis(axis), C.double(v_min), C.double(v_max), C.int(n_ticks), labelsArg, C.bool(keep_default)) labelsFin() @@ -7196,7 +7191,7 @@ func PlotSetupAxisTicksdoublePtrV(axis PlotAxisEnum, values *[]float64, n_ticks valuesArg[i] = C.double(valuesV) } - labelsArg, labelsFin := wrapper.WrapStringList(labels) + labelsArg, labelsFin := WrapStringList(labels) C.ImPlot_SetupAxisTicks_doublePtr(C.ImAxis(axis), (*C.double)(&valuesArg[0]), C.int(n_ticks), labelsArg, C.bool(keep_default)) for i, valuesV := range valuesArg { @@ -7235,7 +7230,7 @@ func PlotSetupMouseTextV(location PlotLocation, flags PlotMouseTextFlags) { // size: ImVec2(0,0) // vertical: true func PlotShowAltLegendV(title_id string, vertical bool, size Vec2, interactable bool) { - title_idArg, title_idFin := wrapper.WrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) C.ImPlot_ShowAltLegend(title_idArg, C.bool(vertical), size.toC(), C.bool(interactable)) title_idFin() @@ -7248,7 +7243,7 @@ func PlotShowAxisContextMenuV(axis PlotAxis, equal_axis PlotAxis, time_allowed b } func PlotShowColormapSelector(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7259,14 +7254,14 @@ func PlotShowColormapSelector(label string) bool { // PlotShowDemoWindowV parameter default value hint: // p_open: NULL func PlotShowDemoWindowV(p_open *bool) { - p_openArg, p_openFin := wrapper.WrapBool(p_open) + p_openArg, p_openFin := WrapBool(p_open) C.ImPlot_ShowDemoWindow(p_openArg) p_openFin() } func PlotShowInputMapSelector(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7285,7 +7280,7 @@ func PlotShowLegendEntries(items PlotItemGroup, legend_bb Rect, interactable boo // PlotShowMetricsWindowV parameter default value hint: // p_popen: NULL func PlotShowMetricsWindowV(p_popen *bool) { - p_popenArg, p_popenFin := wrapper.WrapBool(p_popen) + p_popenArg, p_popenFin := WrapBool(p_popen) C.ImPlot_ShowMetricsWindow(p_popenArg) p_popenFin() @@ -7302,7 +7297,7 @@ func PlotShowStyleEditorV(ref PlotStyle) { } func PlotShowStyleSelector(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7315,7 +7310,7 @@ func PlotShowSubplotsContextMenu(subplot PlotSubplot) { } func PlotShowTimePicker(id string, t *PlotTime) bool { - idArg, idFin := wrapper.WrapString(id) + idArg, idFin := WrapString(id) tArg, tFin := wrap[C.ImPlotTime, *PlotTime](t) defer func() { @@ -7364,7 +7359,7 @@ func PlotTagXBoolV(x float64, col Vec4, round bool) { } func PlotTagXStr(x float64, col Vec4, fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlot_TagX_Str(C.double(x), col.toC(), fmtArg) fmtFin() @@ -7377,7 +7372,7 @@ func PlotTagYBoolV(y float64, col Vec4, round bool) { } func PlotTagYStr(y float64, col Vec4, fmt string) { - fmtArg, fmtFin := wrapper.WrapString(fmt) + fmtArg, fmtFin := WrapString(fmt) C.wrap_ImPlot_TagY_Str(C.double(y), col.toC(), fmtArg) fmtFin() @@ -7416,7 +7411,7 @@ func (self PlotAxis) SetMin(_min float64) bool { } func PlotAddColormapU32Ptr(name string, cols *[]uint32, size int32) PlotColormap { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) colsArg := make([]C.ImU32, len(*cols)) for i, colsV := range *cols { colsArg[i] = C.ImU32(colsV) @@ -7433,7 +7428,7 @@ func PlotAddColormapU32Ptr(name string, cols *[]uint32, size int32) PlotColormap } func PlotAddColormapVec4Ptr(name string, cols *Vec4, size int32) PlotColormap { - nameArg, nameFin := wrapper.WrapString(name) + nameArg, nameFin := WrapString(name) colsArg, colsFin := wrap[C.ImVec4, *Vec4](cols) defer func() { @@ -7444,14 +7439,14 @@ func PlotAddColormapVec4Ptr(name string, cols *Vec4, size int32) PlotColormap { } func PlotAddTextCentered(DrawList DrawList, top_center Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImPlot_AddTextCentered(DrawList.handle(), top_center.toC(), C.ImU32(col), text_beginArg) text_beginFin() } func PlotAddTextVertical(DrawList DrawList, pos Vec2, col uint32, text_begin string) { - text_beginArg, text_beginFin := wrapper.WrapString(text_begin) + text_beginArg, text_beginFin := WrapString(text_begin) C.wrap_ImPlot_AddTextVertical(DrawList.handle(), pos.toC(), C.ImU32(col), text_beginArg) text_beginFin() @@ -7462,7 +7457,7 @@ func PlotAnnotationBool(x float64, y float64, col Vec4, pix_offset Vec2, clamp b } func PlotBeginAlignedPlots(group_id string) bool { - group_idArg, group_idFin := wrapper.WrapString(group_id) + group_idArg, group_idFin := WrapString(group_id) defer func() { group_idFin() @@ -7475,7 +7470,7 @@ func PlotBeginDragDropSourceAxis(axis PlotAxisEnum) bool { } func PlotBeginDragDropSourceItem(label_id string) bool { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -7488,7 +7483,7 @@ func PlotBeginDragDropSourcePlot() bool { } func PlotBeginItem(label_id string) bool { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -7497,7 +7492,7 @@ func PlotBeginItem(label_id string) bool { } func PlotBeginLegendPopup(label_id string) bool { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -7506,7 +7501,7 @@ func PlotBeginLegendPopup(label_id string) bool { } func PlotBeginPlot(title_id string) bool { - title_idArg, title_idFin := wrapper.WrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) defer func() { title_idFin() @@ -7515,7 +7510,7 @@ func PlotBeginPlot(title_id string) bool { } func PlotBeginSubplots(title_id string, rows int32, cols int32, size Vec2) bool { - title_idArg, title_idFin := wrapper.WrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) defer func() { title_idFin() @@ -7528,7 +7523,7 @@ func PlotBustColorCache() { } func PlotColormapButton(label string) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer func() { labelFin() @@ -7537,15 +7532,15 @@ func PlotColormapButton(label string) bool { } func PlotColormapScale(label string, scale_min float64, scale_max float64) { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) C.wrap_ImPlot_ColormapScale(labelArg, C.double(scale_min), C.double(scale_max)) labelFin() } func PlotColormapSlider(label string, t *float32) bool { - labelArg, labelFin := wrapper.WrapString(label) - tArg, tFin := wrapper.WrapNumberPtr[C.float, float32](t) + labelArg, labelFin := WrapString(label) + tArg, tFin := WrapNumberPtr[C.float, float32](t) defer func() { labelFin() @@ -7559,7 +7554,7 @@ func PlotDestroyContext() { } func PlotDragLineX(id int32, x *float64, col Vec4) bool { - xArg, xFin := wrapper.WrapNumberPtr[C.double, float64](x) + xArg, xFin := WrapNumberPtr[C.double, float64](x) defer func() { xFin() @@ -7568,7 +7563,7 @@ func PlotDragLineX(id int32, x *float64, col Vec4) bool { } func PlotDragLineY(id int32, y *float64, col Vec4) bool { - yArg, yFin := wrapper.WrapNumberPtr[C.double, float64](y) + yArg, yFin := WrapNumberPtr[C.double, float64](y) defer func() { yFin() @@ -7577,8 +7572,8 @@ func PlotDragLineY(id int32, y *float64, col Vec4) bool { } func PlotDragPoint(id int32, x *float64, y *float64, col Vec4) bool { - xArg, xFin := wrapper.WrapNumberPtr[C.double, float64](x) - yArg, yFin := wrapper.WrapNumberPtr[C.double, float64](y) + xArg, xFin := WrapNumberPtr[C.double, float64](x) + yArg, yFin := WrapNumberPtr[C.double, float64](y) defer func() { xFin() @@ -7588,10 +7583,10 @@ func PlotDragPoint(id int32, x *float64, y *float64, col Vec4) bool { } func PlotDragRect(id int32, x1 *float64, y1 *float64, x2 *float64, y2 *float64, col Vec4) bool { - x1Arg, x1Fin := wrapper.WrapNumberPtr[C.double, float64](x1) - y1Arg, y1Fin := wrapper.WrapNumberPtr[C.double, float64](y1) - x2Arg, x2Fin := wrapper.WrapNumberPtr[C.double, float64](x2) - y2Arg, y2Fin := wrapper.WrapNumberPtr[C.double, float64](y2) + x1Arg, x1Fin := WrapNumberPtr[C.double, float64](x1) + y1Arg, y1Fin := WrapNumberPtr[C.double, float64](y1) + x2Arg, x2Fin := WrapNumberPtr[C.double, float64](x2) + y2Arg, y2Fin := WrapNumberPtr[C.double, float64](y2) defer func() { x1Fin() @@ -7692,14 +7687,14 @@ func PlotPixelsToPlotVec2(pix Vec2) PlotPoint { } func PlotPlotBarGroupsFloatPtr(label_ids []string, values []float32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsS16Ptr(label_ids []string, values *[]int, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -7715,7 +7710,7 @@ func PlotPlotBarGroupsS16Ptr(label_ids []string, values *[]int, item_count int32 } func PlotPlotBarGroupsS32Ptr(label_ids []string, values *[]int32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -7731,14 +7726,14 @@ func PlotPlotBarGroupsS32Ptr(label_ids []string, values *[]int32, item_count int } func PlotPlotBarGroupsS64Ptr(label_ids []string, values []int64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsS8Ptr(label_ids []string, values *[]int8, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -7754,7 +7749,7 @@ func PlotPlotBarGroupsS8Ptr(label_ids []string, values *[]int8, item_count int32 } func PlotPlotBarGroupsU16Ptr(label_ids []string, values *[]uint16, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -7770,7 +7765,7 @@ func PlotPlotBarGroupsU16Ptr(label_ids []string, values *[]uint16, item_count in } func PlotPlotBarGroupsU32Ptr(label_ids []string, values *[]uint32, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -7786,14 +7781,14 @@ func PlotPlotBarGroupsU32Ptr(label_ids []string, values *[]uint32, item_count in } func PlotPlotBarGroupsU64Ptr(label_ids []string, values []uint64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotBarGroups_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(item_count), C.int(group_count)) label_idsFin() } func PlotPlotBarGroupsU8Ptr(label_ids []string, values *[]byte, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -7809,7 +7804,7 @@ func PlotPlotBarGroupsU8Ptr(label_ids []string, values *[]byte, item_count int32 } func PlotPlotBarGroupsdoublePtr(label_ids []string, values *[]float64, item_count int32, group_count int32) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -7825,21 +7820,21 @@ func PlotPlotBarGroupsdoublePtr(label_ids []string, values *[]float64, item_coun } func PlotPlotBarsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -7855,7 +7850,7 @@ func PlotPlotBarsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotBarsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -7880,7 +7875,7 @@ func PlotPlotBarsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32 } func PlotPlotBarsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -7896,7 +7891,7 @@ func PlotPlotBarsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotBarsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -7921,21 +7916,21 @@ func PlotPlotBarsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count i } func PlotPlotBarsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -7951,7 +7946,7 @@ func PlotPlotBarsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotBarsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -7976,7 +7971,7 @@ func PlotPlotBarsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32 } func PlotPlotBarsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -7992,7 +7987,7 @@ func PlotPlotBarsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotBarsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8017,7 +8012,7 @@ func PlotPlotBarsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count } func PlotPlotBarsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -8033,7 +8028,7 @@ func PlotPlotBarsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotBarsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8058,21 +8053,21 @@ func PlotPlotBarsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count } func PlotPlotBarsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotBarsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotBars_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count), C.double(bar_size)) label_idFin() } func PlotPlotBarsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -8088,7 +8083,7 @@ func PlotPlotBarsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotBarsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8113,7 +8108,7 @@ func PlotPlotBarsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32 } func PlotPlotBarsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -8129,7 +8124,7 @@ func PlotPlotBarsdoublePtrInt(label_id string, values *[]float64, count int32) { } func PlotPlotBarsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32, bar_size float64) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8154,14 +8149,14 @@ func PlotPlotBarsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float6 } func PlotPlotDigitalFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotDigital_FloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8186,7 +8181,7 @@ func PlotPlotDigitalS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { } func PlotPlotDigitalS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8211,14 +8206,14 @@ func PlotPlotDigitalS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int3 } func PlotPlotDigitalS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotDigital_S64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8243,7 +8238,7 @@ func PlotPlotDigitalS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) } func PlotPlotDigitalU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8268,7 +8263,7 @@ func PlotPlotDigitalU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count in } func PlotPlotDigitalU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8293,14 +8288,14 @@ func PlotPlotDigitalU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count in } func PlotPlotDigitalU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotDigital_U64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotDigitalU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8325,7 +8320,7 @@ func PlotPlotDigitalU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) } func PlotPlotDigitaldoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8350,28 +8345,28 @@ func PlotPlotDigitaldoublePtr(label_id string, xs *[]float64, ys *[]float64, cou } func PlotPlotDummy(label_id string) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotDummy(label_idArg) label_idFin() } func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, neg []float32, pos []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(neg[0])), (*C.float)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsFloatPtrFloatPtrFloatPtrInt(label_id string, xs []float32, ys []float32, err []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_FloatPtrFloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), (*C.float)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS16PtrS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, err *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8405,7 +8400,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]in } func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, neg *[]int, pos *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -8448,7 +8443,7 @@ func PlotPlotErrorBarsS16PtrS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys *[ } func PlotPlotErrorBarsS32PtrS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, err *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8482,7 +8477,7 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[] } func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, neg *[]int32, pos *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -8525,21 +8520,21 @@ func PlotPlotErrorBarsS32PtrS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys } func PlotPlotErrorBarsS64PtrS64PtrS64PtrInt(label_id string, xs []int64, ys []int64, err []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS64PtrS64PtrS64PtrS64Ptr(label_id string, xs []int64, ys []int64, neg []int64, pos []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_S64PtrS64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), (*C.longlong)(&(neg[0])), (*C.longlong)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsS8PtrS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, err *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8573,7 +8568,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8 } func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, neg *[]int8, pos *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -8616,7 +8611,7 @@ func PlotPlotErrorBarsS8PtrS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]in } func PlotPlotErrorBarsU16PtrU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, err *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8650,7 +8645,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[ } func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, neg *[]uint16, pos *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -8693,7 +8688,7 @@ func PlotPlotErrorBarsU16PtrU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys } func PlotPlotErrorBarsU32PtrU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, err *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8727,7 +8722,7 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[ } func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, neg *[]uint32, pos *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -8770,21 +8765,21 @@ func PlotPlotErrorBarsU32PtrU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys } func PlotPlotErrorBarsU64PtrU64PtrU64PtrInt(label_id string, xs []uint64, ys []uint64, err []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(err[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsU64PtrU64PtrU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, neg []uint64, pos []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotErrorBars_U64PtrU64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), (*C.ulonglong)(&(neg[0])), (*C.ulonglong)(&(pos[0])), C.int(count)) label_idFin() } func PlotPlotErrorBarsU8PtrU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, err *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8818,7 +8813,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte } func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, neg *[]byte, pos *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -8861,7 +8856,7 @@ func PlotPlotErrorBarsU8PtrU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]by } func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]float64, err *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8895,7 +8890,7 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrInt(label_id string, xs *[]floa } func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, neg *[]float64, pos *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -8938,14 +8933,14 @@ func PlotPlotErrorBarsdoublePtrdoublePtrdoublePtrdoublePtr(label_id string, xs * } func PlotPlotHeatmapFloatPtr(label_id string, values []float32, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapS16Ptr(label_id string, values *[]int, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -8961,7 +8956,7 @@ func PlotPlotHeatmapS16Ptr(label_id string, values *[]int, rows int32, cols int3 } func PlotPlotHeatmapS32Ptr(label_id string, values *[]int32, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -8977,14 +8972,14 @@ func PlotPlotHeatmapS32Ptr(label_id string, values *[]int32, rows int32, cols in } func PlotPlotHeatmapS64Ptr(label_id string, values []int64, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapS8Ptr(label_id string, values *[]int8, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9000,7 +8995,7 @@ func PlotPlotHeatmapS8Ptr(label_id string, values *[]int8, rows int32, cols int3 } func PlotPlotHeatmapU16Ptr(label_id string, values *[]uint16, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9016,7 +9011,7 @@ func PlotPlotHeatmapU16Ptr(label_id string, values *[]uint16, rows int32, cols i } func PlotPlotHeatmapU32Ptr(label_id string, values *[]uint32, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9032,14 +9027,14 @@ func PlotPlotHeatmapU32Ptr(label_id string, values *[]uint32, rows int32, cols i } func PlotPlotHeatmapU64Ptr(label_id string, values []uint64, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotHeatmap_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(rows), C.int(cols)) label_idFin() } func PlotPlotHeatmapU8Ptr(label_id string, values *[]byte, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9055,7 +9050,7 @@ func PlotPlotHeatmapU8Ptr(label_id string, values *[]byte, rows int32, cols int3 } func PlotPlotHeatmapdoublePtr(label_id string, values *[]float64, rows int32, cols int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9071,7 +9066,7 @@ func PlotPlotHeatmapdoublePtr(label_id string, values *[]float64, rows int32, co } func PlotPlotHistogram2DFloatPtr(label_id string, xs []float32, ys []float32, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9080,7 +9075,7 @@ func PlotPlotHistogram2DFloatPtr(label_id string, xs []float32, ys []float32, co } func PlotPlotHistogram2DS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -9106,7 +9101,7 @@ func PlotPlotHistogram2DS16Ptr(label_id string, xs *[]int, ys *[]int, count int3 } func PlotPlotHistogram2DS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -9132,7 +9127,7 @@ func PlotPlotHistogram2DS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotHistogram2DS64Ptr(label_id string, xs []int64, ys []int64, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9141,7 +9136,7 @@ func PlotPlotHistogram2DS64Ptr(label_id string, xs []int64, ys []int64, count in } func PlotPlotHistogram2DS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -9167,7 +9162,7 @@ func PlotPlotHistogram2DS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int } func PlotPlotHistogram2DU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -9193,7 +9188,7 @@ func PlotPlotHistogram2DU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, coun } func PlotPlotHistogram2DU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -9219,7 +9214,7 @@ func PlotPlotHistogram2DU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, coun } func PlotPlotHistogram2DU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9228,7 +9223,7 @@ func PlotPlotHistogram2DU64Ptr(label_id string, xs []uint64, ys []uint64, count } func PlotPlotHistogram2DU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -9254,7 +9249,7 @@ func PlotPlotHistogram2DU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int } func PlotPlotHistogram2DdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -9280,7 +9275,7 @@ func PlotPlotHistogram2DdoublePtr(label_id string, xs *[]float64, ys *[]float64, } func PlotPlotHistogramFloatPtr(label_id string, values []float32, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9289,7 +9284,7 @@ func PlotPlotHistogramFloatPtr(label_id string, values []float32, count int32) f } func PlotPlotHistogramS16Ptr(label_id string, values *[]int, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9306,7 +9301,7 @@ func PlotPlotHistogramS16Ptr(label_id string, values *[]int, count int32) float6 } func PlotPlotHistogramS32Ptr(label_id string, values *[]int32, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9323,7 +9318,7 @@ func PlotPlotHistogramS32Ptr(label_id string, values *[]int32, count int32) floa } func PlotPlotHistogramS64Ptr(label_id string, values []int64, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9332,7 +9327,7 @@ func PlotPlotHistogramS64Ptr(label_id string, values []int64, count int32) float } func PlotPlotHistogramS8Ptr(label_id string, values *[]int8, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9349,7 +9344,7 @@ func PlotPlotHistogramS8Ptr(label_id string, values *[]int8, count int32) float6 } func PlotPlotHistogramU16Ptr(label_id string, values *[]uint16, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9366,7 +9361,7 @@ func PlotPlotHistogramU16Ptr(label_id string, values *[]uint16, count int32) flo } func PlotPlotHistogramU32Ptr(label_id string, values *[]uint32, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9383,7 +9378,7 @@ func PlotPlotHistogramU32Ptr(label_id string, values *[]uint32, count int32) flo } func PlotPlotHistogramU64Ptr(label_id string, values []uint64, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -9392,7 +9387,7 @@ func PlotPlotHistogramU64Ptr(label_id string, values []uint64, count int32) floa } func PlotPlotHistogramU8Ptr(label_id string, values *[]byte, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9409,7 +9404,7 @@ func PlotPlotHistogramU8Ptr(label_id string, values *[]byte, count int32) float6 } func PlotPlotHistogramdoublePtr(label_id string, values *[]float64, count int32) float64 { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9426,21 +9421,21 @@ func PlotPlotHistogramdoublePtr(label_id string, values *[]float64, count int32) } func PlotPlotImage(label_id string, user_texture_id TextureID, bounds_min PlotPoint, bounds_max PlotPoint) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotImage(label_idArg, C.ImTextureID(user_texture_id), bounds_min.toC(), bounds_max.toC()) label_idFin() } func PlotPlotInfLinesFloatPtr(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotInfLines_FloatPtr(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesS16Ptr(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9456,7 +9451,7 @@ func PlotPlotInfLinesS16Ptr(label_id string, values *[]int, count int32) { } func PlotPlotInfLinesS32Ptr(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9472,14 +9467,14 @@ func PlotPlotInfLinesS32Ptr(label_id string, values *[]int32, count int32) { } func PlotPlotInfLinesS64Ptr(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotInfLines_S64Ptr(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesS8Ptr(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9495,7 +9490,7 @@ func PlotPlotInfLinesS8Ptr(label_id string, values *[]int8, count int32) { } func PlotPlotInfLinesU16Ptr(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9511,7 +9506,7 @@ func PlotPlotInfLinesU16Ptr(label_id string, values *[]uint16, count int32) { } func PlotPlotInfLinesU32Ptr(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9527,14 +9522,14 @@ func PlotPlotInfLinesU32Ptr(label_id string, values *[]uint32, count int32) { } func PlotPlotInfLinesU64Ptr(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotInfLines_U64Ptr(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotInfLinesU8Ptr(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9550,7 +9545,7 @@ func PlotPlotInfLinesU8Ptr(label_id string, values *[]byte, count int32) { } func PlotPlotInfLinesdoublePtr(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9566,21 +9561,21 @@ func PlotPlotInfLinesdoublePtr(label_id string, values *[]float64, count int32) } func PlotPlotLineFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9596,7 +9591,7 @@ func PlotPlotLineS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotLineS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -9621,7 +9616,7 @@ func PlotPlotLineS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32 } func PlotPlotLineS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9637,7 +9632,7 @@ func PlotPlotLineS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotLineS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -9662,21 +9657,21 @@ func PlotPlotLineS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count i } func PlotPlotLineS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9692,7 +9687,7 @@ func PlotPlotLineS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotLineS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -9717,7 +9712,7 @@ func PlotPlotLineS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32 } func PlotPlotLineU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9733,7 +9728,7 @@ func PlotPlotLineU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotLineU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -9758,7 +9753,7 @@ func PlotPlotLineU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count } func PlotPlotLineU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9774,7 +9769,7 @@ func PlotPlotLineU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotLineU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -9799,21 +9794,21 @@ func PlotPlotLineU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count } func PlotPlotLineU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotLineU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotLine_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotLineU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -9829,7 +9824,7 @@ func PlotPlotLineU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotLineU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -9854,7 +9849,7 @@ func PlotPlotLineU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32 } func PlotPlotLinedoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -9870,7 +9865,7 @@ func PlotPlotLinedoublePtrInt(label_id string, values *[]float64, count int32) { } func PlotPlotLinedoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -9895,14 +9890,14 @@ func PlotPlotLinedoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float6 } func PlotPlotPieChartFloatPtr(label_ids []string, values []float32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_FloatPtr(label_idsArg, (*C.float)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartS16Ptr(label_ids []string, values *[]int, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -9918,7 +9913,7 @@ func PlotPlotPieChartS16Ptr(label_ids []string, values *[]int, count int32, x fl } func PlotPlotPieChartS32Ptr(label_ids []string, values *[]int32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -9934,14 +9929,14 @@ func PlotPlotPieChartS32Ptr(label_ids []string, values *[]int32, count int32, x } func PlotPlotPieChartS64Ptr(label_ids []string, values []int64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_S64Ptr(label_idsArg, (*C.longlong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartS8Ptr(label_ids []string, values *[]int8, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -9957,7 +9952,7 @@ func PlotPlotPieChartS8Ptr(label_ids []string, values *[]int8, count int32, x fl } func PlotPlotPieChartU16Ptr(label_ids []string, values *[]uint16, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -9973,7 +9968,7 @@ func PlotPlotPieChartU16Ptr(label_ids []string, values *[]uint16, count int32, x } func PlotPlotPieChartU32Ptr(label_ids []string, values *[]uint32, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -9989,14 +9984,14 @@ func PlotPlotPieChartU32Ptr(label_ids []string, values *[]uint32, count int32, x } func PlotPlotPieChartU64Ptr(label_ids []string, values []uint64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) C.wrap_ImPlot_PlotPieChart_U64Ptr(label_idsArg, (*C.ulonglong)(&(values[0])), C.int(count), C.double(x), C.double(y), C.double(radius)) label_idsFin() } func PlotPlotPieChartU8Ptr(label_ids []string, values *[]byte, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10012,7 +10007,7 @@ func PlotPlotPieChartU8Ptr(label_ids []string, values *[]byte, count int32, x fl } func PlotPlotPieChartdoublePtr(label_ids []string, values *[]float64, count int32, x float64, y float64, radius float64) { - label_idsArg, label_idsFin := wrapper.WrapStringList(label_ids) + label_idsArg, label_idsFin := WrapStringList(label_ids) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10028,21 +10023,21 @@ func PlotPlotPieChartdoublePtr(label_ids []string, values *[]float64, count int3 } func PlotPlotScatterFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10058,7 +10053,7 @@ func PlotPlotScatterS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotScatterS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10083,7 +10078,7 @@ func PlotPlotScatterS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count in } func PlotPlotScatterS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -10099,7 +10094,7 @@ func PlotPlotScatterS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotScatterS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10124,21 +10119,21 @@ func PlotPlotScatterS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, coun } func PlotPlotScatterS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -10154,7 +10149,7 @@ func PlotPlotScatterS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotScatterS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10179,7 +10174,7 @@ func PlotPlotScatterS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count in } func PlotPlotScatterU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -10195,7 +10190,7 @@ func PlotPlotScatterU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotScatterU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10220,7 +10215,7 @@ func PlotPlotScatterU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, co } func PlotPlotScatterU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -10236,7 +10231,7 @@ func PlotPlotScatterU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotScatterU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10261,21 +10256,21 @@ func PlotPlotScatterU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, co } func PlotPlotScatterU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotScatterU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotScatter_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotScatterU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10291,7 +10286,7 @@ func PlotPlotScatterU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotScatterU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10316,7 +10311,7 @@ func PlotPlotScatterU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count in } func PlotPlotScatterdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10332,7 +10327,7 @@ func PlotPlotScatterdoublePtrInt(label_id string, values *[]float64, count int32 } func PlotPlotScatterdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10357,28 +10352,28 @@ func PlotPlotScatterdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]flo } func PlotPlotShadedFloatPtrFloatPtrFloatPtr(label_id string, xs []float32, ys1 []float32, ys2 []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrFloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys1[0])), (*C.float)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedFloatPtrFloatPtrInt(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrFloatPtrInt(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10394,7 +10389,7 @@ func PlotPlotShadedS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotShadedS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10419,7 +10414,7 @@ func PlotPlotShadedS16PtrS16PtrInt(label_id string, xs *[]int, ys *[]int, count } func PlotPlotShadedS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys1 *[]int, ys2 *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -10453,7 +10448,7 @@ func PlotPlotShadedS16PtrS16PtrS16Ptr(label_id string, xs *[]int, ys1 *[]int, ys } func PlotPlotShadedS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -10469,7 +10464,7 @@ func PlotPlotShadedS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotShadedS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10494,7 +10489,7 @@ func PlotPlotShadedS32PtrS32PtrInt(label_id string, xs *[]int32, ys *[]int32, co } func PlotPlotShadedS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys1 *[]int32, ys2 *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -10528,28 +10523,28 @@ func PlotPlotShadedS32PtrS32PtrS32Ptr(label_id string, xs *[]int32, ys1 *[]int32 } func PlotPlotShadedS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedS64PtrS64PtrInt(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrS64PtrInt(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedS64PtrS64PtrS64Ptr(label_id string, xs []int64, ys1 []int64, ys2 []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_S64PtrS64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys1[0])), (*C.longlong)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -10565,7 +10560,7 @@ func PlotPlotShadedS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotShadedS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10590,7 +10585,7 @@ func PlotPlotShadedS8PtrS8PtrInt(label_id string, xs *[]int8, ys *[]int8, count } func PlotPlotShadedS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys1 *[]int8, ys2 *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -10624,7 +10619,7 @@ func PlotPlotShadedS8PtrS8PtrS8Ptr(label_id string, xs *[]int8, ys1 *[]int8, ys2 } func PlotPlotShadedU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -10640,7 +10635,7 @@ func PlotPlotShadedU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotShadedU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10665,7 +10660,7 @@ func PlotPlotShadedU16PtrU16PtrInt(label_id string, xs *[]uint16, ys *[]uint16, } func PlotPlotShadedU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys1 *[]uint16, ys2 *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -10699,7 +10694,7 @@ func PlotPlotShadedU16PtrU16PtrU16Ptr(label_id string, xs *[]uint16, ys1 *[]uint } func PlotPlotShadedU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -10715,7 +10710,7 @@ func PlotPlotShadedU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotShadedU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10740,7 +10735,7 @@ func PlotPlotShadedU32PtrU32PtrInt(label_id string, xs *[]uint32, ys *[]uint32, } func PlotPlotShadedU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys1 *[]uint32, ys2 *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -10774,28 +10769,28 @@ func PlotPlotShadedU32PtrU32PtrU32Ptr(label_id string, xs *[]uint32, ys1 *[]uint } func PlotPlotShadedU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotShadedU64PtrU64PtrInt(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrU64PtrInt(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotShadedU64PtrU64PtrU64Ptr(label_id string, xs []uint64, ys1 []uint64, ys2 []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotShaded_U64PtrU64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys1[0])), (*C.ulonglong)(&(ys2[0])), C.int(count)) label_idFin() } func PlotPlotShadedU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -10811,7 +10806,7 @@ func PlotPlotShadedU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotShadedU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10836,7 +10831,7 @@ func PlotPlotShadedU8PtrU8PtrInt(label_id string, xs *[]byte, ys *[]byte, count } func PlotPlotShadedU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys1 *[]byte, ys2 *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -10870,7 +10865,7 @@ func PlotPlotShadedU8PtrU8PtrU8Ptr(label_id string, xs *[]byte, ys1 *[]byte, ys2 } func PlotPlotShadeddoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -10886,7 +10881,7 @@ func PlotPlotShadeddoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotShadeddoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10911,7 +10906,7 @@ func PlotPlotShadeddoublePtrdoublePtrInt(label_id string, xs *[]float64, ys *[]f } func PlotPlotShadeddoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, ys1 *[]float64, ys2 *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -10945,21 +10940,21 @@ func PlotPlotShadeddoublePtrdoublePtrdoublePtr(label_id string, xs *[]float64, y } func PlotPlotStairsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -10975,7 +10970,7 @@ func PlotPlotStairsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotStairsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -11000,7 +10995,7 @@ func PlotPlotStairsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int } func PlotPlotStairsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -11016,7 +11011,7 @@ func PlotPlotStairsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotStairsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -11041,21 +11036,21 @@ func PlotPlotStairsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotStairsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -11071,7 +11066,7 @@ func PlotPlotStairsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotStairsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -11096,7 +11091,7 @@ func PlotPlotStairsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int } func PlotPlotStairsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -11112,7 +11107,7 @@ func PlotPlotStairsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotStairsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -11137,7 +11132,7 @@ func PlotPlotStairsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, cou } func PlotPlotStairsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -11153,7 +11148,7 @@ func PlotPlotStairsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotStairsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -11178,21 +11173,21 @@ func PlotPlotStairsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, cou } func PlotPlotStairsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStairsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStairs_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStairsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -11208,7 +11203,7 @@ func PlotPlotStairsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotStairsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -11233,7 +11228,7 @@ func PlotPlotStairsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int } func PlotPlotStairsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -11249,7 +11244,7 @@ func PlotPlotStairsdoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotStairsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -11274,21 +11269,21 @@ func PlotPlotStairsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]floa } func PlotPlotStemsFloatPtrFloatPtr(label_id string, xs []float32, ys []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_FloatPtrFloatPtr(label_idArg, (*C.float)(&(xs[0])), (*C.float)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsFloatPtrInt(label_id string, values []float32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_FloatPtrInt(label_idArg, (*C.float)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsS16PtrInt(label_id string, values *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -11304,7 +11299,7 @@ func PlotPlotStemsS16PtrInt(label_id string, values *[]int, count int32) { } func PlotPlotStemsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -11329,7 +11324,7 @@ func PlotPlotStemsS16PtrS16Ptr(label_id string, xs *[]int, ys *[]int, count int3 } func PlotPlotStemsS32PtrInt(label_id string, values *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -11345,7 +11340,7 @@ func PlotPlotStemsS32PtrInt(label_id string, values *[]int32, count int32) { } func PlotPlotStemsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -11370,21 +11365,21 @@ func PlotPlotStemsS32PtrS32Ptr(label_id string, xs *[]int32, ys *[]int32, count } func PlotPlotStemsS64PtrInt(label_id string, values []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_S64PtrInt(label_idArg, (*C.longlong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsS64PtrS64Ptr(label_id string, xs []int64, ys []int64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_S64PtrS64Ptr(label_idArg, (*C.longlong)(&(xs[0])), (*C.longlong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsS8PtrInt(label_id string, values *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -11400,7 +11395,7 @@ func PlotPlotStemsS8PtrInt(label_id string, values *[]int8, count int32) { } func PlotPlotStemsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -11425,7 +11420,7 @@ func PlotPlotStemsS8PtrS8Ptr(label_id string, xs *[]int8, ys *[]int8, count int3 } func PlotPlotStemsU16PtrInt(label_id string, values *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -11441,7 +11436,7 @@ func PlotPlotStemsU16PtrInt(label_id string, values *[]uint16, count int32) { } func PlotPlotStemsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -11466,7 +11461,7 @@ func PlotPlotStemsU16PtrU16Ptr(label_id string, xs *[]uint16, ys *[]uint16, coun } func PlotPlotStemsU32PtrInt(label_id string, values *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -11482,7 +11477,7 @@ func PlotPlotStemsU32PtrInt(label_id string, values *[]uint32, count int32) { } func PlotPlotStemsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -11507,21 +11502,21 @@ func PlotPlotStemsU32PtrU32Ptr(label_id string, xs *[]uint32, ys *[]uint32, coun } func PlotPlotStemsU64PtrInt(label_id string, values []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_U64PtrInt(label_idArg, (*C.ulonglong)(&(values[0])), C.int(count)) label_idFin() } func PlotPlotStemsU64PtrU64Ptr(label_id string, xs []uint64, ys []uint64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) C.wrap_ImPlot_PlotStems_U64PtrU64Ptr(label_idArg, (*C.ulonglong)(&(xs[0])), (*C.ulonglong)(&(ys[0])), C.int(count)) label_idFin() } func PlotPlotStemsU8PtrInt(label_id string, values *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -11537,7 +11532,7 @@ func PlotPlotStemsU8PtrInt(label_id string, values *[]byte, count int32) { } func PlotPlotStemsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -11562,7 +11557,7 @@ func PlotPlotStemsU8PtrU8Ptr(label_id string, xs *[]byte, ys *[]byte, count int3 } func PlotPlotStemsdoublePtrInt(label_id string, values *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -11578,7 +11573,7 @@ func PlotPlotStemsdoublePtrInt(label_id string, values *[]float64, count int32) } func PlotPlotStemsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float64, count int32) { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -11603,7 +11598,7 @@ func PlotPlotStemsdoublePtrdoublePtr(label_id string, xs *[]float64, ys *[]float } func PlotPlotText(text string, x float64, y float64) { - textArg, textFin := wrapper.WrapString(text) + textArg, textFin := WrapString(text) C.wrap_ImPlot_PlotText(textArg, C.double(x), C.double(y)) textFin() @@ -11648,7 +11643,7 @@ func PlotPushPlotClipRect() { } func PlotRegisterOrGetItem(label_id string, flags PlotItemFlags) PlotItem { - label_idArg, label_idFin := wrapper.WrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -11692,8 +11687,8 @@ func PlotSetNextMarkerStyle() { } func PlotSetupAxes(x_label string, y_label string) { - x_labelArg, x_labelFin := wrapper.WrapString(x_label) - y_labelArg, y_labelFin := wrapper.WrapString(y_label) + x_labelArg, x_labelFin := WrapString(x_label) + y_labelArg, y_labelFin := WrapString(y_label) C.wrap_ImPlot_SetupAxes(x_labelArg, y_labelArg) x_labelFin() @@ -11738,7 +11733,7 @@ func PlotSetupMouseText(location PlotLocation) { } func PlotShowAltLegend(title_id string) { - title_idArg, title_idFin := wrapper.WrapString(title_id) + title_idArg, title_idFin := WrapString(title_id) C.wrap_ImPlot_ShowAltLegend(title_idArg) title_idFin() @@ -11749,8 +11744,8 @@ func PlotShowAxisContextMenu(axis PlotAxis, equal_axis PlotAxis) { } func PlotShowDatePicker(id string, level *int32, t *PlotTime) bool { - idArg, idFin := wrapper.WrapString(id) - levelArg, levelFin := wrapper.WrapNumberPtr[C.int, int32](level) + idArg, idFin := WrapString(id) + levelArg, levelFin := WrapNumberPtr[C.int, int32](level) tArg, tFin := wrap[C.ImPlotTime, *PlotTime](t) defer func() { @@ -11978,14 +11973,14 @@ func (self PlotAxis) FormatterData() unsafe.Pointer { } func (self PlotAxis) SetLinkedMin(v *float64) { - vArg, vFin := wrapper.WrapNumberPtr[C.double, float64](v) + vArg, vFin := WrapNumberPtr[C.double, float64](v) C.wrap_ImPlotAxis_SetLinkedMin(self.handle(), vArg) vFin() } func (self PlotAxis) SetLinkedMax(v *float64) { - vArg, vFin := wrapper.WrapNumberPtr[C.double, float64](v) + vArg, vFin := WrapNumberPtr[C.double, float64](v) C.wrap_ImPlotAxis_SetLinkedMax(self.handle(), vArg) vFin() diff --git a/cmd/codegen/arguments_wrapper.go b/cmd/codegen/arguments_wrapper.go index 9d556237d..44af30767 100644 --- a/cmd/codegen/arguments_wrapper.go +++ b/cmd/codegen/arguments_wrapper.go @@ -108,7 +108,7 @@ func constCharW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "string", VarName: fmt.Sprintf("%sArg", arg.Name), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapper.WrapString(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapString(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%sFin()", arg.Name), } } @@ -117,7 +117,7 @@ func charPtrPtrW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "[]string", VarName: fmt.Sprintf("%sArg", arg.Name), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapper.WrapStringList(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapStringList(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%sFin()", arg.Name), } } @@ -158,7 +158,7 @@ func floatArrayW(arg ArgDef) ArgumentWrapperData { func boolPtrW(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: "*bool", - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapper.WrapBool(%[1]s)", arg.Name), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapBool(%[1]s)", arg.Name), Finalizer: fmt.Sprintf("%[1]sFin()", arg.Name), VarName: fmt.Sprintf("%sArg", arg.Name), } @@ -203,7 +203,7 @@ func simplePtrW(goType, cType string) argumentWrapper { return func(arg ArgDef) ArgumentWrapperData { return ArgumentWrapperData{ ArgType: fmt.Sprintf("*%s", goType), - ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := wrapper.WrapNumberPtr[%[2]s, %[3]s](%[1]s)", arg.Name, cType, goType), + ArgDef: fmt.Sprintf("%[1]sArg, %[1]sFin := WrapNumberPtr[%[2]s, %[3]s](%[1]s)", arg.Name, cType, goType), Finalizer: fmt.Sprintf("%[1]sFin()", arg.Name, cType, goType), VarName: fmt.Sprintf("%sArg", arg.Name), } diff --git a/cmd/codegen/gengo_funcs.go b/cmd/codegen/gengo_funcs.go index 0d016b666..37ab32e3f 100644 --- a/cmd/codegen/gengo_funcs.go +++ b/cmd/codegen/gengo_funcs.go @@ -113,11 +113,7 @@ func (g *goFuncsGenerator) writeFuncsFileHeader() { // #include "%[1]s_structs_accessor.h" // #include "%[1]s_wrapper.h" import "C" -import ( - "unsafe" - - "github.com/AllenDang/cimgui-go/internal/wrapper" -) +import "unsafe" `, g.prefix)) } diff --git a/glfw_backend.go b/glfw_backend.go index ba4a08023..940ef0b7c 100644 --- a/glfw_backend.go +++ b/glfw_backend.go @@ -21,7 +21,6 @@ package imgui import "C" import ( - "github.com/AllenDang/cimgui-go/internal/wrapper" "image" "unsafe" ) @@ -98,10 +97,10 @@ func (b *GLFWBackend) loopFunc() func() { } func (b GLFWBackend) DisplaySize() (width int32, height int32) { - widthArg, widthFin := wrapper.WrapNumberPtr[C.int, int32](&width) + widthArg, widthFin := WrapNumberPtr[C.int, int32](&width) defer widthFin() - heightArg, heightFin := wrapper.WrapNumberPtr[C.int, int32](&height) + heightArg, heightFin := WrapNumberPtr[C.int, int32](&height) defer heightFin() C.igGLFWWindow_GetDisplaySize(b.handle(), widthArg, heightArg) @@ -110,11 +109,11 @@ func (b GLFWBackend) DisplaySize() (width int32, height int32) { } func (b GLFWBackend) SetShouldClose(value bool) { - C.igGLFWWindow_SetShouldClose(b.handle(), C.int(wrapper.CastBool(value))) + C.igGLFWWindow_SetShouldClose(b.handle(), C.int(CastBool(value))) } func (b *GLFWBackend) CreateWindow(title string, width, height int, flags GLFWWindowFlags) { - titleArg, titleFin := wrapper.WrapString(title) + titleArg, titleFin := WrapString(title) defer titleFin() // b.window = uintptr(unsafe.Pointer(C.igCreateGLFWWindow(titleArg, C.int(width), C.int(height), C.GLFWWindowFlags(flags), C.VoidCallback(C.afterCreateContext)))) diff --git a/input_text.go b/input_text.go index 8b04c6acd..58d4fe924 100644 --- a/input_text.go +++ b/input_text.go @@ -9,7 +9,6 @@ package imgui import "C" import ( - "github.com/AllenDang/cimgui-go/internal/wrapper" "runtime/cgo" "unsafe" ) @@ -17,7 +16,7 @@ import ( type InputTextCallback func(data InputTextCallbackData) int type inputTextInternalState struct { - buf *wrapper.StringBuffer + buf *StringBuffer callback InputTextCallback } @@ -34,8 +33,8 @@ func generalInputTextCallback(cbData *C.ImGuiInputTextCallbackData) C.int { if data.EventFlag() == InputTextFlagsCallbackResize { statePtr.buf.ResizeTo(data.BufSize()) - C.wrap_ImGuiInputTextCallbackData_SetBuf(cbData, (*C.char)(statePtr.buf.Ptr())) - data.SetBufSize(int32(statePtr.buf.Size())) + C.wrap_ImGuiInputTextCallbackData_SetBuf(cbData, (*C.char)(statePtr.buf.ptr)) + data.SetBufSize(int32(statePtr.buf.size)) data.SetBufTextLen(int32(data.BufTextLen())) data.SetBufDirty(true) } @@ -48,14 +47,14 @@ func generalInputTextCallback(cbData *C.ImGuiInputTextCallbackData) C.int { } func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, callback InputTextCallback) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer labelFin() - hintArg, hintFin := wrapper.WrapString(hint) + hintArg, hintFin := WrapString(hint) defer hintFin() state := &inputTextInternalState{ - buf: wrapper.NewStringBuffer(*buf), + buf: NewStringBuffer(*buf), callback: callback, } @@ -72,7 +71,7 @@ func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, ca return C.igInputTextWithHint( labelArg, hintArg, - (*C.char)(state.buf.Ptr()), + (*C.char)(state.buf.ptr), C.xulong(len(*buf)+1), C.ImGuiInputTextFlags(flags), C.ImGuiInputTextCallback(C.generalInputTextCallback), @@ -81,11 +80,11 @@ func InputTextWithHint(label, hint string, buf *string, flags InputTextFlags, ca } func InputTextMultiline(label string, buf *string, size Vec2, flags InputTextFlags, callback InputTextCallback) bool { - labelArg, labelFin := wrapper.WrapString(label) + labelArg, labelFin := WrapString(label) defer labelFin() state := &inputTextInternalState{ - buf: wrapper.NewStringBuffer(*buf), + buf: NewStringBuffer(*buf), callback: callback, } @@ -101,7 +100,7 @@ func InputTextMultiline(label string, buf *string, size Vec2, flags InputTextFla return C.igInputTextMultiline( labelArg, - (*C.char)(state.buf.Ptr()), + (*C.char)(state.buf.ptr), C.xulong(len(*buf)+1), size.toC(), C.ImGuiInputTextFlags(flags), diff --git a/internal/wrapper/type_wrapper.go b/type_wrapper.go similarity index 96% rename from internal/wrapper/type_wrapper.go rename to type_wrapper.go index cb4ce14a0..073be9959 100644 --- a/internal/wrapper/type_wrapper.go +++ b/type_wrapper.go @@ -1,4 +1,4 @@ -package wrapper +package imgui // #include // #include @@ -144,11 +144,3 @@ func (buf *StringBuffer) ToGo() string { PtrToByteSlice(buf.ptr)[buf.size-1] = 0 return C.GoString((*C.char)(buf.ptr)) } - -func (buf *StringBuffer) Ptr() unsafe.Pointer { - return buf.ptr -} - -func (buf *StringBuffer) Size() int { - return buf.size -} From a296cc880ea402e6f27e15cd7f3afcfcf91102b2 Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:54:11 +0200 Subject: [PATCH 5/7] cimplot: re-generate --- cimplot_funcs.go | 86 ++++++++++++++++++++++++------------------------ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/cimplot_funcs.go b/cimplot_funcs.go index ad1104dd9..f86d241f0 100644 --- a/cimplot_funcs.go +++ b/cimplot_funcs.go @@ -928,8 +928,8 @@ func PlotCalcTextSizeVertical(text string) Vec2 { } func PlotCalculateBinsFloatPtr(values []float32, count int32, meth PlotBin, rangeArg PlotRange, bins_out *int32, width_out *float64) { - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_FloatPtr((*C.float)(&(values[0])), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) bins_outFin() @@ -942,8 +942,8 @@ func PlotCalculateBinsS16Ptr(values *[]int, count int32, meth PlotBin, rangeArg valuesArg[i] = C.ImS16(valuesV) } - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_S16Ptr((*C.ImS16)(&valuesArg[0]), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) for i, valuesV := range valuesArg { @@ -960,8 +960,8 @@ func PlotCalculateBinsS32Ptr(values *[]int32, count int32, meth PlotBin, rangeAr valuesArg[i] = C.ImS32(valuesV) } - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_S32Ptr((*C.ImS32)(&valuesArg[0]), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) for i, valuesV := range valuesArg { @@ -973,8 +973,8 @@ func PlotCalculateBinsS32Ptr(values *[]int32, count int32, meth PlotBin, rangeAr } func PlotCalculateBinsS64Ptr(values []int64, count int32, meth PlotBin, rangeArg PlotRange, bins_out *int32, width_out *float64) { - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_S64Ptr((*C.longlong)(&(values[0])), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) bins_outFin() @@ -987,8 +987,8 @@ func PlotCalculateBinsS8Ptr(values *[]int8, count int32, meth PlotBin, rangeArg valuesArg[i] = C.ImS8(valuesV) } - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_S8Ptr((*C.ImS8)(&valuesArg[0]), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) for i, valuesV := range valuesArg { @@ -1005,8 +1005,8 @@ func PlotCalculateBinsU16Ptr(values *[]uint16, count int32, meth PlotBin, rangeA valuesArg[i] = C.ImU16(valuesV) } - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_U16Ptr((*C.ImU16)(&valuesArg[0]), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) for i, valuesV := range valuesArg { @@ -1023,8 +1023,8 @@ func PlotCalculateBinsU32Ptr(values *[]uint32, count int32, meth PlotBin, rangeA valuesArg[i] = C.ImU32(valuesV) } - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_U32Ptr((*C.ImU32)(&valuesArg[0]), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) for i, valuesV := range valuesArg { @@ -1036,8 +1036,8 @@ func PlotCalculateBinsU32Ptr(values *[]uint32, count int32, meth PlotBin, rangeA } func PlotCalculateBinsU64Ptr(values []uint64, count int32, meth PlotBin, rangeArg PlotRange, bins_out *int32, width_out *float64) { - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_U64Ptr((*C.ulonglong)(&(values[0])), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) bins_outFin() @@ -1050,8 +1050,8 @@ func PlotCalculateBinsU8Ptr(values *[]byte, count int32, meth PlotBin, rangeArg valuesArg[i] = C.ImU8(valuesV) } - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_U8Ptr((*C.ImU8)(&valuesArg[0]), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) for i, valuesV := range valuesArg { @@ -1068,8 +1068,8 @@ func PlotCalculateBinsdoublePtr(values *[]float64, count int32, meth PlotBin, ra valuesArg[i] = C.double(valuesV) } - bins_outArg, bins_outFin := wrapNumberPtr[C.int, int32](bins_out) - width_outArg, width_outFin := wrapNumberPtr[C.double, float64](width_out) + bins_outArg, bins_outFin := WrapNumberPtr[C.int, int32](bins_out) + width_outArg, width_outFin := WrapNumberPtr[C.double, float64](width_out) C.ImPlot_CalculateBins_doublePtr((*C.double)(&valuesArg[0]), C.int(count), C.ImPlotBin(meth), rangeArg.c(), bins_outArg, width_outArg) for i, valuesV := range valuesArg { @@ -1296,7 +1296,7 @@ func PlotFormatDate(t PlotTime, buffer string, size int32, fmt PlotDateFmt, use_ } func PlotFormatDateTime(t PlotTime, buffer string, size int32, fmt PlotDateTimeSpec) int { - bufferArg, bufferFin := wrapString(buffer) + bufferArg, bufferFin := WrapString(buffer) defer func() { bufferFin() @@ -2375,7 +2375,7 @@ func PlotItemIconVec4(col Vec4) { // PlotLabelAxisValueV parameter default value hint: // round: false func PlotLabelAxisValueV(axis PlotAxis, value float64, buff string, size int32, round bool) { - buffArg, buffFin := wrapString(buff) + buffArg, buffFin := WrapString(buff) C.ImPlot_LabelAxisValue(axis.c(), C.double(value), buffArg, C.int(size), C.bool(round)) buffFin() @@ -4191,7 +4191,7 @@ func PlotPlotHeatmapdoublePtrV(label_id string, values *[]float64, rows int32, c // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DFloatPtrV(label_id string, xs []float32, ys []float32, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -4204,7 +4204,7 @@ func PlotPlotHistogram2DFloatPtrV(label_id string, xs []float32, ys []float32, c // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DS16PtrV(label_id string, xs *[]int, ys *[]int, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS16(xsV) @@ -4234,7 +4234,7 @@ func PlotPlotHistogram2DS16PtrV(label_id string, xs *[]int, ys *[]int, count int // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DS32PtrV(label_id string, xs *[]int32, ys *[]int32, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS32(xsV) @@ -4264,7 +4264,7 @@ func PlotPlotHistogram2DS32PtrV(label_id string, xs *[]int32, ys *[]int32, count // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DS64PtrV(label_id string, xs []int64, ys []int64, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -4277,7 +4277,7 @@ func PlotPlotHistogram2DS64PtrV(label_id string, xs []int64, ys []int64, count i // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DS8PtrV(label_id string, xs *[]int8, ys *[]int8, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImS8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImS8(xsV) @@ -4307,7 +4307,7 @@ func PlotPlotHistogram2DS8PtrV(label_id string, xs *[]int8, ys *[]int8, count in // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU16, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU16(xsV) @@ -4337,7 +4337,7 @@ func PlotPlotHistogram2DU16PtrV(label_id string, xs *[]uint16, ys *[]uint16, cou // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU32, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU32(xsV) @@ -4367,7 +4367,7 @@ func PlotPlotHistogram2DU32PtrV(label_id string, xs *[]uint32, ys *[]uint32, cou // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DU64PtrV(label_id string, xs []uint64, ys []uint64, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -4380,7 +4380,7 @@ func PlotPlotHistogram2DU64PtrV(label_id string, xs []uint64, ys []uint64, count // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DU8PtrV(label_id string, xs *[]byte, ys *[]byte, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.ImU8, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.ImU8(xsV) @@ -4410,7 +4410,7 @@ func PlotPlotHistogram2DU8PtrV(label_id string, xs *[]byte, ys *[]byte, count in // y_bins: ImPlotBin_Sturges // flags: 0 func PlotPlotHistogram2DdoublePtrV(label_id string, xs *[]float64, ys *[]float64, count int32, x_bins int32, y_bins int32, rangeArg PlotRect, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) xsArg := make([]C.double, len(*xs)) for i, xsV := range *xs { xsArg[i] = C.double(xsV) @@ -4440,7 +4440,7 @@ func PlotPlotHistogram2DdoublePtrV(label_id string, xs *[]float64, ys *[]float64 // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramFloatPtrV(label_id string, values []float32, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -4453,7 +4453,7 @@ func PlotPlotHistogramFloatPtrV(label_id string, values []float32, count int32, // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramS16PtrV(label_id string, values *[]int, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS16(valuesV) @@ -4474,7 +4474,7 @@ func PlotPlotHistogramS16PtrV(label_id string, values *[]int, count int32, bins // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramS32PtrV(label_id string, values *[]int32, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS32(valuesV) @@ -4495,7 +4495,7 @@ func PlotPlotHistogramS32PtrV(label_id string, values *[]int32, count int32, bin // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramS64PtrV(label_id string, values []int64, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -4508,7 +4508,7 @@ func PlotPlotHistogramS64PtrV(label_id string, values []int64, count int32, bins // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramS8PtrV(label_id string, values *[]int8, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImS8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImS8(valuesV) @@ -4529,7 +4529,7 @@ func PlotPlotHistogramS8PtrV(label_id string, values *[]int8, count int32, bins // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramU16PtrV(label_id string, values *[]uint16, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU16, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU16(valuesV) @@ -4550,7 +4550,7 @@ func PlotPlotHistogramU16PtrV(label_id string, values *[]uint16, count int32, bi // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramU32PtrV(label_id string, values *[]uint32, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU32, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU32(valuesV) @@ -4571,7 +4571,7 @@ func PlotPlotHistogramU32PtrV(label_id string, values *[]uint32, count int32, bi // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramU64PtrV(label_id string, values []uint64, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) defer func() { label_idFin() @@ -4584,7 +4584,7 @@ func PlotPlotHistogramU64PtrV(label_id string, values []uint64, count int32, bin // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramU8PtrV(label_id string, values *[]byte, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.ImU8, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.ImU8(valuesV) @@ -4605,7 +4605,7 @@ func PlotPlotHistogramU8PtrV(label_id string, values *[]byte, count int32, bins // bar_scale: 1.0 // flags: 0 func PlotPlotHistogramdoublePtrV(label_id string, values *[]float64, count int32, bins int32, bar_scale float64, rangeArg PlotRange, flags PlotHistogramFlags) float64 { - label_idArg, label_idFin := wrapString(label_id) + label_idArg, label_idFin := WrapString(label_id) valuesArg := make([]C.double, len(*values)) for i, valuesV := range *values { valuesArg[i] = C.double(valuesV) @@ -8285,7 +8285,7 @@ func PlotImAlmostEqual(v1 float64, v2 float64) bool { } func PlotLabelAxisValue(axis PlotAxis, value float64, buff string, size int32) { - buffArg, buffFin := wrapString(buff) + buffArg, buffFin := WrapString(buff) C.wrap_ImPlot_LabelAxisValue(axis.c(), C.double(value), buffArg, C.int(size)) buffFin() From 2145f5f026e29926dc58ee730d8749572c2ea974 Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Tue, 15 Aug 2023 15:00:58 +0200 Subject: [PATCH 6/7] gitignore: update rule for codegen binary --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 25bfa2836..4d69a930a 100644 --- a/.gitignore +++ b/.gitignore @@ -71,4 +71,4 @@ thirdparty/glfw/build tmp # make setup codegen build -./codegen +/codegen From 81fa482e8c7d59838091ee66005a2a471e28f95e Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Tue, 15 Aug 2023 15:07:51 +0200 Subject: [PATCH 7/7] glfw backend: fix build error --- glfw_backend.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glfw_backend.go b/glfw_backend.go index 26553012a..2f7924adf 100644 --- a/glfw_backend.go +++ b/glfw_backend.go @@ -115,10 +115,10 @@ func (b *GLFWBackend) SetWindowPos(x, y int) { } func (b *GLFWBackend) GetWindowPos() (x, y int32) { - xArg, xFin := wrapNumberPtr[C.int, int32](&x) + xArg, xFin := WrapNumberPtr[C.int, int32](&x) defer xFin() - yArg, yFin := wrapNumberPtr[C.int, int32](&y) + yArg, yFin := WrapNumberPtr[C.int, int32](&y) defer yFin() C.igGLFWWindow_GetWindowPos(b.handle(), xArg, yArg) @@ -143,7 +143,7 @@ func (b GLFWBackend) DisplaySize() (width int32, height int32) { } func (b *GLFWBackend) SetWindowTitle(title string) { - titleArg, titleFin := wrapString(title) + titleArg, titleFin := WrapString(title) defer titleFin() C.igGLFWWindow_SetTitle(b.handle(), titleArg)