From d9b867b40c6a51cd25a31d5ea5fee566bbabe7fc Mon Sep 17 00:00:00 2001 From: gucio321 Date: Sat, 16 Nov 2024 21:23:08 +0100 Subject: [PATCH] migrate part of packages --- ImGuiColorTextEdit/{cimcte_callbacks.go => callbacks.go} | 4 ++-- ImGuiColorTextEdit/{cimcte_enums.go => enums.go} | 0 ImGuiColorTextEdit/{cimcte_funcs.go => funcs.go} | 4 ++-- .../{cimcte_structs_accessor.cpp => structs_accessor.cpp} | 4 ++-- .../{cimcte_structs_accessor.h => structs_accessor.h} | 2 +- ImGuiColorTextEdit/{cimcte_typedefs.cpp => typedefs.cpp} | 2 +- ImGuiColorTextEdit/{cimcte_typedefs.go => typedefs.go} | 4 ++-- ImGuiColorTextEdit/{cimcte_typedefs.h => typedefs.h} | 0 ImGuiColorTextEdit/{cimcte_wrapper.cpp => wrapper.cpp} | 2 +- ImGuiColorTextEdit/{cimcte_wrapper.h => wrapper.h} | 0 imguizmo/{cimguizmo_callbacks.go => callbacks.go} | 4 ++-- imguizmo/{cimguizmo_enums.go => enums.go} | 0 imguizmo/{cimguizmo_funcs.go => funcs.go} | 4 ++-- ...imguizmo_structs_accessor.cpp => structs_accessor.cpp} | 4 ++-- .../{cimguizmo_structs_accessor.h => structs_accessor.h} | 2 +- imguizmo/{cimguizmo_typedefs.cpp => typedefs.cpp} | 2 +- imguizmo/{cimguizmo_typedefs.go => typedefs.go} | 4 ++-- imguizmo/{cimguizmo_typedefs.h => typedefs.h} | 0 imguizmo/{cimguizmo_wrapper.cpp => wrapper.cpp} | 2 +- imguizmo/{cimguizmo_wrapper.h => wrapper.h} | 0 imnodes/{cimnodes_callbacks.go => callbacks.go} | 4 ++-- imnodes/dummy.go | 8 -------- imnodes/{cimnodes_enums.go => enums.go} | 0 imnodes/{cimnodes_funcs.go => funcs.go} | 4 ++-- ...cimnodes_structs_accessor.cpp => structs_accessor.cpp} | 4 ++-- .../{cimnodes_structs_accessor.h => structs_accessor.h} | 2 +- imnodes/{cimnodes_typedefs.cpp => typedefs.cpp} | 2 +- imnodes/{cimnodes_typedefs.go => typedefs.go} | 4 ++-- imnodes/{cimnodes_typedefs.h => typedefs.h} | 0 imnodes/{cimnodes_wrapper.cpp => wrapper.cpp} | 2 +- imnodes/{cimnodes_wrapper.h => wrapper.h} | 0 31 files changed, 33 insertions(+), 41 deletions(-) rename ImGuiColorTextEdit/{cimcte_callbacks.go => callbacks.go} (77%) rename ImGuiColorTextEdit/{cimcte_enums.go => enums.go} (100%) rename ImGuiColorTextEdit/{cimcte_funcs.go => funcs.go} (99%) rename ImGuiColorTextEdit/{cimcte_structs_accessor.cpp => structs_accessor.cpp} (64%) rename ImGuiColorTextEdit/{cimcte_structs_accessor.h => structs_accessor.h} (86%) rename ImGuiColorTextEdit/{cimcte_typedefs.cpp => typedefs.cpp} (81%) rename ImGuiColorTextEdit/{cimcte_typedefs.go => typedefs.go} (94%) rename ImGuiColorTextEdit/{cimcte_typedefs.h => typedefs.h} (100%) rename ImGuiColorTextEdit/{cimcte_wrapper.cpp => wrapper.cpp} (96%) rename ImGuiColorTextEdit/{cimcte_wrapper.h => wrapper.h} (100%) rename imguizmo/{cimguizmo_callbacks.go => callbacks.go} (75%) rename imguizmo/{cimguizmo_enums.go => enums.go} (100%) rename imguizmo/{cimguizmo_funcs.go => funcs.go} (99%) rename imguizmo/{cimguizmo_structs_accessor.cpp => structs_accessor.cpp} (96%) rename imguizmo/{cimguizmo_structs_accessor.h => structs_accessor.h} (97%) rename imguizmo/{cimguizmo_typedefs.cpp => typedefs.cpp} (80%) rename imguizmo/{cimguizmo_typedefs.go => typedefs.go} (92%) rename imguizmo/{cimguizmo_typedefs.h => typedefs.h} (100%) rename imguizmo/{cimguizmo_wrapper.cpp => wrapper.cpp} (95%) rename imguizmo/{cimguizmo_wrapper.h => wrapper.h} (100%) rename imnodes/{cimnodes_callbacks.go => callbacks.go} (99%) delete mode 100644 imnodes/dummy.go rename imnodes/{cimnodes_enums.go => enums.go} (100%) rename imnodes/{cimnodes_funcs.go => funcs.go} (99%) rename imnodes/{cimnodes_structs_accessor.cpp => structs_accessor.cpp} (98%) rename imnodes/{cimnodes_structs_accessor.h => structs_accessor.h} (99%) rename imnodes/{cimnodes_typedefs.cpp => typedefs.cpp} (93%) rename imnodes/{cimnodes_typedefs.go => typedefs.go} (99%) rename imnodes/{cimnodes_typedefs.h => typedefs.h} (100%) rename imnodes/{cimnodes_wrapper.cpp => wrapper.cpp} (98%) rename imnodes/{cimnodes_wrapper.h => wrapper.h} (100%) diff --git a/ImGuiColorTextEdit/cimcte_callbacks.go b/ImGuiColorTextEdit/callbacks.go similarity index 77% rename from ImGuiColorTextEdit/cimcte_callbacks.go rename to ImGuiColorTextEdit/callbacks.go index dc58fee78..eb03bf0bc 100644 --- a/ImGuiColorTextEdit/cimcte_callbacks.go +++ b/ImGuiColorTextEdit/callbacks.go @@ -6,6 +6,6 @@ package ImGuiColorTextEdit // #include // #include // #include "../imgui/extra_types.h" -// #include "cimcte_wrapper.h" -// #include "cimcte_typedefs.h" +// #include "wrapper.h" +// #include "typedefs.h" import "C" diff --git a/ImGuiColorTextEdit/cimcte_enums.go b/ImGuiColorTextEdit/enums.go similarity index 100% rename from ImGuiColorTextEdit/cimcte_enums.go rename to ImGuiColorTextEdit/enums.go diff --git a/ImGuiColorTextEdit/cimcte_funcs.go b/ImGuiColorTextEdit/funcs.go similarity index 99% rename from ImGuiColorTextEdit/cimcte_funcs.go rename to ImGuiColorTextEdit/funcs.go index 156079b4a..6ee39e35e 100644 --- a/ImGuiColorTextEdit/cimcte_funcs.go +++ b/ImGuiColorTextEdit/funcs.go @@ -9,8 +9,8 @@ import ( ) // #include "../imgui/extra_types.h" -// #include "cimcte_structs_accessor.h" -// #include "cimcte_wrapper.h" +// #include "structs_accessor.h" +// #include "wrapper.h" import "C" func (self *TextEditor) AllCursorsHaveSelection() bool { diff --git a/ImGuiColorTextEdit/cimcte_structs_accessor.cpp b/ImGuiColorTextEdit/structs_accessor.cpp similarity index 64% rename from ImGuiColorTextEdit/cimcte_structs_accessor.cpp rename to ImGuiColorTextEdit/structs_accessor.cpp index 5ed67fede..74066ea34 100644 --- a/ImGuiColorTextEdit/cimcte_structs_accessor.cpp +++ b/ImGuiColorTextEdit/structs_accessor.cpp @@ -3,6 +3,6 @@ #include -#include "cimcte_wrapper.h" -#include "cimcte_structs_accessor.h" +#include "wrapper.h" +#include "structs_accessor.h" diff --git a/ImGuiColorTextEdit/cimcte_structs_accessor.h b/ImGuiColorTextEdit/structs_accessor.h similarity index 86% rename from ImGuiColorTextEdit/cimcte_structs_accessor.h rename to ImGuiColorTextEdit/structs_accessor.h index aafc05835..c42e46a1a 100644 --- a/ImGuiColorTextEdit/cimcte_structs_accessor.h +++ b/ImGuiColorTextEdit/structs_accessor.h @@ -3,7 +3,7 @@ #pragma once -#include "cimcte_wrapper.h" +#include "wrapper.h" #ifdef __cplusplus extern "C" { diff --git a/ImGuiColorTextEdit/cimcte_typedefs.cpp b/ImGuiColorTextEdit/typedefs.cpp similarity index 81% rename from ImGuiColorTextEdit/cimcte_typedefs.cpp rename to ImGuiColorTextEdit/typedefs.cpp index ae2fe21be..ba9572af9 100644 --- a/ImGuiColorTextEdit/cimcte_typedefs.cpp +++ b/ImGuiColorTextEdit/typedefs.cpp @@ -2,5 +2,5 @@ // DO NOT EDIT. -#include "cimcte_typedefs.h" +#include "typedefs.h" #include "../cwrappers/cimCTE.h" diff --git a/ImGuiColorTextEdit/cimcte_typedefs.go b/ImGuiColorTextEdit/typedefs.go similarity index 94% rename from ImGuiColorTextEdit/cimcte_typedefs.go rename to ImGuiColorTextEdit/typedefs.go index 8573051a6..7a68d6848 100644 --- a/ImGuiColorTextEdit/cimcte_typedefs.go +++ b/ImGuiColorTextEdit/typedefs.go @@ -6,8 +6,8 @@ package ImGuiColorTextEdit // #include // #include // #include "../imgui/extra_types.h" -// #include "cimcte_wrapper.h" -// #include "cimcte_typedefs.h" +// #include "wrapper.h" +// #include "typedefs.h" import "C" import "github.com/AllenDang/cimgui-go/internal" diff --git a/ImGuiColorTextEdit/cimcte_typedefs.h b/ImGuiColorTextEdit/typedefs.h similarity index 100% rename from ImGuiColorTextEdit/cimcte_typedefs.h rename to ImGuiColorTextEdit/typedefs.h diff --git a/ImGuiColorTextEdit/cimcte_wrapper.cpp b/ImGuiColorTextEdit/wrapper.cpp similarity index 96% rename from ImGuiColorTextEdit/cimcte_wrapper.cpp rename to ImGuiColorTextEdit/wrapper.cpp index b7d2851fc..6caf4b3cb 100644 --- a/ImGuiColorTextEdit/cimcte_wrapper.cpp +++ b/ImGuiColorTextEdit/wrapper.cpp @@ -1,7 +1,7 @@ // Code generated by cmd/codegen from https://github.com/AllenDang/cimgui-go. // DO NOT EDIT. -#include "cimcte_wrapper.h" +#include "wrapper.h" #include "../cwrappers/cimCTE.h" void wrap_TextEditor_Redo(TextEditor* self) { TextEditor_Redo(self,1); } diff --git a/ImGuiColorTextEdit/cimcte_wrapper.h b/ImGuiColorTextEdit/wrapper.h similarity index 100% rename from ImGuiColorTextEdit/cimcte_wrapper.h rename to ImGuiColorTextEdit/wrapper.h diff --git a/imguizmo/cimguizmo_callbacks.go b/imguizmo/callbacks.go similarity index 75% rename from imguizmo/cimguizmo_callbacks.go rename to imguizmo/callbacks.go index a400c8aca..a077bbe1c 100644 --- a/imguizmo/cimguizmo_callbacks.go +++ b/imguizmo/callbacks.go @@ -6,6 +6,6 @@ package imguizmo // #include // #include // #include "../imgui/extra_types.h" -// #include "cimguizmo_wrapper.h" -// #include "cimguizmo_typedefs.h" +// #include "wrapper.h" +// #include "typedefs.h" import "C" diff --git a/imguizmo/cimguizmo_enums.go b/imguizmo/enums.go similarity index 100% rename from imguizmo/cimguizmo_enums.go rename to imguizmo/enums.go diff --git a/imguizmo/cimguizmo_funcs.go b/imguizmo/funcs.go similarity index 99% rename from imguizmo/cimguizmo_funcs.go rename to imguizmo/funcs.go index 76dadd96b..2768709e7 100644 --- a/imguizmo/cimguizmo_funcs.go +++ b/imguizmo/funcs.go @@ -11,8 +11,8 @@ import ( ) // #include "../imgui/extra_types.h" -// #include "cimguizmo_structs_accessor.h" -// #include "cimguizmo_wrapper.h" +// #include "structs_accessor.h" +// #include "wrapper.h" import "C" func AllowAxisFlip(value bool) { diff --git a/imguizmo/cimguizmo_structs_accessor.cpp b/imguizmo/structs_accessor.cpp similarity index 96% rename from imguizmo/cimguizmo_structs_accessor.cpp rename to imguizmo/structs_accessor.cpp index 1ed3548a5..dedb6132b 100644 --- a/imguizmo/cimguizmo_structs_accessor.cpp +++ b/imguizmo/structs_accessor.cpp @@ -3,8 +3,8 @@ #include -#include "cimguizmo_wrapper.h" -#include "cimguizmo_structs_accessor.h" +#include "wrapper.h" +#include "structs_accessor.h" void wrap_Style_SetTranslationLineThickness(Style *StylePtr, float v) { StylePtr->TranslationLineThickness = v; } float wrap_Style_GetTranslationLineThickness(Style *self) { return self->TranslationLineThickness; } diff --git a/imguizmo/cimguizmo_structs_accessor.h b/imguizmo/structs_accessor.h similarity index 97% rename from imguizmo/cimguizmo_structs_accessor.h rename to imguizmo/structs_accessor.h index 7d17f68b7..d85a77503 100644 --- a/imguizmo/cimguizmo_structs_accessor.h +++ b/imguizmo/structs_accessor.h @@ -3,7 +3,7 @@ #pragma once -#include "cimguizmo_wrapper.h" +#include "wrapper.h" #ifdef __cplusplus extern "C" { diff --git a/imguizmo/cimguizmo_typedefs.cpp b/imguizmo/typedefs.cpp similarity index 80% rename from imguizmo/cimguizmo_typedefs.cpp rename to imguizmo/typedefs.cpp index abde6c7e0..4ed65f038 100644 --- a/imguizmo/cimguizmo_typedefs.cpp +++ b/imguizmo/typedefs.cpp @@ -2,5 +2,5 @@ // DO NOT EDIT. -#include "cimguizmo_typedefs.h" +#include "typedefs.h" #include "../cwrappers/cimguizmo.h" diff --git a/imguizmo/cimguizmo_typedefs.go b/imguizmo/typedefs.go similarity index 92% rename from imguizmo/cimguizmo_typedefs.go rename to imguizmo/typedefs.go index e217e9210..f542121a5 100644 --- a/imguizmo/cimguizmo_typedefs.go +++ b/imguizmo/typedefs.go @@ -6,8 +6,8 @@ package imguizmo // #include // #include // #include "../imgui/extra_types.h" -// #include "cimguizmo_wrapper.h" -// #include "cimguizmo_typedefs.h" +// #include "wrapper.h" +// #include "typedefs.h" import "C" import "github.com/AllenDang/cimgui-go/internal" diff --git a/imguizmo/cimguizmo_typedefs.h b/imguizmo/typedefs.h similarity index 100% rename from imguizmo/cimguizmo_typedefs.h rename to imguizmo/typedefs.h diff --git a/imguizmo/cimguizmo_wrapper.cpp b/imguizmo/wrapper.cpp similarity index 95% rename from imguizmo/cimguizmo_wrapper.cpp rename to imguizmo/wrapper.cpp index 785a1b4ed..7477c11cc 100644 --- a/imguizmo/cimguizmo_wrapper.cpp +++ b/imguizmo/wrapper.cpp @@ -1,7 +1,7 @@ // Code generated by cmd/codegen from https://github.com/AllenDang/cimgui-go. // DO NOT EDIT. -#include "cimguizmo_wrapper.h" +#include "wrapper.h" #include "../cwrappers/cimguizmo.h" ImGuiID wrap_ImGuizmo_GetID_Ptr(const uintptr_t ptr_id) { return ImGuizmo_GetID_Ptr((const void*)(uintptr_t)ptr_id); } diff --git a/imguizmo/cimguizmo_wrapper.h b/imguizmo/wrapper.h similarity index 100% rename from imguizmo/cimguizmo_wrapper.h rename to imguizmo/wrapper.h diff --git a/imnodes/cimnodes_callbacks.go b/imnodes/callbacks.go similarity index 99% rename from imnodes/cimnodes_callbacks.go rename to imnodes/callbacks.go index c8bef00d6..feea642b4 100644 --- a/imnodes/cimnodes_callbacks.go +++ b/imnodes/callbacks.go @@ -6,8 +6,8 @@ package imnodes // #include // #include // #include "../imgui/extra_types.h" -// #include "cimnodes_wrapper.h" -// #include "cimnodes_typedefs.h" +// #include "wrapper.h" +// #include "typedefs.h" // extern void callbackMiniMapNodeHoveringCallback0(int, void*); // extern void callbackMiniMapNodeHoveringCallback1(int, void*); // extern void callbackMiniMapNodeHoveringCallback2(int, void*); diff --git a/imnodes/dummy.go b/imnodes/dummy.go deleted file mode 100644 index 17257cb8e..000000000 --- a/imnodes/dummy.go +++ /dev/null @@ -1,8 +0,0 @@ -//go:build rquired -// +build rquired - -package imgui - -import ( - _ "github.com/AllenDang/cimgui-go" -) diff --git a/imnodes/cimnodes_enums.go b/imnodes/enums.go similarity index 100% rename from imnodes/cimnodes_enums.go rename to imnodes/enums.go diff --git a/imnodes/cimnodes_funcs.go b/imnodes/funcs.go similarity index 99% rename from imnodes/cimnodes_funcs.go rename to imnodes/funcs.go index 7805482a5..42cd5bce6 100644 --- a/imnodes/cimnodes_funcs.go +++ b/imnodes/funcs.go @@ -11,8 +11,8 @@ import ( ) // #include "../imgui/extra_types.h" -// #include "cimnodes_structs_accessor.h" -// #include "cimnodes_wrapper.h" +// #include "structs_accessor.h" +// #include "wrapper.h" import "C" func NewEmulateThreeButtonMouse() *EmulateThreeButtonMouse { diff --git a/imnodes/cimnodes_structs_accessor.cpp b/imnodes/structs_accessor.cpp similarity index 98% rename from imnodes/cimnodes_structs_accessor.cpp rename to imnodes/structs_accessor.cpp index 8469f7c63..691440039 100644 --- a/imnodes/cimnodes_structs_accessor.cpp +++ b/imnodes/structs_accessor.cpp @@ -3,8 +3,8 @@ #include -#include "cimnodes_wrapper.h" -#include "cimnodes_structs_accessor.h" +#include "wrapper.h" +#include "structs_accessor.h" void wrap_EmulateThreeButtonMouse_SetModifier(EmulateThreeButtonMouse *EmulateThreeButtonMousePtr, const bool* v) { EmulateThreeButtonMousePtr->Modifier = v; } const bool* wrap_EmulateThreeButtonMouse_GetModifier(EmulateThreeButtonMouse *self) { return self->Modifier; } diff --git a/imnodes/cimnodes_structs_accessor.h b/imnodes/structs_accessor.h similarity index 99% rename from imnodes/cimnodes_structs_accessor.h rename to imnodes/structs_accessor.h index d1d9aff1d..5b3424017 100644 --- a/imnodes/cimnodes_structs_accessor.h +++ b/imnodes/structs_accessor.h @@ -3,7 +3,7 @@ #pragma once -#include "cimnodes_wrapper.h" +#include "wrapper.h" #ifdef __cplusplus extern "C" { diff --git a/imnodes/cimnodes_typedefs.cpp b/imnodes/typedefs.cpp similarity index 93% rename from imnodes/cimnodes_typedefs.cpp rename to imnodes/typedefs.cpp index 0adf5da0a..a1a49491d 100644 --- a/imnodes/cimnodes_typedefs.cpp +++ b/imnodes/typedefs.cpp @@ -2,7 +2,7 @@ // DO NOT EDIT. -#include "cimnodes_typedefs.h" +#include "typedefs.h" #include "../cwrappers/cimnodes.h" uintptr_t ImNodesMiniMapNodeHoveringCallbackUserData_toUintptr(ImNodesMiniMapNodeHoveringCallbackUserData ptr) { diff --git a/imnodes/cimnodes_typedefs.go b/imnodes/typedefs.go similarity index 99% rename from imnodes/cimnodes_typedefs.go rename to imnodes/typedefs.go index db58426bd..495776f14 100644 --- a/imnodes/cimnodes_typedefs.go +++ b/imnodes/typedefs.go @@ -6,8 +6,8 @@ package imnodes // #include // #include // #include "../imgui/extra_types.h" -// #include "cimnodes_wrapper.h" -// #include "cimnodes_typedefs.h" +// #include "wrapper.h" +// #include "typedefs.h" import "C" import "github.com/AllenDang/cimgui-go/internal" diff --git a/imnodes/cimnodes_typedefs.h b/imnodes/typedefs.h similarity index 100% rename from imnodes/cimnodes_typedefs.h rename to imnodes/typedefs.h diff --git a/imnodes/cimnodes_wrapper.cpp b/imnodes/wrapper.cpp similarity index 98% rename from imnodes/cimnodes_wrapper.cpp rename to imnodes/wrapper.cpp index 5a354acd2..5a6498960 100644 --- a/imnodes/cimnodes_wrapper.cpp +++ b/imnodes/wrapper.cpp @@ -1,7 +1,7 @@ // Code generated by cmd/codegen from https://github.com/AllenDang/cimgui-go. // DO NOT EDIT. -#include "cimnodes_wrapper.h" +#include "wrapper.h" #include "../cwrappers/cimnodes.h" void wrap_imnodes_BeginInputAttribute(int id) { imnodes_BeginInputAttribute(id,ImNodesPinShape_CircleFilled); } diff --git a/imnodes/cimnodes_wrapper.h b/imnodes/wrapper.h similarity index 100% rename from imnodes/cimnodes_wrapper.h rename to imnodes/wrapper.h