diff --git a/cimgui.cpp b/cimgui.cpp index ea63360..b75efc6 100644 --- a/cimgui.cpp +++ b/cimgui.cpp @@ -10,7 +10,102 @@ -CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void) +static inline ImColor ConvertToCPP_ImColor(const ImColor_c& src) +{ + ImColor dest; + dest.Value.x = src.Value.x; + dest.Value.y = src.Value.y; + dest.Value.z = src.Value.z; + dest.Value.w = src.Value.w; + return dest; +} +static inline ImColor_c ConvertFromCPP_ImColor(const ImColor& src) +{ + ImColor_c dest; + dest.Value.x = src.Value.x; + dest.Value.y = src.Value.y; + dest.Value.z = src.Value.z; + dest.Value.w = src.Value.w; + return dest; +} +static inline ImRect ConvertToCPP_ImRect(const ImRect_c& src) +{ + ImRect dest; + dest.Min.x = src.Min.x; + dest.Min.y = src.Min.y; + dest.Max.x = src.Max.x; + dest.Max.y = src.Max.y; + return dest; +} +static inline ImRect_c ConvertFromCPP_ImRect(const ImRect& src) +{ + ImRect_c dest; + dest.Min.x = src.Min.x; + dest.Min.y = src.Min.y; + dest.Max.x = src.Max.x; + dest.Max.y = src.Max.y; + return dest; +} +static inline ImTextureRef ConvertToCPP_ImTextureRef(const ImTextureRef_c& src) +{ + ImTextureRef dest; + dest._TexData = src._TexData; + dest._TexID = src._TexID; + return dest; +} +static inline ImTextureRef_c ConvertFromCPP_ImTextureRef(const ImTextureRef& src) +{ + ImTextureRef_c dest; + dest._TexData = src._TexData; + dest._TexID = src._TexID; + return dest; +} +static inline ImVec2 ConvertToCPP_ImVec2(const ImVec2_c& src) +{ + ImVec2 dest; + dest.x = src.x; + dest.y = src.y; + return dest; +} +static inline ImVec2_c ConvertFromCPP_ImVec2(const ImVec2& src) +{ + ImVec2_c dest; + dest.x = src.x; + dest.y = src.y; + return dest; +} +static inline ImVec2i ConvertToCPP_ImVec2i(const ImVec2i_c& src) +{ + ImVec2i dest; + dest.x = src.x; + dest.y = src.y; + return dest; +} +static inline ImVec2i_c ConvertFromCPP_ImVec2i(const ImVec2i& src) +{ + ImVec2i_c dest; + dest.x = src.x; + dest.y = src.y; + return dest; +} +static inline ImVec4 ConvertToCPP_ImVec4(const ImVec4_c& src) +{ + ImVec4 dest; + dest.x = src.x; + dest.y = src.y; + dest.z = src.z; + dest.w = src.w; + return dest; +} +static inline ImVec4_c ConvertFromCPP_ImVec4(const ImVec4& src) +{ + ImVec4_c dest; + dest.x = src.x; + dest.y = src.y; + dest.z = src.z; + dest.w = src.w; + return dest; +}CIMGUI_API ImVec2* ImVec2_ImVec2_Nil(void) { return IM_NEW(ImVec2)(); } @@ -190,13 +285,13 @@ CIMGUI_API float igGetWindowDpiScale() { return ImGui::GetWindowDpiScale(); } -CIMGUI_API void igGetWindowPos(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetWindowPos() { - *pOut = ImGui::GetWindowPos(); + return ConverFromCPP_ImVec2(ImGui::GetWindowPos()); } -CIMGUI_API void igGetWindowSize(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetWindowSize() { - *pOut = ImGui::GetWindowSize(); + return ConverFromCPP_ImVec2(ImGui::GetWindowSize()); } CIMGUI_API float igGetWindowWidth() { @@ -402,9 +497,9 @@ CIMGUI_API void igPopTextWrapPos() { return ImGui::PopTextWrapPos(); } -CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetFontTexUvWhitePixel() { - *pOut = ImGui::GetFontTexUvWhitePixel(); + return ConverFromCPP_ImVec2(ImGui::GetFontTexUvWhitePixel()); } CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul) { @@ -422,21 +517,21 @@ CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx) { return &ImGui::GetStyleColorVec4(idx); } -CIMGUI_API void igGetCursorScreenPos(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetCursorScreenPos() { - *pOut = ImGui::GetCursorScreenPos(); + return ConverFromCPP_ImVec2(ImGui::GetCursorScreenPos()); } CIMGUI_API void igSetCursorScreenPos(const ImVec2 pos) { return ImGui::SetCursorScreenPos(pos); } -CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetContentRegionAvail() { - *pOut = ImGui::GetContentRegionAvail(); + return ConverFromCPP_ImVec2(ImGui::GetContentRegionAvail()); } -CIMGUI_API void igGetCursorPos(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetCursorPos() { - *pOut = ImGui::GetCursorPos(); + return ConverFromCPP_ImVec2(ImGui::GetCursorPos()); } CIMGUI_API float igGetCursorPosX() { @@ -458,9 +553,9 @@ CIMGUI_API void igSetCursorPosY(float local_y) { return ImGui::SetCursorPosY(local_y); } -CIMGUI_API void igGetCursorStartPos(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetCursorStartPos() { - *pOut = ImGui::GetCursorStartPos(); + return ConverFromCPP_ImVec2(ImGui::GetCursorStartPos()); } CIMGUI_API void igSeparator() { @@ -1547,17 +1642,17 @@ CIMGUI_API ImGuiID igGetItemID() { return ImGui::GetItemID(); } -CIMGUI_API void igGetItemRectMin(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetItemRectMin() { - *pOut = ImGui::GetItemRectMin(); + return ConverFromCPP_ImVec2(ImGui::GetItemRectMin()); } -CIMGUI_API void igGetItemRectMax(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetItemRectMax() { - *pOut = ImGui::GetItemRectMax(); + return ConverFromCPP_ImVec2(ImGui::GetItemRectMax()); } -CIMGUI_API void igGetItemRectSize(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetItemRectSize() { - *pOut = ImGui::GetItemRectSize(); + return ConverFromCPP_ImVec2(ImGui::GetItemRectSize()); } CIMGUI_API ImGuiViewport* igGetMainViewport() { @@ -1603,13 +1698,13 @@ CIMGUI_API ImGuiStorage* igGetStateStorage() { return ImGui::GetStateStorage(); } -CIMGUI_API void igCalcTextSize(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width) +CIMGUI_API ImVec2_c igCalcTextSize(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width) { - *pOut = ImGui::CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width); + return ConverFromCPP_ImVec2(ImGui::CalcTextSize(text,text_end,hide_text_after_double_hash,wrap_width)); } -CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in) +CIMGUI_API ImVec4_c igColorConvertU32ToFloat4(ImU32 in) { - *pOut = ImGui::ColorConvertU32ToFloat4(in); + return ConverFromCPP_ImVec2(ImGui::ColorConvertU32ToFloat4(in)); } CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in) { @@ -1699,21 +1794,21 @@ CIMGUI_API bool igIsAnyMouseDown() { return ImGui::IsAnyMouseDown(); } -CIMGUI_API void igGetMousePos(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetMousePos() { - *pOut = ImGui::GetMousePos(); + return ConverFromCPP_ImVec2(ImGui::GetMousePos()); } -CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2 *pOut) +CIMGUI_API ImVec2_c igGetMousePosOnOpeningCurrentPopup() { - *pOut = ImGui::GetMousePosOnOpeningCurrentPopup(); + return ConverFromCPP_ImVec2(ImGui::GetMousePosOnOpeningCurrentPopup()); } CIMGUI_API bool igIsMouseDragging(ImGuiMouseButton button,float lock_threshold) { return ImGui::IsMouseDragging(button,lock_threshold); } -CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold) +CIMGUI_API ImVec2_c igGetMouseDragDelta(ImGuiMouseButton button,float lock_threshold) { - *pOut = ImGui::GetMouseDragDelta(button,lock_threshold); + return ConverFromCPP_ImVec2(ImGui::GetMouseDragDelta(button,lock_threshold)); } CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button) { @@ -2224,9 +2319,9 @@ CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a) { return self->SetHSV(h,s,v,a); } -CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a) +CIMGUI_API ImColor_c ImColor_HSV(float h,float s,float v,float a) { - *pOut = ImColor::HSV(h,s,v,a); + return ConverFromCPP_ImVec2(ImColor::HSV(h,s,v,a)); } CIMGUI_API ImGuiSelectionBasicStorage* ImGuiSelectionBasicStorage_ImGuiSelectionBasicStorage(void) { @@ -2344,13 +2439,13 @@ CIMGUI_API void ImDrawList_PopTexture(ImDrawList* self) { return self->PopTexture(); } -CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self) +CIMGUI_API ImVec2_c ImDrawList_GetClipRectMin(ImDrawList* self) { - *pOut = self->GetClipRectMin(); + return ConverFromCPP_ImVec2(self->GetClipRectMin()); } -CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self) +CIMGUI_API ImVec2_c ImDrawList_GetClipRectMax(ImDrawList* self) { - *pOut = self->GetClipRectMax(); + return ConverFromCPP_ImVec2(self->GetClipRectMax()); } CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness) { @@ -2656,9 +2751,9 @@ CIMGUI_API int ImTextureData_GetPitch(ImTextureData* self) { return self->GetPitch(); } -CIMGUI_API void ImTextureData_GetTexRef(ImTextureRef *pOut,ImTextureData* self) +CIMGUI_API ImTextureRef_c ImTextureData_GetTexRef(ImTextureData* self) { - *pOut = self->GetTexRef(); + return ConverFromCPP_ImTextureRef(self->GetTexRef()); } CIMGUI_API ImTextureID ImTextureData_GetTexID(ImTextureData* self) { @@ -2860,9 +2955,9 @@ CIMGUI_API ImFontBaked* ImFont_GetFontBaked(ImFont* self,float font_size,float d { return self->GetFontBaked(font_size,density); } -CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** out_remaining) +CIMGUI_API ImVec2_c ImFont_CalcTextSizeA(ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** out_remaining) { - *pOut = self->CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,out_remaining); + return ConverFromCPP_ImVec2(self->CalcTextSizeA(size,max_width,wrap_width,text_begin,text_end,out_remaining)); } CIMGUI_API const char* ImFont_CalcWordWrapPosition(ImFont* self,float size,const char* text,const char* text_end,float wrap_width) { @@ -2896,13 +2991,13 @@ CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self) { IM_DELETE(self); } -CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self) +CIMGUI_API ImVec2_c ImGuiViewport_GetCenter(ImGuiViewport* self) { - *pOut = self->GetCenter(); + return ConverFromCPP_ImVec2(self->GetCenter()); } -CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self) +CIMGUI_API ImVec2_c ImGuiViewport_GetWorkCenter(ImGuiViewport* self) { - *pOut = self->GetWorkCenter(); + return ConverFromCPP_ImVec2(self->GetWorkCenter()); } CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(void) { @@ -3135,9 +3230,9 @@ CIMGUI_API int igImTextCountLines(const char* in_text,const char* in_text_end) { return ImTextCountLines(in_text,in_text_end); } -CIMGUI_API void igImFontCalcTextSizeEx(ImVec2 *pOut,ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags) +CIMGUI_API ImVec2_c igImFontCalcTextSizeEx(ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags) { - *pOut = ImFontCalcTextSizeEx(font,size,max_width,wrap_width,text_begin,text_end_display,text_end,out_remaining,out_offset,flags); + return ConverFromCPP_ImVec2(ImFontCalcTextSizeEx(font,size,max_width,wrap_width,text_begin,text_end_display,text_end,out_remaining,out_offset,flags)); } CIMGUI_API const char* igImFontCalcWordWrapPositionEx(ImFont* font,float size,const char* text,const char* text_end,float wrap_width,ImDrawTextFlags flags) { @@ -3215,29 +3310,29 @@ CIMGUI_API double igImRsqrt_double(double x) { return ImRsqrt(x); } -CIMGUI_API void igImMin(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs) +CIMGUI_API ImVec2_c igImMin(const ImVec2 lhs,const ImVec2 rhs) { - *pOut = ImMin(lhs,rhs); + return ConverFromCPP_ImVec2(ImMin(lhs,rhs)); } -CIMGUI_API void igImMax(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs) +CIMGUI_API ImVec2_c igImMax(const ImVec2 lhs,const ImVec2 rhs) { - *pOut = ImMax(lhs,rhs); + return ConverFromCPP_ImVec2(ImMax(lhs,rhs)); } -CIMGUI_API void igImClamp(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,const ImVec2 mx) +CIMGUI_API ImVec2_c igImClamp(const ImVec2 v,const ImVec2 mn,const ImVec2 mx) { - *pOut = ImClamp(v,mn,mx); + return ConverFromCPP_ImVec2(ImClamp(v,mn,mx)); } -CIMGUI_API void igImLerp_Vec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t) +CIMGUI_API ImVec2_c igImLerp_Vec2Float(const ImVec2 a,const ImVec2 b,float t) { - *pOut = ImLerp(a,b,t); + return ConverFromCPP_ImVec2(ImLerp(a,b,t)); } -CIMGUI_API void igImLerp_Vec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t) +CIMGUI_API ImVec2_c igImLerp_Vec2Vec2(const ImVec2 a,const ImVec2 b,const ImVec2 t) { - *pOut = ImLerp(a,b,t); + return ConverFromCPP_ImVec2(ImLerp(a,b,t)); } -CIMGUI_API void igImLerp_Vec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t) +CIMGUI_API ImVec4_c igImLerp_Vec4(const ImVec4 a,const ImVec4 b,float t) { - *pOut = ImLerp(a,b,t); + return ConverFromCPP_ImVec2(ImLerp(a,b,t)); } CIMGUI_API float igImSaturate(float f) { @@ -3259,17 +3354,17 @@ CIMGUI_API float igImTrunc_Float(float f) { return ImTrunc(f); } -CIMGUI_API void igImTrunc_Vec2(ImVec2 *pOut,const ImVec2 v) +CIMGUI_API ImVec2_c igImTrunc_Vec2(const ImVec2 v) { - *pOut = ImTrunc(v); + return ConverFromCPP_ImVec2(ImTrunc(v)); } CIMGUI_API float igImFloor_Float(float f) { return ImFloor(f); } -CIMGUI_API void igImFloor_Vec2(ImVec2 *pOut,const ImVec2 v) +CIMGUI_API ImVec2_c igImFloor_Vec2(const ImVec2 v) { - *pOut = ImFloor(v); + return ConverFromCPP_ImVec2(ImFloor(v)); } CIMGUI_API float igImTrunc64(float f) { @@ -3287,9 +3382,9 @@ CIMGUI_API float igImDot(const ImVec2 a,const ImVec2 b) { return ImDot(a,b); } -CIMGUI_API void igImRotate(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a) +CIMGUI_API ImVec2_c igImRotate(const ImVec2 v,float cos_a,float sin_a) { - *pOut = ImRotate(v,cos_a,sin_a); + return ConverFromCPP_ImVec2(ImRotate(v,cos_a,sin_a)); } CIMGUI_API float igImLinearSweep(float current,float target,float speed) { @@ -3299,9 +3394,9 @@ CIMGUI_API float igImLinearRemapClamp(float s0,float s1,float d0,float d1,float { return ImLinearRemapClamp(s0,s1,d0,d1,x); } -CIMGUI_API void igImMul(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs) +CIMGUI_API ImVec2_c igImMul(const ImVec2 lhs,const ImVec2 rhs) { - *pOut = ImMul(lhs,rhs); + return ConverFromCPP_ImVec2(ImMul(lhs,rhs)); } CIMGUI_API bool igImIsFloatAboveGuaranteedIntegerPrecision(float f) { @@ -3311,33 +3406,33 @@ CIMGUI_API float igImExponentialMovingAverage(float avg,float sample,int n) { return ImExponentialMovingAverage(avg,sample,n); } -CIMGUI_API void igImBezierCubicCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t) +CIMGUI_API ImVec2_c igImBezierCubicCalc(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t) { - *pOut = ImBezierCubicCalc(p1,p2,p3,p4,t); + return ConverFromCPP_ImVec2(ImBezierCubicCalc(p1,p2,p3,p4,t)); } -CIMGUI_API void igImBezierCubicClosestPoint(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments) +CIMGUI_API ImVec2_c igImBezierCubicClosestPoint(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments) { - *pOut = ImBezierCubicClosestPoint(p1,p2,p3,p4,p,num_segments); + return ConverFromCPP_ImVec2(ImBezierCubicClosestPoint(p1,p2,p3,p4,p,num_segments)); } -CIMGUI_API void igImBezierCubicClosestPointCasteljau(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol) +CIMGUI_API ImVec2_c igImBezierCubicClosestPointCasteljau(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol) { - *pOut = ImBezierCubicClosestPointCasteljau(p1,p2,p3,p4,p,tess_tol); + return ConverFromCPP_ImVec2(ImBezierCubicClosestPointCasteljau(p1,p2,p3,p4,p,tess_tol)); } -CIMGUI_API void igImBezierQuadraticCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t) +CIMGUI_API ImVec2_c igImBezierQuadraticCalc(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t) { - *pOut = ImBezierQuadraticCalc(p1,p2,p3,t); + return ConverFromCPP_ImVec2(ImBezierQuadraticCalc(p1,p2,p3,t)); } -CIMGUI_API void igImLineClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p) +CIMGUI_API ImVec2_c igImLineClosestPoint(const ImVec2 a,const ImVec2 b,const ImVec2 p) { - *pOut = ImLineClosestPoint(a,b,p); + return ConverFromCPP_ImVec2(ImLineClosestPoint(a,b,p)); } CIMGUI_API bool igImTriangleContainsPoint(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p) { return ImTriangleContainsPoint(a,b,c,p); } -CIMGUI_API void igImTriangleClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p) +CIMGUI_API ImVec2_c igImTriangleClosestPoint(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p) { - *pOut = ImTriangleClosestPoint(a,b,c,p); + return ConverFromCPP_ImVec2(ImTriangleClosestPoint(a,b,c,p)); } CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w) { @@ -3411,13 +3506,13 @@ CIMGUI_API ImRect* ImRect_ImRect_Float(float x1,float y1,float x2,float y2) { return IM_NEW(ImRect)(x1,y1,x2,y2); } -CIMGUI_API void ImRect_GetCenter(ImVec2 *pOut,ImRect* self) +CIMGUI_API ImVec2_c ImRect_GetCenter(ImRect* self) { - *pOut = self->GetCenter(); + return ConverFromCPP_ImVec2(self->GetCenter()); } -CIMGUI_API void ImRect_GetSize(ImVec2 *pOut,ImRect* self) +CIMGUI_API ImVec2_c ImRect_GetSize(ImRect* self) { - *pOut = self->GetSize(); + return ConverFromCPP_ImVec2(self->GetSize()); } CIMGUI_API float ImRect_GetWidth(ImRect* self) { @@ -3431,21 +3526,21 @@ CIMGUI_API float ImRect_GetArea(ImRect* self) { return self->GetArea(); } -CIMGUI_API void ImRect_GetTL(ImVec2 *pOut,ImRect* self) +CIMGUI_API ImVec2_c ImRect_GetTL(ImRect* self) { - *pOut = self->GetTL(); + return ConverFromCPP_ImVec2(self->GetTL()); } -CIMGUI_API void ImRect_GetTR(ImVec2 *pOut,ImRect* self) +CIMGUI_API ImVec2_c ImRect_GetTR(ImRect* self) { - *pOut = self->GetTR(); + return ConverFromCPP_ImVec2(self->GetTR()); } -CIMGUI_API void ImRect_GetBL(ImVec2 *pOut,ImRect* self) +CIMGUI_API ImVec2_c ImRect_GetBL(ImRect* self) { - *pOut = self->GetBL(); + return ConverFromCPP_ImVec2(self->GetBL()); } -CIMGUI_API void ImRect_GetBR(ImVec2 *pOut,ImRect* self) +CIMGUI_API ImVec2_c ImRect_GetBR(ImRect* self) { - *pOut = self->GetBR(); + return ConverFromCPP_ImVec2(self->GetBR()); } CIMGUI_API bool ImRect_Contains_Vec2(ImRect* self,const ImVec2 p) { @@ -3507,9 +3602,9 @@ CIMGUI_API bool ImRect_IsInverted(ImRect* self) { return self->IsInverted(); } -CIMGUI_API void ImRect_ToVec4(ImVec4 *pOut,ImRect* self) +CIMGUI_API ImVec4_c ImRect_ToVec4(ImRect* self) { - *pOut = self->ToVec4(); + return ConverFromCPP_ImVec4(self->ToVec4()); } CIMGUI_API const ImVec4* ImRect_AsVec4(ImRect* self) { @@ -3967,9 +4062,9 @@ CIMGUI_API bool ImGuiDockNode_IsEmpty(ImGuiDockNode* self) { return self->IsEmpty(); } -CIMGUI_API void ImGuiDockNode_Rect(ImRect *pOut,ImGuiDockNode* self) +CIMGUI_API ImRect_c ImGuiDockNode_Rect(ImGuiDockNode* self) { - *pOut = self->Rect(); + return ConverFromCPP_ImRect(self->Rect()); } CIMGUI_API void ImGuiDockNode_SetLocalFlags(ImGuiDockNode* self,ImGuiDockNodeFlags flags) { @@ -3999,29 +4094,29 @@ CIMGUI_API void ImGuiViewportP_ClearRequestFlags(ImGuiViewportP* self) { return self->ClearRequestFlags(); } -CIMGUI_API void ImGuiViewportP_CalcWorkRectPos(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 inset_min) +CIMGUI_API ImVec2_c ImGuiViewportP_CalcWorkRectPos(ImGuiViewportP* self,const ImVec2 inset_min) { - *pOut = self->CalcWorkRectPos(inset_min); + return ConverFromCPP_ImVec2(self->CalcWorkRectPos(inset_min)); } -CIMGUI_API void ImGuiViewportP_CalcWorkRectSize(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 inset_min,const ImVec2 inset_max) +CIMGUI_API ImVec2_c ImGuiViewportP_CalcWorkRectSize(ImGuiViewportP* self,const ImVec2 inset_min,const ImVec2 inset_max) { - *pOut = self->CalcWorkRectSize(inset_min,inset_max); + return ConverFromCPP_ImVec2(self->CalcWorkRectSize(inset_min,inset_max)); } CIMGUI_API void ImGuiViewportP_UpdateWorkRect(ImGuiViewportP* self) { return self->UpdateWorkRect(); } -CIMGUI_API void ImGuiViewportP_GetMainRect(ImRect *pOut,ImGuiViewportP* self) +CIMGUI_API ImRect_c ImGuiViewportP_GetMainRect(ImGuiViewportP* self) { - *pOut = self->GetMainRect(); + return ConverFromCPP_ImRect(self->GetMainRect()); } -CIMGUI_API void ImGuiViewportP_GetWorkRect(ImRect *pOut,ImGuiViewportP* self) +CIMGUI_API ImRect_c ImGuiViewportP_GetWorkRect(ImGuiViewportP* self) { - *pOut = self->GetWorkRect(); + return ConverFromCPP_ImRect(self->GetWorkRect()); } -CIMGUI_API void ImGuiViewportP_GetBuildWorkRect(ImRect *pOut,ImGuiViewportP* self) +CIMGUI_API ImRect_c ImGuiViewportP_GetBuildWorkRect(ImGuiViewportP* self) { - *pOut = self->GetBuildWorkRect(); + return ConverFromCPP_ImRect(self->GetBuildWorkRect()); } CIMGUI_API ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(void) { @@ -4111,17 +4206,17 @@ CIMGUI_API ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self,const ImRect { return self->GetIDFromRectangle(r_abs); } -CIMGUI_API void ImGuiWindow_Rect(ImRect *pOut,ImGuiWindow* self) +CIMGUI_API ImRect_c ImGuiWindow_Rect(ImGuiWindow* self) { - *pOut = self->Rect(); + return ConverFromCPP_ImRect(self->Rect()); } -CIMGUI_API void ImGuiWindow_TitleBarRect(ImRect *pOut,ImGuiWindow* self) +CIMGUI_API ImRect_c ImGuiWindow_TitleBarRect(ImGuiWindow* self) { - *pOut = self->TitleBarRect(); + return ConverFromCPP_ImRect(self->TitleBarRect()); } -CIMGUI_API void ImGuiWindow_MenuBarRect(ImRect *pOut,ImGuiWindow* self) +CIMGUI_API ImRect_c ImGuiWindow_MenuBarRect(ImGuiWindow* self) { - *pOut = self->MenuBarRect(); + return ConverFromCPP_ImRect(self->MenuBarRect()); } CIMGUI_API ImGuiTabItem* ImGuiTabItem_ImGuiTabItem(void) { @@ -4223,9 +4318,9 @@ CIMGUI_API void igUpdateWindowSkipRefresh(ImGuiWindow* window) { return ImGui::UpdateWindowSkipRefresh(window); } -CIMGUI_API void igCalcWindowNextAutoFitSize(ImVec2 *pOut,ImGuiWindow* window) +CIMGUI_API ImVec2_c igCalcWindowNextAutoFitSize(ImGuiWindow* window) { - *pOut = ImGui::CalcWindowNextAutoFitSize(window); + return ConverFromCPP_ImVec2(ImGui::CalcWindowNextAutoFitSize(window)); } CIMGUI_API bool igIsWindowChildOf(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy) { @@ -4267,21 +4362,21 @@ CIMGUI_API void igSetWindowParentWindowForFocusRoute(ImGuiWindow* window,ImGuiWi { return ImGui::SetWindowParentWindowForFocusRoute(window,parent_window); } -CIMGUI_API void igWindowRectAbsToRel(ImRect *pOut,ImGuiWindow* window,const ImRect r) +CIMGUI_API ImRect_c igWindowRectAbsToRel(ImGuiWindow* window,const ImRect r) { - *pOut = ImGui::WindowRectAbsToRel(window,r); + return ConverFromCPP_ImVec2(ImGui::WindowRectAbsToRel(window,r)); } -CIMGUI_API void igWindowRectRelToAbs(ImRect *pOut,ImGuiWindow* window,const ImRect r) +CIMGUI_API ImRect_c igWindowRectRelToAbs(ImGuiWindow* window,const ImRect r) { - *pOut = ImGui::WindowRectRelToAbs(window,r); + return ConverFromCPP_ImVec2(ImGui::WindowRectRelToAbs(window,r)); } -CIMGUI_API void igWindowPosAbsToRel(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p) +CIMGUI_API ImVec2_c igWindowPosAbsToRel(ImGuiWindow* window,const ImVec2 p) { - *pOut = ImGui::WindowPosAbsToRel(window,p); + return ConverFromCPP_ImVec2(ImGui::WindowPosAbsToRel(window,p)); } -CIMGUI_API void igWindowPosRelToAbs(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p) +CIMGUI_API ImVec2_c igWindowPosRelToAbs(ImGuiWindow* window,const ImVec2 p) { - *pOut = ImGui::WindowPosRelToAbs(window,p); + return ConverFromCPP_ImVec2(ImGui::WindowPosRelToAbs(window,p)); } CIMGUI_API void igFocusWindow(ImGuiWindow* window,ImGuiFocusRequestFlags flags) { @@ -4527,9 +4622,9 @@ CIMGUI_API void igScrollToRect(ImGuiWindow* window,const ImRect rect,ImGuiScroll { return ImGui::ScrollToRect(window,rect,flags); } -CIMGUI_API void igScrollToRectEx(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags) +CIMGUI_API ImVec2_c igScrollToRectEx(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags) { - *pOut = ImGui::ScrollToRectEx(window,rect,flags); + return ConverFromCPP_ImVec2(ImGui::ScrollToRectEx(window,rect,flags)); } CIMGUI_API void igScrollToBringRectIntoView(ImGuiWindow* window,const ImRect rect) { @@ -4619,9 +4714,9 @@ CIMGUI_API void igSetLastItemData(ImGuiID item_id,ImGuiItemFlags item_flags,ImGu { return ImGui::SetLastItemData(item_id,item_flags,status_flags,item_rect); } -CIMGUI_API void igCalcItemSize(ImVec2 *pOut,ImVec2 size,float default_w,float default_h) +CIMGUI_API ImVec2_c igCalcItemSize(ImVec2 size,float default_w,float default_h) { - *pOut = ImGui::CalcItemSize(size,default_w,default_h); + return ConverFromCPP_ImVec2(ImGui::CalcItemSize(size,default_w,default_h)); } CIMGUI_API float igCalcWrapWidthForPos(const ImVec2 pos,float wrap_pos_x) { @@ -4699,9 +4794,9 @@ CIMGUI_API bool igIsPopupOpen_ID(ImGuiID id,ImGuiPopupFlags popup_flags) { return ImGui::IsPopupOpen(id,popup_flags); } -CIMGUI_API void igGetPopupAllowedExtentRect(ImRect *pOut,ImGuiWindow* window) +CIMGUI_API ImRect_c igGetPopupAllowedExtentRect(ImGuiWindow* window) { - *pOut = ImGui::GetPopupAllowedExtentRect(window); + return ConverFromCPP_ImVec2(ImGui::GetPopupAllowedExtentRect(window)); } CIMGUI_API ImGuiWindow* igGetTopMostPopupModal() { @@ -4715,13 +4810,13 @@ CIMGUI_API ImGuiWindow* igFindBlockingModal(ImGuiWindow* window) { return ImGui::FindBlockingModal(window); } -CIMGUI_API void igFindBestWindowPosForPopup(ImVec2 *pOut,ImGuiWindow* window) +CIMGUI_API ImVec2_c igFindBestWindowPosForPopup(ImGuiWindow* window) { - *pOut = ImGui::FindBestWindowPosForPopup(window); + return ConverFromCPP_ImVec2(ImGui::FindBestWindowPosForPopup(window)); } -CIMGUI_API void igFindBestWindowPosForPopupEx(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy) +CIMGUI_API ImVec2_c igFindBestWindowPosForPopupEx(const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy) { - *pOut = ImGui::FindBestWindowPosForPopupEx(ref_pos,size,last_dir,r_outer,r_avoid,policy); + return ConverFromCPP_ImVec2(ImGui::FindBestWindowPosForPopupEx(ref_pos,size,last_dir,r_outer,r_avoid,policy)); } CIMGUI_API bool igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags) { @@ -4891,9 +4986,9 @@ CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_th { return ImGui::IsMouseDragPastThreshold(button,lock_threshold); } -CIMGUI_API void igGetKeyMagnitude2d(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down) +CIMGUI_API ImVec2_c igGetKeyMagnitude2d(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down) { - *pOut = ImGui::GetKeyMagnitude2d(key_left,key_right,key_up,key_down); + return ConverFromCPP_ImVec2(ImGui::GetKeyMagnitude2d(key_left,key_right,key_up,key_down)); } CIMGUI_API float igGetNavTweakPressedAmount(ImGuiAxis axis) { @@ -5427,9 +5522,9 @@ CIMGUI_API void igTableEndCell(ImGuiTable* table) { return ImGui::TableEndCell(table); } -CIMGUI_API void igTableGetCellBgRect(ImRect *pOut,const ImGuiTable* table,int column_n) +CIMGUI_API ImRect_c igTableGetCellBgRect(const ImGuiTable* table,int column_n) { - *pOut = ImGui::TableGetCellBgRect(table,column_n); + return ConverFromCPP_ImVec2(ImGui::TableGetCellBgRect(table,column_n)); } CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table,int column_n) { @@ -5575,13 +5670,13 @@ CIMGUI_API void igTabItemSpacing(const char* str_id,ImGuiTabItemFlags flags,floa { return ImGui::TabItemSpacing(str_id,flags,width); } -CIMGUI_API void igTabItemCalcSize_Str(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker) +CIMGUI_API ImVec2_c igTabItemCalcSize_Str(const char* label,bool has_close_button_or_unsaved_marker) { - *pOut = ImGui::TabItemCalcSize(label,has_close_button_or_unsaved_marker); + return ConverFromCPP_ImVec2(ImGui::TabItemCalcSize(label,has_close_button_or_unsaved_marker)); } -CIMGUI_API void igTabItemCalcSize_WindowPtr(ImVec2 *pOut,ImGuiWindow* window) +CIMGUI_API ImVec2_c igTabItemCalcSize_WindowPtr(ImGuiWindow* window) { - *pOut = ImGui::TabItemCalcSize(window); + return ConverFromCPP_ImVec2(ImGui::TabItemCalcSize(window)); } CIMGUI_API void igTabItemBackground(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col) { @@ -5732,9 +5827,9 @@ CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p { return ImGui::ScrollbarEx(bb,id,axis,p_scroll_v,avail_v,contents_v,draw_rounding_flags); } -CIMGUI_API void igGetWindowScrollbarRect(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis) +CIMGUI_API ImRect_c igGetWindowScrollbarRect(ImGuiWindow* window,ImGuiAxis axis) { - *pOut = ImGui::GetWindowScrollbarRect(window,axis); + return ConverFromCPP_ImVec2(ImGui::GetWindowScrollbarRect(window,axis)); } CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window,ImGuiAxis axis) { @@ -6148,9 +6243,9 @@ CIMGUI_API void igImFontAtlasTextureCompact(ImFontAtlas* atlas) { return ImFontAtlasTextureCompact(atlas); } -CIMGUI_API void igImFontAtlasTextureGetSizeEstimate(ImVec2i *pOut,ImFontAtlas* atlas) +CIMGUI_API ImVec2i_c igImFontAtlasTextureGetSizeEstimate(ImFontAtlas* atlas) { - *pOut = ImFontAtlasTextureGetSizeEstimate(atlas); + return ConverFromCPP_ImVec2(ImFontAtlasTextureGetSizeEstimate(atlas)); } CIMGUI_API void igImFontAtlasBuildSetupFontSpecialGlyphs(ImFontAtlas* atlas,ImFont* font,ImFontConfig* src) { diff --git a/cimgui.h b/cimgui.h index 5edeb28..baa8524 100644 --- a/cimgui.h +++ b/cimgui.h @@ -45,6 +45,45 @@ typedef unsigned __int64 ImU64; #endif #endif +#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS +typedef struct ImColor_c ImColor; +typedef struct ImRect_c ImRect; +typedef struct ImTextureRef_c ImTextureRef; +typedef struct ImVec2_c ImVec2; +typedef struct ImVec2i_c ImVec2i; +typedef struct ImVec4_c ImVec4; +#endif +typedef struct ImColor_c ImColor_c; +struct ImColor_c { + ImVec4 Value; +}; +typedef struct ImRect_c ImRect_c; +struct ImRect_c { + ImVec2 Min; + ImVec2 Max; +}; +typedef struct ImTextureRef_c ImTextureRef_c; +struct ImTextureRef_c { + ImTextureData* _TexData; + ImTextureID _TexID; +}; +typedef struct ImVec2_c ImVec2_c; +struct ImVec2_c { + float x; + float y; +}; +typedef struct ImVec2i_c ImVec2i_c; +struct ImVec2i_c { + int x; + int y; +}; +typedef struct ImVec4_c ImVec4_c; +struct ImVec4_c { + float x; + float y; + float z; + float w; +}; #ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS @@ -3937,8 +3976,8 @@ CIMGUI_API bool igIsWindowFocused(ImGuiFocusedFlags flags); CIMGUI_API bool igIsWindowHovered(ImGuiHoveredFlags flags); CIMGUI_API ImDrawList* igGetWindowDrawList(void); CIMGUI_API float igGetWindowDpiScale(void); -CIMGUI_API void igGetWindowPos(ImVec2 *pOut); -CIMGUI_API void igGetWindowSize(ImVec2 *pOut); +CIMGUI_API ImVec2_c igGetWindowPos(void); +CIMGUI_API ImVec2_c igGetWindowSize(void); CIMGUI_API float igGetWindowWidth(void); CIMGUI_API float igGetWindowHeight(void); CIMGUI_API ImGuiViewport* igGetWindowViewport(void); @@ -3990,21 +4029,21 @@ CIMGUI_API void igSetNextItemWidth(float item_width); CIMGUI_API float igCalcItemWidth(void); CIMGUI_API void igPushTextWrapPos(float wrap_local_pos_x); CIMGUI_API void igPopTextWrapPos(void); -CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2 *pOut); +CIMGUI_API ImVec2_c igGetFontTexUvWhitePixel(void); CIMGUI_API ImU32 igGetColorU32_Col(ImGuiCol idx,float alpha_mul); CIMGUI_API ImU32 igGetColorU32_Vec4(const ImVec4 col); CIMGUI_API ImU32 igGetColorU32_U32(ImU32 col,float alpha_mul); CIMGUI_API const ImVec4* igGetStyleColorVec4(ImGuiCol idx); -CIMGUI_API void igGetCursorScreenPos(ImVec2 *pOut); +CIMGUI_API ImVec2_c igGetCursorScreenPos(void); CIMGUI_API void igSetCursorScreenPos(const ImVec2 pos); -CIMGUI_API void igGetContentRegionAvail(ImVec2 *pOut); -CIMGUI_API void igGetCursorPos(ImVec2 *pOut); +CIMGUI_API ImVec2_c igGetContentRegionAvail(void); +CIMGUI_API ImVec2_c igGetCursorPos(void); CIMGUI_API float igGetCursorPosX(void); CIMGUI_API float igGetCursorPosY(void); CIMGUI_API void igSetCursorPos(const ImVec2 local_pos); CIMGUI_API void igSetCursorPosX(float local_x); CIMGUI_API void igSetCursorPosY(float local_y); -CIMGUI_API void igGetCursorStartPos(ImVec2 *pOut); +CIMGUI_API ImVec2_c igGetCursorStartPos(void); CIMGUI_API void igSeparator(void); CIMGUI_API void igSameLine(float offset_from_start_x,float spacing); CIMGUI_API void igNewLine(void); @@ -4285,9 +4324,9 @@ CIMGUI_API bool igIsAnyItemHovered(void); CIMGUI_API bool igIsAnyItemActive(void); CIMGUI_API bool igIsAnyItemFocused(void); CIMGUI_API ImGuiID igGetItemID(void); -CIMGUI_API void igGetItemRectMin(ImVec2 *pOut); -CIMGUI_API void igGetItemRectMax(ImVec2 *pOut); -CIMGUI_API void igGetItemRectSize(ImVec2 *pOut); +CIMGUI_API ImVec2_c igGetItemRectMin(void); +CIMGUI_API ImVec2_c igGetItemRectMax(void); +CIMGUI_API ImVec2_c igGetItemRectSize(void); CIMGUI_API ImGuiViewport* igGetMainViewport(void); CIMGUI_API ImDrawList* igGetBackgroundDrawList(ImGuiViewport* viewport); CIMGUI_API ImDrawList* igGetForegroundDrawList_ViewportPtr(ImGuiViewport* viewport); @@ -4299,8 +4338,8 @@ CIMGUI_API ImDrawListSharedData* igGetDrawListSharedData(void); CIMGUI_API const char* igGetStyleColorName(ImGuiCol idx); CIMGUI_API void igSetStateStorage(ImGuiStorage* storage); CIMGUI_API ImGuiStorage* igGetStateStorage(void); -CIMGUI_API void igCalcTextSize(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width); -CIMGUI_API void igColorConvertU32ToFloat4(ImVec4 *pOut,ImU32 in); +CIMGUI_API ImVec2_c igCalcTextSize(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width); +CIMGUI_API ImVec4_c igColorConvertU32ToFloat4(ImU32 in); CIMGUI_API ImU32 igColorConvertFloat4ToU32(const ImVec4 in); CIMGUI_API void igColorConvertRGBtoHSV(float r,float g,float b,float* out_h,float* out_s,float* out_v); CIMGUI_API void igColorConvertHSVtoRGB(float h,float s,float v,float* out_r,float* out_g,float* out_b); @@ -4323,10 +4362,10 @@ CIMGUI_API int igGetMouseClickedCount(ImGuiMouseButton button); CIMGUI_API bool igIsMouseHoveringRect(const ImVec2 r_min,const ImVec2 r_max,bool clip); CIMGUI_API bool igIsMousePosValid(const ImVec2* mouse_pos); CIMGUI_API bool igIsAnyMouseDown(void); -CIMGUI_API void igGetMousePos(ImVec2 *pOut); -CIMGUI_API void igGetMousePosOnOpeningCurrentPopup(ImVec2 *pOut); +CIMGUI_API ImVec2_c igGetMousePos(void); +CIMGUI_API ImVec2_c igGetMousePosOnOpeningCurrentPopup(void); CIMGUI_API bool igIsMouseDragging(ImGuiMouseButton button,float lock_threshold); -CIMGUI_API void igGetMouseDragDelta(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold); +CIMGUI_API ImVec2_c igGetMouseDragDelta(ImGuiMouseButton button,float lock_threshold); CIMGUI_API void igResetMouseDragDelta(ImGuiMouseButton button); CIMGUI_API ImGuiMouseCursor igGetMouseCursor(void); CIMGUI_API void igSetMouseCursor(ImGuiMouseCursor cursor_type); @@ -4455,7 +4494,7 @@ CIMGUI_API ImColor* ImColor_ImColor_Vec4(const ImVec4 col); CIMGUI_API ImColor* ImColor_ImColor_Int(int r,int g,int b,int a); CIMGUI_API ImColor* ImColor_ImColor_U32(ImU32 rgba); CIMGUI_API void ImColor_SetHSV(ImColor* self,float h,float s,float v,float a); -CIMGUI_API void ImColor_HSV(ImColor *pOut,float h,float s,float v,float a); +CIMGUI_API ImColor_c ImColor_HSV(float h,float s,float v,float a); CIMGUI_API ImGuiSelectionBasicStorage* ImGuiSelectionBasicStorage_ImGuiSelectionBasicStorage(void); CIMGUI_API void ImGuiSelectionBasicStorage_destroy(ImGuiSelectionBasicStorage* self); CIMGUI_API void ImGuiSelectionBasicStorage_ApplyRequests(ImGuiSelectionBasicStorage* self,ImGuiMultiSelectIO* ms_io); @@ -4485,8 +4524,8 @@ CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self); CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self); CIMGUI_API void ImDrawList_PushTexture(ImDrawList* self,ImTextureRef tex_ref); CIMGUI_API void ImDrawList_PopTexture(ImDrawList* self); -CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self); -CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self); +CIMGUI_API ImVec2_c ImDrawList_GetClipRectMin(ImDrawList* self); +CIMGUI_API ImVec2_c ImDrawList_GetClipRectMax(ImDrawList* self); CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness); CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness); CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags); @@ -4563,7 +4602,7 @@ CIMGUI_API void* ImTextureData_GetPixels(ImTextureData* self); CIMGUI_API void* ImTextureData_GetPixelsAt(ImTextureData* self,int x,int y); CIMGUI_API int ImTextureData_GetSizeInBytes(ImTextureData* self); CIMGUI_API int ImTextureData_GetPitch(ImTextureData* self); -CIMGUI_API void ImTextureData_GetTexRef(ImTextureRef *pOut,ImTextureData* self); +CIMGUI_API ImTextureRef_c ImTextureData_GetTexRef(ImTextureData* self); CIMGUI_API ImTextureID ImTextureData_GetTexID(ImTextureData* self); CIMGUI_API void ImTextureData_SetTexID(ImTextureData* self,ImTextureID tex_id); CIMGUI_API void ImTextureData_SetStatus(ImTextureData* self,ImTextureStatus status); @@ -4614,7 +4653,7 @@ CIMGUI_API bool ImFont_IsGlyphInFont(ImFont* self,ImWchar c); CIMGUI_API bool ImFont_IsLoaded(ImFont* self); CIMGUI_API const char* ImFont_GetDebugName(ImFont* self); CIMGUI_API ImFontBaked* ImFont_GetFontBaked(ImFont* self,float font_size,float density); -CIMGUI_API void ImFont_CalcTextSizeA(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** out_remaining); +CIMGUI_API ImVec2_c ImFont_CalcTextSizeA(ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** out_remaining); CIMGUI_API const char* ImFont_CalcWordWrapPosition(ImFont* self,float size,const char* text,const char* text_end,float wrap_width); CIMGUI_API void ImFont_RenderChar(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,ImWchar c,const ImVec4* cpu_fine_clip); CIMGUI_API void ImFont_RenderText(ImFont* self,ImDrawList* draw_list,float size,const ImVec2 pos,ImU32 col,const ImVec4 clip_rect,const char* text_begin,const char* text_end,float wrap_width,ImDrawTextFlags flags); @@ -4623,8 +4662,8 @@ CIMGUI_API void ImFont_AddRemapChar(ImFont* self,ImWchar from_codepoint,ImWchar CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self,unsigned int c_begin,unsigned int c_last); CIMGUI_API ImGuiViewport* ImGuiViewport_ImGuiViewport(void); CIMGUI_API void ImGuiViewport_destroy(ImGuiViewport* self); -CIMGUI_API void ImGuiViewport_GetCenter(ImVec2 *pOut,ImGuiViewport* self); -CIMGUI_API void ImGuiViewport_GetWorkCenter(ImVec2 *pOut,ImGuiViewport* self); +CIMGUI_API ImVec2_c ImGuiViewport_GetCenter(ImGuiViewport* self); +CIMGUI_API ImVec2_c ImGuiViewport_GetWorkCenter(ImGuiViewport* self); CIMGUI_API ImGuiPlatformIO* ImGuiPlatformIO_ImGuiPlatformIO(void); CIMGUI_API void ImGuiPlatformIO_destroy(ImGuiPlatformIO* self); CIMGUI_API void ImGuiPlatformIO_ClearPlatformHandlers(ImGuiPlatformIO* self); @@ -4684,7 +4723,7 @@ CIMGUI_API int igImTextCountUtf8BytesFromChar(const char* in_text,const char* in CIMGUI_API int igImTextCountUtf8BytesFromStr(const ImWchar* in_text,const ImWchar* in_text_end); CIMGUI_API const char* igImTextFindPreviousUtf8Codepoint(const char* in_text_start,const char* in_text_curr); CIMGUI_API int igImTextCountLines(const char* in_text,const char* in_text_end); -CIMGUI_API void igImFontCalcTextSizeEx(ImVec2 *pOut,ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags); +CIMGUI_API ImVec2_c igImFontCalcTextSizeEx(ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags); CIMGUI_API const char* igImFontCalcWordWrapPositionEx(ImFont* font,float size,const char* text,const char* text_end,float wrap_width,ImDrawTextFlags flags); CIMGUI_API const char* igImTextCalcWordWrapNextLineStart(const char* text,const char* text_end,ImDrawTextFlags flags); CIMGUI_API ImFileHandle igImFileOpen(const char* filename,const char* mode); @@ -4704,37 +4743,37 @@ CIMGUI_API float igImSign_Float(float x); CIMGUI_API double igImSign_double(double x); CIMGUI_API float igImRsqrt_Float(float x); CIMGUI_API double igImRsqrt_double(double x); -CIMGUI_API void igImMin(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); -CIMGUI_API void igImMax(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); -CIMGUI_API void igImClamp(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,const ImVec2 mx); -CIMGUI_API void igImLerp_Vec2Float(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t); -CIMGUI_API void igImLerp_Vec2Vec2(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t); -CIMGUI_API void igImLerp_Vec4(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t); +CIMGUI_API ImVec2_c igImMin(const ImVec2 lhs,const ImVec2 rhs); +CIMGUI_API ImVec2_c igImMax(const ImVec2 lhs,const ImVec2 rhs); +CIMGUI_API ImVec2_c igImClamp(const ImVec2 v,const ImVec2 mn,const ImVec2 mx); +CIMGUI_API ImVec2_c igImLerp_Vec2Float(const ImVec2 a,const ImVec2 b,float t); +CIMGUI_API ImVec2_c igImLerp_Vec2Vec2(const ImVec2 a,const ImVec2 b,const ImVec2 t); +CIMGUI_API ImVec4_c igImLerp_Vec4(const ImVec4 a,const ImVec4 b,float t); CIMGUI_API float igImSaturate(float f); CIMGUI_API float igImLengthSqr_Vec2(const ImVec2 lhs); CIMGUI_API float igImLengthSqr_Vec4(const ImVec4 lhs); CIMGUI_API float igImInvLength(const ImVec2 lhs,float fail_value); CIMGUI_API float igImTrunc_Float(float f); -CIMGUI_API void igImTrunc_Vec2(ImVec2 *pOut,const ImVec2 v); +CIMGUI_API ImVec2_c igImTrunc_Vec2(const ImVec2 v); CIMGUI_API float igImFloor_Float(float f); -CIMGUI_API void igImFloor_Vec2(ImVec2 *pOut,const ImVec2 v); +CIMGUI_API ImVec2_c igImFloor_Vec2(const ImVec2 v); CIMGUI_API float igImTrunc64(float f); CIMGUI_API float igImRound64(float f); CIMGUI_API int igImModPositive(int a,int b); CIMGUI_API float igImDot(const ImVec2 a,const ImVec2 b); -CIMGUI_API void igImRotate(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a); +CIMGUI_API ImVec2_c igImRotate(const ImVec2 v,float cos_a,float sin_a); CIMGUI_API float igImLinearSweep(float current,float target,float speed); CIMGUI_API float igImLinearRemapClamp(float s0,float s1,float d0,float d1,float x); -CIMGUI_API void igImMul(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs); +CIMGUI_API ImVec2_c igImMul(const ImVec2 lhs,const ImVec2 rhs); CIMGUI_API bool igImIsFloatAboveGuaranteedIntegerPrecision(float f); CIMGUI_API float igImExponentialMovingAverage(float avg,float sample,int n); -CIMGUI_API void igImBezierCubicCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t); -CIMGUI_API void igImBezierCubicClosestPoint(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments); -CIMGUI_API void igImBezierCubicClosestPointCasteljau(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol); -CIMGUI_API void igImBezierQuadraticCalc(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t); -CIMGUI_API void igImLineClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p); +CIMGUI_API ImVec2_c igImBezierCubicCalc(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t); +CIMGUI_API ImVec2_c igImBezierCubicClosestPoint(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments); +CIMGUI_API ImVec2_c igImBezierCubicClosestPointCasteljau(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol); +CIMGUI_API ImVec2_c igImBezierQuadraticCalc(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t); +CIMGUI_API ImVec2_c igImLineClosestPoint(const ImVec2 a,const ImVec2 b,const ImVec2 p); CIMGUI_API bool igImTriangleContainsPoint(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p); -CIMGUI_API void igImTriangleClosestPoint(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p); +CIMGUI_API ImVec2_c igImTriangleClosestPoint(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p); CIMGUI_API void igImTriangleBarycentricCoords(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p,float* out_u,float* out_v,float* out_w); CIMGUI_API float igImTriangleArea(const ImVec2 a,const ImVec2 b,const ImVec2 c); CIMGUI_API bool igImTriangleIsClockwise(const ImVec2 a,const ImVec2 b,const ImVec2 c); @@ -4753,15 +4792,15 @@ CIMGUI_API void ImRect_destroy(ImRect* self); CIMGUI_API ImRect* ImRect_ImRect_Vec2(const ImVec2 min,const ImVec2 max); CIMGUI_API ImRect* ImRect_ImRect_Vec4(const ImVec4 v); CIMGUI_API ImRect* ImRect_ImRect_Float(float x1,float y1,float x2,float y2); -CIMGUI_API void ImRect_GetCenter(ImVec2 *pOut,ImRect* self); -CIMGUI_API void ImRect_GetSize(ImVec2 *pOut,ImRect* self); +CIMGUI_API ImVec2_c ImRect_GetCenter(ImRect* self); +CIMGUI_API ImVec2_c ImRect_GetSize(ImRect* self); CIMGUI_API float ImRect_GetWidth(ImRect* self); CIMGUI_API float ImRect_GetHeight(ImRect* self); CIMGUI_API float ImRect_GetArea(ImRect* self); -CIMGUI_API void ImRect_GetTL(ImVec2 *pOut,ImRect* self); -CIMGUI_API void ImRect_GetTR(ImVec2 *pOut,ImRect* self); -CIMGUI_API void ImRect_GetBL(ImVec2 *pOut,ImRect* self); -CIMGUI_API void ImRect_GetBR(ImVec2 *pOut,ImRect* self); +CIMGUI_API ImVec2_c ImRect_GetTL(ImRect* self); +CIMGUI_API ImVec2_c ImRect_GetTR(ImRect* self); +CIMGUI_API ImVec2_c ImRect_GetBL(ImRect* self); +CIMGUI_API ImVec2_c ImRect_GetBR(ImRect* self); CIMGUI_API bool ImRect_Contains_Vec2(ImRect* self,const ImVec2 p); CIMGUI_API bool ImRect_Contains_Rect(ImRect* self,const ImRect r); CIMGUI_API bool ImRect_ContainsWithPad(ImRect* self,const ImVec2 p,const ImVec2 pad); @@ -4777,7 +4816,7 @@ CIMGUI_API void ImRect_ClipWith(ImRect* self,const ImRect r); CIMGUI_API void ImRect_ClipWithFull(ImRect* self,const ImRect r); CIMGUI_API void ImRect_Floor(ImRect* self); CIMGUI_API bool ImRect_IsInverted(ImRect* self); -CIMGUI_API void ImRect_ToVec4(ImVec4 *pOut,ImRect* self); +CIMGUI_API ImVec4_c ImRect_ToVec4(ImRect* self); CIMGUI_API const ImVec4* ImRect_AsVec4(ImRect* self); CIMGUI_API size_t igImBitArrayGetStorageSizeInBytes(int bitcount); CIMGUI_API void igImBitArrayClearAllBits(ImU32* arr,int bitcount); @@ -4892,7 +4931,7 @@ CIMGUI_API bool ImGuiDockNode_IsNoTabBar(ImGuiDockNode* self); CIMGUI_API bool ImGuiDockNode_IsSplitNode(ImGuiDockNode* self); CIMGUI_API bool ImGuiDockNode_IsLeafNode(ImGuiDockNode* self); CIMGUI_API bool ImGuiDockNode_IsEmpty(ImGuiDockNode* self); -CIMGUI_API void ImGuiDockNode_Rect(ImRect *pOut,ImGuiDockNode* self); +CIMGUI_API ImRect_c ImGuiDockNode_Rect(ImGuiDockNode* self); CIMGUI_API void ImGuiDockNode_SetLocalFlags(ImGuiDockNode* self,ImGuiDockNodeFlags flags); CIMGUI_API void ImGuiDockNode_UpdateMergedFlags(ImGuiDockNode* self); CIMGUI_API ImGuiDockContext* ImGuiDockContext_ImGuiDockContext(void); @@ -4900,12 +4939,12 @@ CIMGUI_API void ImGuiDockContext_destroy(ImGuiDockContext* self); CIMGUI_API ImGuiViewportP* ImGuiViewportP_ImGuiViewportP(void); CIMGUI_API void ImGuiViewportP_destroy(ImGuiViewportP* self); CIMGUI_API void ImGuiViewportP_ClearRequestFlags(ImGuiViewportP* self); -CIMGUI_API void ImGuiViewportP_CalcWorkRectPos(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 inset_min); -CIMGUI_API void ImGuiViewportP_CalcWorkRectSize(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 inset_min,const ImVec2 inset_max); +CIMGUI_API ImVec2_c ImGuiViewportP_CalcWorkRectPos(ImGuiViewportP* self,const ImVec2 inset_min); +CIMGUI_API ImVec2_c ImGuiViewportP_CalcWorkRectSize(ImGuiViewportP* self,const ImVec2 inset_min,const ImVec2 inset_max); CIMGUI_API void ImGuiViewportP_UpdateWorkRect(ImGuiViewportP* self); -CIMGUI_API void ImGuiViewportP_GetMainRect(ImRect *pOut,ImGuiViewportP* self); -CIMGUI_API void ImGuiViewportP_GetWorkRect(ImRect *pOut,ImGuiViewportP* self); -CIMGUI_API void ImGuiViewportP_GetBuildWorkRect(ImRect *pOut,ImGuiViewportP* self); +CIMGUI_API ImRect_c ImGuiViewportP_GetMainRect(ImGuiViewportP* self); +CIMGUI_API ImRect_c ImGuiViewportP_GetWorkRect(ImGuiViewportP* self); +CIMGUI_API ImRect_c ImGuiViewportP_GetBuildWorkRect(ImGuiViewportP* self); CIMGUI_API ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(void); CIMGUI_API void ImGuiWindowSettings_destroy(ImGuiWindowSettings* self); CIMGUI_API char* ImGuiWindowSettings_GetName(ImGuiWindowSettings* self); @@ -4928,9 +4967,9 @@ CIMGUI_API ImGuiID ImGuiWindow_GetID_Ptr(ImGuiWindow* self,const void* ptr); CIMGUI_API ImGuiID ImGuiWindow_GetID_Int(ImGuiWindow* self,int n); CIMGUI_API ImGuiID ImGuiWindow_GetIDFromPos(ImGuiWindow* self,const ImVec2 p_abs); CIMGUI_API ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self,const ImRect r_abs); -CIMGUI_API void ImGuiWindow_Rect(ImRect *pOut,ImGuiWindow* self); -CIMGUI_API void ImGuiWindow_TitleBarRect(ImRect *pOut,ImGuiWindow* self); -CIMGUI_API void ImGuiWindow_MenuBarRect(ImRect *pOut,ImGuiWindow* self); +CIMGUI_API ImRect_c ImGuiWindow_Rect(ImGuiWindow* self); +CIMGUI_API ImRect_c ImGuiWindow_TitleBarRect(ImGuiWindow* self); +CIMGUI_API ImRect_c ImGuiWindow_MenuBarRect(ImGuiWindow* self); CIMGUI_API ImGuiTabItem* ImGuiTabItem_ImGuiTabItem(void); CIMGUI_API void ImGuiTabItem_destroy(ImGuiTabItem* self); CIMGUI_API ImGuiTabBar* ImGuiTabBar_ImGuiTabBar(void); @@ -4956,7 +4995,7 @@ CIMGUI_API ImGuiWindow* igFindWindowByID(ImGuiID id); CIMGUI_API ImGuiWindow* igFindWindowByName(const char* name); CIMGUI_API void igUpdateWindowParentAndRootLinks(ImGuiWindow* window,ImGuiWindowFlags flags,ImGuiWindow* parent_window); CIMGUI_API void igUpdateWindowSkipRefresh(ImGuiWindow* window); -CIMGUI_API void igCalcWindowNextAutoFitSize(ImVec2 *pOut,ImGuiWindow* window); +CIMGUI_API ImVec2_c igCalcWindowNextAutoFitSize(ImGuiWindow* window); CIMGUI_API bool igIsWindowChildOf(ImGuiWindow* window,ImGuiWindow* potential_parent,bool popup_hierarchy,bool dock_hierarchy); CIMGUI_API bool igIsWindowWithinBeginStackOf(ImGuiWindow* window,ImGuiWindow* potential_parent); CIMGUI_API bool igIsWindowAbove(ImGuiWindow* potential_above,ImGuiWindow* potential_below); @@ -4967,10 +5006,10 @@ CIMGUI_API void igSetWindowCollapsed_WindowPtr(ImGuiWindow* window,bool collapse CIMGUI_API void igSetWindowHitTestHole(ImGuiWindow* window,const ImVec2 pos,const ImVec2 size); CIMGUI_API void igSetWindowHiddenAndSkipItemsForCurrentFrame(ImGuiWindow* window); CIMGUI_API void igSetWindowParentWindowForFocusRoute(ImGuiWindow* window,ImGuiWindow* parent_window); -CIMGUI_API void igWindowRectAbsToRel(ImRect *pOut,ImGuiWindow* window,const ImRect r); -CIMGUI_API void igWindowRectRelToAbs(ImRect *pOut,ImGuiWindow* window,const ImRect r); -CIMGUI_API void igWindowPosAbsToRel(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p); -CIMGUI_API void igWindowPosRelToAbs(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p); +CIMGUI_API ImRect_c igWindowRectAbsToRel(ImGuiWindow* window,const ImRect r); +CIMGUI_API ImRect_c igWindowRectRelToAbs(ImGuiWindow* window,const ImRect r); +CIMGUI_API ImVec2_c igWindowPosAbsToRel(ImGuiWindow* window,const ImVec2 p); +CIMGUI_API ImVec2_c igWindowPosRelToAbs(ImGuiWindow* window,const ImVec2 p); CIMGUI_API void igFocusWindow(ImGuiWindow* window,ImGuiFocusRequestFlags flags); CIMGUI_API void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window,ImGuiWindow* ignore_window,ImGuiViewport* filter_viewport,ImGuiFocusRequestFlags flags); CIMGUI_API void igBringWindowToFocusFront(ImGuiWindow* window); @@ -5032,7 +5071,7 @@ CIMGUI_API void igSetScrollFromPosX_WindowPtr(ImGuiWindow* window,float local_x, CIMGUI_API void igSetScrollFromPosY_WindowPtr(ImGuiWindow* window,float local_y,float center_y_ratio); CIMGUI_API void igScrollToItem(ImGuiScrollFlags flags); CIMGUI_API void igScrollToRect(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); -CIMGUI_API void igScrollToRectEx(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); +CIMGUI_API ImVec2_c igScrollToRectEx(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags); CIMGUI_API void igScrollToBringRectIntoView(ImGuiWindow* window,const ImRect rect); CIMGUI_API ImGuiItemStatusFlags igGetItemStatusFlags(void); CIMGUI_API ImGuiItemFlags igGetItemFlags(void); @@ -5055,7 +5094,7 @@ CIMGUI_API bool igItemHoverable(const ImRect bb,ImGuiID id,ImGuiItemFlags item_f CIMGUI_API bool igIsWindowContentHoverable(ImGuiWindow* window,ImGuiHoveredFlags flags); CIMGUI_API bool igIsClippedEx(const ImRect bb,ImGuiID id); CIMGUI_API void igSetLastItemData(ImGuiID item_id,ImGuiItemFlags item_flags,ImGuiItemStatusFlags status_flags,const ImRect item_rect); -CIMGUI_API void igCalcItemSize(ImVec2 *pOut,ImVec2 size,float default_w,float default_h); +CIMGUI_API ImVec2_c igCalcItemSize(ImVec2 size,float default_w,float default_h); CIMGUI_API float igCalcWrapWidthForPos(const ImVec2 pos,float wrap_pos_x); CIMGUI_API void igPushMultiItemsWidths(int components,float width_full); CIMGUI_API void igShrinkWidths(ImGuiShrinkWidthItem* items,int count,float width_excess,float width_min); @@ -5075,12 +5114,12 @@ CIMGUI_API void igClosePopupToLevel(int remaining,bool restore_focus_to_window_u CIMGUI_API void igClosePopupsOverWindow(ImGuiWindow* ref_window,bool restore_focus_to_window_under_popup); CIMGUI_API void igClosePopupsExceptModals(void); CIMGUI_API bool igIsPopupOpen_ID(ImGuiID id,ImGuiPopupFlags popup_flags); -CIMGUI_API void igGetPopupAllowedExtentRect(ImRect *pOut,ImGuiWindow* window); +CIMGUI_API ImRect_c igGetPopupAllowedExtentRect(ImGuiWindow* window); CIMGUI_API ImGuiWindow* igGetTopMostPopupModal(void); CIMGUI_API ImGuiWindow* igGetTopMostAndVisiblePopupModal(void); CIMGUI_API ImGuiWindow* igFindBlockingModal(ImGuiWindow* window); -CIMGUI_API void igFindBestWindowPosForPopup(ImVec2 *pOut,ImGuiWindow* window); -CIMGUI_API void igFindBestWindowPosForPopupEx(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy); +CIMGUI_API ImVec2_c igFindBestWindowPosForPopup(ImGuiWindow* window); +CIMGUI_API ImVec2_c igFindBestWindowPosForPopupEx(const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy); CIMGUI_API bool igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags,ImGuiWindowFlags extra_window_flags); CIMGUI_API bool igBeginTooltipHidden(void); CIMGUI_API bool igBeginViewportSideBar(const char* name,ImGuiViewport* viewport,ImGuiDir dir,float size,ImGuiWindowFlags window_flags); @@ -5123,7 +5162,7 @@ CIMGUI_API ImGuiKeyData* igGetKeyData_Key(ImGuiKey key); CIMGUI_API const char* igGetKeyChordName(ImGuiKeyChord key_chord); CIMGUI_API ImGuiKey igMouseButtonToKey(ImGuiMouseButton button); CIMGUI_API bool igIsMouseDragPastThreshold(ImGuiMouseButton button,float lock_threshold); -CIMGUI_API void igGetKeyMagnitude2d(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down); +CIMGUI_API ImVec2_c igGetKeyMagnitude2d(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down); CIMGUI_API float igGetNavTweakPressedAmount(ImGuiAxis axis); CIMGUI_API int igCalcTypematicRepeatAmount(float t0,float t1,float repeat_delay,float repeat_rate); CIMGUI_API void igGetTypematicRepeatRate(ImGuiInputFlags flags,float* repeat_delay,float* repeat_rate); @@ -5257,7 +5296,7 @@ CIMGUI_API void igTableBeginRow(ImGuiTable* table); CIMGUI_API void igTableEndRow(ImGuiTable* table); CIMGUI_API void igTableBeginCell(ImGuiTable* table,int column_n); CIMGUI_API void igTableEndCell(ImGuiTable* table); -CIMGUI_API void igTableGetCellBgRect(ImRect *pOut,const ImGuiTable* table,int column_n); +CIMGUI_API ImRect_c igTableGetCellBgRect(const ImGuiTable* table,int column_n); CIMGUI_API const char* igTableGetColumnName_TablePtr(const ImGuiTable* table,int column_n); CIMGUI_API ImGuiID igTableGetColumnResizeID(ImGuiTable* table,int column_n,int instance_no); CIMGUI_API float igTableCalcMaxColumnWidth(const ImGuiTable* table,int column_n); @@ -5294,8 +5333,8 @@ CIMGUI_API void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar,ImGuiTabIt CIMGUI_API bool igTabBarProcessReorder(ImGuiTabBar* tab_bar); CIMGUI_API bool igTabItemEx(ImGuiTabBar* tab_bar,const char* label,bool* p_open,ImGuiTabItemFlags flags,ImGuiWindow* docked_window); CIMGUI_API void igTabItemSpacing(const char* str_id,ImGuiTabItemFlags flags,float width); -CIMGUI_API void igTabItemCalcSize_Str(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker); -CIMGUI_API void igTabItemCalcSize_WindowPtr(ImVec2 *pOut,ImGuiWindow* window); +CIMGUI_API ImVec2_c igTabItemCalcSize_Str(const char* label,bool has_close_button_or_unsaved_marker); +CIMGUI_API ImVec2_c igTabItemCalcSize_WindowPtr(ImGuiWindow* window); CIMGUI_API void igTabItemBackground(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImU32 col); CIMGUI_API void igTabItemLabelAndCloseButton(ImDrawList* draw_list,const ImRect bb,ImGuiTabItemFlags flags,ImVec2 frame_padding,const char* label,ImGuiID tab_id,ImGuiID close_button_id,bool is_contents_visible,bool* out_just_closed,bool* out_text_clipped); CIMGUI_API void igRenderText(ImVec2 pos,const char* text,const char* text_end,bool hide_text_after_hash); @@ -5334,7 +5373,7 @@ CIMGUI_API bool igCloseButton(ImGuiID id,const ImVec2 pos); CIMGUI_API bool igCollapseButton(ImGuiID id,const ImVec2 pos,ImGuiDockNode* dock_node); CIMGUI_API void igScrollbar(ImGuiAxis axis); CIMGUI_API bool igScrollbarEx(const ImRect bb,ImGuiID id,ImGuiAxis axis,ImS64* p_scroll_v,ImS64 avail_v,ImS64 contents_v,ImDrawFlags draw_rounding_flags); -CIMGUI_API void igGetWindowScrollbarRect(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis); +CIMGUI_API ImRect_c igGetWindowScrollbarRect(ImGuiWindow* window,ImGuiAxis axis); CIMGUI_API ImGuiID igGetWindowScrollbarID(ImGuiWindow* window,ImGuiAxis axis); CIMGUI_API ImGuiID igGetWindowResizeCornerID(ImGuiWindow* window,int n); CIMGUI_API ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window,ImGuiDir dir); @@ -5438,7 +5477,7 @@ CIMGUI_API void igImFontAtlasTextureMakeSpace(ImFontAtlas* atlas); CIMGUI_API void igImFontAtlasTextureRepack(ImFontAtlas* atlas,int w,int h); CIMGUI_API void igImFontAtlasTextureGrow(ImFontAtlas* atlas,int old_w,int old_h); CIMGUI_API void igImFontAtlasTextureCompact(ImFontAtlas* atlas); -CIMGUI_API void igImFontAtlasTextureGetSizeEstimate(ImVec2i *pOut,ImFontAtlas* atlas); +CIMGUI_API ImVec2i_c igImFontAtlasTextureGetSizeEstimate(ImFontAtlas* atlas); CIMGUI_API void igImFontAtlasBuildSetupFontSpecialGlyphs(ImFontAtlas* atlas,ImFont* font,ImFontConfig* src); CIMGUI_API void igImFontAtlasBuildLegacyPreloadAllGlyphRanges(ImFontAtlas* atlas); CIMGUI_API void igImFontAtlasBuildGetOversampleFactors(ImFontConfig* src,ImFontBaked* baked,int* out_oversample_h,int* out_oversample_v); diff --git a/cimgui_impl.h b/cimgui_impl.h index 931b047..b132d06 100644 --- a/cimgui_impl.h +++ b/cimgui_impl.h @@ -8,44 +8,44 @@ typedef struct GLFWmonitor GLFWmonitor; struct GLFWwindow; struct GLFWmonitor; #endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS -CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks); -CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks); -CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks); -CIMGUI_API void ImGui_ImplGlfw_Shutdown(void); -CIMGUI_API void ImGui_ImplGlfw_NewFrame(void); -CIMGUI_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window); -CIMGUI_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window); -CIMGUI_API void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows); -CIMGUI_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window,int focused); +CIMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window,unsigned int c); CIMGUI_API void ImGui_ImplGlfw_CursorEnterCallback(GLFWwindow* window,int entered); CIMGUI_API void ImGui_ImplGlfw_CursorPosCallback(GLFWwindow* window,double x,double y); -CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods); -CIMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window,double xoffset,double yoffset); -CIMGUI_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window,int key,int scancode,int action,int mods); -CIMGUI_API void ImGui_ImplGlfw_CharCallback(GLFWwindow* window,unsigned int c); -CIMGUI_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor,int event); -CIMGUI_API void ImGui_ImplGlfw_Sleep(int milliseconds); -CIMGUI_API float ImGui_ImplGlfw_GetContentScaleForWindow(GLFWwindow* window); CIMGUI_API float ImGui_ImplGlfw_GetContentScaleForMonitor(GLFWmonitor* monitor); +CIMGUI_API float ImGui_ImplGlfw_GetContentScaleForWindow(GLFWwindow* window); +CIMGUI_API bool ImGui_ImplGlfw_InitForOpenGL(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForOther(GLFWwindow* window,bool install_callbacks); +CIMGUI_API bool ImGui_ImplGlfw_InitForVulkan(GLFWwindow* window,bool install_callbacks); +CIMGUI_API void ImGui_ImplGlfw_InstallCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window,int key,int scancode,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_MonitorCallback(GLFWmonitor* monitor,int event); +CIMGUI_API void ImGui_ImplGlfw_MouseButtonCallback(GLFWwindow* window,int button,int action,int mods); +CIMGUI_API void ImGui_ImplGlfw_NewFrame(void); +CIMGUI_API void ImGui_ImplGlfw_RestoreCallbacks(GLFWwindow* window); +CIMGUI_API void ImGui_ImplGlfw_ScrollCallback(GLFWwindow* window,double xoffset,double yoffset); +CIMGUI_API void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows); +CIMGUI_API void ImGui_ImplGlfw_Shutdown(void); +CIMGUI_API void ImGui_ImplGlfw_Sleep(int milliseconds); +CIMGUI_API void ImGui_ImplGlfw_WindowFocusCallback(GLFWwindow* window,int focused); #endif #ifdef CIMGUI_USE_OPENGL3 -CIMGUI_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version); -CIMGUI_API void ImGui_ImplOpenGL3_Shutdown(void); -CIMGUI_API void ImGui_ImplOpenGL3_NewFrame(void); -CIMGUI_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); CIMGUI_API bool ImGui_ImplOpenGL3_CreateDeviceObjects(void); CIMGUI_API void ImGui_ImplOpenGL3_DestroyDeviceObjects(void); +CIMGUI_API bool ImGui_ImplOpenGL3_Init(const char* glsl_version); +CIMGUI_API void ImGui_ImplOpenGL3_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL3_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API void ImGui_ImplOpenGL3_Shutdown(void); CIMGUI_API void ImGui_ImplOpenGL3_UpdateTexture(ImTextureData* tex); #endif #ifdef CIMGUI_USE_OPENGL2 -CIMGUI_API bool ImGui_ImplOpenGL2_Init(void); -CIMGUI_API void ImGui_ImplOpenGL2_Shutdown(void); -CIMGUI_API void ImGui_ImplOpenGL2_NewFrame(void); -CIMGUI_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); CIMGUI_API bool ImGui_ImplOpenGL2_CreateDeviceObjects(void); CIMGUI_API void ImGui_ImplOpenGL2_DestroyDeviceObjects(void); +CIMGUI_API bool ImGui_ImplOpenGL2_Init(void); +CIMGUI_API void ImGui_ImplOpenGL2_NewFrame(void); +CIMGUI_API void ImGui_ImplOpenGL2_RenderDrawData(ImDrawData* draw_data); +CIMGUI_API void ImGui_ImplOpenGL2_Shutdown(void); CIMGUI_API void ImGui_ImplOpenGL2_UpdateTexture(ImTextureData* tex); #endif @@ -61,18 +61,18 @@ struct _SDL_GameController; typedef union SDL_Event SDL_Event; typedef enum { ImGui_ImplSDL2_GamepadMode_AutoFirst, ImGui_ImplSDL2_GamepadMode_AutoAll, ImGui_ImplSDL2_GamepadMode_Manual }ImGui_ImplSDL2_GamepadMode; #endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS -CIMGUI_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,void* sdl_gl_context); -CIMGUI_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); +CIMGUI_API float ImGui_ImplSDL2_GetContentScaleForDisplay(int display_index); +CIMGUI_API float ImGui_ImplSDL2_GetContentScaleForWindow(SDL_Window* window); CIMGUI_API bool ImGui_ImplSDL2_InitForD3D(SDL_Window* window); CIMGUI_API bool ImGui_ImplSDL2_InitForMetal(SDL_Window* window); -CIMGUI_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer); +CIMGUI_API bool ImGui_ImplSDL2_InitForOpenGL(SDL_Window* window,void* sdl_gl_context); CIMGUI_API bool ImGui_ImplSDL2_InitForOther(SDL_Window* window); -CIMGUI_API void ImGui_ImplSDL2_Shutdown(void); +CIMGUI_API bool ImGui_ImplSDL2_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer); +CIMGUI_API bool ImGui_ImplSDL2_InitForVulkan(SDL_Window* window); CIMGUI_API void ImGui_ImplSDL2_NewFrame(void); CIMGUI_API bool ImGui_ImplSDL2_ProcessEvent(const SDL_Event* event); -CIMGUI_API float ImGui_ImplSDL2_GetContentScaleForWindow(SDL_Window* window); -CIMGUI_API float ImGui_ImplSDL2_GetContentScaleForDisplay(int display_index); CIMGUI_API void ImGui_ImplSDL2_SetGamepadMode(ImGui_ImplSDL2_GamepadMode mode,struct _SDL_GameController** manual_gamepads_array,int manual_gamepads_count); +CIMGUI_API void ImGui_ImplSDL2_Shutdown(void); #endif #ifdef CIMGUI_USE_SDL3 @@ -87,17 +87,17 @@ struct SDL_Gamepad; typedef union SDL_Event SDL_Event; typedef enum { ImGui_ImplSDL3_GamepadMode_AutoFirst, ImGui_ImplSDL3_GamepadMode_AutoAll, ImGui_ImplSDL3_GamepadMode_Manual }ImGui_ImplSDL3_GamepadMode; #endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS -CIMGUI_API bool ImGui_ImplSDL3_InitForOpenGL(SDL_Window* window,void* sdl_gl_context); -CIMGUI_API bool ImGui_ImplSDL3_InitForVulkan(SDL_Window* window); CIMGUI_API bool ImGui_ImplSDL3_InitForD3D(SDL_Window* window); CIMGUI_API bool ImGui_ImplSDL3_InitForMetal(SDL_Window* window); -CIMGUI_API bool ImGui_ImplSDL3_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer); -CIMGUI_API bool ImGui_ImplSDL3_InitForSDLGPU(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL3_InitForOpenGL(SDL_Window* window,void* sdl_gl_context); CIMGUI_API bool ImGui_ImplSDL3_InitForOther(SDL_Window* window); -CIMGUI_API void ImGui_ImplSDL3_Shutdown(void); +CIMGUI_API bool ImGui_ImplSDL3_InitForSDLGPU(SDL_Window* window); +CIMGUI_API bool ImGui_ImplSDL3_InitForSDLRenderer(SDL_Window* window,SDL_Renderer* renderer); +CIMGUI_API bool ImGui_ImplSDL3_InitForVulkan(SDL_Window* window); CIMGUI_API void ImGui_ImplSDL3_NewFrame(void); CIMGUI_API bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event* event); CIMGUI_API void ImGui_ImplSDL3_SetGamepadMode(ImGui_ImplSDL3_GamepadMode mode,SDL_Gamepad** manual_gamepads_array,int manual_gamepads_count); +CIMGUI_API void ImGui_ImplSDL3_Shutdown(void); #endif #ifdef CIMGUI_USE_VULKAN @@ -189,25 +189,25 @@ struct ImGui_ImplVulkanH_Window typedef ImVector ImVector_ImGui_ImplVulkanH_Frame; typedef ImVector ImVector_ImGui_ImplVulkanH_FrameSemaphores; #endif //CIMGUI_DEFINE_ENUMS_AND_STRUCTS -CIMGUI_API bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info); -CIMGUI_API void ImGui_ImplVulkan_Shutdown(void); -CIMGUI_API void ImGui_ImplVulkan_NewFrame(void); -CIMGUI_API void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline); -CIMGUI_API void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count); -CIMGUI_API void ImGui_ImplVulkan_CreateMainPipeline(const ImGui_ImplVulkan_PipelineInfo* info); -CIMGUI_API void ImGui_ImplVulkan_UpdateTexture(ImTextureData* tex); -CIMGUI_API VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout); -CIMGUI_API void ImGui_ImplVulkan_RemoveTexture(VkDescriptorSet descriptor_set); -CIMGUI_API bool ImGui_ImplVulkan_LoadFunctions(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data); CIMGUI_API void ImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance instance,VkPhysicalDevice physical_device,VkDevice device,ImGui_ImplVulkanH_Window* wd,uint32_t queue_family,const VkAllocationCallbacks* allocator,int w,int h,uint32_t min_image_count,VkImageUsageFlags image_usage); CIMGUI_API void ImGui_ImplVulkanH_DestroyWindow(VkInstance instance,VkDevice device,ImGui_ImplVulkanH_Window* wd,const VkAllocationCallbacks* allocator); -CIMGUI_API VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space); -CIMGUI_API VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count); -CIMGUI_API VkPhysicalDevice ImGui_ImplVulkanH_SelectPhysicalDevice(VkInstance instance); -CIMGUI_API uint32_t ImGui_ImplVulkanH_SelectQueueFamilyIndex(VkPhysicalDevice physical_device); CIMGUI_API int ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode); CIMGUI_API ImGui_ImplVulkanH_Window* ImGui_ImplVulkanH_GetWindowDataFromViewport(ImGuiViewport* viewport); +CIMGUI_API VkPhysicalDevice ImGui_ImplVulkanH_SelectPhysicalDevice(VkInstance instance); +CIMGUI_API VkPresentModeKHR ImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkPresentModeKHR* request_modes,int request_modes_count); +CIMGUI_API uint32_t ImGui_ImplVulkanH_SelectQueueFamilyIndex(VkPhysicalDevice physical_device); +CIMGUI_API VkSurfaceFormatKHR ImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device,VkSurfaceKHR surface,const VkFormat* request_formats,int request_formats_count,VkColorSpaceKHR request_color_space); CIMGUI_API ImGui_ImplVulkanH_Window* ImGui_ImplVulkanH_Window_ImGui_ImplVulkanH_Window(void); +CIMGUI_API VkDescriptorSet ImGui_ImplVulkan_AddTexture(VkSampler sampler,VkImageView image_view,VkImageLayout image_layout); +CIMGUI_API void ImGui_ImplVulkan_CreateMainPipeline(const ImGui_ImplVulkan_PipelineInfo* info); +CIMGUI_API bool ImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info); +CIMGUI_API bool ImGui_ImplVulkan_LoadFunctions(uint32_t api_version,PFN_vkVoidFunction(*loader_func)(const char* function_name,void* user_data),void* user_data); +CIMGUI_API void ImGui_ImplVulkan_NewFrame(void); +CIMGUI_API void ImGui_ImplVulkan_RemoveTexture(VkDescriptorSet descriptor_set); +CIMGUI_API void ImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data,VkCommandBuffer command_buffer,VkPipeline pipeline); +CIMGUI_API void ImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count); +CIMGUI_API void ImGui_ImplVulkan_Shutdown(void); +CIMGUI_API void ImGui_ImplVulkan_UpdateTexture(ImTextureData* tex); #endif #endif //CIMGUI_IMPL_DEFINED diff --git a/generator/cimgui_template.h b/generator/cimgui_template.h index ea2ebac..319d9e3 100644 --- a/generator/cimgui_template.h +++ b/generator/cimgui_template.h @@ -40,6 +40,7 @@ typedef unsigned __int64 ImU64; #endif #endif +PLACE_STRUCTS_C #ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS #include "imgui_structs.h" diff --git a/generator/cpp2ffi.lua b/generator/cpp2ffi.lua index 4ec277f..ccd0c34 100644 --- a/generator/cpp2ffi.lua +++ b/generator/cpp2ffi.lua @@ -1,5 +1,5 @@ local M = {} - +local insert = table.insert local function ToStr(t,dometatables) local function basicToStr (o) if type(o) == "number" or type(o)=="boolean" then @@ -936,7 +936,7 @@ local function itemsCount(items) print(v,its and #its or 0) end end - +--adding self argument for struct functions local function AdjustArguments(FP) for fun,defs in pairs(FP.defsT) do --struct function but no constructors or static functions or manuals @@ -1083,6 +1083,7 @@ local function DefsByStruct(FP) end return structs end +M.DefsByStruct = DefsByStruct local function get_nonPOD(FP) local defbystruct = DefsByStruct(FP) --M.prtable(defbystruct) @@ -1102,8 +1103,139 @@ local function get_nonPOD(FP) FP.structs_and_enums_table.nonPOD = nonPOD return nonPOD end +M.get_nonPOD = get_nonPOD +local function gen_structs_c(FP) + local structs = FP.structs_and_enums_table.structs + local tabs = {} + local tabs_c = {} + --for k,v in pairs(FP.nP_used) do + M.table_do_sorted(FP.nP_used, function(k,v) + insert(tabs,"typedef struct "..k.."_c "..k.."_c;") + insert(tabs_c,"typedef struct "..k.."_c "..k..";") + insert(tabs,"struct "..k.."_c {") + local struct = structs[k] + for i,field in ipairs(struct) do + insert(tabs," "..field.type.." "..field.name..";") + end + insert(tabs,"};") + end) + if #tabs_c > 0 then + insert(tabs_c,1,"#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS") + insert(tabs_c,"#endif") + end + --print(table.concat(tabs_c,"\n")) + --print(table.concat(tabs,"\n")) + return table.concat(tabs_c,"\n").."\n"..table.concat(tabs,"\n") +end +local function gen_field_conversion(tab, struct, FP, prefix) + prefix = prefix or "" + local structs = FP.structs_and_enums_table.structs + for i,field in ipairs(struct) do + if FP.nP_used[field.type] then + gen_field_conversion(tab, structs[field.type],FP, prefix..field.name..".") + else + insert(tab," dest."..prefix..field.name.." = src."..prefix..field.name..";") + end + end +end +local function genConversions(FP) + local structs = FP.structs_and_enums_table.structs + local convers = {} + --for k,v in pairs(FP.nP_used) do + M.table_do_sorted(FP.nP_used, function(k,v) + insert(convers,"static inline "..k.." ConvertToCPP_"..k.."(const "..k.."_c& src)") + insert(convers,"{") + insert(convers," "..k.." dest;") + local struct = structs[k] + gen_field_conversion(convers,struct,FP) + insert(convers," return dest;") + insert(convers,"}") + insert(convers,"static inline "..k.."_c ConvertFromCPP_"..k.."(const "..k.."& src)") + insert(convers,"{") + insert(convers," "..k.."_c dest;") + local struct = structs[k] + gen_field_conversion(convers,struct,FP) + insert(convers," return dest;") + insert(convers,"}") + end) + --print(table.concat(convers,"\n")) + return table.concat(convers,"\n") +end +local function get_nonPODused(FP) + print("get_nonPODused-----------------------------") + local nonPOD = FP.structs_and_enums_table.nonPOD + --M.prtable(nonPOD) + local typeargs = {} + local typeargs_ret = {} + for k,defs in pairs(FP.defsT) do + --print(k) + for i, w in ipairs(defs) do + if not w.templated then --and not w.location:match"internal" then + for ii,arg in ipairs(w.argsT) do + local typ = (arg.type):gsub("&","") + --typ = (typ):gsub("*","") + typ = (typ):gsub("const ","") + if nonPOD[typ] then + --print(arg.type,w.ov_cimguiname,w.location) + typeargs[arg.type] = (arg.type):gsub(typ,typ.."_c") + end + end + local typret = (w.ret or ""):gsub("&","") + --typret = (typret):gsub("*","") + typret = (typret):gsub("const ","") + --print(typret) + if nonPOD[typret] then + --print(w.ret,w.ov_cimguiname,w.location) + typeargs_ret[w.ret] = (w.ret):gsub(typret,typret.."_c") + end + end + end + end + local all_type_nP = {} + for k,v in pairs(typeargs) do + local k2 = k:gsub("const ","") + all_type_nP[k2] = true + end + for k,v in pairs(typeargs_ret) do + local k2 = k:gsub("const ","") + all_type_nP[k2] = true + end + FP.nP_used = all_type_nP + FP.nP_args = typeargs + FP.nP_ret = typeargs_ret + --genConversions(FP) + --M.prtable(typeargs,typeargs_ret,all_type_nP) + -- local typeargs2 = {} + -- for k,v in pairs(typeargs) do table.insert(typeargs2,k) end + -- table.sort(typeargs2) + -- print"------------typeargs2----------------" + -- M.prtable(typeargs2) + + -- local typeargs2_ret = {} + -- for k,v in pairs(typeargs_ret) do table.insert(typeargs2_ret,k) end + -- table.sort(typeargs2_ret) + -- print"------------typeargs2_ret----------------" + -- M.prtable(typeargs2_ret) + +end local function ADDnonUDT(FP) local nonPOD = get_nonPOD(FP) + get_nonPODused(FP) + for k,defs in pairs(FP.defsT) do + for i, def in ipairs(defs) do + --ret + --local typret = (def.ret):gsub("const ","") + if FP.nP_ret[def.ret] then + def.conv = (def.ret):gsub("const ","") + def.ret = FP.nP_ret[def.ret] + def.nonUDT = 1 + end + end + end +end +local function ADDnonUDT_OLD(FP) + local nonPOD = get_nonPOD(FP) + get_nonPODused(FP) --print"nonPOD" --M.prtable(nonPOD) local defsT = FP.defsT @@ -1125,6 +1257,7 @@ local function ADDnonUDT(FP) if (not isUDT) and FP.cimgui_inherited and FP.cimgui_inherited.nonPOD[defT.ret] then isUDT = true end + --given in generator.lua , could be skipped for _,udt_ret in ipairs(FP.UDTs) do if udt_ret == defT.ret then isUDT=true; break end end @@ -1288,7 +1421,9 @@ function M.Parser() par.manuals = {} par.skipped = {} par.UDTs = {} - + + par.genConversors = genConversions + par.gen_structs_c = gen_structs_c function par:insert(line,loca) --table.insert(cdefs,{line,loca}) --table.insert(cdefs,{line:gsub("^%s*(.-)%s*$", "%1"),loca}) @@ -1343,8 +1478,9 @@ function M.Parser() function par:do_parse() self:parseItems() self:gen_structs_and_enums_table() - self:gen_structs_and_enums() self:compute_overloads() + self:gen_structs_and_enums() + --self:compute_overloads() --self:compute_templated() ADDdestructors(self) end @@ -1714,6 +1850,30 @@ function M.Parser() function par:header_text_insert(tab,txt,it) table.insert(tab, txt) end + local function function_parse(self,it) + local stname = "" + local namespace + if it.parent then + if it.parent.re_name == "struct_re" or it.parent.re_name == "typedef_st_re" or it.parent.re_name == "class_re" then + stname = it.parent.name + elseif it.parent.re_name == "namespace_re" then + namespace = get_parents_nameC(it) --it.parent.name + end + end + if it.item:match"^%s*template%s+<" then + local ttype,fun = it.item:match"^%s*template%s+<%s*typename%s+([^>]+)%s*>%s*(.+)$" + if self.ftemplate_list and self.ftemplate_list[ttype] then + for iT,vT in ipairs(self.ftemplate_list[ttype]) do + local funT = fun:gsub("([< %(])"..ttype,"%1"..vT) + --funT = funT:gsub("sizeof%("..ttype.."%)","sizeof("..vT..")") + --local funT = fun:gsub(ttype,vT) + self:parseFunction(stname,{item=funT},namespace,it.locat) + end + end + else + self:parseFunction(stname,it,namespace,it.locat) + end + end function par:gen_structs_and_enums() print"--------------gen_structs_and_enums" --M.prtable(self.typenames) @@ -1851,28 +2011,7 @@ function M.Parser() elseif it.re_name == "namespace_re" or it.re_name == "union_re" or it.re_name == "functype_re" then --nop elseif it.re_name == "functionD_re" or it.re_name == "function_re" then - local stname = "" - local namespace - if it.parent then - if it.parent.re_name == "struct_re" or it.parent.re_name == "typedef_st_re" or it.parent.re_name == "class_re" then - stname = it.parent.name - elseif it.parent.re_name == "namespace_re" then - namespace = get_parents_nameC(it) --it.parent.name - end - end - if it.item:match"^%s*template%s+<" then - local ttype,fun = it.item:match"^%s*template%s+<%s*typename%s+([^>]+)%s*>%s*(.+)$" - if self.ftemplate_list and self.ftemplate_list[ttype] then - for iT,vT in ipairs(self.ftemplate_list[ttype]) do - local funT = fun:gsub("([< %(])"..ttype,"%1"..vT) - --funT = funT:gsub("sizeof%("..ttype.."%)","sizeof("..vT..")") - --local funT = fun:gsub(ttype,vT) - self:parseFunction(stname,{item=funT},namespace,it.locat) - end - end - else - self:parseFunction(stname,it,namespace,it.locat) - end + --function_parse(self,it) else if it.re_name~="operator_re" then print("not processed gen",it.re_name,it.item:sub(1,20)) @@ -1893,6 +2032,7 @@ function M.Parser() check_arg_detection(self.defsT,self.typedefs_dict) local outtabprest, outtabst = table.concat(outtabpre,""),table.concat(outtab,"") self.structs_and_enums = {outtabprest, outtabst or ""} + return outtabprest, outtabst end ----------- @@ -2086,7 +2226,9 @@ function M.Parser() end elseif it.re_name == "namespace_re" or it.re_name == "union_re" or it.re_name == "functype_re" then --nop - elseif it.re_name ~= "functionD_re" and it.re_name ~= "function_re" and it.re_name ~= "operator_re" then + elseif it.re_name ~= "functionD_re" or it.re_name ~= "function_re" then + function_parse(self,it) + elseif it.re_name ~= "operator_re" then print("not processed gen table",it.re_name) end end @@ -2683,7 +2825,8 @@ local function ImGui_f_implementation(def) table.insert(outtab, "#endif\n") elseif def.nonUDT then if def.nonUDT == 1 then - table.insert(outtab," *pOut = "..namespace..def.funcname..def.call_args..";\n") + --table.insert(outtab," *pOut = "..namespace..def.funcname..def.call_args..";\n") + insert(outtab," return ConverFromCPP_ImVec2("..namespace..def.funcname..def.call_args..");\n") end table.insert(outtab,"}\n") else --standard ImGui @@ -2717,7 +2860,9 @@ local function struct_f_implementation(def) end elseif def.nonUDT then if def.nonUDT == 1 then - table.insert(outtab," *pOut = self->"..def.funcname..def.call_args..";\n") + --table.insert(outtab," *pOut = self->"..def.funcname..def.call_args..";\n") + --local typret = (def.ret):gsub("const ","") + insert(outtab," return ConverFromCPP_"..def.conv.."(self->"..def.funcname..def.call_args..");\n") end else --standard struct table.insert(outtab," return "..ptret.."self->"..def.funcname..def.call_args..";\n") @@ -2839,17 +2984,18 @@ local function func_header_generate_funcs(FP) elseif def.destructor then table.insert(outtab,"CIMGUI_API void "..def.ov_cimguiname..def.args..";"..addcoment.."\n") else --not constructor - + --local ret = FP.nP_ret[def.ret] or def.ret + local ret = def.ret if def.stname == "" or def.is_static_function then --ImGui namespace or top level - table.insert(outtab,"CIMGUI_API "..def.ret.." ".. def.ov_cimguiname ..(empty and "(void)" or def.args)..";"..addcoment.."\n") + table.insert(outtab,"CIMGUI_API "..ret.." ".. def.ov_cimguiname ..(empty and "(void)" or def.args)..";"..addcoment.."\n") if def.isvararg then -- For variadic functions we add a function implementation with zero argumets, for compatibility with languages such as C#. table.insert(outtab, "#ifdef CIMGUI_VARGS0\n") - table.insert(outtab, "CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args)..";\n") + table.insert(outtab, "CIMGUI_API".." "..ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args)..";\n") table.insert(outtab, "#endif\n") end else - table.insert(outtab,"CIMGUI_API "..def.ret.." "..def.ov_cimguiname..def.args..";"..addcoment.."\n") + table.insert(outtab,"CIMGUI_API "..ret.." "..def.ov_cimguiname..def.args..";"..addcoment.."\n") end end end diff --git a/generator/generator.lua b/generator/generator.lua index 9aa62ba..4ef2119 100644 --- a/generator/generator.lua +++ b/generator/generator.lua @@ -124,10 +124,14 @@ local function func_header_impl_generate(FP) local outtab = {} - for _,t in ipairs(FP.funcdefs) do - if t.cimguiname then - local cimf = FP.defsT[t.cimguiname] - local def = cimf[t.signature] + -- for _,t in ipairs(FP.funcdefs) do + -- if t.cimguiname then + -- local cimf = FP.defsT[t.cimguiname] + -- local def = cimf[t.signature] + --for k,defs in pairs(FP.defsT) do + cpp2ffi.table_do_sorted(FP.defsT, function(i,defs) + if true then + for i, def in ipairs(defs) do local addcoment = def.comment or "" local empty = def.args:match("^%(%)") --no args if def.constructor then @@ -147,10 +151,11 @@ local function func_header_impl_generate(FP) error("class function in implementations") end end + end else --not cimguiname table.insert(outtab,t.comment:gsub("%%","%%%%").."\n")-- %% substitution for gsub end - end + end) local cfuncsstr = table.concat(outtab) cfuncsstr = cfuncsstr:gsub("\n+","\n") --several empty lines to one empty line return cfuncsstr @@ -271,7 +276,10 @@ local function cimgui_generation(parser) --]] -------------------------------------------------- local hstrfile = read_data"./cimgui_template.h" - + + + hstrfile = hstrfile:gsub([[PLACE_STRUCTS_C]],parser:gen_structs_c()) + local outpre,outpost = parser.structs_and_enums[1],parser.structs_and_enums[2] cpp2ffi.prtable(parser.templates) cpp2ffi.prtable(parser.typenames) @@ -310,7 +318,10 @@ local function cimgui_generation(parser) local cimplem = func_implementation(parser) cimplem = colapse_defines(cimplem, "IMGUI_ENABLE_FREETYPE") local hstrfile = read_data"./cimgui_template.cpp" - + + local conversors = parser:genConversors() + cimplem = conversors .. cimplem + hstrfile = hstrfile:gsub([[#include "auto_funcs%.cpp"]],cimplem) local ftdef = "" --FREETYPE_GENERATION and "#define IMGUI_ENABLE_FREETYPE\n" or "" save_data("./output/cimgui.cpp",cimgui_header, ftdef, hstrfile) diff --git a/generator/output/definitions.json b/generator/output/definitions.json index 213eb0a..1fde159 100644 --- a/generator/output/definitions.json +++ b/generator/output/definitions.json @@ -579,12 +579,8 @@ ], "ImColor_HSV": [ { - "args": "(ImColor *pOut,float h,float s,float v,float a)", + "args": "(float h,float s,float v,float a)", "argsT": [ - { - "name": "pOut", - "type": "ImColor*" - }, { "name": "h", "type": "float" @@ -605,6 +601,7 @@ "argsoriginal": "(float h,float s,float v,float a=1.0f)", "call_args": "(h,s,v,a)", "cimguiname": "ImColor_HSV", + "conv": "ImColor", "defaults": { "a": "1.0f" }, @@ -613,7 +610,7 @@ "location": "imgui:3071", "nonUDT": 1, "ov_cimguiname": "ImColor_HSV", - "ret": "void", + "ret": "ImColor_c", "signature": "(float,float,float,float)", "stname": "ImColor" } @@ -2463,12 +2460,8 @@ ], "ImDrawList_GetClipRectMax": [ { - "args": "(ImVec2 *pOut,ImDrawList* self)", + "args": "(ImDrawList* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImDrawList*" @@ -2477,24 +2470,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImDrawList_GetClipRectMax", + "conv": "ImVec2", "defaults": {}, "funcname": "GetClipRectMax", "location": "imgui:3401", "nonUDT": 1, "ov_cimguiname": "ImDrawList_GetClipRectMax", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImDrawList" } ], "ImDrawList_GetClipRectMin": [ { - "args": "(ImVec2 *pOut,ImDrawList* self)", + "args": "(ImDrawList* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImDrawList*" @@ -2503,12 +2493,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImDrawList_GetClipRectMin", + "conv": "ImVec2", "defaults": {}, "funcname": "GetClipRectMin", "location": "imgui:3400", "nonUDT": 1, "ov_cimguiname": "ImDrawList_GetClipRectMin", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImDrawList" } @@ -4767,12 +4758,8 @@ ], "ImFont_CalcTextSizeA": [ { - "args": "(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** out_remaining)", + "args": "(ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** out_remaining)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImFont*" @@ -4805,6 +4792,7 @@ "argsoriginal": "(float size,float max_width,float wrap_width,const char* text_begin,const char* text_end=((void*)0),const char** out_remaining=((void*)0))", "call_args": "(size,max_width,wrap_width,text_begin,text_end,out_remaining)", "cimguiname": "ImFont_CalcTextSizeA", + "conv": "ImVec2", "defaults": { "out_remaining": "NULL", "text_end": "NULL" @@ -4813,7 +4801,7 @@ "location": "imgui:3980", "nonUDT": 1, "ov_cimguiname": "ImFont_CalcTextSizeA", - "ret": "void", + "ret": "ImVec2_c", "signature": "(float,float,float,const char*,const char*,const char**)", "stname": "ImFont" } @@ -5580,12 +5568,8 @@ ], "ImGuiDockNode_Rect": [ { - "args": "(ImRect *pOut,ImGuiDockNode* self)", + "args": "(ImGuiDockNode* self)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "self", "type": "ImGuiDockNode*" @@ -5594,12 +5578,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiDockNode_Rect", + "conv": "ImRect", "defaults": {}, "funcname": "Rect", "location": "imgui_internal:2066", "nonUDT": 1, "ov_cimguiname": "ImGuiDockNode_Rect", - "ret": "void", + "ret": "ImRect_c", "signature": "()const", "stname": "ImGuiDockNode" } @@ -10479,12 +10464,8 @@ ], "ImGuiViewportP_CalcWorkRectPos": [ { - "args": "(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 inset_min)", + "args": "(ImGuiViewportP* self,const ImVec2 inset_min)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImGuiViewportP*" @@ -10497,24 +10478,21 @@ "argsoriginal": "(const ImVec2& inset_min)", "call_args": "(inset_min)", "cimguiname": "ImGuiViewportP_CalcWorkRectPos", + "conv": "ImVec2", "defaults": {}, "funcname": "CalcWorkRectPos", "location": "imgui_internal:2147", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_CalcWorkRectPos", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2)const", "stname": "ImGuiViewportP" } ], "ImGuiViewportP_CalcWorkRectSize": [ { - "args": "(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 inset_min,const ImVec2 inset_max)", + "args": "(ImGuiViewportP* self,const ImVec2 inset_min,const ImVec2 inset_max)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImGuiViewportP*" @@ -10531,12 +10509,13 @@ "argsoriginal": "(const ImVec2& inset_min,const ImVec2& inset_max)", "call_args": "(inset_min,inset_max)", "cimguiname": "ImGuiViewportP_CalcWorkRectSize", + "conv": "ImVec2", "defaults": {}, "funcname": "CalcWorkRectSize", "location": "imgui_internal:2148", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_CalcWorkRectSize", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2)const", "stname": "ImGuiViewportP" } @@ -10564,12 +10543,8 @@ ], "ImGuiViewportP_GetBuildWorkRect": [ { - "args": "(ImRect *pOut,ImGuiViewportP* self)", + "args": "(ImGuiViewportP* self)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "self", "type": "ImGuiViewportP*" @@ -10578,24 +10553,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiViewportP_GetBuildWorkRect", + "conv": "ImRect", "defaults": {}, "funcname": "GetBuildWorkRect", "location": "imgui_internal:2154", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetBuildWorkRect", - "ret": "void", + "ret": "ImRect_c", "signature": "()const", "stname": "ImGuiViewportP" } ], "ImGuiViewportP_GetMainRect": [ { - "args": "(ImRect *pOut,ImGuiViewportP* self)", + "args": "(ImGuiViewportP* self)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "self", "type": "ImGuiViewportP*" @@ -10604,24 +10576,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiViewportP_GetMainRect", + "conv": "ImRect", "defaults": {}, "funcname": "GetMainRect", "location": "imgui_internal:2152", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetMainRect", - "ret": "void", + "ret": "ImRect_c", "signature": "()const", "stname": "ImGuiViewportP" } ], "ImGuiViewportP_GetWorkRect": [ { - "args": "(ImRect *pOut,ImGuiViewportP* self)", + "args": "(ImGuiViewportP* self)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "self", "type": "ImGuiViewportP*" @@ -10630,12 +10599,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiViewportP_GetWorkRect", + "conv": "ImRect", "defaults": {}, "funcname": "GetWorkRect", "location": "imgui_internal:2153", "nonUDT": 1, "ov_cimguiname": "ImGuiViewportP_GetWorkRect", - "ret": "void", + "ret": "ImRect_c", "signature": "()const", "stname": "ImGuiViewportP" } @@ -10700,12 +10670,8 @@ ], "ImGuiViewport_GetCenter": [ { - "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "args": "(ImGuiViewport* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImGuiViewport*" @@ -10714,24 +10680,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiViewport_GetCenter", + "conv": "ImVec2", "defaults": {}, "funcname": "GetCenter", "location": "imgui:4077", "nonUDT": 1, "ov_cimguiname": "ImGuiViewport_GetCenter", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImGuiViewport" } ], "ImGuiViewport_GetWorkCenter": [ { - "args": "(ImVec2 *pOut,ImGuiViewport* self)", + "args": "(ImGuiViewport* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImGuiViewport*" @@ -10740,12 +10703,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiViewport_GetWorkCenter", + "conv": "ImVec2", "defaults": {}, "funcname": "GetWorkCenter", "location": "imgui:4078", "nonUDT": 1, "ov_cimguiname": "ImGuiViewport_GetWorkCenter", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImGuiViewport" } @@ -11034,12 +10998,8 @@ ], "ImGuiWindow_MenuBarRect": [ { - "args": "(ImRect *pOut,ImGuiWindow* self)", + "args": "(ImGuiWindow* self)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "self", "type": "ImGuiWindow*" @@ -11048,24 +11008,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiWindow_MenuBarRect", + "conv": "ImRect", "defaults": {}, "funcname": "MenuBarRect", "location": "imgui_internal:2960", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_MenuBarRect", - "ret": "void", + "ret": "ImRect_c", "signature": "()const", "stname": "ImGuiWindow" } ], "ImGuiWindow_Rect": [ { - "args": "(ImRect *pOut,ImGuiWindow* self)", + "args": "(ImGuiWindow* self)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "self", "type": "ImGuiWindow*" @@ -11074,24 +11031,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiWindow_Rect", + "conv": "ImRect", "defaults": {}, "funcname": "Rect", "location": "imgui_internal:2958", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_Rect", - "ret": "void", + "ret": "ImRect_c", "signature": "()const", "stname": "ImGuiWindow" } ], "ImGuiWindow_TitleBarRect": [ { - "args": "(ImRect *pOut,ImGuiWindow* self)", + "args": "(ImGuiWindow* self)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "self", "type": "ImGuiWindow*" @@ -11100,12 +11054,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImGuiWindow_TitleBarRect", + "conv": "ImRect", "defaults": {}, "funcname": "TitleBarRect", "location": "imgui_internal:2959", "nonUDT": 1, "ov_cimguiname": "ImGuiWindow_TitleBarRect", - "ret": "void", + "ret": "ImRect_c", "signature": "()const", "stname": "ImGuiWindow" } @@ -11809,12 +11764,8 @@ ], "ImRect_GetBL": [ { - "args": "(ImVec2 *pOut,ImRect* self)", + "args": "(ImRect* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImRect*" @@ -11823,24 +11774,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImRect_GetBL", + "conv": "ImVec2", "defaults": {}, "funcname": "GetBL", "location": "imgui_internal:601", "nonUDT": 1, "ov_cimguiname": "ImRect_GetBL", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImRect" } ], "ImRect_GetBR": [ { - "args": "(ImVec2 *pOut,ImRect* self)", + "args": "(ImRect* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImRect*" @@ -11849,24 +11797,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImRect_GetBR", + "conv": "ImVec2", "defaults": {}, "funcname": "GetBR", "location": "imgui_internal:602", "nonUDT": 1, "ov_cimguiname": "ImRect_GetBR", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImRect" } ], "ImRect_GetCenter": [ { - "args": "(ImVec2 *pOut,ImRect* self)", + "args": "(ImRect* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImRect*" @@ -11875,12 +11820,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImRect_GetCenter", + "conv": "ImVec2", "defaults": {}, "funcname": "GetCenter", "location": "imgui_internal:594", "nonUDT": 1, "ov_cimguiname": "ImRect_GetCenter", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImRect" } @@ -11908,12 +11854,8 @@ ], "ImRect_GetSize": [ { - "args": "(ImVec2 *pOut,ImRect* self)", + "args": "(ImRect* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImRect*" @@ -11922,24 +11864,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImRect_GetSize", + "conv": "ImVec2", "defaults": {}, "funcname": "GetSize", "location": "imgui_internal:595", "nonUDT": 1, "ov_cimguiname": "ImRect_GetSize", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImRect" } ], "ImRect_GetTL": [ { - "args": "(ImVec2 *pOut,ImRect* self)", + "args": "(ImRect* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImRect*" @@ -11948,24 +11887,21 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImRect_GetTL", + "conv": "ImVec2", "defaults": {}, "funcname": "GetTL", "location": "imgui_internal:599", "nonUDT": 1, "ov_cimguiname": "ImRect_GetTL", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImRect" } ], "ImRect_GetTR": [ { - "args": "(ImVec2 *pOut,ImRect* self)", + "args": "(ImRect* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "self", "type": "ImRect*" @@ -11974,12 +11910,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImRect_GetTR", + "conv": "ImVec2", "defaults": {}, "funcname": "GetTR", "location": "imgui_internal:600", "nonUDT": 1, "ov_cimguiname": "ImRect_GetTR", - "ret": "void", + "ret": "ImVec2_c", "signature": "()const", "stname": "ImRect" } @@ -12142,12 +12079,8 @@ ], "ImRect_ToVec4": [ { - "args": "(ImVec4 *pOut,ImRect* self)", + "args": "(ImRect* self)", "argsT": [ - { - "name": "pOut", - "type": "ImVec4*" - }, { "name": "self", "type": "ImRect*" @@ -12156,12 +12089,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImRect_ToVec4", + "conv": "ImVec4", "defaults": {}, "funcname": "ToVec4", "location": "imgui_internal:618", "nonUDT": 1, "ov_cimguiname": "ImRect_ToVec4", - "ret": "void", + "ret": "ImVec4_c", "signature": "()const", "stname": "ImRect" } @@ -13002,12 +12936,8 @@ ], "ImTextureData_GetTexRef": [ { - "args": "(ImTextureRef *pOut,ImTextureData* self)", + "args": "(ImTextureData* self)", "argsT": [ - { - "name": "pOut", - "type": "ImTextureRef*" - }, { "name": "self", "type": "ImTextureData*" @@ -13016,12 +12946,13 @@ "argsoriginal": "()", "call_args": "()", "cimguiname": "ImTextureData_GetTexRef", + "conv": "ImTextureRef", "defaults": {}, "funcname": "GetTexRef", "location": "imgui:3620", "nonUDT": 1, "ov_cimguiname": "ImTextureData_GetTexRef", - "ret": "void", + "ret": "ImTextureRef_c", "signature": "()", "stname": "ImTextureData" } @@ -16156,12 +16087,8 @@ ], "igCalcItemSize": [ { - "args": "(ImVec2 *pOut,ImVec2 size,float default_w,float default_h)", + "args": "(ImVec2 size,float default_w,float default_h)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "size", "type": "ImVec2" @@ -16178,13 +16105,14 @@ "argsoriginal": "(ImVec2 size,float default_w,float default_h)", "call_args": "(size,default_w,default_h)", "cimguiname": "igCalcItemSize", + "conv": "ImVec2", "defaults": {}, "funcname": "CalcItemSize", "location": "imgui_internal:3488", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcItemSize", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImVec2,float,float)", "stname": "" } @@ -16238,12 +16166,8 @@ ], "igCalcTextSize": [ { - "args": "(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)", + "args": "(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "text", "type": "const char*" @@ -16264,6 +16188,7 @@ "argsoriginal": "(const char* text,const char* text_end=((void*)0),bool hide_text_after_double_hash=false,float wrap_width=-1.0f)", "call_args": "(text,text_end,hide_text_after_double_hash,wrap_width)", "cimguiname": "igCalcTextSize", + "conv": "ImVec2", "defaults": { "hide_text_after_double_hash": "false", "text_end": "NULL", @@ -16274,7 +16199,7 @@ "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcTextSize", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const char*,const char*,bool,float)", "stname": "" } @@ -16315,12 +16240,8 @@ ], "igCalcWindowNextAutoFitSize": [ { - "args": "(ImVec2 *pOut,ImGuiWindow* window)", + "args": "(ImGuiWindow* window)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -16329,13 +16250,14 @@ "argsoriginal": "(ImGuiWindow* window)", "call_args": "(window)", "cimguiname": "igCalcWindowNextAutoFitSize", + "conv": "ImVec2", "defaults": {}, "funcname": "CalcWindowNextAutoFitSize", "location": "imgui_internal:3359", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igCalcWindowNextAutoFitSize", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImGuiWindow*)", "stname": "" } @@ -16956,12 +16878,8 @@ ], "igColorConvertU32ToFloat4": [ { - "args": "(ImVec4 *pOut,ImU32 in)", + "args": "(ImU32 in)", "argsT": [ - { - "name": "pOut", - "type": "ImVec4*" - }, { "name": "in", "type": "ImU32" @@ -16970,13 +16888,14 @@ "argsoriginal": "(ImU32 in)", "call_args": "(in)", "cimguiname": "igColorConvertU32ToFloat4", + "conv": "ImVec4", "defaults": {}, "funcname": "ColorConvertU32ToFloat4", "location": "imgui:1075", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igColorConvertU32ToFloat4", - "ret": "void", + "ret": "ImVec4_c", "signature": "(ImU32)", "stname": "" } @@ -21032,12 +20951,8 @@ ], "igFindBestWindowPosForPopup": [ { - "args": "(ImVec2 *pOut,ImGuiWindow* window)", + "args": "(ImGuiWindow* window)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -21046,25 +20961,22 @@ "argsoriginal": "(ImGuiWindow* window)", "call_args": "(window)", "cimguiname": "igFindBestWindowPosForPopup", + "conv": "ImVec2", "defaults": {}, "funcname": "FindBestWindowPosForPopup", "location": "imgui_internal:3520", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igFindBestWindowPosForPopup", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImGuiWindow*)", "stname": "" } ], "igFindBestWindowPosForPopupEx": [ { - "args": "(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy)", + "args": "(const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "ref_pos", "type": "const ImVec2" @@ -21093,13 +21005,14 @@ "argsoriginal": "(const ImVec2& ref_pos,const ImVec2& size,ImGuiDir* last_dir,const ImRect& r_outer,const ImRect& r_avoid,ImGuiPopupPositionPolicy policy)", "call_args": "(ref_pos,size,last_dir,r_outer,r_avoid,policy)", "cimguiname": "igFindBestWindowPosForPopupEx", + "conv": "ImVec2", "defaults": {}, "funcname": "FindBestWindowPosForPopupEx", "location": "imgui_internal:3521", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igFindBestWindowPosForPopupEx", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,ImGuiDir*,const ImRect,const ImRect,ImGuiPopupPositionPolicy)", "stname": "" } @@ -21942,23 +21855,19 @@ ], "igGetContentRegionAvail": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetContentRegionAvail", + "conv": "ImVec2", "defaults": {}, "funcname": "GetContentRegionAvail", "location": "imgui:571", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetContentRegionAvail", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } @@ -22067,23 +21976,19 @@ ], "igGetCursorPos": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetCursorPos", + "conv": "ImVec2", "defaults": {}, "funcname": "GetCursorPos", "location": "imgui:572", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorPos", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } @@ -22124,46 +22029,38 @@ ], "igGetCursorScreenPos": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetCursorScreenPos", + "conv": "ImVec2", "defaults": {}, "funcname": "GetCursorScreenPos", "location": "imgui:569", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorScreenPos", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } ], "igGetCursorStartPos": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetCursorStartPos", + "conv": "ImVec2", "defaults": {}, "funcname": "GetCursorStartPos", "location": "imgui:578", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetCursorStartPos", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } @@ -22323,23 +22220,19 @@ ], "igGetFontTexUvWhitePixel": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetFontTexUvWhitePixel", + "conv": "ImVec2", "defaults": {}, "funcname": "GetFontTexUvWhitePixel", "location": "imgui:553", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetFontTexUvWhitePixel", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } @@ -22693,69 +22586,57 @@ ], "igGetItemRectMax": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetItemRectMax", + "conv": "ImVec2", "defaults": {}, "funcname": "GetItemRectMax", "location": "imgui:1048", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectMax", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } ], "igGetItemRectMin": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetItemRectMin", + "conv": "ImVec2", "defaults": {}, "funcname": "GetItemRectMin", "location": "imgui:1047", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectMin", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } ], "igGetItemRectSize": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetItemRectSize", + "conv": "ImVec2", "defaults": {}, "funcname": "GetItemRectSize", "location": "imgui:1049", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetItemRectSize", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } @@ -22847,12 +22728,8 @@ ], "igGetKeyMagnitude2d": [ { - "args": "(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", + "args": "(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "key_left", "type": "ImGuiKey" @@ -22873,13 +22750,14 @@ "argsoriginal": "(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", "call_args": "(key_left,key_right,key_up,key_down)", "cimguiname": "igGetKeyMagnitude2d", + "conv": "ImVec2", "defaults": {}, "funcname": "GetKeyMagnitude2d", "location": "imgui_internal:3587", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetKeyMagnitude2d", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)", "stname": "" } @@ -23042,12 +22920,8 @@ ], "igGetMouseDragDelta": [ { - "args": "(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold)", + "args": "(ImGuiMouseButton button,float lock_threshold)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "button", "type": "ImGuiMouseButton" @@ -23060,6 +22934,7 @@ "argsoriginal": "(ImGuiMouseButton button=0,float lock_threshold=-1.0f)", "call_args": "(button,lock_threshold)", "cimguiname": "igGetMouseDragDelta", + "conv": "ImVec2", "defaults": { "button": "0", "lock_threshold": "-1.0f" @@ -23069,53 +22944,45 @@ "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMouseDragDelta", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImGuiMouseButton,float)", "stname": "" } ], "igGetMousePos": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetMousePos", + "conv": "ImVec2", "defaults": {}, "funcname": "GetMousePos", "location": "imgui:1131", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMousePos", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } ], "igGetMousePosOnOpeningCurrentPopup": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetMousePosOnOpeningCurrentPopup", + "conv": "ImVec2", "defaults": {}, "funcname": "GetMousePosOnOpeningCurrentPopup", "location": "imgui:1132", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetMousePosOnOpeningCurrentPopup", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } @@ -23205,12 +23072,8 @@ ], "igGetPopupAllowedExtentRect": [ { - "args": "(ImRect *pOut,ImGuiWindow* window)", + "args": "(ImGuiWindow* window)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -23219,13 +23082,14 @@ "argsoriginal": "(ImGuiWindow* window)", "call_args": "(window)", "cimguiname": "igGetPopupAllowedExtentRect", + "conv": "ImRect", "defaults": {}, "funcname": "GetPopupAllowedExtentRect", "location": "imgui_internal:3516", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetPopupAllowedExtentRect", - "ret": "void", + "ret": "ImRect_c", "signature": "(ImGuiWindow*)", "stname": "" } @@ -23748,23 +23612,19 @@ ], "igGetWindowPos": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetWindowPos", + "conv": "ImVec2", "defaults": {}, "funcname": "GetWindowPos", "location": "imgui:469", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowPos", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } @@ -23849,12 +23709,8 @@ ], "igGetWindowScrollbarRect": [ { - "args": "(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis)", + "args": "(ImGuiWindow* window,ImGuiAxis axis)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -23867,36 +23723,33 @@ "argsoriginal": "(ImGuiWindow* window,ImGuiAxis axis)", "call_args": "(window,axis)", "cimguiname": "igGetWindowScrollbarRect", + "conv": "ImRect", "defaults": {}, "funcname": "GetWindowScrollbarRect", "location": "imgui_internal:3886", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowScrollbarRect", - "ret": "void", + "ret": "ImRect_c", "signature": "(ImGuiWindow*,ImGuiAxis)", "stname": "" } ], "igGetWindowSize": [ { - "args": "(ImVec2 *pOut)", - "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - } - ], + "args": "()", + "argsT": [], "argsoriginal": "()", "call_args": "()", "cimguiname": "igGetWindowSize", + "conv": "ImVec2", "defaults": {}, "funcname": "GetWindowSize", "location": "imgui:470", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igGetWindowSize", - "ret": "void", + "ret": "ImVec2_c", "signature": "()", "stname": "" } @@ -24021,12 +23874,8 @@ ], "igImBezierCubicCalc": [ { - "args": "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t)", + "args": "(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "p1", "type": "const ImVec2" @@ -24051,24 +23900,21 @@ "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,float t)", "call_args": "(p1,p2,p3,p4,t)", "cimguiname": "igImBezierCubicCalc", + "conv": "ImVec2", "defaults": {}, "funcname": "ImBezierCubicCalc", "location": "imgui_internal:544", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicCalc", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)", "stname": "" } ], "igImBezierCubicClosestPoint": [ { - "args": "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments)", + "args": "(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "p1", "type": "const ImVec2" @@ -24097,24 +23943,21 @@ "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& p,int num_segments)", "call_args": "(p1,p2,p3,p4,p,num_segments)", "cimguiname": "igImBezierCubicClosestPoint", + "conv": "ImVec2", "defaults": {}, "funcname": "ImBezierCubicClosestPoint", "location": "imgui_internal:545", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicClosestPoint", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,int)", "stname": "" } ], "igImBezierCubicClosestPointCasteljau": [ { - "args": "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol)", + "args": "(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "p1", "type": "const ImVec2" @@ -24143,24 +23986,21 @@ "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& p,float tess_tol)", "call_args": "(p1,p2,p3,p4,p,tess_tol)", "cimguiname": "igImBezierCubicClosestPointCasteljau", + "conv": "ImVec2", "defaults": {}, "funcname": "ImBezierCubicClosestPointCasteljau", "location": "imgui_internal:546", "nonUDT": 1, "ov_cimguiname": "igImBezierCubicClosestPointCasteljau", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)", "stname": "" } ], "igImBezierQuadraticCalc": [ { - "args": "(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t)", + "args": "(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "p1", "type": "const ImVec2" @@ -24181,12 +24021,13 @@ "argsoriginal": "(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,float t)", "call_args": "(p1,p2,p3,t)", "cimguiname": "igImBezierQuadraticCalc", + "conv": "ImVec2", "defaults": {}, "funcname": "ImBezierQuadraticCalc", "location": "imgui_internal:547", "nonUDT": 1, "ov_cimguiname": "igImBezierQuadraticCalc", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,const ImVec2,float)", "stname": "" } @@ -24406,12 +24247,8 @@ ], "igImClamp": [ { - "args": "(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,const ImVec2 mx)", + "args": "(const ImVec2 v,const ImVec2 mn,const ImVec2 mx)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "v", "type": "const ImVec2" @@ -24428,12 +24265,13 @@ "argsoriginal": "(const ImVec2& v,const ImVec2&mn,const ImVec2&mx)", "call_args": "(v,mn,mx)", "cimguiname": "igImClamp", + "conv": "ImVec2", "defaults": {}, "funcname": "ImClamp", "location": "imgui_internal:519", "nonUDT": 1, "ov_cimguiname": "igImClamp", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,const ImVec2)", "stname": "" } @@ -24703,12 +24541,8 @@ "stname": "" }, { - "args": "(ImVec2 *pOut,const ImVec2 v)", + "args": "(const ImVec2 v)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "v", "type": "const ImVec2" @@ -24717,12 +24551,13 @@ "argsoriginal": "(const ImVec2& v)", "call_args": "(v)", "cimguiname": "igImFloor", + "conv": "ImVec2", "defaults": {}, "funcname": "ImFloor", "location": "imgui_internal:530", "nonUDT": 1, "ov_cimguiname": "igImFloor_Vec2", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2)", "stname": "" } @@ -26085,12 +25920,8 @@ ], "igImFontAtlasTextureGetSizeEstimate": [ { - "args": "(ImVec2i *pOut,ImFontAtlas* atlas)", + "args": "(ImFontAtlas* atlas)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2i*" - }, { "name": "atlas", "type": "ImFontAtlas*" @@ -26099,12 +25930,13 @@ "argsoriginal": "(ImFontAtlas* atlas)", "call_args": "(atlas)", "cimguiname": "igImFontAtlasTextureGetSizeEstimate", + "conv": "ImVec2i", "defaults": {}, "funcname": "ImFontAtlasTextureGetSizeEstimate", "location": "imgui_internal:4154", "nonUDT": 1, "ov_cimguiname": "igImFontAtlasTextureGetSizeEstimate", - "ret": "void", + "ret": "ImVec2i_c", "signature": "(ImFontAtlas*)", "stname": "" } @@ -26272,12 +26104,8 @@ ], "igImFontCalcTextSizeEx": [ { - "args": "(ImVec2 *pOut,ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags)", + "args": "(ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "font", "type": "ImFont*" @@ -26322,12 +26150,13 @@ "argsoriginal": "(ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags)", "call_args": "(font,size,max_width,wrap_width,text_begin,text_end_display,text_end,out_remaining,out_offset,flags)", "cimguiname": "igImFontCalcTextSizeEx", + "conv": "ImVec2", "defaults": {}, "funcname": "ImFontCalcTextSizeEx", "location": "imgui_internal:452", "nonUDT": 1, "ov_cimguiname": "igImFontCalcTextSizeEx", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImFont*,float,float,float,const char*,const char*,const char*,const char**,ImVec2*,ImDrawTextFlags)", "stname": "" } @@ -26721,12 +26550,8 @@ ], "igImLerp": [ { - "args": "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t)", + "args": "(const ImVec2 a,const ImVec2 b,float t)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "a", "type": "const ImVec2" @@ -26743,22 +26568,19 @@ "argsoriginal": "(const ImVec2& a,const ImVec2& b,float t)", "call_args": "(a,b,t)", "cimguiname": "igImLerp", + "conv": "ImVec2", "defaults": {}, "funcname": "ImLerp", "location": "imgui_internal:520", "nonUDT": 1, "ov_cimguiname": "igImLerp_Vec2Float", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,float)", "stname": "" }, { - "args": "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t)", + "args": "(const ImVec2 a,const ImVec2 b,const ImVec2 t)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "a", "type": "const ImVec2" @@ -26775,22 +26597,19 @@ "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& t)", "call_args": "(a,b,t)", "cimguiname": "igImLerp", + "conv": "ImVec2", "defaults": {}, "funcname": "ImLerp", "location": "imgui_internal:521", "nonUDT": 1, "ov_cimguiname": "igImLerp_Vec2Vec2", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,const ImVec2)", "stname": "" }, { - "args": "(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t)", + "args": "(const ImVec4 a,const ImVec4 b,float t)", "argsT": [ - { - "name": "pOut", - "type": "ImVec4*" - }, { "name": "a", "type": "const ImVec4" @@ -26807,24 +26626,21 @@ "argsoriginal": "(const ImVec4& a,const ImVec4& b,float t)", "call_args": "(a,b,t)", "cimguiname": "igImLerp", + "conv": "ImVec4", "defaults": {}, "funcname": "ImLerp", "location": "imgui_internal:522", "nonUDT": 1, "ov_cimguiname": "igImLerp_Vec4", - "ret": "void", + "ret": "ImVec4_c", "signature": "(const ImVec4,const ImVec4,float)", "stname": "" } ], "igImLineClosestPoint": [ { - "args": "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p)", + "args": "(const ImVec2 a,const ImVec2 b,const ImVec2 p)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "a", "type": "const ImVec2" @@ -26841,12 +26657,13 @@ "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& p)", "call_args": "(a,b,p)", "cimguiname": "igImLineClosestPoint", + "conv": "ImVec2", "defaults": {}, "funcname": "ImLineClosestPoint", "location": "imgui_internal:548", "nonUDT": 1, "ov_cimguiname": "igImLineClosestPoint", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,const ImVec2)", "stname": "" } @@ -26988,12 +26805,8 @@ ], "igImMax": [ { - "args": "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + "args": "(const ImVec2 lhs,const ImVec2 rhs)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "lhs", "type": "const ImVec2" @@ -27006,12 +26819,13 @@ "argsoriginal": "(const ImVec2& lhs,const ImVec2& rhs)", "call_args": "(lhs,rhs)", "cimguiname": "igImMax", + "conv": "ImVec2", "defaults": {}, "funcname": "ImMax", "location": "imgui_internal:518", "nonUDT": 1, "ov_cimguiname": "igImMax", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2)", "stname": "" } @@ -27043,12 +26857,8 @@ ], "igImMin": [ { - "args": "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + "args": "(const ImVec2 lhs,const ImVec2 rhs)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "lhs", "type": "const ImVec2" @@ -27061,12 +26871,13 @@ "argsoriginal": "(const ImVec2& lhs,const ImVec2& rhs)", "call_args": "(lhs,rhs)", "cimguiname": "igImMin", + "conv": "ImVec2", "defaults": {}, "funcname": "ImMin", "location": "imgui_internal:517", "nonUDT": 1, "ov_cimguiname": "igImMin", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2)", "stname": "" } @@ -27098,12 +26909,8 @@ ], "igImMul": [ { - "args": "(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + "args": "(const ImVec2 lhs,const ImVec2 rhs)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "lhs", "type": "const ImVec2" @@ -27116,12 +26923,13 @@ "argsoriginal": "(const ImVec2& lhs,const ImVec2& rhs)", "call_args": "(lhs,rhs)", "cimguiname": "igImMul", + "conv": "ImVec2", "defaults": {}, "funcname": "ImMul", "location": "imgui_internal:538", "nonUDT": 1, "ov_cimguiname": "igImMul", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2)", "stname": "" } @@ -27365,12 +27173,8 @@ ], "igImRotate": [ { - "args": "(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a)", + "args": "(const ImVec2 v,float cos_a,float sin_a)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "v", "type": "const ImVec2" @@ -27387,12 +27191,13 @@ "argsoriginal": "(const ImVec2& v,float cos_a,float sin_a)", "call_args": "(v,cos_a,sin_a)", "cimguiname": "igImRotate", + "conv": "ImVec2", "defaults": {}, "funcname": "ImRotate", "location": "imgui_internal:535", "nonUDT": 1, "ov_cimguiname": "igImRotate", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,float,float)", "stname": "" } @@ -28272,12 +28077,8 @@ ], "igImTriangleClosestPoint": [ { - "args": "(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p)", + "args": "(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "a", "type": "const ImVec2" @@ -28298,12 +28099,13 @@ "argsoriginal": "(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& p)", "call_args": "(a,b,c,p)", "cimguiname": "igImTriangleClosestPoint", + "conv": "ImVec2", "defaults": {}, "funcname": "ImTriangleClosestPoint", "location": "imgui_internal:550", "nonUDT": 1, "ov_cimguiname": "igImTriangleClosestPoint", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2,const ImVec2,const ImVec2,const ImVec2)", "stname": "" } @@ -28391,12 +28193,8 @@ "stname": "" }, { - "args": "(ImVec2 *pOut,const ImVec2 v)", + "args": "(const ImVec2 v)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "v", "type": "const ImVec2" @@ -28405,12 +28203,13 @@ "argsoriginal": "(const ImVec2& v)", "call_args": "(v)", "cimguiname": "igImTrunc", + "conv": "ImVec2", "defaults": {}, "funcname": "ImTrunc", "location": "imgui_internal:528", "nonUDT": 1, "ov_cimguiname": "igImTrunc_Vec2", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const ImVec2)", "stname": "" } @@ -34433,12 +34232,8 @@ ], "igScrollToRectEx": [ { - "args": "(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags)", + "args": "(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -34455,6 +34250,7 @@ "argsoriginal": "(ImGuiWindow* window,const ImRect& rect,ImGuiScrollFlags flags=0)", "call_args": "(window,rect,flags)", "cimguiname": "igScrollToRectEx", + "conv": "ImVec2", "defaults": { "flags": "0" }, @@ -34463,7 +34259,7 @@ "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igScrollToRectEx", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImGuiWindow*,const ImRect,ImGuiScrollFlags)", "stname": "" } @@ -38635,12 +38431,8 @@ ], "igTabItemCalcSize": [ { - "args": "(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker)", + "args": "(const char* label,bool has_close_button_or_unsaved_marker)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "label", "type": "const char*" @@ -38653,23 +38445,20 @@ "argsoriginal": "(const char* label,bool has_close_button_or_unsaved_marker)", "call_args": "(label,has_close_button_or_unsaved_marker)", "cimguiname": "igTabItemCalcSize", + "conv": "ImVec2", "defaults": {}, "funcname": "TabItemCalcSize", "location": "imgui_internal:3834", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igTabItemCalcSize_Str", - "ret": "void", + "ret": "ImVec2_c", "signature": "(const char*,bool)", "stname": "" }, { - "args": "(ImVec2 *pOut,ImGuiWindow* window)", + "args": "(ImGuiWindow* window)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -38678,13 +38467,14 @@ "argsoriginal": "(ImGuiWindow* window)", "call_args": "(window)", "cimguiname": "igTabItemCalcSize", + "conv": "ImVec2", "defaults": {}, "funcname": "TabItemCalcSize", "location": "imgui_internal:3835", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igTabItemCalcSize_WindowPtr", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImGuiWindow*)", "stname": "" } @@ -39237,12 +39027,8 @@ ], "igTableGetCellBgRect": [ { - "args": "(ImRect *pOut,const ImGuiTable* table,int column_n)", + "args": "(const ImGuiTable* table,int column_n)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "table", "type": "const ImGuiTable*" @@ -39255,13 +39041,14 @@ "argsoriginal": "(const ImGuiTable* table,int column_n)", "call_args": "(table,column_n)", "cimguiname": "igTableGetCellBgRect", + "conv": "ImRect", "defaults": {}, "funcname": "TableGetCellBgRect", "location": "imgui_internal:3793", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igTableGetCellBgRect", - "ret": "void", + "ret": "ImRect_c", "signature": "(const ImGuiTable*,int)", "stname": "" } @@ -42115,12 +41902,8 @@ ], "igWindowPosAbsToRel": [ { - "args": "(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p)", + "args": "(ImGuiWindow* window,const ImVec2 p)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -42133,25 +41916,22 @@ "argsoriginal": "(ImGuiWindow* window,const ImVec2& p)", "call_args": "(window,p)", "cimguiname": "igWindowPosAbsToRel", + "conv": "ImVec2", "defaults": {}, "funcname": "WindowPosAbsToRel", "location": "imgui_internal:3372", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowPosAbsToRel", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImGuiWindow*,const ImVec2)", "stname": "" } ], "igWindowPosRelToAbs": [ { - "args": "(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p)", + "args": "(ImGuiWindow* window,const ImVec2 p)", "argsT": [ - { - "name": "pOut", - "type": "ImVec2*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -42164,25 +41944,22 @@ "argsoriginal": "(ImGuiWindow* window,const ImVec2& p)", "call_args": "(window,p)", "cimguiname": "igWindowPosRelToAbs", + "conv": "ImVec2", "defaults": {}, "funcname": "WindowPosRelToAbs", "location": "imgui_internal:3373", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowPosRelToAbs", - "ret": "void", + "ret": "ImVec2_c", "signature": "(ImGuiWindow*,const ImVec2)", "stname": "" } ], "igWindowRectAbsToRel": [ { - "args": "(ImRect *pOut,ImGuiWindow* window,const ImRect r)", + "args": "(ImGuiWindow* window,const ImRect r)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -42195,25 +41972,22 @@ "argsoriginal": "(ImGuiWindow* window,const ImRect& r)", "call_args": "(window,r)", "cimguiname": "igWindowRectAbsToRel", + "conv": "ImRect", "defaults": {}, "funcname": "WindowRectAbsToRel", "location": "imgui_internal:3370", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowRectAbsToRel", - "ret": "void", + "ret": "ImRect_c", "signature": "(ImGuiWindow*,const ImRect)", "stname": "" } ], "igWindowRectRelToAbs": [ { - "args": "(ImRect *pOut,ImGuiWindow* window,const ImRect r)", + "args": "(ImGuiWindow* window,const ImRect r)", "argsT": [ - { - "name": "pOut", - "type": "ImRect*" - }, { "name": "window", "type": "ImGuiWindow*" @@ -42226,13 +42000,14 @@ "argsoriginal": "(ImGuiWindow* window,const ImRect& r)", "call_args": "(window,r)", "cimguiname": "igWindowRectRelToAbs", + "conv": "ImRect", "defaults": {}, "funcname": "WindowRectRelToAbs", "location": "imgui_internal:3371", "namespace": "ImGui", "nonUDT": 1, "ov_cimguiname": "igWindowRectRelToAbs", - "ret": "void", + "ret": "ImRect_c", "signature": "(ImGuiWindow*,const ImRect)", "stname": "" } diff --git a/generator/output/definitions.lua b/generator/output/definitions.lua index 873c0ce..8b0749d 100644 --- a/generator/output/definitions.lua +++ b/generator/output/definitions.lua @@ -494,26 +494,24 @@ local t={ ["(ImChunkStream_T *)"]=nil}, ImColor_HSV={ [1]={ - args="(ImColor *pOut,float h,float s,float v,float a)", + args="(float h,float s,float v,float a)", argsT={ [1]={ - name="pOut", - type="ImColor*"}, - [2]={ name="h", type="float"}, - [3]={ + [2]={ name="s", type="float"}, - [4]={ + [3]={ name="v", type="float"}, - [5]={ + [4]={ name="a", type="float"}}, argsoriginal="(float h,float s,float v,float a=1.0f)", call_args="(h,s,v,a)", cimguiname="ImColor_HSV", + conv="ImColor", defaults={ a="1.0f"}, funcname="HSV", @@ -521,7 +519,7 @@ local t={ location="imgui:3071", nonUDT=1, ov_cimguiname="ImColor_HSV", - ret="void", + ret="ImColor_c", signature="(float,float,float,float)", stname="ImColor"}, ["(float,float,float,float)"]=nil}, @@ -2039,45 +2037,41 @@ local t={ ["()const"]=nil}, ImDrawList_GetClipRectMax={ [1]={ - args="(ImVec2 *pOut,ImDrawList* self)", + args="(ImDrawList* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImDrawList*"}}, argsoriginal="()", call_args="()", cimguiname="ImDrawList_GetClipRectMax", + conv="ImVec2", defaults={}, funcname="GetClipRectMax", location="imgui:3401", nonUDT=1, ov_cimguiname="ImDrawList_GetClipRectMax", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImDrawList"}, ["()const"]=nil}, ImDrawList_GetClipRectMin={ [1]={ - args="(ImVec2 *pOut,ImDrawList* self)", + args="(ImDrawList* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImDrawList*"}}, argsoriginal="()", call_args="()", cimguiname="ImDrawList_GetClipRectMin", + conv="ImVec2", defaults={}, funcname="GetClipRectMin", location="imgui:3400", nonUDT=1, ov_cimguiname="ImDrawList_GetClipRectMin", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImDrawList"}, ["()const"]=nil}, @@ -3963,35 +3957,33 @@ local t={ ["(ImWchar,ImWchar)"]=nil}, ImFont_CalcTextSizeA={ [1]={ - args="(ImVec2 *pOut,ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** out_remaining)", + args="(ImFont* self,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end,const char** out_remaining)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImFont*"}, - [3]={ + [2]={ name="size", type="float"}, - [4]={ + [3]={ name="max_width", type="float"}, - [5]={ + [4]={ name="wrap_width", type="float"}, - [6]={ + [5]={ name="text_begin", type="const char*"}, - [7]={ + [6]={ name="text_end", type="const char*"}, - [8]={ + [7]={ name="out_remaining", type="const char**"}}, argsoriginal="(float size,float max_width,float wrap_width,const char* text_begin,const char* text_end=((void*)0),const char** out_remaining=((void*)0))", call_args="(size,max_width,wrap_width,text_begin,text_end,out_remaining)", cimguiname="ImFont_CalcTextSizeA", + conv="ImVec2", defaults={ out_remaining="NULL", text_end="NULL"}, @@ -3999,7 +3991,7 @@ local t={ location="imgui:3980", nonUDT=1, ov_cimguiname="ImFont_CalcTextSizeA", - ret="void", + ret="ImVec2_c", signature="(float,float,float,const char*,const char*,const char**)", stname="ImFont"}, ["(float,float,float,const char*,const char*,const char**)"]=nil}, @@ -4651,23 +4643,21 @@ local t={ ["()const"]=nil}, ImGuiDockNode_Rect={ [1]={ - args="(ImRect *pOut,ImGuiDockNode* self)", + args="(ImGuiDockNode* self)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="self", type="ImGuiDockNode*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiDockNode_Rect", + conv="ImRect", defaults={}, funcname="Rect", location="imgui_internal:2066", nonUDT=1, ov_cimguiname="ImGuiDockNode_Rect", - ret="void", + ret="ImRect_c", signature="()const", stname="ImGuiDockNode"}, ["()const"]=nil}, @@ -8849,54 +8839,50 @@ local t={ ["(ImGuiTypingSelectState*)"]=nil}, ImGuiViewportP_CalcWorkRectPos={ [1]={ - args="(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 inset_min)", + args="(ImGuiViewportP* self,const ImVec2 inset_min)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImGuiViewportP*"}, - [3]={ + [2]={ name="inset_min", type="const ImVec2"}}, argsoriginal="(const ImVec2& inset_min)", call_args="(inset_min)", cimguiname="ImGuiViewportP_CalcWorkRectPos", + conv="ImVec2", defaults={}, funcname="CalcWorkRectPos", location="imgui_internal:2147", nonUDT=1, ov_cimguiname="ImGuiViewportP_CalcWorkRectPos", - ret="void", + ret="ImVec2_c", signature="(const ImVec2)const", stname="ImGuiViewportP"}, ["(const ImVec2)const"]=nil}, ImGuiViewportP_CalcWorkRectSize={ [1]={ - args="(ImVec2 *pOut,ImGuiViewportP* self,const ImVec2 inset_min,const ImVec2 inset_max)", + args="(ImGuiViewportP* self,const ImVec2 inset_min,const ImVec2 inset_max)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImGuiViewportP*"}, - [3]={ + [2]={ name="inset_min", type="const ImVec2"}, - [4]={ + [3]={ name="inset_max", type="const ImVec2"}}, argsoriginal="(const ImVec2& inset_min,const ImVec2& inset_max)", call_args="(inset_min,inset_max)", cimguiname="ImGuiViewportP_CalcWorkRectSize", + conv="ImVec2", defaults={}, funcname="CalcWorkRectSize", location="imgui_internal:2148", nonUDT=1, ov_cimguiname="ImGuiViewportP_CalcWorkRectSize", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2)const", stname="ImGuiViewportP"}, ["(const ImVec2,const ImVec2)const"]=nil}, @@ -8920,67 +8906,61 @@ local t={ ["()"]=nil}, ImGuiViewportP_GetBuildWorkRect={ [1]={ - args="(ImRect *pOut,ImGuiViewportP* self)", + args="(ImGuiViewportP* self)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="self", type="ImGuiViewportP*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiViewportP_GetBuildWorkRect", + conv="ImRect", defaults={}, funcname="GetBuildWorkRect", location="imgui_internal:2154", nonUDT=1, ov_cimguiname="ImGuiViewportP_GetBuildWorkRect", - ret="void", + ret="ImRect_c", signature="()const", stname="ImGuiViewportP"}, ["()const"]=nil}, ImGuiViewportP_GetMainRect={ [1]={ - args="(ImRect *pOut,ImGuiViewportP* self)", + args="(ImGuiViewportP* self)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="self", type="ImGuiViewportP*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiViewportP_GetMainRect", + conv="ImRect", defaults={}, funcname="GetMainRect", location="imgui_internal:2152", nonUDT=1, ov_cimguiname="ImGuiViewportP_GetMainRect", - ret="void", + ret="ImRect_c", signature="()const", stname="ImGuiViewportP"}, ["()const"]=nil}, ImGuiViewportP_GetWorkRect={ [1]={ - args="(ImRect *pOut,ImGuiViewportP* self)", + args="(ImGuiViewportP* self)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="self", type="ImGuiViewportP*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiViewportP_GetWorkRect", + conv="ImRect", defaults={}, funcname="GetWorkRect", location="imgui_internal:2153", nonUDT=1, ov_cimguiname="ImGuiViewportP_GetWorkRect", - ret="void", + ret="ImRect_c", signature="()const", stname="ImGuiViewportP"}, ["()const"]=nil}, @@ -9037,45 +9017,41 @@ local t={ ["(ImGuiViewportP*)"]=nil}, ImGuiViewport_GetCenter={ [1]={ - args="(ImVec2 *pOut,ImGuiViewport* self)", + args="(ImGuiViewport* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImGuiViewport*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiViewport_GetCenter", + conv="ImVec2", defaults={}, funcname="GetCenter", location="imgui:4077", nonUDT=1, ov_cimguiname="ImGuiViewport_GetCenter", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImGuiViewport"}, ["()const"]=nil}, ImGuiViewport_GetWorkCenter={ [1]={ - args="(ImVec2 *pOut,ImGuiViewport* self)", + args="(ImGuiViewport* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImGuiViewport*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiViewport_GetWorkCenter", + conv="ImVec2", defaults={}, funcname="GetWorkCenter", location="imgui:4078", nonUDT=1, ov_cimguiname="ImGuiViewport_GetWorkCenter", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImGuiViewport"}, ["()const"]=nil}, @@ -9324,67 +9300,61 @@ local t={ ["(ImGuiContext*,const char*)"]=nil}, ImGuiWindow_MenuBarRect={ [1]={ - args="(ImRect *pOut,ImGuiWindow* self)", + args="(ImGuiWindow* self)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="self", type="ImGuiWindow*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiWindow_MenuBarRect", + conv="ImRect", defaults={}, funcname="MenuBarRect", location="imgui_internal:2960", nonUDT=1, ov_cimguiname="ImGuiWindow_MenuBarRect", - ret="void", + ret="ImRect_c", signature="()const", stname="ImGuiWindow"}, ["()const"]=nil}, ImGuiWindow_Rect={ [1]={ - args="(ImRect *pOut,ImGuiWindow* self)", + args="(ImGuiWindow* self)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="self", type="ImGuiWindow*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiWindow_Rect", + conv="ImRect", defaults={}, funcname="Rect", location="imgui_internal:2958", nonUDT=1, ov_cimguiname="ImGuiWindow_Rect", - ret="void", + ret="ImRect_c", signature="()const", stname="ImGuiWindow"}, ["()const"]=nil}, ImGuiWindow_TitleBarRect={ [1]={ - args="(ImRect *pOut,ImGuiWindow* self)", + args="(ImGuiWindow* self)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="self", type="ImGuiWindow*"}}, argsoriginal="()", call_args="()", cimguiname="ImGuiWindow_TitleBarRect", + conv="ImRect", defaults={}, funcname="TitleBarRect", location="imgui_internal:2959", nonUDT=1, ov_cimguiname="ImGuiWindow_TitleBarRect", - ret="void", + ret="ImRect_c", signature="()const", stname="ImGuiWindow"}, ["()const"]=nil}, @@ -9985,67 +9955,61 @@ local t={ ["()const"]=nil}, ImRect_GetBL={ [1]={ - args="(ImVec2 *pOut,ImRect* self)", + args="(ImRect* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImRect*"}}, argsoriginal="()", call_args="()", cimguiname="ImRect_GetBL", + conv="ImVec2", defaults={}, funcname="GetBL", location="imgui_internal:601", nonUDT=1, ov_cimguiname="ImRect_GetBL", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImRect"}, ["()const"]=nil}, ImRect_GetBR={ [1]={ - args="(ImVec2 *pOut,ImRect* self)", + args="(ImRect* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImRect*"}}, argsoriginal="()", call_args="()", cimguiname="ImRect_GetBR", + conv="ImVec2", defaults={}, funcname="GetBR", location="imgui_internal:602", nonUDT=1, ov_cimguiname="ImRect_GetBR", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImRect"}, ["()const"]=nil}, ImRect_GetCenter={ [1]={ - args="(ImVec2 *pOut,ImRect* self)", + args="(ImRect* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImRect*"}}, argsoriginal="()", call_args="()", cimguiname="ImRect_GetCenter", + conv="ImVec2", defaults={}, funcname="GetCenter", location="imgui_internal:594", nonUDT=1, ov_cimguiname="ImRect_GetCenter", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImRect"}, ["()const"]=nil}, @@ -10069,67 +10033,61 @@ local t={ ["()const"]=nil}, ImRect_GetSize={ [1]={ - args="(ImVec2 *pOut,ImRect* self)", + args="(ImRect* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImRect*"}}, argsoriginal="()", call_args="()", cimguiname="ImRect_GetSize", + conv="ImVec2", defaults={}, funcname="GetSize", location="imgui_internal:595", nonUDT=1, ov_cimguiname="ImRect_GetSize", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImRect"}, ["()const"]=nil}, ImRect_GetTL={ [1]={ - args="(ImVec2 *pOut,ImRect* self)", + args="(ImRect* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImRect*"}}, argsoriginal="()", call_args="()", cimguiname="ImRect_GetTL", + conv="ImVec2", defaults={}, funcname="GetTL", location="imgui_internal:599", nonUDT=1, ov_cimguiname="ImRect_GetTL", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImRect"}, ["()const"]=nil}, ImRect_GetTR={ [1]={ - args="(ImVec2 *pOut,ImRect* self)", + args="(ImRect* self)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="self", type="ImRect*"}}, argsoriginal="()", call_args="()", cimguiname="ImRect_GetTR", + conv="ImVec2", defaults={}, funcname="GetTR", location="imgui_internal:600", nonUDT=1, ov_cimguiname="ImRect_GetTR", - ret="void", + ret="ImVec2_c", signature="()const", stname="ImRect"}, ["()const"]=nil}, @@ -10270,23 +10228,21 @@ local t={ ["(const ImRect)const"]=nil}, ImRect_ToVec4={ [1]={ - args="(ImVec4 *pOut,ImRect* self)", + args="(ImRect* self)", argsT={ [1]={ - name="pOut", - type="ImVec4*"}, - [2]={ name="self", type="ImRect*"}}, argsoriginal="()", call_args="()", cimguiname="ImRect_ToVec4", + conv="ImVec4", defaults={}, funcname="ToVec4", location="imgui_internal:618", nonUDT=1, ov_cimguiname="ImRect_ToVec4", - ret="void", + ret="ImVec4_c", signature="()const", stname="ImRect"}, ["()const"]=nil}, @@ -11005,23 +10961,21 @@ local t={ ["()const"]=nil}, ImTextureData_GetTexRef={ [1]={ - args="(ImTextureRef *pOut,ImTextureData* self)", + args="(ImTextureData* self)", argsT={ [1]={ - name="pOut", - type="ImTextureRef*"}, - [2]={ name="self", type="ImTextureData*"}}, argsoriginal="()", call_args="()", cimguiname="ImTextureData_GetTexRef", + conv="ImTextureRef", defaults={}, funcname="GetTexRef", location="imgui:3620", nonUDT=1, ov_cimguiname="ImTextureData_GetTexRef", - ret="void", + ret="ImTextureRef_c", signature="()", stname="ImTextureData"}, ["()"]=nil}, @@ -13696,30 +13650,28 @@ local t={ ["(const ImRect,const ImVec2,float,int*,int*)"]=nil}, igCalcItemSize={ [1]={ - args="(ImVec2 *pOut,ImVec2 size,float default_w,float default_h)", + args="(ImVec2 size,float default_w,float default_h)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="size", type="ImVec2"}, - [3]={ + [2]={ name="default_w", type="float"}, - [4]={ + [3]={ name="default_h", type="float"}}, argsoriginal="(ImVec2 size,float default_w,float default_h)", call_args="(size,default_w,default_h)", cimguiname="igCalcItemSize", + conv="ImVec2", defaults={}, funcname="CalcItemSize", location="imgui_internal:3488", namespace="ImGui", nonUDT=1, ov_cimguiname="igCalcItemSize", - ret="void", + ret="ImVec2_c", signature="(ImVec2,float,float)", stname=""}, ["(ImVec2,float,float)"]=nil}, @@ -13766,26 +13718,24 @@ local t={ ["(const ImRect,const ImRect,float)"]=nil}, igCalcTextSize={ [1]={ - args="(ImVec2 *pOut,const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)", + args="(const char* text,const char* text_end,bool hide_text_after_double_hash,float wrap_width)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="text", type="const char*"}, - [3]={ + [2]={ name="text_end", type="const char*"}, - [4]={ + [3]={ name="hide_text_after_double_hash", type="bool"}, - [5]={ + [4]={ name="wrap_width", type="float"}}, argsoriginal="(const char* text,const char* text_end=((void*)0),bool hide_text_after_double_hash=false,float wrap_width=-1.0f)", call_args="(text,text_end,hide_text_after_double_hash,wrap_width)", cimguiname="igCalcTextSize", + conv="ImVec2", defaults={ hide_text_after_double_hash="false", text_end="NULL", @@ -13795,7 +13745,7 @@ local t={ namespace="ImGui", nonUDT=1, ov_cimguiname="igCalcTextSize", - ret="void", + ret="ImVec2_c", signature="(const char*,const char*,bool,float)", stname=""}, ["(const char*,const char*,bool,float)"]=nil}, @@ -13829,24 +13779,22 @@ local t={ ["(float,float,float,float)"]=nil}, igCalcWindowNextAutoFitSize={ [1]={ - args="(ImVec2 *pOut,ImGuiWindow* window)", + args="(ImGuiWindow* window)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="window", type="ImGuiWindow*"}}, argsoriginal="(ImGuiWindow* window)", call_args="(window)", cimguiname="igCalcWindowNextAutoFitSize", + conv="ImVec2", defaults={}, funcname="CalcWindowNextAutoFitSize", location="imgui_internal:3359", namespace="ImGui", nonUDT=1, ov_cimguiname="igCalcWindowNextAutoFitSize", - ret="void", + ret="ImVec2_c", signature="(ImGuiWindow*)", stname=""}, ["(ImGuiWindow*)"]=nil}, @@ -14376,24 +14324,22 @@ local t={ ["(float,float,float,float*,float*,float*)"]=nil}, igColorConvertU32ToFloat4={ [1]={ - args="(ImVec4 *pOut,ImU32 in)", + args="(ImU32 in)", argsT={ [1]={ - name="pOut", - type="ImVec4*"}, - [2]={ name="in", type="ImU32"}}, argsoriginal="(ImU32 in)", call_args="(in)", cimguiname="igColorConvertU32ToFloat4", + conv="ImVec4", defaults={}, funcname="ColorConvertU32ToFloat4", location="imgui:1075", namespace="ImGui", nonUDT=1, ov_cimguiname="igColorConvertU32ToFloat4", - ret="void", + ret="ImVec4_c", signature="(ImU32)", stname=""}, ["(ImU32)"]=nil}, @@ -17823,62 +17769,58 @@ local t={ ["(const ImGuiErrorRecoveryState*)"]=nil}, igFindBestWindowPosForPopup={ [1]={ - args="(ImVec2 *pOut,ImGuiWindow* window)", + args="(ImGuiWindow* window)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="window", type="ImGuiWindow*"}}, argsoriginal="(ImGuiWindow* window)", call_args="(window)", cimguiname="igFindBestWindowPosForPopup", + conv="ImVec2", defaults={}, funcname="FindBestWindowPosForPopup", location="imgui_internal:3520", namespace="ImGui", nonUDT=1, ov_cimguiname="igFindBestWindowPosForPopup", - ret="void", + ret="ImVec2_c", signature="(ImGuiWindow*)", stname=""}, ["(ImGuiWindow*)"]=nil}, igFindBestWindowPosForPopupEx={ [1]={ - args="(ImVec2 *pOut,const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy)", + args="(const ImVec2 ref_pos,const ImVec2 size,ImGuiDir* last_dir,const ImRect r_outer,const ImRect r_avoid,ImGuiPopupPositionPolicy policy)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="ref_pos", type="const ImVec2"}, - [3]={ + [2]={ name="size", type="const ImVec2"}, - [4]={ + [3]={ name="last_dir", type="ImGuiDir*"}, - [5]={ + [4]={ name="r_outer", type="const ImRect"}, - [6]={ + [5]={ name="r_avoid", type="const ImRect"}, - [7]={ + [6]={ name="policy", type="ImGuiPopupPositionPolicy"}}, argsoriginal="(const ImVec2& ref_pos,const ImVec2& size,ImGuiDir* last_dir,const ImRect& r_outer,const ImRect& r_avoid,ImGuiPopupPositionPolicy policy)", call_args="(ref_pos,size,last_dir,r_outer,r_avoid,policy)", cimguiname="igFindBestWindowPosForPopupEx", + conv="ImVec2", defaults={}, funcname="FindBestWindowPosForPopupEx", location="imgui_internal:3521", namespace="ImGui", nonUDT=1, ov_cimguiname="igFindBestWindowPosForPopupEx", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,ImGuiDir*,const ImRect,const ImRect,ImGuiPopupPositionPolicy)", stname=""}, ["(const ImVec2,const ImVec2,ImGuiDir*,const ImRect,const ImRect,ImGuiPopupPositionPolicy)"]=nil}, @@ -18603,21 +18545,19 @@ local t={ ["(const char*,int)"]=nil}, igGetContentRegionAvail={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetContentRegionAvail", + conv="ImVec2", defaults={}, funcname="GetContentRegionAvail", location="imgui:571", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetContentRegionAvail", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, @@ -18719,21 +18659,19 @@ local t={ ["()"]=nil}, igGetCursorPos={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetCursorPos", + conv="ImVec2", defaults={}, funcname="GetCursorPos", location="imgui:572", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetCursorPos", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, @@ -18771,41 +18709,37 @@ local t={ ["()"]=nil}, igGetCursorScreenPos={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetCursorScreenPos", + conv="ImVec2", defaults={}, funcname="GetCursorScreenPos", location="imgui:569", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetCursorScreenPos", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, igGetCursorStartPos={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetCursorStartPos", + conv="ImVec2", defaults={}, funcname="GetCursorStartPos", location="imgui:578", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetCursorStartPos", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, @@ -18955,21 +18889,19 @@ local t={ ["()"]=nil}, igGetFontTexUvWhitePixel={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetFontTexUvWhitePixel", + conv="ImVec2", defaults={}, funcname="GetFontTexUvWhitePixel", location="imgui:553", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetFontTexUvWhitePixel", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, @@ -19286,61 +19218,55 @@ local t={ ["()"]=nil}, igGetItemRectMax={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetItemRectMax", + conv="ImVec2", defaults={}, funcname="GetItemRectMax", location="imgui:1048", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetItemRectMax", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, igGetItemRectMin={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetItemRectMin", + conv="ImVec2", defaults={}, funcname="GetItemRectMin", location="imgui:1047", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetItemRectMin", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, igGetItemRectSize={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetItemRectSize", + conv="ImVec2", defaults={}, funcname="GetItemRectSize", location="imgui:1049", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetItemRectSize", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, @@ -19421,33 +19347,31 @@ local t={ ["(ImGuiKey)"]=nil}, igGetKeyMagnitude2d={ [1]={ - args="(ImVec2 *pOut,ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", + args="(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="key_left", type="ImGuiKey"}, - [3]={ + [2]={ name="key_right", type="ImGuiKey"}, - [4]={ + [3]={ name="key_up", type="ImGuiKey"}, - [5]={ + [4]={ name="key_down", type="ImGuiKey"}}, argsoriginal="(ImGuiKey key_left,ImGuiKey key_right,ImGuiKey key_up,ImGuiKey key_down)", call_args="(key_left,key_right,key_up,key_down)", cimguiname="igGetKeyMagnitude2d", + conv="ImVec2", defaults={}, funcname="GetKeyMagnitude2d", location="imgui_internal:3587", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetKeyMagnitude2d", - ret="void", + ret="ImVec2_c", signature="(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)", stname=""}, ["(ImGuiKey,ImGuiKey,ImGuiKey,ImGuiKey)"]=nil}, @@ -19589,20 +19513,18 @@ local t={ ["()"]=nil}, igGetMouseDragDelta={ [1]={ - args="(ImVec2 *pOut,ImGuiMouseButton button,float lock_threshold)", + args="(ImGuiMouseButton button,float lock_threshold)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="button", type="ImGuiMouseButton"}, - [3]={ + [2]={ name="lock_threshold", type="float"}}, argsoriginal="(ImGuiMouseButton button=0,float lock_threshold=-1.0f)", call_args="(button,lock_threshold)", cimguiname="igGetMouseDragDelta", + conv="ImVec2", defaults={ button="0", lock_threshold="-1.0f"}, @@ -19611,47 +19533,43 @@ local t={ namespace="ImGui", nonUDT=1, ov_cimguiname="igGetMouseDragDelta", - ret="void", + ret="ImVec2_c", signature="(ImGuiMouseButton,float)", stname=""}, ["(ImGuiMouseButton,float)"]=nil}, igGetMousePos={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetMousePos", + conv="ImVec2", defaults={}, funcname="GetMousePos", location="imgui:1131", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetMousePos", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, igGetMousePosOnOpeningCurrentPopup={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetMousePosOnOpeningCurrentPopup", + conv="ImVec2", defaults={}, funcname="GetMousePosOnOpeningCurrentPopup", location="imgui:1132", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetMousePosOnOpeningCurrentPopup", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, @@ -19731,24 +19649,22 @@ local t={ ["(ImGuiContext*)"]=nil}, igGetPopupAllowedExtentRect={ [1]={ - args="(ImRect *pOut,ImGuiWindow* window)", + args="(ImGuiWindow* window)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="window", type="ImGuiWindow*"}}, argsoriginal="(ImGuiWindow* window)", call_args="(window)", cimguiname="igGetPopupAllowedExtentRect", + conv="ImRect", defaults={}, funcname="GetPopupAllowedExtentRect", location="imgui_internal:3516", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetPopupAllowedExtentRect", - ret="void", + ret="ImRect_c", signature="(ImGuiWindow*)", stname=""}, ["(ImGuiWindow*)"]=nil}, @@ -20222,21 +20138,19 @@ local t={ ["()"]=nil}, igGetWindowPos={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetWindowPos", + conv="ImVec2", defaults={}, funcname="GetWindowPos", location="imgui:469", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetWindowPos", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, @@ -20308,47 +20222,43 @@ local t={ ["(ImGuiWindow*,ImGuiAxis)"]=nil}, igGetWindowScrollbarRect={ [1]={ - args="(ImRect *pOut,ImGuiWindow* window,ImGuiAxis axis)", + args="(ImGuiWindow* window,ImGuiAxis axis)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="window", type="ImGuiWindow*"}, - [3]={ + [2]={ name="axis", type="ImGuiAxis"}}, argsoriginal="(ImGuiWindow* window,ImGuiAxis axis)", call_args="(window,axis)", cimguiname="igGetWindowScrollbarRect", + conv="ImRect", defaults={}, funcname="GetWindowScrollbarRect", location="imgui_internal:3886", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetWindowScrollbarRect", - ret="void", + ret="ImRect_c", signature="(ImGuiWindow*,ImGuiAxis)", stname=""}, ["(ImGuiWindow*,ImGuiAxis)"]=nil}, igGetWindowSize={ [1]={ - args="(ImVec2 *pOut)", - argsT={ - [1]={ - name="pOut", - type="ImVec2*"}}, + args="()", + argsT={}, argsoriginal="()", call_args="()", cimguiname="igGetWindowSize", + conv="ImVec2", defaults={}, funcname="GetWindowSize", location="imgui:470", namespace="ImGui", nonUDT=1, ov_cimguiname="igGetWindowSize", - ret="void", + ret="ImVec2_c", signature="()", stname=""}, ["()"]=nil}, @@ -20459,140 +20369,132 @@ local t={ ["(ImU32,ImU32)"]=nil}, igImBezierCubicCalc={ [1]={ - args="(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t)", + args="(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,float t)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="p1", type="const ImVec2"}, - [3]={ + [2]={ name="p2", type="const ImVec2"}, - [4]={ + [3]={ name="p3", type="const ImVec2"}, - [5]={ + [4]={ name="p4", type="const ImVec2"}, - [6]={ + [5]={ name="t", type="float"}}, argsoriginal="(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,float t)", call_args="(p1,p2,p3,p4,t)", cimguiname="igImBezierCubicCalc", + conv="ImVec2", defaults={}, funcname="ImBezierCubicCalc", location="imgui_internal:544", nonUDT=1, ov_cimguiname="igImBezierCubicCalc", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)", stname=""}, ["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)"]=nil}, igImBezierCubicClosestPoint={ [1]={ - args="(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments)", + args="(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,int num_segments)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="p1", type="const ImVec2"}, - [3]={ + [2]={ name="p2", type="const ImVec2"}, - [4]={ + [3]={ name="p3", type="const ImVec2"}, - [5]={ + [4]={ name="p4", type="const ImVec2"}, - [6]={ + [5]={ name="p", type="const ImVec2"}, - [7]={ + [6]={ name="num_segments", type="int"}}, argsoriginal="(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& p,int num_segments)", call_args="(p1,p2,p3,p4,p,num_segments)", cimguiname="igImBezierCubicClosestPoint", + conv="ImVec2", defaults={}, funcname="ImBezierCubicClosestPoint", location="imgui_internal:545", nonUDT=1, ov_cimguiname="igImBezierCubicClosestPoint", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,int)", stname=""}, ["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,int)"]=nil}, igImBezierCubicClosestPointCasteljau={ [1]={ - args="(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol)", + args="(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 p,float tess_tol)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="p1", type="const ImVec2"}, - [3]={ + [2]={ name="p2", type="const ImVec2"}, - [4]={ + [3]={ name="p3", type="const ImVec2"}, - [5]={ + [4]={ name="p4", type="const ImVec2"}, - [6]={ + [5]={ name="p", type="const ImVec2"}, - [7]={ + [6]={ name="tess_tol", type="float"}}, argsoriginal="(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,const ImVec2& p4,const ImVec2& p,float tess_tol)", call_args="(p1,p2,p3,p4,p,tess_tol)", cimguiname="igImBezierCubicClosestPointCasteljau", + conv="ImVec2", defaults={}, funcname="ImBezierCubicClosestPointCasteljau", location="imgui_internal:546", nonUDT=1, ov_cimguiname="igImBezierCubicClosestPointCasteljau", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)", stname=""}, ["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,const ImVec2,float)"]=nil}, igImBezierQuadraticCalc={ [1]={ - args="(ImVec2 *pOut,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t)", + args="(const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,float t)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="p1", type="const ImVec2"}, - [3]={ + [2]={ name="p2", type="const ImVec2"}, - [4]={ + [3]={ name="p3", type="const ImVec2"}, - [5]={ + [4]={ name="t", type="float"}}, argsoriginal="(const ImVec2& p1,const ImVec2& p2,const ImVec2& p3,float t)", call_args="(p1,p2,p3,t)", cimguiname="igImBezierQuadraticCalc", + conv="ImVec2", defaults={}, funcname="ImBezierQuadraticCalc", location="imgui_internal:547", nonUDT=1, ov_cimguiname="igImBezierQuadraticCalc", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,const ImVec2,float)", stname=""}, ["(const ImVec2,const ImVec2,const ImVec2,float)"]=nil}, @@ -20778,29 +20680,27 @@ local t={ ["(char)"]=nil}, igImClamp={ [1]={ - args="(ImVec2 *pOut,const ImVec2 v,const ImVec2 mn,const ImVec2 mx)", + args="(const ImVec2 v,const ImVec2 mn,const ImVec2 mx)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="v", type="const ImVec2"}, - [3]={ + [2]={ name="mn", type="const ImVec2"}, - [4]={ + [3]={ name="mx", type="const ImVec2"}}, argsoriginal="(const ImVec2& v,const ImVec2&mn,const ImVec2&mx)", call_args="(v,mn,mx)", cimguiname="igImClamp", + conv="ImVec2", defaults={}, funcname="ImClamp", location="imgui_internal:519", nonUDT=1, ov_cimguiname="igImClamp", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,const ImVec2)", stname=""}, ["(const ImVec2,const ImVec2,const ImVec2)"]=nil}, @@ -21025,23 +20925,21 @@ local t={ signature="(float)", stname=""}, [2]={ - args="(ImVec2 *pOut,const ImVec2 v)", + args="(const ImVec2 v)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="v", type="const ImVec2"}}, argsoriginal="(const ImVec2& v)", call_args="(v)", cimguiname="igImFloor", + conv="ImVec2", defaults={}, funcname="ImFloor", location="imgui_internal:530", nonUDT=1, ov_cimguiname="igImFloor_Vec2", - ret="void", + ret="ImVec2_c", signature="(const ImVec2)", stname=""}, ["(const ImVec2)"]=nil, @@ -22171,23 +22069,21 @@ local t={ ["(ImFontAtlas*)"]=nil}, igImFontAtlasTextureGetSizeEstimate={ [1]={ - args="(ImVec2i *pOut,ImFontAtlas* atlas)", + args="(ImFontAtlas* atlas)", argsT={ [1]={ - name="pOut", - type="ImVec2i*"}, - [2]={ name="atlas", type="ImFontAtlas*"}}, argsoriginal="(ImFontAtlas* atlas)", call_args="(atlas)", cimguiname="igImFontAtlasTextureGetSizeEstimate", + conv="ImVec2i", defaults={}, funcname="ImFontAtlasTextureGetSizeEstimate", location="imgui_internal:4154", nonUDT=1, ov_cimguiname="igImFontAtlasTextureGetSizeEstimate", - ret="void", + ret="ImVec2i_c", signature="(ImFontAtlas*)", stname=""}, ["(ImFontAtlas*)"]=nil}, @@ -22327,50 +22223,48 @@ local t={ ["(ImFontAtlas*,int,bool)"]=nil}, igImFontCalcTextSizeEx={ [1]={ - args="(ImVec2 *pOut,ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags)", + args="(ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="font", type="ImFont*"}, - [3]={ + [2]={ name="size", type="float"}, - [4]={ + [3]={ name="max_width", type="float"}, - [5]={ + [4]={ name="wrap_width", type="float"}, - [6]={ + [5]={ name="text_begin", type="const char*"}, - [7]={ + [6]={ name="text_end_display", type="const char*"}, - [8]={ + [7]={ name="text_end", type="const char*"}, - [9]={ + [8]={ name="out_remaining", type="const char**"}, - [10]={ + [9]={ name="out_offset", type="ImVec2*"}, - [11]={ + [10]={ name="flags", type="ImDrawTextFlags"}}, argsoriginal="(ImFont* font,float size,float max_width,float wrap_width,const char* text_begin,const char* text_end_display,const char* text_end,const char** out_remaining,ImVec2* out_offset,ImDrawTextFlags flags)", call_args="(font,size,max_width,wrap_width,text_begin,text_end_display,text_end,out_remaining,out_offset,flags)", cimguiname="igImFontCalcTextSizeEx", + conv="ImVec2", defaults={}, funcname="ImFontCalcTextSizeEx", location="imgui_internal:452", nonUDT=1, ov_cimguiname="igImFontCalcTextSizeEx", - ret="void", + ret="ImVec2_c", signature="(ImFont*,float,float,float,const char*,const char*,const char*,const char**,ImVec2*,ImDrawTextFlags)", stname=""}, ["(ImFont*,float,float,float,const char*,const char*,const char*,const char**,ImVec2*,ImDrawTextFlags)"]=nil}, @@ -22698,81 +22592,75 @@ local t={ ["(const ImVec4)"]=nil}, igImLerp={ [1]={ - args="(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,float t)", + args="(const ImVec2 a,const ImVec2 b,float t)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="a", type="const ImVec2"}, - [3]={ + [2]={ name="b", type="const ImVec2"}, - [4]={ + [3]={ name="t", type="float"}}, argsoriginal="(const ImVec2& a,const ImVec2& b,float t)", call_args="(a,b,t)", cimguiname="igImLerp", + conv="ImVec2", defaults={}, funcname="ImLerp", location="imgui_internal:520", nonUDT=1, ov_cimguiname="igImLerp_Vec2Float", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,float)", stname=""}, [2]={ - args="(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 t)", + args="(const ImVec2 a,const ImVec2 b,const ImVec2 t)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="a", type="const ImVec2"}, - [3]={ + [2]={ name="b", type="const ImVec2"}, - [4]={ + [3]={ name="t", type="const ImVec2"}}, argsoriginal="(const ImVec2& a,const ImVec2& b,const ImVec2& t)", call_args="(a,b,t)", cimguiname="igImLerp", + conv="ImVec2", defaults={}, funcname="ImLerp", location="imgui_internal:521", nonUDT=1, ov_cimguiname="igImLerp_Vec2Vec2", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,const ImVec2)", stname=""}, [3]={ - args="(ImVec4 *pOut,const ImVec4 a,const ImVec4 b,float t)", + args="(const ImVec4 a,const ImVec4 b,float t)", argsT={ [1]={ - name="pOut", - type="ImVec4*"}, - [2]={ name="a", type="const ImVec4"}, - [3]={ + [2]={ name="b", type="const ImVec4"}, - [4]={ + [3]={ name="t", type="float"}}, argsoriginal="(const ImVec4& a,const ImVec4& b,float t)", call_args="(a,b,t)", cimguiname="igImLerp", + conv="ImVec4", defaults={}, funcname="ImLerp", location="imgui_internal:522", nonUDT=1, ov_cimguiname="igImLerp_Vec4", - ret="void", + ret="ImVec4_c", signature="(const ImVec4,const ImVec4,float)", stname=""}, ["(const ImVec2,const ImVec2,const ImVec2)"]=nil, @@ -22780,29 +22668,27 @@ local t={ ["(const ImVec4,const ImVec4,float)"]=nil}, igImLineClosestPoint={ [1]={ - args="(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 p)", + args="(const ImVec2 a,const ImVec2 b,const ImVec2 p)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="a", type="const ImVec2"}, - [3]={ + [2]={ name="b", type="const ImVec2"}, - [4]={ + [3]={ name="p", type="const ImVec2"}}, argsoriginal="(const ImVec2& a,const ImVec2& b,const ImVec2& p)", call_args="(a,b,p)", cimguiname="igImLineClosestPoint", + conv="ImVec2", defaults={}, funcname="ImLineClosestPoint", location="imgui_internal:548", nonUDT=1, ov_cimguiname="igImLineClosestPoint", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,const ImVec2)", stname=""}, ["(const ImVec2,const ImVec2,const ImVec2)"]=nil}, @@ -22921,26 +22807,24 @@ local t={ ["(ImGuiStoragePair*,ImGuiStoragePair*,ImGuiID)"]=nil}, igImMax={ [1]={ - args="(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + args="(const ImVec2 lhs,const ImVec2 rhs)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="lhs", type="const ImVec2"}, - [3]={ + [2]={ name="rhs", type="const ImVec2"}}, argsoriginal="(const ImVec2& lhs,const ImVec2& rhs)", call_args="(lhs,rhs)", cimguiname="igImMax", + conv="ImVec2", defaults={}, funcname="ImMax", location="imgui_internal:518", nonUDT=1, ov_cimguiname="igImMax", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2)", stname=""}, ["(const ImVec2,const ImVec2)"]=nil}, @@ -22967,26 +22851,24 @@ local t={ ["(const void*,size_t)"]=nil}, igImMin={ [1]={ - args="(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + args="(const ImVec2 lhs,const ImVec2 rhs)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="lhs", type="const ImVec2"}, - [3]={ + [2]={ name="rhs", type="const ImVec2"}}, argsoriginal="(const ImVec2& lhs,const ImVec2& rhs)", call_args="(lhs,rhs)", cimguiname="igImMin", + conv="ImVec2", defaults={}, funcname="ImMin", location="imgui_internal:517", nonUDT=1, ov_cimguiname="igImMin", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2)", stname=""}, ["(const ImVec2,const ImVec2)"]=nil}, @@ -23013,26 +22895,24 @@ local t={ ["(int,int)"]=nil}, igImMul={ [1]={ - args="(ImVec2 *pOut,const ImVec2 lhs,const ImVec2 rhs)", + args="(const ImVec2 lhs,const ImVec2 rhs)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="lhs", type="const ImVec2"}, - [3]={ + [2]={ name="rhs", type="const ImVec2"}}, argsoriginal="(const ImVec2& lhs,const ImVec2& rhs)", call_args="(lhs,rhs)", cimguiname="igImMul", + conv="ImVec2", defaults={}, funcname="ImMul", location="imgui_internal:538", nonUDT=1, ov_cimguiname="igImMul", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2)", stname=""}, ["(const ImVec2,const ImVec2)"]=nil}, @@ -23237,29 +23117,27 @@ local t={ ["(void*,size_t,size_t,int(*)(void const*,void const*))"]=nil}, igImRotate={ [1]={ - args="(ImVec2 *pOut,const ImVec2 v,float cos_a,float sin_a)", + args="(const ImVec2 v,float cos_a,float sin_a)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="v", type="const ImVec2"}, - [3]={ + [2]={ name="cos_a", type="float"}, - [4]={ + [3]={ name="sin_a", type="float"}}, argsoriginal="(const ImVec2& v,float cos_a,float sin_a)", call_args="(v,cos_a,sin_a)", cimguiname="igImRotate", + conv="ImVec2", defaults={}, funcname="ImRotate", location="imgui_internal:535", nonUDT=1, ov_cimguiname="igImRotate", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,float,float)", stname=""}, ["(const ImVec2,float,float)"]=nil}, @@ -23997,32 +23875,30 @@ local t={ ["(const ImVec2,const ImVec2,const ImVec2,const ImVec2,float*,float*,float*)"]=nil}, igImTriangleClosestPoint={ [1]={ - args="(ImVec2 *pOut,const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p)", + args="(const ImVec2 a,const ImVec2 b,const ImVec2 c,const ImVec2 p)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="a", type="const ImVec2"}, - [3]={ + [2]={ name="b", type="const ImVec2"}, - [4]={ + [3]={ name="c", type="const ImVec2"}, - [5]={ + [4]={ name="p", type="const ImVec2"}}, argsoriginal="(const ImVec2& a,const ImVec2& b,const ImVec2& c,const ImVec2& p)", call_args="(a,b,c,p)", cimguiname="igImTriangleClosestPoint", + conv="ImVec2", defaults={}, funcname="ImTriangleClosestPoint", location="imgui_internal:550", nonUDT=1, ov_cimguiname="igImTriangleClosestPoint", - ret="void", + ret="ImVec2_c", signature="(const ImVec2,const ImVec2,const ImVec2,const ImVec2)", stname=""}, ["(const ImVec2,const ImVec2,const ImVec2,const ImVec2)"]=nil}, @@ -24095,23 +23971,21 @@ local t={ signature="(float)", stname=""}, [2]={ - args="(ImVec2 *pOut,const ImVec2 v)", + args="(const ImVec2 v)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="v", type="const ImVec2"}}, argsoriginal="(const ImVec2& v)", call_args="(v)", cimguiname="igImTrunc", + conv="ImVec2", defaults={}, funcname="ImTrunc", location="imgui_internal:528", nonUDT=1, ov_cimguiname="igImTrunc_Vec2", - ret="void", + ret="ImVec2_c", signature="(const ImVec2)", stname=""}, ["(const ImVec2)"]=nil, @@ -29199,23 +29073,21 @@ local t={ ["(ImGuiWindow*,const ImRect,ImGuiScrollFlags)"]=nil}, igScrollToRectEx={ [1]={ - args="(ImVec2 *pOut,ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags)", + args="(ImGuiWindow* window,const ImRect rect,ImGuiScrollFlags flags)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="window", type="ImGuiWindow*"}, - [3]={ + [2]={ name="rect", type="const ImRect"}, - [4]={ + [3]={ name="flags", type="ImGuiScrollFlags"}}, argsoriginal="(ImGuiWindow* window,const ImRect& rect,ImGuiScrollFlags flags=0)", call_args="(window,rect,flags)", cimguiname="igScrollToRectEx", + conv="ImVec2", defaults={ flags="0"}, funcname="ScrollToRectEx", @@ -29223,7 +29095,7 @@ local t={ namespace="ImGui", nonUDT=1, ov_cimguiname="igScrollToRectEx", - ret="void", + ret="ImVec2_c", signature="(ImGuiWindow*,const ImRect,ImGuiScrollFlags)", stname=""}, ["(ImGuiWindow*,const ImRect,ImGuiScrollFlags)"]=nil}, @@ -32723,48 +32595,44 @@ local t={ ["(const char*,ImGuiTabItemFlags)"]=nil}, igTabItemCalcSize={ [1]={ - args="(ImVec2 *pOut,const char* label,bool has_close_button_or_unsaved_marker)", + args="(const char* label,bool has_close_button_or_unsaved_marker)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="label", type="const char*"}, - [3]={ + [2]={ name="has_close_button_or_unsaved_marker", type="bool"}}, argsoriginal="(const char* label,bool has_close_button_or_unsaved_marker)", call_args="(label,has_close_button_or_unsaved_marker)", cimguiname="igTabItemCalcSize", + conv="ImVec2", defaults={}, funcname="TabItemCalcSize", location="imgui_internal:3834", namespace="ImGui", nonUDT=1, ov_cimguiname="igTabItemCalcSize_Str", - ret="void", + ret="ImVec2_c", signature="(const char*,bool)", stname=""}, [2]={ - args="(ImVec2 *pOut,ImGuiWindow* window)", + args="(ImGuiWindow* window)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="window", type="ImGuiWindow*"}}, argsoriginal="(ImGuiWindow* window)", call_args="(window)", cimguiname="igTabItemCalcSize", + conv="ImVec2", defaults={}, funcname="TabItemCalcSize", location="imgui_internal:3835", namespace="ImGui", nonUDT=1, ov_cimguiname="igTabItemCalcSize_WindowPtr", - ret="void", + ret="ImVec2_c", signature="(ImGuiWindow*)", stname=""}, ["(ImGuiWindow*)"]=nil, @@ -33235,27 +33103,25 @@ local t={ ["(ImGuiTable*)"]=nil}, igTableGetCellBgRect={ [1]={ - args="(ImRect *pOut,const ImGuiTable* table,int column_n)", + args="(const ImGuiTable* table,int column_n)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="table", type="const ImGuiTable*"}, - [3]={ + [2]={ name="column_n", type="int"}}, argsoriginal="(const ImGuiTable* table,int column_n)", call_args="(table,column_n)", cimguiname="igTableGetCellBgRect", + conv="ImRect", defaults={}, funcname="TableGetCellBgRect", location="imgui_internal:3793", namespace="ImGui", nonUDT=1, ov_cimguiname="igTableGetCellBgRect", - ret="void", + ret="ImRect_c", signature="(const ImGuiTable*,int)", stname=""}, ["(const ImGuiTable*,int)"]=nil}, @@ -35687,105 +35553,97 @@ local t={ ["(const char*,unsigned int)"]=nil}, igWindowPosAbsToRel={ [1]={ - args="(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p)", + args="(ImGuiWindow* window,const ImVec2 p)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="window", type="ImGuiWindow*"}, - [3]={ + [2]={ name="p", type="const ImVec2"}}, argsoriginal="(ImGuiWindow* window,const ImVec2& p)", call_args="(window,p)", cimguiname="igWindowPosAbsToRel", + conv="ImVec2", defaults={}, funcname="WindowPosAbsToRel", location="imgui_internal:3372", namespace="ImGui", nonUDT=1, ov_cimguiname="igWindowPosAbsToRel", - ret="void", + ret="ImVec2_c", signature="(ImGuiWindow*,const ImVec2)", stname=""}, ["(ImGuiWindow*,const ImVec2)"]=nil}, igWindowPosRelToAbs={ [1]={ - args="(ImVec2 *pOut,ImGuiWindow* window,const ImVec2 p)", + args="(ImGuiWindow* window,const ImVec2 p)", argsT={ [1]={ - name="pOut", - type="ImVec2*"}, - [2]={ name="window", type="ImGuiWindow*"}, - [3]={ + [2]={ name="p", type="const ImVec2"}}, argsoriginal="(ImGuiWindow* window,const ImVec2& p)", call_args="(window,p)", cimguiname="igWindowPosRelToAbs", + conv="ImVec2", defaults={}, funcname="WindowPosRelToAbs", location="imgui_internal:3373", namespace="ImGui", nonUDT=1, ov_cimguiname="igWindowPosRelToAbs", - ret="void", + ret="ImVec2_c", signature="(ImGuiWindow*,const ImVec2)", stname=""}, ["(ImGuiWindow*,const ImVec2)"]=nil}, igWindowRectAbsToRel={ [1]={ - args="(ImRect *pOut,ImGuiWindow* window,const ImRect r)", + args="(ImGuiWindow* window,const ImRect r)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="window", type="ImGuiWindow*"}, - [3]={ + [2]={ name="r", type="const ImRect"}}, argsoriginal="(ImGuiWindow* window,const ImRect& r)", call_args="(window,r)", cimguiname="igWindowRectAbsToRel", + conv="ImRect", defaults={}, funcname="WindowRectAbsToRel", location="imgui_internal:3370", namespace="ImGui", nonUDT=1, ov_cimguiname="igWindowRectAbsToRel", - ret="void", + ret="ImRect_c", signature="(ImGuiWindow*,const ImRect)", stname=""}, ["(ImGuiWindow*,const ImRect)"]=nil}, igWindowRectRelToAbs={ [1]={ - args="(ImRect *pOut,ImGuiWindow* window,const ImRect r)", + args="(ImGuiWindow* window,const ImRect r)", argsT={ [1]={ - name="pOut", - type="ImRect*"}, - [2]={ name="window", type="ImGuiWindow*"}, - [3]={ + [2]={ name="r", type="const ImRect"}}, argsoriginal="(ImGuiWindow* window,const ImRect& r)", call_args="(window,r)", cimguiname="igWindowRectRelToAbs", + conv="ImRect", defaults={}, funcname="WindowRectRelToAbs", location="imgui_internal:3371", namespace="ImGui", nonUDT=1, ov_cimguiname="igWindowRectRelToAbs", - ret="void", + ret="ImRect_c", signature="(ImGuiWindow*,const ImRect)", stname=""}, ["(ImGuiWindow*,const ImRect)"]=nil}}