From 155d5961dc4fd2eddaee639c9131990da2f2c764 Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Sat, 1 Jun 2024 12:54:07 +0200 Subject: [PATCH] add definitions to cimgui.h (issue #268) --- cimgui.h | 4 ++++ generator/cimgui_template.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/cimgui.h b/cimgui.h index 0910c94..105215f 100644 --- a/cimgui.h +++ b/cimgui.h @@ -4786,6 +4786,10 @@ CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self); CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p); CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p); +#ifdef IMGUI_HAS_DOCK +CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowPos(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_pos)); +CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowSize(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_size)); +#endif #endif //CIMGUI_INCLUDED diff --git a/generator/cimgui_template.h b/generator/cimgui_template.h index 75d18f5..e46202f 100644 --- a/generator/cimgui_template.h +++ b/generator/cimgui_template.h @@ -61,6 +61,10 @@ CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self); CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p); CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p); +#ifdef IMGUI_HAS_DOCK +CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowPos(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_pos)); +CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowSize(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_size)); +#endif #endif //CIMGUI_INCLUDED