diff --git a/build.zig b/build.zig index da5966a..4567d8a 100644 --- a/build.zig +++ b/build.zig @@ -44,7 +44,7 @@ pub fn build(b: *std.Build) void { }); dear_imgui_lib.addCSourceFiles(.{ .root = b.path("src/cached"), - .files = &.{"cimgui.cpp"}, + .files = &.{"dcimgui.cpp"}, .flags = flags, }); b.installArtifact(dear_imgui_lib); @@ -59,7 +59,7 @@ pub fn build(b: *std.Build) void { }); dear_imgui_vulkan_lib.linkLibrary(dear_imgui_lib); dear_imgui_vulkan_lib.addCSourceFile(.{ .file = upstream.path("backends/imgui_impl_vulkan.cpp"), .flags = flags }); - dear_imgui_vulkan_lib.addCSourceFile(.{ .file = b.path("src/cached/cimgui_impl_vulkan.cpp"), .flags = flags }); + dear_imgui_vulkan_lib.addCSourceFile(.{ .file = b.path("src/cached/dcimgui_impl_vulkan.cpp"), .flags = flags }); dear_imgui_vulkan_lib.addIncludePath(upstream.path("")); dear_imgui_vulkan_lib.addIncludePath(upstream.path("backends")); const vulkan_headers = b.dependency("Vulkan-Headers", .{}); @@ -90,7 +90,7 @@ pub fn build(b: *std.Build) void { // Generate Zig bindings for Dear ImGui const generate_dear_imgui = b.addRunArtifact(generate_exe); - generate_dear_imgui.addFileArg(b.path("src/cached/cimgui.json")); + generate_dear_imgui.addFileArg(b.path("src/cached/dcimgui.json")); const dear_imgui_zig = generate_dear_imgui.addOutputFileArg("dear_imgui.zig"); generate_dear_imgui.addFileArg(b.path("src/templates/cimgui_prefix.zig.template")); generate_dear_imgui.addFileArg(b.path("src/templates/cimgui_postfix.zig.template")); @@ -103,7 +103,7 @@ pub fn build(b: *std.Build) void { // Generate Zig bindings for the Vulkan backend const generate_vulkan = b.addRunArtifact(generate_exe); - generate_vulkan.addFileArg(b.path("src/cached/cimgui_impl_vulkan.json")); + generate_vulkan.addFileArg(b.path("src/cached/dcimgui_impl_vulkan.json")); const dear_imgui_vulkan_zig = generate_vulkan.addOutputFileArg("dear_imgui_impl_vulkan.zig"); generate_vulkan.addFileArg(b.path("src/templates/impl_vulkan_prefix.zig.template")); generate_vulkan.addFileArg(b.path("src/templates/impl_vulkan_postfix.zig.template")); diff --git a/build.zig.zon b/build.zig.zon index f84f90a..3539b57 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -5,12 +5,14 @@ .minimum_zig_version = "0.15.1", .dependencies = .{ .@"dear-imgui" = .{ - .url = "https://github.com/ocornut/imgui/archive/refs/tags/v1.91.0-docking.tar.gz", - .hash = "N-V-__8AABsVbQAum-LyOe127uQQcIR4RDA5-lAwEXCXY_P6", + // XXX: ... + // .url = "https://github.com/ocornut/imgui/archive/refs/tags/v1.92.2b-docking.tar.gz", + // .hash = "N-V-__8AAPZKeQDWGL4ckVmICNUMMWIikMKny4fQHvs2tCFh", + .path = "../imgui", }, .@"Vulkan-Headers" = .{ - .url = "https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/v1.3.292.tar.gz", - .hash = "N-V-__8AAD79oQHbpYgYjF37obKUeFsO02CtHqLmm_fAdhac", + .url = "https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/v1.4.313.tar.gz", + .hash = "N-V-__8AAPLT7gH4vgN7Xo6yZlOMrzllGbdvVxxhrwUvgI9r", }, }, diff --git a/src/cached/cimgui.cpp b/src/cached/dcimgui.cpp similarity index 79% rename from src/cached/cimgui.cpp rename to src/cached/dcimgui.cpp index 0c15a4b..89321f3 100644 --- a/src/cached/cimgui.cpp +++ b/src/cached/dcimgui.cpp @@ -10,7 +10,7 @@ // Wrap this in a namespace to keep it separate from the C++ API namespace cimgui { -#include "cimgui.h" +#include "dcimgui.h" } // Manual helpers @@ -55,6 +55,174 @@ static inline ::ImStr MarshalToCPP_ImStr_FromCharStr(const char* b) } #endif // IMGUI_HAS_IMSTR #endif // defined(IMGUI_HAS_IMSTR) + +// Helpers for setting callbacks that return complex structures in PlatformIO +// These require a thunk in C++-land to work correctly, which is implemented here +// Because some of the functions involved are relatively new, we can't assume they exist and thus we make use +// of some #defines set during the generation process to decide if we want to include the code or not + +#if defined(IMGUI_HAS_DOCK) + +namespace +{ + // Data we use in the thunk to convert these from C++-style callbacks to C-style callbacks + struct ImGui_DearBindingsThunkData + { + void(*PlatformIO_GetWindowPos_ThunkTarget)(cimgui::ImGuiViewport* vp, cimgui::ImVec2* result); + void(*PlatformIO_GetWindowSize_ThunkTarget)(cimgui::ImGuiViewport* vp, cimgui::ImVec2* result); +#ifdef IMGUI_DEAR_BINDINGS_HAS_GETWINDOWFRAMEBUFFERSCALE + void(*PlatformIO_GetWindowFramebufferScale_ThunkTarget)(cimgui::ImGuiViewport* vp, cimgui::ImVec2* result); +#endif +#ifdef IMGUI_DEAR_BINDINGS_HAS_GETWINDOWWORKAREAINSETS + void(*PlatformIO_GetWindowWorkAreaInsets_ThunkTarget)(cimgui::ImGuiViewport* vp, cimgui::ImVec4* result); +#endif + }; + + // Get our thunk data for the current ImGui context, creating it if necessary + ImGui_DearBindingsThunkData* ImGui_GetDearBindingsThunkData() + { + ImGuiIO& io = ImGui::GetIO(); + if (!io.BackendLanguageUserData) + { + io.BackendLanguageUserData = IM_NEW(ImGui_DearBindingsThunkData); + memset(io.BackendLanguageUserData, 0, sizeof(ImGui_DearBindingsThunkData)); + } + return reinterpret_cast(io.BackendLanguageUserData); + } + + // Tidy up our thunk data, deleting it if all the target pointers are null (i.e. it is unused) + void ImGui_TidyDearBindingsThunkData() + { + ImGuiIO& io = ImGui::GetIO(); + if (io.BackendLanguageUserData) + { + ImGui_DearBindingsThunkData* thunkData = reinterpret_cast(io.BackendLanguageUserData); + if ((!thunkData->PlatformIO_GetWindowPos_ThunkTarget) && + (!thunkData->PlatformIO_GetWindowSize_ThunkTarget) +#ifdef IMGUI_DEAR_BINDINGS_HAS_GETWINDOWFRAMEBUFFERSCALE + && (!thunkData->PlatformIO_GetWindowFramebufferScale_ThunkTarget) +#endif +#ifdef IMGUI_DEAR_BINDINGS_HAS_GETWINDOWWORKAREAINSETS + &&(!thunkData->PlatformIO_GetWindowWorkAreaInsets_ThunkTarget) +#endif + ) + { + // Thunk data is unused and can be freed + io.BackendLanguageUserData = nullptr; + IM_DELETE(thunkData); + } + } + } + + // Copies of the conversion stubs in order to deal with the fact that they are declared later in the file + // Fixme: This is a little messy, but reordering things is also fiddly to do + + static inline ::ImVec2 ConvertToCPP_ImVec2_ForThunks(const cimgui::ImVec2& src) + { + ::ImVec2 dest; + dest.x = src.x; + dest.y = src.y; + return dest; + } + + static inline ::ImVec4 ConvertToCPP_ImVec4_ForThunks(const cimgui::ImVec4& src) + { + ::ImVec4 dest; + dest.x = src.x; + dest.y = src.y; + dest.z = src.z; + dest.w = src.w; + return dest; + } + + // Thunks for callbacks that need them + + ImVec2 ImGuiPlatformIO_GetWindowPos_Thunk(ImGuiViewport* vp) + { + ImGui_DearBindingsThunkData* thunkData = ImGui_GetDearBindingsThunkData(); + cimgui::ImVec2 result; + thunkData->PlatformIO_GetWindowPos_ThunkTarget(reinterpret_cast(vp), &result); + return ConvertToCPP_ImVec2_ForThunks(result); + } + + ImVec2 ImGuiPlatformIO_GetWindowSize_Thunk(ImGuiViewport* vp) + { + ImGui_DearBindingsThunkData* thunkData = ImGui_GetDearBindingsThunkData(); + cimgui::ImVec2 result; + thunkData->PlatformIO_GetWindowSize_ThunkTarget(reinterpret_cast(vp), &result); + return ConvertToCPP_ImVec2_ForThunks(result); + } + +#ifdef IMGUI_DEAR_BINDINGS_HAS_GETWINDOWFRAMEBUFFERSCALE + ImVec2 ImGuiPlatformIO_GetWindowFramebufferScale_Thunk(ImGuiViewport* vp) + { + ImGui_DearBindingsThunkData* thunkData = ImGui_GetDearBindingsThunkData(); + cimgui::ImVec2 result; + thunkData->PlatformIO_GetWindowFramebufferScale_ThunkTarget(reinterpret_cast(vp), &result); + return ConvertToCPP_ImVec2_ForThunks(result); + } +#endif + +#ifdef IMGUI_DEAR_BINDINGS_HAS_GETWINDOWWORKAREAINSETS + ImVec4 ImGuiPlatformIO_GetWindowWorkAreaInsets_Thunk(ImGuiViewport* vp) + { + ImGui_DearBindingsThunkData* thunkData = ImGui_GetDearBindingsThunkData(); + cimgui::ImVec4 result; + thunkData->PlatformIO_GetWindowWorkAreaInsets_ThunkTarget(reinterpret_cast(vp), &result); + return ConvertToCPP_ImVec4_ForThunks(result); + } +#endif +} // Anonymous namespace + +CIMGUI_API void cimgui::ImGuiPlatformIO_SetPlatform_GetWindowPos(void(*func)(cimgui::ImGuiViewport* vp, cimgui::ImVec2* result)) +{ + ImGui_DearBindingsThunkData* thunkData = ImGui_GetDearBindingsThunkData(); + thunkData->PlatformIO_GetWindowPos_ThunkTarget = func; + ::ImGui::GetPlatformIO().Platform_GetWindowPos = (func != nullptr) ? ImGuiPlatformIO_GetWindowPos_Thunk : nullptr; + if (!func) + { + ImGui_TidyDearBindingsThunkData(); // Try to release thunk data if no longer required + } +} + +CIMGUI_API void cimgui::ImGuiPlatformIO_SetPlatform_GetWindowSize(void(*func)(cimgui::ImGuiViewport* vp, cimgui::ImVec2* result)) +{ + ImGui_DearBindingsThunkData* thunkData = ImGui_GetDearBindingsThunkData(); + thunkData->PlatformIO_GetWindowSize_ThunkTarget = func; + ::ImGui::GetPlatformIO().Platform_GetWindowSize = (func != nullptr) ? ImGuiPlatformIO_GetWindowSize_Thunk : nullptr; + if (!func) + { + ImGui_TidyDearBindingsThunkData(); // Try to release thunk data if no longer required + } +} + +#ifdef IMGUI_DEAR_BINDINGS_HAS_GETWINDOWFRAMEBUFFERSCALE +CIMGUI_API void cimgui::ImGuiPlatformIO_SetPlatform_GetWindowFramebufferScale(void(*func)(cimgui::ImGuiViewport* vp, cimgui::ImVec2* result)) +{ + ImGui_DearBindingsThunkData* thunkData = ImGui_GetDearBindingsThunkData(); + thunkData->PlatformIO_GetWindowFramebufferScale_ThunkTarget = func; + ::ImGui::GetPlatformIO().Platform_GetWindowFramebufferScale = (func != nullptr) ? ImGuiPlatformIO_GetWindowFramebufferScale_Thunk : nullptr; + if (!func) + { + ImGui_TidyDearBindingsThunkData(); // Try to release thunk data if no longer required + } +} +#endif + +#ifdef IMGUI_DEAR_BINDINGS_HAS_GETWINDOWWORKAREAINSETS +CIMGUI_API void cimgui::ImGuiPlatformIO_SetPlatform_GetWindowWorkAreaInsets(void(*func)(cimgui::ImGuiViewport* vp, cimgui::ImVec4* result)) +{ + ImGui_DearBindingsThunkData* thunkData = ImGui_GetDearBindingsThunkData(); + thunkData->PlatformIO_GetWindowWorkAreaInsets_ThunkTarget = func; + ::ImGui::GetPlatformIO().Platform_GetWindowWorkAreaInsets = (func != nullptr) ? ImGuiPlatformIO_GetWindowWorkAreaInsets_Thunk : nullptr; + if (!func) + { + ImGui_TidyDearBindingsThunkData(); // Try to release thunk data if no longer required + } +} +#endif + +#endif // defined(IMGUI_HAS_DOCK) // By-value struct conversions static inline cimgui::ImVec2 ConvertFromCPP_ImVec2(const ::ImVec2& src) @@ -93,6 +261,22 @@ static inline ::ImVec4 ConvertToCPP_ImVec4(const cimgui::ImVec4& src) return dest; } +static inline cimgui::ImTextureRef ConvertFromCPP_ImTextureRef(const ::ImTextureRef& src) +{ + cimgui::ImTextureRef dest; + dest._TexData = reinterpret_cast(src._TexData); + dest._TexID = src._TexID; + return dest; +} + +static inline ::ImTextureRef ConvertToCPP_ImTextureRef(const cimgui::ImTextureRef& src) +{ + ::ImTextureRef dest; + dest._TexData = reinterpret_cast<::ImTextureData*>(src._TexData); + dest._TexID = src._TexID; + return dest; +} + static inline cimgui::ImColor ConvertFromCPP_ImColor(const ::ImColor& src) { cimgui::ImColor dest; @@ -117,6 +301,11 @@ static inline ::ImColor ConvertToCPP_ImColor(const cimgui::ImColor& src) #ifndef IMGUI_DISABLE +CIMGUI_API ImTextureID cimgui::ImTextureRef_GetTexID(const cimgui::ImTextureRef* self) +{ + return reinterpret_cast(self)->GetTexID(); +} + CIMGUI_API cimgui::ImGuiContext* cimgui::ImGui_CreateContext(cimgui::ImFontAtlas* shared_font_atlas) { return reinterpret_cast<::cimgui::ImGuiContext*>(::ImGui::CreateContext(reinterpret_cast<::ImFontAtlas*>(shared_font_atlas))); @@ -142,22 +331,27 @@ CIMGUI_API cimgui::ImGuiIO* cimgui::ImGui_GetIO(void) return reinterpret_cast<::cimgui::ImGuiIO*>(&::ImGui::GetIO()); } +CIMGUI_API cimgui::ImGuiPlatformIO* cimgui::ImGui_GetPlatformIO(void) +{ + return reinterpret_cast<::cimgui::ImGuiPlatformIO*>(&::ImGui::GetPlatformIO()); +} + CIMGUI_API cimgui::ImGuiStyle* cimgui::ImGui_GetStyle(void) { return reinterpret_cast<::cimgui::ImGuiStyle*>(&::ImGui::GetStyle()); } -CIMGUI_API void cimgui::ImGui_NewFrame(void) +CIMGUI_API void cimgui::ImGui_NewFrame(void) { ::ImGui::NewFrame(); } -CIMGUI_API void cimgui::ImGui_EndFrame(void) +CIMGUI_API void cimgui::ImGui_EndFrame(void) { ::ImGui::EndFrame(); } -CIMGUI_API void cimgui::ImGui_Render(void) +CIMGUI_API void cimgui::ImGui_Render(void) { ::ImGui::Render(); } @@ -387,11 +581,6 @@ CIMGUI_API void cimgui::ImGui_SetWindowFocus(void) ::ImGui::SetWindowFocus(); } -CIMGUI_API void cimgui::ImGui_SetWindowFontScale(float scale) -{ - ::ImGui::SetWindowFontScale(scale); -} - CIMGUI_API void cimgui::ImGui_SetWindowPosStr(const char* name, cimgui::ImVec2 pos, ImGuiCond cond) { ::ImGui::SetWindowPos(name, ConvertToCPP_ImVec2(pos), cond); @@ -462,16 +651,31 @@ CIMGUI_API void cimgui::ImGui_SetScrollFromPosY(float local_y, float center_y_r ::ImGui::SetScrollFromPosY(local_y, center_y_ratio); } -CIMGUI_API void cimgui::ImGui_PushFont(cimgui::ImFont* font) +CIMGUI_API void cimgui::ImGui_PushFontFloat(cimgui::ImFont* font, float font_size_base_unscaled) { - ::ImGui::PushFont(reinterpret_cast<::ImFont*>(font)); + ::ImGui::PushFont(reinterpret_cast<::ImFont*>(font), font_size_base_unscaled); } -CIMGUI_API void cimgui::ImGui_PopFont(void) +CIMGUI_API void cimgui::ImGui_PopFont(void) { ::ImGui::PopFont(); } +CIMGUI_API cimgui::ImFont* cimgui::ImGui_GetFont(void) +{ + return reinterpret_cast<::cimgui::ImFont*>(::ImGui::GetFont()); +} + +CIMGUI_API float cimgui::ImGui_GetFontSize(void) +{ + return ::ImGui::GetFontSize(); +} + +CIMGUI_API cimgui::ImFontBaked* cimgui::ImGui_GetFontBaked(void) +{ + return reinterpret_cast<::cimgui::ImFontBaked*>(::ImGui::GetFontBaked()); +} + CIMGUI_API void cimgui::ImGui_PushStyleColor(ImGuiCol idx, ImU32 col) { ::ImGui::PushStyleColor(idx, col); @@ -502,6 +706,16 @@ CIMGUI_API void cimgui::ImGui_PushStyleVarImVec2(ImGuiStyleVar idx, cimgui::ImVe ::ImGui::PushStyleVar(idx, ConvertToCPP_ImVec2(val)); } +CIMGUI_API void cimgui::ImGui_PushStyleVarX(ImGuiStyleVar idx, float val_x) +{ + ::ImGui::PushStyleVarX(idx, val_x); +} + +CIMGUI_API void cimgui::ImGui_PushStyleVarY(ImGuiStyleVar idx, float val_y) +{ + ::ImGui::PushStyleVarY(idx, val_y); +} + CIMGUI_API void cimgui::ImGui_PopStyleVar(void) { ::ImGui::PopStyleVar(); @@ -552,16 +766,6 @@ CIMGUI_API void cimgui::ImGui_PopTextWrapPos(void) ::ImGui::PopTextWrapPos(); } -CIMGUI_API cimgui::ImFont* cimgui::ImGui_GetFont(void) -{ - return reinterpret_cast<::cimgui::ImFont*>(::ImGui::GetFont()); -} - -CIMGUI_API float cimgui::ImGui_GetFontSize(void) -{ - return ::ImGui::GetFontSize(); -} - CIMGUI_API cimgui::ImVec2 cimgui::ImGui_GetFontTexUvWhitePixel(void) { return ConvertFromCPP_ImVec2(::ImGui::GetFontTexUvWhitePixel()); @@ -935,34 +1139,44 @@ CIMGUI_API bool cimgui::ImGui_TextLink(const char* label) return ::ImGui::TextLink(label); } -CIMGUI_API void cimgui::ImGui_TextLinkOpenURL(const char* label) +CIMGUI_API bool cimgui::ImGui_TextLinkOpenURL(const char* label) { - ::ImGui::TextLinkOpenURL(label); + return ::ImGui::TextLinkOpenURL(label); } -CIMGUI_API void cimgui::ImGui_TextLinkOpenURLEx(const char* label, const char* url) +CIMGUI_API bool cimgui::ImGui_TextLinkOpenURLEx(const char* label, const char* url) { - ::ImGui::TextLinkOpenURL(label, url); + return ::ImGui::TextLinkOpenURL(label, url); } -CIMGUI_API void cimgui::ImGui_Image(ImTextureID user_texture_id, cimgui::ImVec2 image_size) +CIMGUI_API void cimgui::ImGui_Image(cimgui::ImTextureRef tex_ref, cimgui::ImVec2 image_size) { - ::ImGui::Image(user_texture_id, ConvertToCPP_ImVec2(image_size)); + ::ImGui::Image(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(image_size)); } -CIMGUI_API void cimgui::ImGui_ImageEx(ImTextureID user_texture_id, cimgui::ImVec2 image_size, cimgui::ImVec2 uv0, cimgui::ImVec2 uv1, cimgui::ImVec4 tint_col, cimgui::ImVec4 border_col) +CIMGUI_API void cimgui::ImGui_ImageEx(cimgui::ImTextureRef tex_ref, cimgui::ImVec2 image_size, cimgui::ImVec2 uv0, cimgui::ImVec2 uv1) { - ::ImGui::Image(user_texture_id, ConvertToCPP_ImVec2(image_size), ConvertToCPP_ImVec2(uv0), ConvertToCPP_ImVec2(uv1), ConvertToCPP_ImVec4(tint_col), ConvertToCPP_ImVec4(border_col)); + ::ImGui::Image(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(image_size), ConvertToCPP_ImVec2(uv0), ConvertToCPP_ImVec2(uv1)); } -CIMGUI_API bool cimgui::ImGui_ImageButton(const char* str_id, ImTextureID user_texture_id, cimgui::ImVec2 image_size) +CIMGUI_API void cimgui::ImGui_ImageWithBg(cimgui::ImTextureRef tex_ref, cimgui::ImVec2 image_size) { - return ::ImGui::ImageButton(str_id, user_texture_id, ConvertToCPP_ImVec2(image_size)); + ::ImGui::ImageWithBg(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(image_size)); } -CIMGUI_API bool cimgui::ImGui_ImageButtonEx(const char* str_id, ImTextureID user_texture_id, cimgui::ImVec2 image_size, cimgui::ImVec2 uv0, cimgui::ImVec2 uv1, cimgui::ImVec4 bg_col, cimgui::ImVec4 tint_col) +CIMGUI_API void cimgui::ImGui_ImageWithBgEx(cimgui::ImTextureRef tex_ref, cimgui::ImVec2 image_size, cimgui::ImVec2 uv0, cimgui::ImVec2 uv1, cimgui::ImVec4 bg_col, cimgui::ImVec4 tint_col) { - return ::ImGui::ImageButton(str_id, user_texture_id, ConvertToCPP_ImVec2(image_size), ConvertToCPP_ImVec2(uv0), ConvertToCPP_ImVec2(uv1), ConvertToCPP_ImVec4(bg_col), ConvertToCPP_ImVec4(tint_col)); + ::ImGui::ImageWithBg(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(image_size), ConvertToCPP_ImVec2(uv0), ConvertToCPP_ImVec2(uv1), ConvertToCPP_ImVec4(bg_col), ConvertToCPP_ImVec4(tint_col)); +} + +CIMGUI_API bool cimgui::ImGui_ImageButton(const char* str_id, cimgui::ImTextureRef tex_ref, cimgui::ImVec2 image_size) +{ + return ::ImGui::ImageButton(str_id, ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(image_size)); +} + +CIMGUI_API bool cimgui::ImGui_ImageButtonEx(const char* str_id, cimgui::ImTextureRef tex_ref, cimgui::ImVec2 image_size, cimgui::ImVec2 uv0, cimgui::ImVec2 uv1, cimgui::ImVec4 bg_col, cimgui::ImVec4 tint_col) +{ + return ::ImGui::ImageButton(str_id, ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(image_size), ConvertToCPP_ImVec2(uv0), ConvertToCPP_ImVec2(uv1), ConvertToCPP_ImVec4(bg_col), ConvertToCPP_ImVec4(tint_col)); } CIMGUI_API bool cimgui::ImGui_BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags) @@ -1434,16 +1648,18 @@ CIMGUI_API bool cimgui::ImGui_TreeNodeStr(const char* str_id, const char* fmt, { va_list args; va_start(args, fmt); - return ::ImGui::TreeNodeV(str_id, fmt, args); + auto temp_result = ::ImGui::TreeNodeV(str_id, fmt, args); va_end(args); + return temp_result; } CIMGUI_API bool cimgui::ImGui_TreeNodePtr(const void* ptr_id, const char* fmt, ...) { va_list args; va_start(args, fmt); - return ::ImGui::TreeNodeV(ptr_id, fmt, args); + auto temp_result = ::ImGui::TreeNodeV(ptr_id, fmt, args); va_end(args); + return temp_result; } CIMGUI_API bool cimgui::ImGui_TreeNodeV(const char* str_id, const char* fmt, va_list args) @@ -1465,16 +1681,18 @@ CIMGUI_API bool cimgui::ImGui_TreeNodeExStr(const char* str_id, ImGuiTreeNodeFl { va_list args; va_start(args, fmt); - return ::ImGui::TreeNodeExV(str_id, flags, fmt, args); + auto temp_result = ::ImGui::TreeNodeExV(str_id, flags, fmt, args); va_end(args); + return temp_result; } CIMGUI_API bool cimgui::ImGui_TreeNodeExPtr(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...) { va_list args; va_start(args, fmt); - return ::ImGui::TreeNodeExV(ptr_id, flags, fmt, args); + auto temp_result = ::ImGui::TreeNodeExV(ptr_id, flags, fmt, args); va_end(args); + return temp_result; } CIMGUI_API bool cimgui::ImGui_TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) @@ -1913,9 +2131,9 @@ CIMGUI_API void cimgui::ImGui_Columns(void) ::ImGui::Columns(); } -CIMGUI_API void cimgui::ImGui_ColumnsEx(int count, const char* id, bool border) +CIMGUI_API void cimgui::ImGui_ColumnsEx(int count, const char* id, bool borders) { - ::ImGui::Columns(count, id, border); + ::ImGui::Columns(count, id, borders); } CIMGUI_API void cimgui::ImGui_NextColumn(void) @@ -2131,6 +2349,11 @@ CIMGUI_API void cimgui::ImGui_SetKeyboardFocusHereEx(int offset) ::ImGui::SetKeyboardFocusHere(offset); } +CIMGUI_API void cimgui::ImGui_SetNavCursorVisible(bool visible) +{ + ::ImGui::SetNavCursorVisible(visible); +} + CIMGUI_API void cimgui::ImGui_SetNextItemAllowOverlap(void) { ::ImGui::SetNextItemAllowOverlap(); @@ -2401,6 +2624,11 @@ CIMGUI_API bool cimgui::ImGui_IsMouseDoubleClicked(ImGuiMouseButton return ::ImGui::IsMouseDoubleClicked(button); } +CIMGUI_API bool cimgui::ImGui_IsMouseReleasedWithDelay(ImGuiMouseButton button, float delay) +{ + return ::ImGui::IsMouseReleasedWithDelay(button, delay); +} + CIMGUI_API int cimgui::ImGui_GetMouseClickedCount(ImGuiMouseButton button) { return ::ImGui::GetMouseClickedCount(button); @@ -2558,27 +2786,22 @@ CIMGUI_API void cimgui::ImGui_MemFree(void* ptr) ::ImGui::MemFree(ptr); } -CIMGUI_API cimgui::ImGuiPlatformIO* cimgui::ImGui_GetPlatformIO(void) -{ - return reinterpret_cast<::cimgui::ImGuiPlatformIO*>(&::ImGui::GetPlatformIO()); -} - -CIMGUI_API void cimgui::ImGui_UpdatePlatformWindows(void) +CIMGUI_API void cimgui::ImGui_UpdatePlatformWindows(void) { ::ImGui::UpdatePlatformWindows(); } -CIMGUI_API void cimgui::ImGui_RenderPlatformWindowsDefault(void) +CIMGUI_API void cimgui::ImGui_RenderPlatformWindowsDefault(void) { ::ImGui::RenderPlatformWindowsDefault(); } -CIMGUI_API void cimgui::ImGui_RenderPlatformWindowsDefaultEx(void* platform_render_arg, void* renderer_render_arg) +CIMGUI_API void cimgui::ImGui_RenderPlatformWindowsDefaultEx(void* platform_render_arg, void* renderer_render_arg) { ::ImGui::RenderPlatformWindowsDefault(platform_render_arg, renderer_render_arg); } -CIMGUI_API void cimgui::ImGui_DestroyPlatformWindows(void) +CIMGUI_API void cimgui::ImGui_DestroyPlatformWindows(void) { ::ImGui::DestroyPlatformWindows(); } @@ -2742,7 +2965,7 @@ CIMGUI_API bool cimgui::ImGuiTextFilter_ImGuiTextRange_empty(const cimgui::ImGui return reinterpret_cast(self)->empty(); } -CIMGUI_API void cimgui::ImGuiTextFilter_ImGuiTextRange_split(const cimgui::ImGuiTextFilter_ImGuiTextRange* self, char separator, cimgui::ImVector_ImGuiTextFilter_ImGuiTextRange* out) +CIMGUI_API void cimgui::ImGuiTextFilter_ImGuiTextRange_split(const cimgui::ImGuiTextFilter_ImGuiTextRange* self, char separator, cimgui::ImVector_ImGuiTextRange* out) { reinterpret_cast(self)->split(separator, reinterpret_cast<::ImVector<::ImGuiTextFilter::ImGuiTextRange>*>(out)); } @@ -2797,6 +3020,11 @@ CIMGUI_API void cimgui::ImGuiTextBuffer_clear(cimgui::ImGuiTextBuffer* se reinterpret_cast<::ImGuiTextBuffer*>(self)->clear(); } +CIMGUI_API void cimgui::ImGuiTextBuffer_resize(cimgui::ImGuiTextBuffer* self, int size) +{ + reinterpret_cast<::ImGuiTextBuffer*>(self)->resize(size); +} + CIMGUI_API void cimgui::ImGuiTextBuffer_reserve(cimgui::ImGuiTextBuffer* self, int capacity) { reinterpret_cast<::ImGuiTextBuffer*>(self)->reserve(capacity); @@ -2937,11 +3165,6 @@ CIMGUI_API void cimgui::ImGuiListClipper_IncludeRangeByIndices(cimgui::ImGuiList reinterpret_cast<::ImGuiListClipper*>(self)->IncludeRangeByIndices(item_begin, item_end); } -CIMGUI_API void cimgui::ImGuiListClipper_ForceDisplayRangeByIndices(cimgui::ImGuiListClipper* self, int item_begin, int item_end) -{ - reinterpret_cast<::ImGuiListClipper*>(self)->ForceDisplayRangeByIndices(item_begin, item_end); -} - #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS CIMGUI_API void cimgui::ImColor_SetHSV(cimgui::ImColor* self, float h, float s, float v, float a) @@ -2949,9 +3172,9 @@ CIMGUI_API void cimgui::ImColor_SetHSV(cimgui::ImColor* self, float h, float reinterpret_cast<::ImColor*>(self)->SetHSV(h, s, v, a); } -CIMGUI_API cimgui::ImColor cimgui::ImColor_HSV(cimgui::ImColor* self, float h, float s, float v, float a) +CIMGUI_API cimgui::ImColor cimgui::ImColor_HSV(float h, float s, float v, float a) { - return ConvertFromCPP_ImColor(reinterpret_cast<::ImColor*>(self)->ImColor::HSV(h, s, v, a)); + return ConvertFromCPP_ImColor(::ImColor::HSV(h, s, v, a)); } CIMGUI_API void cimgui::ImGuiSelectionBasicStorage_ApplyRequests(cimgui::ImGuiSelectionBasicStorage* self, cimgui::ImGuiMultiSelectIO* ms_io) @@ -3039,14 +3262,14 @@ CIMGUI_API void cimgui::ImDrawList_PopClipRect(cimgui::ImDrawList* self) reinterpret_cast<::ImDrawList*>(self)->PopClipRect(); } -CIMGUI_API void cimgui::ImDrawList_PushTextureID(cimgui::ImDrawList* self, ImTextureID texture_id) +CIMGUI_API void cimgui::ImDrawList_PushTexture(cimgui::ImDrawList* self, cimgui::ImTextureRef tex_ref) { - reinterpret_cast<::ImDrawList*>(self)->PushTextureID(texture_id); + reinterpret_cast<::ImDrawList*>(self)->PushTexture(ConvertToCPP_ImTextureRef(tex_ref)); } -CIMGUI_API void cimgui::ImDrawList_PopTextureID(cimgui::ImDrawList* self) +CIMGUI_API void cimgui::ImDrawList_PopTexture(cimgui::ImDrawList* self) { - reinterpret_cast<::ImDrawList*>(self)->PopTextureID(); + reinterpret_cast<::ImDrawList*>(self)->PopTexture(); } CIMGUI_API cimgui::ImVec2 cimgui::ImDrawList_GetClipRectMin(const cimgui::ImDrawList* self) @@ -3184,14 +3407,14 @@ CIMGUI_API void cimgui::ImDrawList_AddTextEx(cimgui::ImDrawList* self, ci reinterpret_cast<::ImDrawList*>(self)->AddText(ConvertToCPP_ImVec2(pos), col, text_begin, text_end); } -CIMGUI_API void cimgui::ImDrawList_AddTextImFontPtr(cimgui::ImDrawList* self, const cimgui::ImFont* font, float font_size, cimgui::ImVec2 pos, ImU32 col, const char* text_begin) +CIMGUI_API void cimgui::ImDrawList_AddTextImFontPtr(cimgui::ImDrawList* self, cimgui::ImFont* font, float font_size, cimgui::ImVec2 pos, ImU32 col, const char* text_begin) { - reinterpret_cast<::ImDrawList*>(self)->AddText(reinterpret_cast(font), font_size, ConvertToCPP_ImVec2(pos), col, text_begin); + reinterpret_cast<::ImDrawList*>(self)->AddText(reinterpret_cast<::ImFont*>(font), font_size, ConvertToCPP_ImVec2(pos), col, text_begin); } -CIMGUI_API void cimgui::ImDrawList_AddTextImFontPtrEx(cimgui::ImDrawList* self, const cimgui::ImFont* font, float font_size, cimgui::ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const cimgui::ImVec4* cpu_fine_clip_rect) +CIMGUI_API void cimgui::ImDrawList_AddTextImFontPtrEx(cimgui::ImDrawList* self, cimgui::ImFont* font, float font_size, cimgui::ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end, float wrap_width, const cimgui::ImVec4* cpu_fine_clip_rect) { - reinterpret_cast<::ImDrawList*>(self)->AddText(reinterpret_cast(font), font_size, ConvertToCPP_ImVec2(pos), col, text_begin, text_end, wrap_width, reinterpret_cast(cpu_fine_clip_rect)); + reinterpret_cast<::ImDrawList*>(self)->AddText(reinterpret_cast<::ImFont*>(font), font_size, ConvertToCPP_ImVec2(pos), col, text_begin, text_end, wrap_width, reinterpret_cast(cpu_fine_clip_rect)); } CIMGUI_API void cimgui::ImDrawList_AddBezierCubic(cimgui::ImDrawList* self, cimgui::ImVec2 p1, cimgui::ImVec2 p2, cimgui::ImVec2 p3, cimgui::ImVec2 p4, ImU32 col, float thickness, int num_segments) @@ -3219,29 +3442,29 @@ CIMGUI_API void cimgui::ImDrawList_AddConcavePolyFilled(cimgui::ImDrawLis reinterpret_cast<::ImDrawList*>(self)->AddConcavePolyFilled(reinterpret_cast(points), num_points, col); } -CIMGUI_API void cimgui::ImDrawList_AddImage(cimgui::ImDrawList* self, ImTextureID user_texture_id, cimgui::ImVec2 p_min, cimgui::ImVec2 p_max) +CIMGUI_API void cimgui::ImDrawList_AddImage(cimgui::ImDrawList* self, cimgui::ImTextureRef tex_ref, cimgui::ImVec2 p_min, cimgui::ImVec2 p_max) { - reinterpret_cast<::ImDrawList*>(self)->AddImage(user_texture_id, ConvertToCPP_ImVec2(p_min), ConvertToCPP_ImVec2(p_max)); + reinterpret_cast<::ImDrawList*>(self)->AddImage(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(p_min), ConvertToCPP_ImVec2(p_max)); } -CIMGUI_API void cimgui::ImDrawList_AddImageEx(cimgui::ImDrawList* self, ImTextureID user_texture_id, cimgui::ImVec2 p_min, cimgui::ImVec2 p_max, cimgui::ImVec2 uv_min, cimgui::ImVec2 uv_max, ImU32 col) +CIMGUI_API void cimgui::ImDrawList_AddImageEx(cimgui::ImDrawList* self, cimgui::ImTextureRef tex_ref, cimgui::ImVec2 p_min, cimgui::ImVec2 p_max, cimgui::ImVec2 uv_min, cimgui::ImVec2 uv_max, ImU32 col) { - reinterpret_cast<::ImDrawList*>(self)->AddImage(user_texture_id, ConvertToCPP_ImVec2(p_min), ConvertToCPP_ImVec2(p_max), ConvertToCPP_ImVec2(uv_min), ConvertToCPP_ImVec2(uv_max), col); + reinterpret_cast<::ImDrawList*>(self)->AddImage(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(p_min), ConvertToCPP_ImVec2(p_max), ConvertToCPP_ImVec2(uv_min), ConvertToCPP_ImVec2(uv_max), col); } -CIMGUI_API void cimgui::ImDrawList_AddImageQuad(cimgui::ImDrawList* self, ImTextureID user_texture_id, cimgui::ImVec2 p1, cimgui::ImVec2 p2, cimgui::ImVec2 p3, cimgui::ImVec2 p4) +CIMGUI_API void cimgui::ImDrawList_AddImageQuad(cimgui::ImDrawList* self, cimgui::ImTextureRef tex_ref, cimgui::ImVec2 p1, cimgui::ImVec2 p2, cimgui::ImVec2 p3, cimgui::ImVec2 p4) { - reinterpret_cast<::ImDrawList*>(self)->AddImageQuad(user_texture_id, ConvertToCPP_ImVec2(p1), ConvertToCPP_ImVec2(p2), ConvertToCPP_ImVec2(p3), ConvertToCPP_ImVec2(p4)); + reinterpret_cast<::ImDrawList*>(self)->AddImageQuad(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(p1), ConvertToCPP_ImVec2(p2), ConvertToCPP_ImVec2(p3), ConvertToCPP_ImVec2(p4)); } -CIMGUI_API void cimgui::ImDrawList_AddImageQuadEx(cimgui::ImDrawList* self, ImTextureID user_texture_id, cimgui::ImVec2 p1, cimgui::ImVec2 p2, cimgui::ImVec2 p3, cimgui::ImVec2 p4, cimgui::ImVec2 uv1, cimgui::ImVec2 uv2, cimgui::ImVec2 uv3, cimgui::ImVec2 uv4, ImU32 col) +CIMGUI_API void cimgui::ImDrawList_AddImageQuadEx(cimgui::ImDrawList* self, cimgui::ImTextureRef tex_ref, cimgui::ImVec2 p1, cimgui::ImVec2 p2, cimgui::ImVec2 p3, cimgui::ImVec2 p4, cimgui::ImVec2 uv1, cimgui::ImVec2 uv2, cimgui::ImVec2 uv3, cimgui::ImVec2 uv4, ImU32 col) { - reinterpret_cast<::ImDrawList*>(self)->AddImageQuad(user_texture_id, ConvertToCPP_ImVec2(p1), ConvertToCPP_ImVec2(p2), ConvertToCPP_ImVec2(p3), ConvertToCPP_ImVec2(p4), ConvertToCPP_ImVec2(uv1), ConvertToCPP_ImVec2(uv2), ConvertToCPP_ImVec2(uv3), ConvertToCPP_ImVec2(uv4), col); + reinterpret_cast<::ImDrawList*>(self)->AddImageQuad(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(p1), ConvertToCPP_ImVec2(p2), ConvertToCPP_ImVec2(p3), ConvertToCPP_ImVec2(p4), ConvertToCPP_ImVec2(uv1), ConvertToCPP_ImVec2(uv2), ConvertToCPP_ImVec2(uv3), ConvertToCPP_ImVec2(uv4), col); } -CIMGUI_API void cimgui::ImDrawList_AddImageRounded(cimgui::ImDrawList* self, ImTextureID user_texture_id, cimgui::ImVec2 p_min, cimgui::ImVec2 p_max, cimgui::ImVec2 uv_min, cimgui::ImVec2 uv_max, ImU32 col, float rounding, ImDrawFlags flags) +CIMGUI_API void cimgui::ImDrawList_AddImageRounded(cimgui::ImDrawList* self, cimgui::ImTextureRef tex_ref, cimgui::ImVec2 p_min, cimgui::ImVec2 p_max, cimgui::ImVec2 uv_min, cimgui::ImVec2 uv_max, ImU32 col, float rounding, ImDrawFlags flags) { - reinterpret_cast<::ImDrawList*>(self)->AddImageRounded(user_texture_id, ConvertToCPP_ImVec2(p_min), ConvertToCPP_ImVec2(p_max), ConvertToCPP_ImVec2(uv_min), ConvertToCPP_ImVec2(uv_max), col, rounding, flags); + reinterpret_cast<::ImDrawList*>(self)->AddImageRounded(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(p_min), ConvertToCPP_ImVec2(p_max), ConvertToCPP_ImVec2(uv_min), ConvertToCPP_ImVec2(uv_max), col, rounding, flags); } CIMGUI_API void cimgui::ImDrawList_PathClear(cimgui::ImDrawList* self) @@ -3309,9 +3532,14 @@ CIMGUI_API void cimgui::ImDrawList_PathRect(cimgui::ImDrawList* self, cim reinterpret_cast<::ImDrawList*>(self)->PathRect(ConvertToCPP_ImVec2(rect_min), ConvertToCPP_ImVec2(rect_max), rounding, flags); } -CIMGUI_API void cimgui::ImDrawList_AddCallback(cimgui::ImDrawList* self, cimgui::ImDrawCallback callback, void* callback_data) +CIMGUI_API void cimgui::ImDrawList_AddCallback(cimgui::ImDrawList* self, cimgui::ImDrawCallback callback, void* userdata) { - reinterpret_cast<::ImDrawList*>(self)->AddCallback(reinterpret_cast<::ImDrawCallback>(callback), callback_data); + reinterpret_cast<::ImDrawList*>(self)->AddCallback(reinterpret_cast<::ImDrawCallback>(callback), userdata); +} + +CIMGUI_API void cimgui::ImDrawList_AddCallbackEx(cimgui::ImDrawList* self, cimgui::ImDrawCallback callback, void* userdata, size_t userdata_size) +{ + reinterpret_cast<::ImDrawList*>(self)->AddCallback(reinterpret_cast<::ImDrawCallback>(callback), userdata, userdata_size); } CIMGUI_API void cimgui::ImDrawList_AddDrawCmd(cimgui::ImDrawList* self) @@ -3379,6 +3607,25 @@ CIMGUI_API void cimgui::ImDrawList_PrimVtx(cimgui::ImDrawList* self, cimg reinterpret_cast<::ImDrawList*>(self)->PrimVtx(ConvertToCPP_ImVec2(pos), ConvertToCPP_ImVec2(uv), col); } +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API void cimgui::ImDrawList_PushTextureID(cimgui::ImDrawList* self, cimgui::ImTextureRef tex_ref) +{ + reinterpret_cast<::ImDrawList*>(self)->PushTextureID(ConvertToCPP_ImTextureRef(tex_ref)); +} + +CIMGUI_API void cimgui::ImDrawList_PopTextureID(cimgui::ImDrawList* self) +{ + reinterpret_cast<::ImDrawList*>(self)->PopTextureID(); +} + +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API void cimgui::ImDrawList__SetDrawListSharedData(cimgui::ImDrawList* self, cimgui::ImDrawListSharedData* data) +{ + reinterpret_cast<::ImDrawList*>(self)->_SetDrawListSharedData(reinterpret_cast<::ImDrawListSharedData*>(data)); +} + CIMGUI_API void cimgui::ImDrawList__ResetForNewFrame(cimgui::ImDrawList* self) { reinterpret_cast<::ImDrawList*>(self)->_ResetForNewFrame(); @@ -3404,9 +3651,9 @@ CIMGUI_API void cimgui::ImDrawList__OnChangedClipRect(cimgui::ImDrawList* reinterpret_cast<::ImDrawList*>(self)->_OnChangedClipRect(); } -CIMGUI_API void cimgui::ImDrawList__OnChangedTextureID(cimgui::ImDrawList* self) +CIMGUI_API void cimgui::ImDrawList__OnChangedTexture(cimgui::ImDrawList* self) { - reinterpret_cast<::ImDrawList*>(self)->_OnChangedTextureID(); + reinterpret_cast<::ImDrawList*>(self)->_OnChangedTexture(); } CIMGUI_API void cimgui::ImDrawList__OnChangedVtxOffset(cimgui::ImDrawList* self) @@ -3414,6 +3661,11 @@ CIMGUI_API void cimgui::ImDrawList__OnChangedVtxOffset(cimgui::ImDrawList reinterpret_cast<::ImDrawList*>(self)->_OnChangedVtxOffset(); } +CIMGUI_API void cimgui::ImDrawList__SetTexture(cimgui::ImDrawList* self, cimgui::ImTextureRef tex_ref) +{ + reinterpret_cast<::ImDrawList*>(self)->_SetTexture(ConvertToCPP_ImTextureRef(tex_ref)); +} + CIMGUI_API int cimgui::ImDrawList__CalcCircleAutoSegmentCount(const cimgui::ImDrawList* self, float radius) { return reinterpret_cast(self)->_CalcCircleAutoSegmentCount(radius); @@ -3449,6 +3701,56 @@ CIMGUI_API void cimgui::ImDrawData_ScaleClipRects(cimgui::ImDrawData* self, cimg reinterpret_cast<::ImDrawData*>(self)->ScaleClipRects(ConvertToCPP_ImVec2(fb_scale)); } +CIMGUI_API void cimgui::ImTextureData_Create(cimgui::ImTextureData* self, cimgui::ImTextureFormat format, int w, int h) +{ + reinterpret_cast<::ImTextureData*>(self)->Create(static_cast<::ImTextureFormat>(format), w, h); +} + +CIMGUI_API void cimgui::ImTextureData_DestroyPixels(cimgui::ImTextureData* self) +{ + reinterpret_cast<::ImTextureData*>(self)->DestroyPixels(); +} + +CIMGUI_API void* cimgui::ImTextureData_GetPixels(cimgui::ImTextureData* self) +{ + return reinterpret_cast<::ImTextureData*>(self)->GetPixels(); +} + +CIMGUI_API void* cimgui::ImTextureData_GetPixelsAt(cimgui::ImTextureData* self, int x, int y) +{ + return reinterpret_cast<::ImTextureData*>(self)->GetPixelsAt(x, y); +} + +CIMGUI_API int cimgui::ImTextureData_GetSizeInBytes(const cimgui::ImTextureData* self) +{ + return reinterpret_cast(self)->GetSizeInBytes(); +} + +CIMGUI_API int cimgui::ImTextureData_GetPitch(const cimgui::ImTextureData* self) +{ + return reinterpret_cast(self)->GetPitch(); +} + +CIMGUI_API cimgui::ImTextureRef cimgui::ImTextureData_GetTexRef(cimgui::ImTextureData* self) +{ + return ConvertFromCPP_ImTextureRef(reinterpret_cast<::ImTextureData*>(self)->GetTexRef()); +} + +CIMGUI_API ImTextureID cimgui::ImTextureData_GetTexID(const cimgui::ImTextureData* self) +{ + return reinterpret_cast(self)->GetTexID(); +} + +CIMGUI_API void cimgui::ImTextureData_SetTexID(cimgui::ImTextureData* self, ImTextureID tex_id) +{ + reinterpret_cast<::ImTextureData*>(self)->SetTexID(tex_id); +} + +CIMGUI_API void cimgui::ImTextureData_SetStatus(cimgui::ImTextureData* self, cimgui::ImTextureStatus status) +{ + reinterpret_cast<::ImTextureData*>(self)->SetStatus(static_cast<::ImTextureStatus>(status)); +} + CIMGUI_API void cimgui::ImFontGlyphRangesBuilder_Clear(cimgui::ImFontGlyphRangesBuilder* self) { reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->Clear(); @@ -3484,243 +3786,298 @@ CIMGUI_API void cimgui::ImFontGlyphRangesBuilder_BuildRanges(cimgui::ImFontGlyph reinterpret_cast<::ImFontGlyphRangesBuilder*>(self)->BuildRanges(reinterpret_cast<::ImVector<::ImWchar>*>(out_ranges)); } -CIMGUI_API bool cimgui::ImFontAtlasCustomRect_IsPacked(const cimgui::ImFontAtlasCustomRect* self) -{ - return reinterpret_cast(self)->IsPacked(); -} - -CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFont(cimgui::ImFontAtlas* self, const cimgui::ImFontConfig* font_cfg) +CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFont(cimgui::ImFontAtlas* self, const cimgui::ImFontConfig* font_cfg) { return reinterpret_cast<::cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFont(reinterpret_cast(font_cfg))); } -CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontDefault(cimgui::ImFontAtlas* self, const cimgui::ImFontConfig* font_cfg) +CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontDefault(cimgui::ImFontAtlas* self, const cimgui::ImFontConfig* font_cfg) { return reinterpret_cast<::cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontDefault(reinterpret_cast(font_cfg))); } -CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontFromFileTTF(cimgui::ImFontAtlas* self, const char* filename, float size_pixels, const cimgui::ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontFromFileTTF(cimgui::ImFontAtlas* self, const char* filename, float size_pixels, const cimgui::ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { return reinterpret_cast<::cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromFileTTF(filename, size_pixels, reinterpret_cast(font_cfg), glyph_ranges)); } -CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontFromMemoryTTF(cimgui::ImFontAtlas* self, void* font_data, int font_data_size, float size_pixels, const cimgui::ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontFromMemoryTTF(cimgui::ImFontAtlas* self, void* font_data, int font_data_size, float size_pixels, const cimgui::ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { return reinterpret_cast<::cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryTTF(font_data, font_data_size, size_pixels, reinterpret_cast(font_cfg), glyph_ranges)); } -CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontFromMemoryCompressedTTF(cimgui::ImFontAtlas* self, const void* compressed_font_data, int compressed_font_data_size, float size_pixels, const cimgui::ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontFromMemoryCompressedTTF(cimgui::ImFontAtlas* self, const void* compressed_font_data, int compressed_font_data_size, float size_pixels, const cimgui::ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { return reinterpret_cast<::cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryCompressedTTF(compressed_font_data, compressed_font_data_size, size_pixels, reinterpret_cast(font_cfg), glyph_ranges)); } -CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(cimgui::ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels, const cimgui::ImFontConfig* font_cfg, const ImWchar* glyph_ranges) +CIMGUI_API cimgui::ImFont* cimgui::ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(cimgui::ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels, const cimgui::ImFontConfig* font_cfg, const ImWchar* glyph_ranges) { return reinterpret_cast<::cimgui::ImFont*>(reinterpret_cast<::ImFontAtlas*>(self)->AddFontFromMemoryCompressedBase85TTF(compressed_font_data_base85, size_pixels, reinterpret_cast(font_cfg), glyph_ranges)); } -CIMGUI_API void cimgui::ImFontAtlas_ClearInputData(cimgui::ImFontAtlas* self) +CIMGUI_API void cimgui::ImFontAtlas_RemoveFont(cimgui::ImFontAtlas* self, cimgui::ImFont* font) { - reinterpret_cast<::ImFontAtlas*>(self)->ClearInputData(); + reinterpret_cast<::ImFontAtlas*>(self)->RemoveFont(reinterpret_cast<::ImFont*>(font)); } -CIMGUI_API void cimgui::ImFontAtlas_ClearTexData(cimgui::ImFontAtlas* self) -{ - reinterpret_cast<::ImFontAtlas*>(self)->ClearTexData(); -} - -CIMGUI_API void cimgui::ImFontAtlas_ClearFonts(cimgui::ImFontAtlas* self) -{ - reinterpret_cast<::ImFontAtlas*>(self)->ClearFonts(); -} - -CIMGUI_API void cimgui::ImFontAtlas_Clear(cimgui::ImFontAtlas* self) +CIMGUI_API void cimgui::ImFontAtlas_Clear(cimgui::ImFontAtlas* self) { reinterpret_cast<::ImFontAtlas*>(self)->Clear(); } -CIMGUI_API bool cimgui::ImFontAtlas_Build(cimgui::ImFontAtlas* self) +CIMGUI_API void cimgui::ImFontAtlas_CompactCache(cimgui::ImFontAtlas* self) +{ + reinterpret_cast<::ImFontAtlas*>(self)->CompactCache(); +} + +CIMGUI_API void cimgui::ImFontAtlas_SetFontLoader(cimgui::ImFontAtlas* self, const cimgui::ImFontLoader* font_loader) +{ + reinterpret_cast<::ImFontAtlas*>(self)->SetFontLoader(reinterpret_cast(font_loader)); +} + +CIMGUI_API void cimgui::ImFontAtlas_ClearInputData(cimgui::ImFontAtlas* self) +{ + reinterpret_cast<::ImFontAtlas*>(self)->ClearInputData(); +} + +CIMGUI_API void cimgui::ImFontAtlas_ClearFonts(cimgui::ImFontAtlas* self) +{ + reinterpret_cast<::ImFontAtlas*>(self)->ClearFonts(); +} + +CIMGUI_API void cimgui::ImFontAtlas_ClearTexData(cimgui::ImFontAtlas* self) +{ + reinterpret_cast<::ImFontAtlas*>(self)->ClearTexData(); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API bool cimgui::ImFontAtlas_Build(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->Build(); } -CIMGUI_API void cimgui::ImFontAtlas_GetTexDataAsAlpha8(cimgui::ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +CIMGUI_API void cimgui::ImFontAtlas_GetTexDataAsAlpha8(cimgui::ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) { reinterpret_cast<::ImFontAtlas*>(self)->GetTexDataAsAlpha8(out_pixels, out_width, out_height, out_bytes_per_pixel); } -CIMGUI_API void cimgui::ImFontAtlas_GetTexDataAsRGBA32(cimgui::ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) +CIMGUI_API void cimgui::ImFontAtlas_GetTexDataAsRGBA32(cimgui::ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel) { reinterpret_cast<::ImFontAtlas*>(self)->GetTexDataAsRGBA32(out_pixels, out_width, out_height, out_bytes_per_pixel); } -CIMGUI_API bool cimgui::ImFontAtlas_IsBuilt(const cimgui::ImFontAtlas* self) -{ - return reinterpret_cast(self)->IsBuilt(); -} - -CIMGUI_API void cimgui::ImFontAtlas_SetTexID(cimgui::ImFontAtlas* self, ImTextureID id) +CIMGUI_API void cimgui::ImFontAtlas_SetTexID(cimgui::ImFontAtlas* self, ImTextureID id) { reinterpret_cast<::ImFontAtlas*>(self)->SetTexID(id); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesDefault(cimgui::ImFontAtlas* self) +CIMGUI_API void cimgui::ImFontAtlas_SetTexIDImTextureRef(cimgui::ImFontAtlas* self, cimgui::ImTextureRef id) +{ + reinterpret_cast<::ImFontAtlas*>(self)->SetTexID(ConvertToCPP_ImTextureRef(id)); +} + +CIMGUI_API bool cimgui::ImFontAtlas_IsBuilt(const cimgui::ImFontAtlas* self) +{ + return reinterpret_cast(self)->IsBuilt(); +} + +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesDefault(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesDefault(); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesGreek(cimgui::ImFontAtlas* self) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesGreek(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesGreek(); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesKorean(cimgui::ImFontAtlas* self) +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesKorean(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesKorean(); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesJapanese(cimgui::ImFontAtlas* self) +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesJapanese(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesJapanese(); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesChineseFull(cimgui::ImFontAtlas* self) +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesChineseFull(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesChineseFull(); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(cimgui::ImFontAtlas* self) +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesChineseSimplifiedCommon(); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesCyrillic(cimgui::ImFontAtlas* self) +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesCyrillic(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesCyrillic(); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesThai(cimgui::ImFontAtlas* self) +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesThai(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesThai(); } -CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesVietnamese(cimgui::ImFontAtlas* self) +CIMGUI_API const ImWchar* cimgui::ImFontAtlas_GetGlyphRangesVietnamese(cimgui::ImFontAtlas* self) { return reinterpret_cast<::ImFontAtlas*>(self)->GetGlyphRangesVietnamese(); } -CIMGUI_API int cimgui::ImFontAtlas_AddCustomRectRegular(cimgui::ImFontAtlas* self, int width, int height) +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API ImFontAtlasRectId cimgui::ImFontAtlas_AddCustomRect(cimgui::ImFontAtlas* self, int width, int height, cimgui::ImFontAtlasRect* out_r) { - return reinterpret_cast<::ImFontAtlas*>(self)->AddCustomRectRegular(width, height); + return reinterpret_cast<::ImFontAtlas*>(self)->AddCustomRect(width, height, reinterpret_cast<::ImFontAtlasRect*>(out_r)); } -CIMGUI_API int cimgui::ImFontAtlas_AddCustomRectFontGlyph(cimgui::ImFontAtlas* self, cimgui::ImFont* font, ImWchar id, int width, int height, float advance_x, cimgui::ImVec2 offset) +CIMGUI_API void cimgui::ImFontAtlas_RemoveCustomRect(cimgui::ImFontAtlas* self, ImFontAtlasRectId id) { - return reinterpret_cast<::ImFontAtlas*>(self)->AddCustomRectFontGlyph(reinterpret_cast<::ImFont*>(font), id, width, height, advance_x, ConvertToCPP_ImVec2(offset)); + reinterpret_cast<::ImFontAtlas*>(self)->RemoveCustomRect(id); } -CIMGUI_API cimgui::ImFontAtlasCustomRect* cimgui::ImFontAtlas_GetCustomRectByIndex(cimgui::ImFontAtlas* self, int index) +CIMGUI_API bool cimgui::ImFontAtlas_GetCustomRect(const cimgui::ImFontAtlas* self, ImFontAtlasRectId id, cimgui::ImFontAtlasRect* out_r) { - return reinterpret_cast<::cimgui::ImFontAtlasCustomRect*>(reinterpret_cast<::ImFontAtlas*>(self)->GetCustomRectByIndex(index)); + return reinterpret_cast(self)->GetCustomRect(id, reinterpret_cast<::ImFontAtlasRect*>(out_r)); } -CIMGUI_API void cimgui::ImFontAtlas_CalcCustomRectUV(const cimgui::ImFontAtlas* self, const cimgui::ImFontAtlasCustomRect* rect, cimgui::ImVec2* out_uv_min, cimgui::ImVec2* out_uv_max) +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API ImFontAtlasRectId cimgui::ImFontAtlas_AddCustomRectRegular(cimgui::ImFontAtlas* self, int w, int h) { - reinterpret_cast(self)->CalcCustomRectUV(reinterpret_cast(rect), reinterpret_cast<::ImVec2*>(out_uv_min), reinterpret_cast<::ImVec2*>(out_uv_max)); + return reinterpret_cast<::ImFontAtlas*>(self)->AddCustomRectRegular(w, h); } -CIMGUI_API bool cimgui::ImFontAtlas_GetMouseCursorTexData(cimgui::ImFontAtlas* self, ImGuiMouseCursor cursor, cimgui::ImVec2* out_offset, cimgui::ImVec2* out_size, cimgui::ImVec2 out_uv_border[2], cimgui::ImVec2 out_uv_fill[2]) +CIMGUI_API const cimgui::ImFontAtlasRect* cimgui::ImFontAtlas_GetCustomRectByIndex(cimgui::ImFontAtlas* self, ImFontAtlasRectId id) { - ::ImVec2 out_uv_border_converted_array[2]; - for (int i=0; i<2; i++) - out_uv_border_converted_array[i] = ConvertToCPP_ImVec2(out_uv_border[i]); - ::ImVec2 out_uv_fill_converted_array[2]; - for (int i=0; i<2; i++) - out_uv_fill_converted_array[i] = ConvertToCPP_ImVec2(out_uv_fill[i]); - return reinterpret_cast<::ImFontAtlas*>(self)->GetMouseCursorTexData(cursor, reinterpret_cast<::ImVec2*>(out_offset), reinterpret_cast<::ImVec2*>(out_size), out_uv_border_converted_array, out_uv_fill_converted_array); + return reinterpret_cast(reinterpret_cast<::ImFontAtlas*>(self)->GetCustomRectByIndex(id)); } -CIMGUI_API const cimgui::ImFontGlyph* cimgui::ImFont_FindGlyph(const cimgui::ImFont* self, ImWchar c) +CIMGUI_API void cimgui::ImFontAtlas_CalcCustomRectUV(const cimgui::ImFontAtlas* self, const cimgui::ImFontAtlasRect* r, cimgui::ImVec2* out_uv_min, cimgui::ImVec2* out_uv_max) { - return reinterpret_cast(reinterpret_cast(self)->FindGlyph(c)); + reinterpret_cast(self)->CalcCustomRectUV(reinterpret_cast(r), reinterpret_cast<::ImVec2*>(out_uv_min), reinterpret_cast<::ImVec2*>(out_uv_max)); } -CIMGUI_API const cimgui::ImFontGlyph* cimgui::ImFont_FindGlyphNoFallback(const cimgui::ImFont* self, ImWchar c) +CIMGUI_API ImFontAtlasRectId cimgui::ImFontAtlas_AddCustomRectFontGlyph(cimgui::ImFontAtlas* self, cimgui::ImFont* font, ImWchar codepoint, int w, int h, float advance_x, cimgui::ImVec2 offset) { - return reinterpret_cast(reinterpret_cast(self)->FindGlyphNoFallback(c)); + return reinterpret_cast<::ImFontAtlas*>(self)->AddCustomRectFontGlyph(reinterpret_cast<::ImFont*>(font), codepoint, w, h, advance_x, ConvertToCPP_ImVec2(offset)); } -CIMGUI_API float cimgui::ImFont_GetCharAdvance(const cimgui::ImFont* self, ImWchar c) +CIMGUI_API ImFontAtlasRectId cimgui::ImFontAtlas_AddCustomRectFontGlyphForSize(cimgui::ImFontAtlas* self, cimgui::ImFont* font, float font_size, ImWchar codepoint, int w, int h, float advance_x, cimgui::ImVec2 offset) { - return reinterpret_cast(self)->GetCharAdvance(c); + return reinterpret_cast<::ImFontAtlas*>(self)->AddCustomRectFontGlyphForSize(reinterpret_cast<::ImFont*>(font), font_size, codepoint, w, h, advance_x, ConvertToCPP_ImVec2(offset)); } -CIMGUI_API bool cimgui::ImFont_IsLoaded(const cimgui::ImFont* self) +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API void cimgui::ImFontBaked_ClearOutputData(cimgui::ImFontBaked* self) +{ + reinterpret_cast<::ImFontBaked*>(self)->ClearOutputData(); +} + +CIMGUI_API cimgui::ImFontGlyph* cimgui::ImFontBaked_FindGlyph(cimgui::ImFontBaked* self, ImWchar c) +{ + return reinterpret_cast<::cimgui::ImFontGlyph*>(reinterpret_cast<::ImFontBaked*>(self)->FindGlyph(c)); +} + +CIMGUI_API cimgui::ImFontGlyph* cimgui::ImFontBaked_FindGlyphNoFallback(cimgui::ImFontBaked* self, ImWchar c) +{ + return reinterpret_cast<::cimgui::ImFontGlyph*>(reinterpret_cast<::ImFontBaked*>(self)->FindGlyphNoFallback(c)); +} + +CIMGUI_API float cimgui::ImFontBaked_GetCharAdvance(cimgui::ImFontBaked* self, ImWchar c) +{ + return reinterpret_cast<::ImFontBaked*>(self)->GetCharAdvance(c); +} + +CIMGUI_API bool cimgui::ImFontBaked_IsGlyphLoaded(cimgui::ImFontBaked* self, ImWchar c) +{ + return reinterpret_cast<::ImFontBaked*>(self)->IsGlyphLoaded(c); +} + +CIMGUI_API bool cimgui::ImFont_IsGlyphInFont(cimgui::ImFont* self, ImWchar c) +{ + return reinterpret_cast<::ImFont*>(self)->IsGlyphInFont(c); +} + +CIMGUI_API bool cimgui::ImFont_IsLoaded(const cimgui::ImFont* self) { return reinterpret_cast(self)->IsLoaded(); } -CIMGUI_API const char* cimgui::ImFont_GetDebugName(const cimgui::ImFont* self) +CIMGUI_API const char* cimgui::ImFont_GetDebugName(const cimgui::ImFont* self) { return reinterpret_cast(self)->GetDebugName(); } -CIMGUI_API cimgui::ImVec2 cimgui::ImFont_CalcTextSizeA(const cimgui::ImFont* self, float size, float max_width, float wrap_width, const char* text_begin) +CIMGUI_API cimgui::ImFontBaked* cimgui::ImFont_GetFontBaked(cimgui::ImFont* self, float font_size) { - return ConvertFromCPP_ImVec2(reinterpret_cast(self)->CalcTextSizeA(size, max_width, wrap_width, text_begin)); + return reinterpret_cast<::cimgui::ImFontBaked*>(reinterpret_cast<::ImFont*>(self)->GetFontBaked(font_size)); } -CIMGUI_API cimgui::ImVec2 cimgui::ImFont_CalcTextSizeAEx(const cimgui::ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) +CIMGUI_API cimgui::ImFontBaked* cimgui::ImFont_GetFontBakedEx(cimgui::ImFont* self, float font_size, float density) { - return ConvertFromCPP_ImVec2(reinterpret_cast(self)->CalcTextSizeA(size, max_width, wrap_width, text_begin, text_end, remaining)); + return reinterpret_cast<::cimgui::ImFontBaked*>(reinterpret_cast<::ImFont*>(self)->GetFontBaked(font_size, density)); } -CIMGUI_API const char* cimgui::ImFont_CalcWordWrapPositionA(const cimgui::ImFont* self, float scale, const char* text, const char* text_end, float wrap_width) +CIMGUI_API cimgui::ImVec2 cimgui::ImFont_CalcTextSizeA(cimgui::ImFont* self, float size, float max_width, float wrap_width, const char* text_begin) { - return reinterpret_cast(self)->CalcWordWrapPositionA(scale, text, text_end, wrap_width); + return ConvertFromCPP_ImVec2(reinterpret_cast<::ImFont*>(self)->CalcTextSizeA(size, max_width, wrap_width, text_begin)); } -CIMGUI_API void cimgui::ImFont_RenderChar(const cimgui::ImFont* self, cimgui::ImDrawList* draw_list, float size, cimgui::ImVec2 pos, ImU32 col, ImWchar c) +CIMGUI_API cimgui::ImVec2 cimgui::ImFont_CalcTextSizeAEx(cimgui::ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end, const char** remaining) { - reinterpret_cast(self)->RenderChar(reinterpret_cast<::ImDrawList*>(draw_list), size, ConvertToCPP_ImVec2(pos), col, c); + return ConvertFromCPP_ImVec2(reinterpret_cast<::ImFont*>(self)->CalcTextSizeA(size, max_width, wrap_width, text_begin, text_end, remaining)); } -CIMGUI_API void cimgui::ImFont_RenderText(const cimgui::ImFont* self, cimgui::ImDrawList* draw_list, float size, cimgui::ImVec2 pos, ImU32 col, cimgui::ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) +CIMGUI_API const char* cimgui::ImFont_CalcWordWrapPosition(cimgui::ImFont* self, float size, const char* text, const char* text_end, float wrap_width) { - reinterpret_cast(self)->RenderText(reinterpret_cast<::ImDrawList*>(draw_list), size, ConvertToCPP_ImVec2(pos), col, ConvertToCPP_ImVec4(clip_rect), text_begin, text_end, wrap_width, cpu_fine_clip); + return reinterpret_cast<::ImFont*>(self)->CalcWordWrapPosition(size, text, text_end, wrap_width); } -CIMGUI_API void cimgui::ImFont_BuildLookupTable(cimgui::ImFont* self) +CIMGUI_API void cimgui::ImFont_RenderChar(cimgui::ImFont* self, cimgui::ImDrawList* draw_list, float size, cimgui::ImVec2 pos, ImU32 col, ImWchar c) { - reinterpret_cast<::ImFont*>(self)->BuildLookupTable(); + reinterpret_cast<::ImFont*>(self)->RenderChar(reinterpret_cast<::ImDrawList*>(draw_list), size, ConvertToCPP_ImVec2(pos), col, c); } -CIMGUI_API void cimgui::ImFont_ClearOutputData(cimgui::ImFont* self) +CIMGUI_API void cimgui::ImFont_RenderCharEx(cimgui::ImFont* self, cimgui::ImDrawList* draw_list, float size, cimgui::ImVec2 pos, ImU32 col, ImWchar c, const cimgui::ImVec4* cpu_fine_clip) +{ + reinterpret_cast<::ImFont*>(self)->RenderChar(reinterpret_cast<::ImDrawList*>(draw_list), size, ConvertToCPP_ImVec2(pos), col, c, reinterpret_cast(cpu_fine_clip)); +} + +CIMGUI_API void cimgui::ImFont_RenderText(cimgui::ImFont* self, cimgui::ImDrawList* draw_list, float size, cimgui::ImVec2 pos, ImU32 col, cimgui::ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width, bool cpu_fine_clip) +{ + reinterpret_cast<::ImFont*>(self)->RenderText(reinterpret_cast<::ImDrawList*>(draw_list), size, ConvertToCPP_ImVec2(pos), col, ConvertToCPP_ImVec4(clip_rect), text_begin, text_end, wrap_width, cpu_fine_clip); +} + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API const char* cimgui::ImFont_CalcWordWrapPositionA(cimgui::ImFont* self, float scale, const char* text, const char* text_end, float wrap_width) +{ + return reinterpret_cast<::ImFont*>(self)->CalcWordWrapPositionA(scale, text, text_end, wrap_width); +} + +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +CIMGUI_API void cimgui::ImFont_ClearOutputData(cimgui::ImFont* self) { reinterpret_cast<::ImFont*>(self)->ClearOutputData(); } -CIMGUI_API void cimgui::ImFont_GrowIndex(cimgui::ImFont* self, int new_size) +CIMGUI_API void cimgui::ImFont_AddRemapChar(cimgui::ImFont* self, ImWchar from_codepoint, ImWchar to_codepoint) { - reinterpret_cast<::ImFont*>(self)->GrowIndex(new_size); + reinterpret_cast<::ImFont*>(self)->AddRemapChar(from_codepoint, to_codepoint); } -CIMGUI_API void cimgui::ImFont_AddGlyph(cimgui::ImFont* self, const cimgui::ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x) -{ - reinterpret_cast<::ImFont*>(self)->AddGlyph(reinterpret_cast(src_cfg), c, x0, y0, x1, y1, u0, v0, u1, v1, advance_x); -} - -CIMGUI_API void cimgui::ImFont_AddRemapChar(cimgui::ImFont* self, ImWchar dst, ImWchar src, bool overwrite_dst) -{ - reinterpret_cast<::ImFont*>(self)->AddRemapChar(dst, src, overwrite_dst); -} - -CIMGUI_API void cimgui::ImFont_SetGlyphVisible(cimgui::ImFont* self, ImWchar c, bool visible) -{ - reinterpret_cast<::ImFont*>(self)->SetGlyphVisible(c, visible); -} - -CIMGUI_API bool cimgui::ImFont_IsGlyphRangeUnused(cimgui::ImFont* self, unsigned int c_begin, unsigned int c_last) +CIMGUI_API bool cimgui::ImFont_IsGlyphRangeUnused(cimgui::ImFont* self, unsigned int c_begin, unsigned int c_last) { return reinterpret_cast<::ImFont*>(self)->IsGlyphRangeUnused(c_begin, c_last); } @@ -3737,22 +4094,37 @@ CIMGUI_API cimgui::ImVec2 cimgui::ImGuiViewport_GetWorkCenter(const cimgui::ImGu #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS -CIMGUI_API void cimgui::ImGui_PushButtonRepeat(bool repeat) +CIMGUI_API void cimgui::ImGui_PushFont(cimgui::ImFont* font) +{ + ::ImGui::PushFont(reinterpret_cast<::ImFont*>(font)); +} + +CIMGUI_API void cimgui::ImGui_SetWindowFontScale(float scale) +{ + ::ImGui::SetWindowFontScale(scale); +} + +CIMGUI_API void cimgui::ImGui_ImageImVec4(cimgui::ImTextureRef tex_ref, cimgui::ImVec2 image_size, cimgui::ImVec2 uv0, cimgui::ImVec2 uv1, cimgui::ImVec4 tint_col, cimgui::ImVec4 border_col) +{ + ::ImGui::Image(ConvertToCPP_ImTextureRef(tex_ref), ConvertToCPP_ImVec2(image_size), ConvertToCPP_ImVec2(uv0), ConvertToCPP_ImVec2(uv1), ConvertToCPP_ImVec4(tint_col), ConvertToCPP_ImVec4(border_col)); +} + +CIMGUI_API void cimgui::ImGui_PushButtonRepeat(bool repeat) { ::ImGui::PushButtonRepeat(repeat); } -CIMGUI_API void cimgui::ImGui_PopButtonRepeat(void) +CIMGUI_API void cimgui::ImGui_PopButtonRepeat(void) { ::ImGui::PopButtonRepeat(); } -CIMGUI_API void cimgui::ImGui_PushTabStop(bool tab_stop) +CIMGUI_API void cimgui::ImGui_PushTabStop(bool tab_stop) { ::ImGui::PushTabStop(tab_stop); } -CIMGUI_API void cimgui::ImGui_PopTabStop(void) +CIMGUI_API void cimgui::ImGui_PopTabStop(void) { ::ImGui::PopTabStop(); } @@ -3772,70 +4144,50 @@ CIMGUI_API cimgui::ImVec2 cimgui::ImGui_GetWindowContentRegionMax(void) return ConvertFromCPP_ImVec2(::ImGui::GetWindowContentRegionMax()); } -CIMGUI_API bool cimgui::ImGui_BeginChildFrame(ImGuiID id, cimgui::ImVec2 size) +CIMGUI_API bool cimgui::ImGui_BeginChildFrame(ImGuiID id, cimgui::ImVec2 size) { return ::ImGui::BeginChildFrame(id, ConvertToCPP_ImVec2(size)); } -CIMGUI_API bool cimgui::ImGui_BeginChildFrameEx(ImGuiID id, cimgui::ImVec2 size, ImGuiWindowFlags window_flags) +CIMGUI_API bool cimgui::ImGui_BeginChildFrameEx(ImGuiID id, cimgui::ImVec2 size, ImGuiWindowFlags window_flags) { return ::ImGui::BeginChildFrame(id, ConvertToCPP_ImVec2(size), window_flags); } -CIMGUI_API void cimgui::ImGui_EndChildFrame(void) +CIMGUI_API void cimgui::ImGui_EndChildFrame(void) { ::ImGui::EndChildFrame(); } -CIMGUI_API void cimgui::ImGui_ShowStackToolWindow(bool* p_open) +CIMGUI_API void cimgui::ImGui_ShowStackToolWindow(bool* p_open) { ::ImGui::ShowStackToolWindow(p_open); } -CIMGUI_API bool cimgui::ImGui_ComboObsolete(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count) +CIMGUI_API bool cimgui::ImGui_ComboObsolete(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count) { return ::ImGui::Combo(label, current_item, old_callback, user_data, items_count); } -CIMGUI_API bool cimgui::ImGui_ComboObsoleteEx(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int popup_max_height_in_items) +CIMGUI_API bool cimgui::ImGui_ComboObsoleteEx(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int popup_max_height_in_items) { return ::ImGui::Combo(label, current_item, old_callback, user_data, items_count, popup_max_height_in_items); } -CIMGUI_API bool cimgui::ImGui_ListBoxObsolete(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count) +CIMGUI_API bool cimgui::ImGui_ListBoxObsolete(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count) { return ::ImGui::ListBox(label, current_item, old_callback, user_data, items_count); } -CIMGUI_API bool cimgui::ImGui_ListBoxObsoleteEx(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int height_in_items) +CIMGUI_API bool cimgui::ImGui_ListBoxObsoleteEx(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int height_in_items) { return ::ImGui::ListBox(label, current_item, old_callback, user_data, items_count, height_in_items); } -CIMGUI_API void cimgui::ImGui_SetItemAllowOverlap(void) +CIMGUI_API void cimgui::ImGui_SetItemAllowOverlap(void) { ::ImGui::SetItemAllowOverlap(); } -CIMGUI_API void cimgui::ImGui_PushAllowKeyboardFocus(bool tab_stop) -{ - ::ImGui::PushAllowKeyboardFocus(tab_stop); -} - -CIMGUI_API void cimgui::ImGui_PopAllowKeyboardFocus(void) -{ - ::ImGui::PopAllowKeyboardFocus(); -} - -CIMGUI_API bool cimgui::ImGui_ImageButtonImTextureID(ImTextureID user_texture_id, cimgui::ImVec2 size, cimgui::ImVec2 uv0, cimgui::ImVec2 uv1, int frame_padding, cimgui::ImVec4 bg_col, cimgui::ImVec4 tint_col) -{ - return ::ImGui::ImageButton(user_texture_id, ConvertToCPP_ImVec2(size), ConvertToCPP_ImVec2(uv0), ConvertToCPP_ImVec2(uv1), frame_padding, ConvertToCPP_ImVec4(bg_col), ConvertToCPP_ImVec4(tint_col)); -} - -CIMGUI_API cimgui::ImGuiKey cimgui::ImGui_GetKeyIndex(cimgui::ImGuiKey key) -{ - return static_cast<::cimgui::ImGuiKey>(::ImGui::GetKeyIndex(static_cast<::ImGuiKey>(key))); -} - #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS #endif // #ifndef IMGUI_DISABLE diff --git a/src/cached/cimgui.h b/src/cached/dcimgui.h similarity index 68% rename from src/cached/cimgui.h rename to src/cached/dcimgui.h index 4776df8..2ec78ce 100644 --- a/src/cached/cimgui.h +++ b/src/cached/dcimgui.h @@ -2,19 +2,20 @@ // **DO NOT EDIT DIRECTLY** // https://github.com/dearimgui/dear_bindings -// dear imgui, v1.91.0 +// dear imgui, v1.92.2b // (headers) // Help: // - See links below. // - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that. // - Read top of imgui.cpp for more details, links and comments. +// - Add '#define IMGUI_DEFINE_MATH_OPERATORS' before including this file (or in imconfig.h) to access courtesy maths operators for ImVec2 and ImVec4. // Resources: // - FAQ ........................ https://dearimgui.com/faq (in repository as docs/FAQ.md) // - Homepage ................... https://github.com/ocornut/imgui // - Releases & changelog ....... https://github.com/ocornut/imgui/releases -// - Gallery .................... https://github.com/ocornut/imgui/issues/7503 (please post your screenshots/video there!) +// - Gallery .................... https://github.com/ocornut/imgui/issues?q=label%3Agallery (please post your screenshots/video there!) // - Wiki ....................... https://github.com/ocornut/imgui/wiki (lots of good stuff there) // - Getting Started https://github.com/ocornut/imgui/wiki/Getting-Started (how to integrate in an existing app by adding ~25 lines of code) // - Third-party Extensions https://github.com/ocornut/imgui/wiki/Useful-Extensions (ImPlot & many more) @@ -31,17 +32,23 @@ // Library Version // (Integer encoded as XYYZZ for use in #if preprocessor conditionals, e.g. '#if IMGUI_VERSION_NUM >= 12345') -#define IMGUI_VERSION "1.91.0" -#define IMGUI_VERSION_NUM 19100 -#define IMGUI_HAS_TABLE -#define IMGUI_HAS_VIEWPORT // Viewport WIP branch -#define IMGUI_HAS_DOCK // Docking WIP branch +#define IMGUI_VERSION "1.92.2b" +#define IMGUI_VERSION_NUM 19222 +#define IMGUI_HAS_TABLE // Added BeginTable() - from IMGUI_VERSION_NUM >= 18000 +#define IMGUI_HAS_TEXTURES // Added ImGuiBackendFlags_RendererHasTextures - from IMGUI_VERSION_NUM >= 19198 +#define IMGUI_HAS_VIEWPORT // In 'docking' WIP branch. +#define IMGUI_HAS_DOCK // In 'docking' WIP branch. + +// Extra defines set by Dear Bindings for internal purposes +#define IMGUI_DEAR_BINDINGS_HAS_GETWINDOWFRAMEBUFFERSCALE +#define IMGUI_DEAR_BINDINGS_HAS_GETWINDOWWORKAREAINSETS /* Index of this file: // [SECTION] Header mess // [SECTION] Forward declarations and basic types +// [SECTION] Texture identifiers (ImTextureID, ImTextureRef) // [SECTION] Dear ImGui end-user API functions // [SECTION] Flags & Enumerations // [SECTION] Tables API flags and structures (ImGuiTableFlags, ImGuiTableColumnFlags, ImGuiTableRowFlags, ImGuiTableBgTarget, ImGuiTableSortSpecs, ImGuiTableColumnSortSpecs) @@ -52,9 +59,10 @@ Index of this file: // [SECTION] Helpers (ImGuiOnceUponAFrame, ImGuiTextFilter, ImGuiTextBuffer, ImGuiStorage, ImGuiListClipper, Math Operators, ImColor) // [SECTION] Multi-Select API flags and structures (ImGuiMultiSelectFlags, ImGuiMultiSelectIO, ImGuiSelectionRequest, ImGuiSelectionBasicStorage, ImGuiSelectionExternalStorage) // [SECTION] Drawing API (ImDrawCallback, ImDrawCmd, ImDrawIdx, ImDrawVert, ImDrawChannel, ImDrawListSplitter, ImDrawFlags, ImDrawListFlags, ImDrawList, ImDrawData) -// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFont) +// [SECTION] Texture API (ImTextureFormat, ImTextureStatus, ImTextureRect, ImTextureData) +// [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontGlyphRangesBuilder, ImFontAtlasFlags, ImFontAtlas, ImFontBaked, ImFont) // [SECTION] Viewports (ImGuiViewportFlags, ImGuiViewport) -// [SECTION] Platform Dependent Interfaces (ImGuiPlatformIO, ImGuiPlatformMonitor, ImGuiPlatformImeData) +// [SECTION] ImGuiPlatformIO + other Platform Dependent Interfaces (ImGuiPlatformMonitor, ImGuiPlatformImeData) // [SECTION] Obsolete functions and types */ @@ -134,49 +142,62 @@ extern "C" #pragma clang diagnostic ignored "-Wunknown-warning-option" // warning: unknown warning group 'xxx' #endif // #if __has_warning("-Wunknown-warning-option") #pragma clang diagnostic ignored "-Wunknown-pragmas" // warning: unknown warning group 'xxx' -#pragma clang diagnostic ignored "-Wold-style-cast" +#pragma clang diagnostic ignored "-Wold-style-cast" // warning: use of old-style cast #pragma clang diagnostic ignored "-Wfloat-equal" // warning: comparing floating point with == or != is unsafe -#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" // warning: zero as null pointer constant #pragma clang diagnostic ignored "-Wreserved-identifier" // warning: identifier '_Xxx' is reserved because it starts with '_' followed by a capital letter #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" // warning: 'xxx' is an unsafe pointer used for buffer access +#pragma clang diagnostic ignored "-Wnontrivial-memaccess" // warning: first argument in call to 'memset' is a pointer to non-trivially copyable type #else #if defined(__GNUC__) #pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind -#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead +#pragma GCC diagnostic ignored "-Wpragmas" // warning: unknown option after '#pragma GCC diagnostic' kind +#pragma GCC diagnostic ignored "-Wfloat-equal" // warning: comparing floating-point with '==' or '!=' is unsafe +#pragma GCC diagnostic ignored "-Wclass-memaccess" // [__GNUC__ >= 8] warning: 'memset/memcpy' clearing/writing an object of type 'xxxx' with no trivial copy-assignment; use assignment or value-initialization instead #endif // #if defined(__GNUC__) #endif // #if defined(__clang__) //----------------------------------------------------------------------------- // [SECTION] Forward declarations and basic types -//----------------------------------------------------------------------------- - // Auto-generated forward declarations for C header typedef struct ImVec2_t ImVec2; typedef struct ImVec4_t ImVec4; -typedef struct ImVector_ImWchar_t ImVector_ImWchar; -typedef struct ImVector_ImGuiTextFilter_ImGuiTextRange_t ImVector_ImGuiTextFilter_ImGuiTextRange; +typedef struct ImTextureRef_t ImTextureRef; +typedef struct ImVector_ImGuiTextRange_t ImVector_ImGuiTextRange; typedef struct ImVector_char_t ImVector_char; typedef struct ImVector_ImGuiStoragePair_t ImVector_ImGuiStoragePair; typedef struct ImVector_ImGuiSelectionRequest_t ImVector_ImGuiSelectionRequest; +typedef struct ImVector_ImDrawChannel_t ImVector_ImDrawChannel; typedef struct ImVector_ImDrawCmd_t ImVector_ImDrawCmd; typedef struct ImVector_ImDrawIdx_t ImVector_ImDrawIdx; -typedef struct ImVector_ImDrawChannel_t ImVector_ImDrawChannel; typedef struct ImVector_ImDrawVert_t ImVector_ImDrawVert; typedef struct ImVector_ImVec2_t ImVector_ImVec2; typedef struct ImVector_ImVec4_t ImVector_ImVec4; -typedef struct ImVector_ImTextureID_t ImVector_ImTextureID; +typedef struct ImVector_ImTextureRef_t ImVector_ImTextureRef; +typedef struct ImVector_ImU8_t ImVector_ImU8; typedef struct ImVector_ImDrawListPtr_t ImVector_ImDrawListPtr; +typedef struct ImVector_ImTextureRect_t ImVector_ImTextureRect; typedef struct ImVector_ImU32_t ImVector_ImU32; +typedef struct ImVector_ImWchar_t ImVector_ImWchar; typedef struct ImVector_ImFontPtr_t ImVector_ImFontPtr; -typedef struct ImVector_ImFontAtlasCustomRect_t ImVector_ImFontAtlasCustomRect; typedef struct ImVector_ImFontConfig_t ImVector_ImFontConfig; +typedef struct ImVector_ImDrawListSharedDataPtr_t ImVector_ImDrawListSharedDataPtr; typedef struct ImVector_float_t ImVector_float; +typedef struct ImVector_ImU16_t ImVector_ImU16; typedef struct ImVector_ImFontGlyph_t ImVector_ImFontGlyph; +typedef struct ImVector_ImFontConfigPtr_t ImVector_ImFontConfigPtr; typedef struct ImVector_ImGuiPlatformMonitor_t ImVector_ImGuiPlatformMonitor; +typedef struct ImVector_ImTextureDataPtr_t ImVector_ImTextureDataPtr; typedef struct ImVector_ImGuiViewportPtr_t ImVector_ImGuiViewportPtr; typedef struct ImGuiTextFilter_ImGuiTextRange_t ImGuiTextFilter_ImGuiTextRange; typedef struct ImDrawCmdHeader_t ImDrawCmdHeader; -typedef struct ImFontAtlasCustomRect_t ImFontAtlasCustomRect; +// ImDrawIdx: vertex index. [Compile-time configurable type] +// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended). +// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file. +#ifndef ImDrawIdx +typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends) +#endif // #ifndef ImDrawIdx +//----------------------------------------------------------------------------- + // Scalar data types typedef unsigned int ImGuiID; // A unique ID used by widgets (typically the result of hashing a stack of string) typedef signed char ImS8; // 8-bit signed integer @@ -188,31 +209,38 @@ typedef unsigned int ImU32; // 32-bit unsigned integer (often used to sto typedef signed long long ImS64; // 64-bit signed integer typedef unsigned long long ImU64; // 64-bit unsigned integer -// Forward declarations -typedef struct ImDrawChannel_t ImDrawChannel; // Temporary storage to output draw commands out of order, used by ImDrawListSplitter and ImDrawList::ChannelsSplit() -typedef struct ImDrawCmd_t ImDrawCmd; // A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a callback) -typedef struct ImDrawData_t ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. -typedef struct ImDrawList_t ImDrawList; // A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" builder) -typedef struct ImDrawListSharedData_t ImDrawListSharedData; // Data shared among multiple draw lists (typically owned by parent ImGui context, but you may create one yourself) -typedef struct ImDrawListSplitter_t ImDrawListSplitter; // Helper to split a draw list into different layers which can be drawn into out of order, then flattened back. -typedef struct ImDrawVert_t ImDrawVert; // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) -typedef struct ImFont_t ImFont; // Runtime data for a single font within a parent ImFontAtlas -typedef struct ImFontAtlas_t ImFontAtlas; // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader -typedef struct ImFontBuilderIO_t ImFontBuilderIO; // Opaque interface to a font builder (stb_truetype or FreeType). -typedef struct ImFontConfig_t ImFontConfig; // Configuration data when adding a font or merging fonts -typedef struct ImFontGlyph_t ImFontGlyph; // A single font glyph (code point + coordinates within in ImFontAtlas + offset) -typedef struct ImFontGlyphRangesBuilder_t ImFontGlyphRangesBuilder; // Helper to build glyph ranges from text/string data -typedef struct ImColor_t ImColor; // Helper functions to create a color that can be converted to either u32 or float4 (*OBSOLETE* please avoid using) +// Forward declarations: ImDrawList, ImFontAtlas layer +typedef struct ImDrawChannel_t ImDrawChannel; // Temporary storage to output draw commands out of order, used by ImDrawListSplitter and ImDrawList::ChannelsSplit() +typedef struct ImDrawCmd_t ImDrawCmd; // A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a callback) +typedef struct ImDrawData_t ImDrawData; // All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix. +typedef struct ImDrawList_t ImDrawList; // A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" builder) +typedef struct ImDrawListSharedData_t ImDrawListSharedData; // Data shared among multiple draw lists (typically owned by parent ImGui context, but you may create one yourself) +typedef struct ImDrawListSplitter_t ImDrawListSplitter; // Helper to split a draw list into different layers which can be drawn into out of order, then flattened back. +typedef struct ImDrawVert_t ImDrawVert; // A single vertex (pos + uv + col = 20 bytes by default. Override layout with IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT) +typedef struct ImFont_t ImFont; // Runtime data for a single font within a parent ImFontAtlas +typedef struct ImFontAtlas_t ImFontAtlas; // Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader +typedef struct ImFontAtlasBuilder_t ImFontAtlasBuilder; // Opaque storage for building a ImFontAtlas +typedef struct ImFontAtlasRect_t ImFontAtlasRect; // Output of ImFontAtlas::GetCustomRect() when using custom rectangles. +typedef struct ImFontBaked_t ImFontBaked; // Baked data for a ImFont at a given size. +typedef struct ImFontConfig_t ImFontConfig; // Configuration data when adding a font or merging fonts +typedef struct ImFontGlyph_t ImFontGlyph; // A single font glyph (code point + coordinates within in ImFontAtlas + offset) +typedef struct ImFontGlyphRangesBuilder_t ImFontGlyphRangesBuilder; // Helper to build glyph ranges from text/string data +typedef struct ImFontLoader_t ImFontLoader; // Opaque interface to a font loading backend (stb_truetype, FreeType etc.). +typedef struct ImTextureData_t ImTextureData; // Specs and pixel storage for a texture used by Dear ImGui. +typedef struct ImTextureRect_t ImTextureRect; // Coordinates of a rectangle within a texture. +typedef struct ImColor_t ImColor; // Helper functions to create a color that can be converted to either u32 or float4 (*OBSOLETE* please avoid using) + +// Forward declarations: ImGui layer typedef struct ImGuiContext_t ImGuiContext; // Dear ImGui context (opaque structure, unless including imgui_internal.h) -typedef struct ImGuiIO_t ImGuiIO; // Main configuration and I/O between your application and ImGui +typedef struct ImGuiIO_t ImGuiIO; // Main configuration and I/O between your application and ImGui (also see: ImGuiPlatformIO) typedef struct ImGuiInputTextCallbackData_t ImGuiInputTextCallbackData; // Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use) typedef struct ImGuiKeyData_t ImGuiKeyData; // Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions. typedef struct ImGuiListClipper_t ImGuiListClipper; // Helper to manually clip large list of items typedef struct ImGuiMultiSelectIO_t ImGuiMultiSelectIO; // Structure to interact with a BeginMultiSelect()/EndMultiSelect() block typedef struct ImGuiPayload_t ImGuiPayload; // User data payload for drag and drop operations -typedef struct ImGuiPlatformIO_t ImGuiPlatformIO; // Multi-viewport support: interface for Platform/Renderer backends + viewports to render -typedef struct ImGuiPlatformMonitor_t ImGuiPlatformMonitor; // Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning popups and tooltips to avoid them straddling monitors +typedef struct ImGuiPlatformIO_t ImGuiPlatformIO; // Interface between platform/renderer backends and ImGui (e.g. Clipboard, IME, Multi-Viewport support). Extends ImGuiIO. typedef struct ImGuiPlatformImeData_t ImGuiPlatformImeData; // Platform IME data for io.PlatformSetImeDataFn() function. +typedef struct ImGuiPlatformMonitor_t ImGuiPlatformMonitor; // Multi-viewport support: user-provided bounds for each connected monitor/display. Used when positioning popups and tooltips to avoid them straddling monitors typedef struct ImGuiSelectionBasicStorage_t ImGuiSelectionBasicStorage; // Optional helper to store multi-selection state + apply multi-selection requests. typedef struct ImGuiSelectionExternalStorage_t ImGuiSelectionExternalStorage; //Optional helper to apply multi-selection requests to existing randomly accessible storage. typedef struct ImGuiSelectionRequest_t ImGuiSelectionRequest; // A selection request (stored in ImGuiMultiSelectIO) @@ -252,7 +280,8 @@ typedef int ImGuiTableBgTarget; // -> enum ImGuiTableBgTarget_ // Enum: A co // - In VS Code, CLion, etc.: CTRL+click can follow symbols inside comments. typedef int ImDrawFlags; // -> enum ImDrawFlags_ // Flags: for ImDrawList functions typedef int ImDrawListFlags; // -> enum ImDrawListFlags_ // Flags: for ImDrawList instance -typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build +typedef int ImFontFlags; // -> enum ImFontFlags_ // Flags: for ImFont +typedef int ImFontAtlasFlags; // -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas typedef int ImGuiBackendFlags; // -> enum ImGuiBackendFlags_ // Flags: for io.BackendFlags typedef int ImGuiButtonFlags; // -> enum ImGuiButtonFlags_ // Flags: for InvisibleButton() typedef int ImGuiChildFlags; // -> enum ImGuiChildFlags_ // Flags: for BeginChild() @@ -280,18 +309,6 @@ typedef int ImGuiTreeNodeFlags; // -> enum ImGuiTreeNodeFlags_ // Flags: f typedef int ImGuiViewportFlags; // -> enum ImGuiViewportFlags_ // Flags: for ImGuiViewport typedef int ImGuiWindowFlags; // -> enum ImGuiWindowFlags_ // Flags: for Begin(), BeginChild() -// ImTexture: user data for renderer backend to identify a texture [Compile-time configurable type] -// - To use something else than an opaque void* pointer: override with e.g. '#define ImTextureID MyTextureType*' in your imconfig.h file. -// - This can be whatever to you want it to be! read the FAQ about ImTextureID for details. -#ifndef ImTextureID -typedef void* ImTextureID; // Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that) -#endif // #ifndef ImTextureID -// ImDrawIdx: vertex index. [Compile-time configurable type] -// - To use 16-bit indices + allow large meshes: backend need to set 'io.BackendFlags |= ImGuiBackendFlags_RendererHasVtxOffset' and handle ImDrawCmd::VtxOffset (recommended). -// - To use 32-bit indices: override with '#define ImDrawIdx unsigned int' in your imconfig.h file. -#ifndef ImDrawIdx -typedef unsigned short ImDrawIdx; // Default: 16-bit (for maximum compatibility with renderer backends) -#endif // #ifndef ImDrawIdx // Character types // (we generally use UTF-8 encoded string in the API. This is storage specifically for a decoded character used for keyboard input and display) typedef unsigned int ImWchar32; // A single decoded U32 character/code point. We encode them as multi bytes UTF-8 when used in strings. @@ -313,19 +330,72 @@ typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data); // Fun typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data); // Function signature for ImGui::SetAllocatorFunctions() // ImVec2: 2D vector used to store positions, sizes etc. [Compile-time configurable type] -// This is a frequently used type in the API. Consider using IM_VEC2_CLASS_EXTRA to create implicit cast from/to our preferred type. -// Add '#define IMGUI_DEFINE_MATH_OPERATORS' in your imconfig.h file to benefit from courtesy maths operators for those types. +// - This is a frequently used type in the API. Consider using IM_VEC2_CLASS_EXTRA to create implicit cast from/to our preferred type. +// - Add '#define IMGUI_DEFINE_MATH_OPERATORS' before including this file (or in imconfig.h) to access courtesy maths operators for ImVec2 and ImVec4. IM_MSVC_RUNTIME_CHECKS_OFF -typedef struct ImVec2_t +struct ImVec2_t { float x, y; -} ImVec2; +}; // ImVec4: 4D vector used to store clipping rectangles, colors etc. [Compile-time configurable type] -typedef struct ImVec4_t +struct ImVec4_t { float x, y, z, w; -} ImVec4; +}; +IM_MSVC_RUNTIME_CHECKS_RESTORE + +//----------------------------------------------------------------------------- +// [SECTION] Texture identifiers (ImTextureID, ImTextureRef) +//----------------------------------------------------------------------------- + +// ImTextureID = backend specific, low-level identifier for a texture uploaded in GPU/graphics system. +// [Compile-time configurable type] +// - When a Rendered Backend creates a texture, it store its native identifier into a ImTextureID value. +// (e.g. Used by DX11 backend to a `ID3D11ShaderResourceView*`; Used by OpenGL backends to store `GLuint`; +// Used by SDLGPU backend to store a `SDL_GPUTextureSamplerBinding*`, etc.). +// - User may submit their own textures to e.g. ImGui::Image() function by passing this value. +// - During the rendering loop, the Renderer Backend retrieve the ImTextureID, which stored inside a +// ImTextureRef, which is stored inside a ImDrawCmd. +// - Compile-time type configuration: +// - To use something other than a 64-bit value: add '#define ImTextureID MyTextureType*' in your imconfig.h file. +// - This can be whatever to you want it to be! read the FAQ entry about textures for details. +// - You may decide to store a higher-level structure containing texture, sampler, shader etc. with various +// constructors if you like. You will need to implement ==/!= operators. +// History: +// - In v1.91.4 (2024/10/08): the default type for ImTextureID was changed from 'void*' to 'ImU64'. This allowed backends requirig 64-bit worth of data to build on 32-bit architectures. Use intermediary intptr_t cast and read FAQ if you have casting warnings. +// - In v1.92.0 (2025/06/11): added ImTextureRef which carry either a ImTextureID either a pointer to internal texture atlas. All user facing functions taking ImTextureID changed to ImTextureRef +#ifndef ImTextureID +typedef ImU64 ImTextureID; // Default: store up to 64-bits (any pointer or integer). A majority of backends are ok with that. +#endif // #ifndef ImTextureID +// Define this if you need 0 to be a valid ImTextureID for your backend. +#ifndef ImTextureID_Invalid +#define ImTextureID_Invalid ((ImTextureID)0) +#endif // #ifndef ImTextureID_Invalid +// ImTextureRef = higher-level identifier for a texture. Store a ImTextureID _or_ a ImTextureData*. +// The identifier is valid even before the texture has been uploaded to the GPU/graphics system. +// This is what gets passed to functions such as `ImGui::Image()`, `ImDrawList::AddImage()`. +// This is what gets stored in draw commands (`ImDrawCmd`) to identify a texture during rendering. +// - When a texture is created by user code (e.g. custom images), we directly stores the low-level ImTextureID. +// Because of this, when displaying your own texture you are likely to ever only manage ImTextureID values on your side. +// - When a texture is created by the backend, we stores a ImTextureData* which becomes an indirection +// to extract the ImTextureID value during rendering, after texture upload has happened. +// - To create a ImTextureRef from a ImTextureData you can use ImTextureData::GetTexRef(). +// We intentionally do not provide an ImTextureRef constructor for this: we don't expect this +// to be frequently useful to the end-user, and it would be erroneously called by many legacy code. +// - If you want to bind the current atlas when using custom rectangle, you can use io.Fonts->TexRef. +// - Binding generators for languages such as C (which don't have constructors), should provide a helper, e.g. +// inline ImTextureRef ImTextureRefFromID(ImTextureID tex_id) { ImTextureRef tex_ref = { ._TexData = NULL, .TexID = tex_id }; return tex_ref; } +// In 1.92 we changed most drawing functions using ImTextureID to use ImTextureRef. +// We intentionally do not provide an implicit ImTextureRef -> ImTextureID cast operator because it is technically lossy to convert ImTextureRef to ImTextureID before rendering. +IM_MSVC_RUNTIME_CHECKS_OFF +struct ImTextureRef_t +{ + // Members (either are set, never both!) + ImTextureData* _TexData; // A texture, generally owned by a ImFontAtlas. Will convert to ImTextureID during render loop, after texture has been uploaded. + ImTextureID _TexID; // _OR_ Low-level backend texture identifier, if already uploaded or created by user/app. Generally provided to e.g. ImGui::Image() calls. +}; +CIMGUI_API ImTextureID ImTextureRef_GetTexID(const ImTextureRef* self); // == (_TexData ? _TexData->TexID : _TexID) // Implemented below in the file. IM_MSVC_RUNTIME_CHECKS_RESTORE //----------------------------------------------------------------------------- @@ -343,12 +413,13 @@ CIMGUI_API ImGuiContext* ImGui_GetCurrentContext(void); CIMGUI_API void ImGui_SetCurrentContext(ImGuiContext* ctx); // Main -CIMGUI_API ImGuiIO* ImGui_GetIO(void); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) -CIMGUI_API ImGuiStyle* ImGui_GetStyle(void); // access the Style structure (colors, sizes). Always use PushStyleColor(), PushStyleVar() to modify style mid-frame! -CIMGUI_API void ImGui_NewFrame(void); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). -CIMGUI_API void ImGui_EndFrame(void); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! -CIMGUI_API void ImGui_Render(void); // ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData(). -CIMGUI_API ImDrawData* ImGui_GetDrawData(void); // valid after Render() and until the next call to NewFrame(). this is what you have to render. +CIMGUI_API ImGuiIO* ImGui_GetIO(void); // access the ImGuiIO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags) +CIMGUI_API ImGuiPlatformIO* ImGui_GetPlatformIO(void); // access the ImGuiPlatformIO structure (mostly hooks/functions to connect to platform/renderer and OS Clipboard, IME etc.) +CIMGUI_API ImGuiStyle* ImGui_GetStyle(void); // access the Style structure (colors, sizes). Always use PushStyleColor(), PushStyleVar() to modify style mid-frame! +CIMGUI_API void ImGui_NewFrame(void); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame(). +CIMGUI_API void ImGui_EndFrame(void); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all! +CIMGUI_API void ImGui_Render(void); // ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData(). +CIMGUI_API ImDrawData* ImGui_GetDrawData(void); // valid after Render() and until the next call to NewFrame(). Call ImGui_ImplXXXX_RenderDrawData() function in your Renderer Backend to render. // Demo, Debug, Information CIMGUI_API void ImGui_ShowDemoWindow(bool* p_open /* = NULL */); // create Demo window. demonstrate most ImGui features. call this to learn about the library! try to make it always available in your application! @@ -386,10 +457,10 @@ CIMGUI_API void ImGui_End(void); // Child Windows // - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child. // - Before 1.90 (November 2023), the "ImGuiChildFlags child_flags = 0" parameter was "bool border = false". -// This API is backward compatible with old code, as we guarantee that ImGuiChildFlags_Border == true. +// This API is backward compatible with old code, as we guarantee that ImGuiChildFlags_Borders == true. // Consider updating your old code: // BeginChild("Name", size, false) -> Begin("Name", size, 0); or Begin("Name", size, ImGuiChildFlags_None); -// BeginChild("Name", size, true) -> Begin("Name", size, ImGuiChildFlags_Border); +// BeginChild("Name", size, true) -> Begin("Name", size, ImGuiChildFlags_Borders); // - Manual sizing (each axis can use a different setting e.g. ImVec2(0.0f, 400.0f)): // == 0.0f: use remaining parent window size for this axis. // > 0.0f: use specified size for this axis. @@ -435,7 +506,6 @@ CIMGUI_API void ImGui_SetWindowPos(ImVec2 pos, ImGuiCond cond /* = 0 */); CIMGUI_API void ImGui_SetWindowSize(ImVec2 size, ImGuiCond cond /* = 0 */); // (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects. CIMGUI_API void ImGui_SetWindowCollapsed(bool collapsed, ImGuiCond cond /* = 0 */); // (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed(). CIMGUI_API void ImGui_SetWindowFocus(void); // (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus(). -CIMGUI_API void ImGui_SetWindowFontScale(float scale); // [OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes(). CIMGUI_API void ImGui_SetWindowPosStr(const char* name, ImVec2 pos, ImGuiCond cond /* = 0 */); // set named window position. CIMGUI_API void ImGui_SetWindowSizeStr(const char* name, ImVec2 size, ImGuiCond cond /* = 0 */); // set named window size. set axis to 0.0f to force an auto-fit on this axis. CIMGUI_API void ImGui_SetWindowCollapsedStr(const char* name, bool collapsed, ImGuiCond cond /* = 0 */); // set named window collapsed state @@ -455,15 +525,37 @@ CIMGUI_API void ImGui_SetScrollHereY(float center_y_ratio /* = 0.5f */); CIMGUI_API void ImGui_SetScrollFromPosX(float local_x, float center_x_ratio /* = 0.5f */); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. CIMGUI_API void ImGui_SetScrollFromPosY(float local_y, float center_y_ratio /* = 0.5f */); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position. +// Parameters stacks (font) +// - PushFont(font, 0.0f) // Change font and keep current size +// - PushFont(NULL, 20.0f) // Keep font and change current size +// - PushFont(font, 20.0f) // Change font and set size to 20.0f +// - PushFont(font, style.FontSizeBase * 2.0f) // Change font and set size to be twice bigger than current size. +// - PushFont(font, font->LegacySize) // Change font and set size to size passed to AddFontXXX() function. Same as pre-1.92 behavior. +// *IMPORTANT* before 1.92, fonts had a single size. They can now be dynamically be adjusted. +// - In 1.92 we have REMOVED the single parameter version of PushFont() because it seems like the easiest way to provide an error-proof transition. +// - PushFont(font) before 1.92 = PushFont(font, font->LegacySize) after 1.92 // Use default font size as passed to AddFontXXX() function. +// *IMPORTANT* global scale factors are applied over the provided size. +// - Global scale factors are: 'style.FontScaleMain', 'style.FontScaleDpi' and maybe more. +// - If you want to apply a factor to the _current_ font size: +// - CORRECT: PushFont(NULL, style.FontSizeBase) // use current unscaled size == does nothing +// - CORRECT: PushFont(NULL, style.FontSizeBase * 2.0f) // use current unscaled size x2 == make text twice bigger +// - INCORRECT: PushFont(NULL, GetFontSize()) // INCORRECT! using size after global factors already applied == GLOBAL SCALING FACTORS WILL APPLY TWICE! +// - INCORRECT: PushFont(NULL, GetFontSize() * 2.0f) // INCORRECT! using size after global factors already applied == GLOBAL SCALING FACTORS WILL APPLY TWICE! +CIMGUI_API void ImGui_PushFontFloat(ImFont* font, float font_size_base_unscaled); // Use NULL as a shortcut to keep current font. Use 0.0f to keep current size. +CIMGUI_API void ImGui_PopFont(void); +CIMGUI_API ImFont* ImGui_GetFont(void); // get current font +CIMGUI_API float ImGui_GetFontSize(void); // get current scaled font size (= height in pixels). AFTER global scale factors applied. *IMPORTANT* DO NOT PASS THIS VALUE TO PushFont()! Use ImGui::GetStyle().FontSizeBase to get value before global scale factors. +CIMGUI_API ImFontBaked* ImGui_GetFontBaked(void); // get current font bound at current size // == GetFont()->GetFontBaked(GetFontSize()) + // Parameters stacks (shared) -CIMGUI_API void ImGui_PushFont(ImFont* font); // use NULL as a shortcut to push default font -CIMGUI_API void ImGui_PopFont(void); CIMGUI_API void ImGui_PushStyleColor(ImGuiCol idx, ImU32 col); // modify a style color. always use this if you modify the style after NewFrame(). CIMGUI_API void ImGui_PushStyleColorImVec4(ImGuiCol idx, ImVec4 col); CIMGUI_API void ImGui_PopStyleColor(void); // Implied count = 1 CIMGUI_API void ImGui_PopStyleColorEx(int count /* = 1 */); -CIMGUI_API void ImGui_PushStyleVar(ImGuiStyleVar idx, float val); // modify a style float variable. always use this if you modify the style after NewFrame(). -CIMGUI_API void ImGui_PushStyleVarImVec2(ImGuiStyleVar idx, ImVec2 val); // modify a style ImVec2 variable. always use this if you modify the style after NewFrame(). +CIMGUI_API void ImGui_PushStyleVar(ImGuiStyleVar idx, float val); // modify a style float variable. always use this if you modify the style after NewFrame()! +CIMGUI_API void ImGui_PushStyleVarImVec2(ImGuiStyleVar idx, ImVec2 val); // modify a style ImVec2 variable. " +CIMGUI_API void ImGui_PushStyleVarX(ImGuiStyleVar idx, float val_x); // modify X component of a style ImVec2 variable. " +CIMGUI_API void ImGui_PushStyleVarY(ImGuiStyleVar idx, float val_y); // modify Y component of a style ImVec2 variable. " CIMGUI_API void ImGui_PopStyleVar(void); // Implied count = 1 CIMGUI_API void ImGui_PopStyleVarEx(int count /* = 1 */); CIMGUI_API void ImGui_PushItemFlag(ImGuiItemFlags option, bool enabled); // modify specified shared item flag, e.g. PushItemFlag(ImGuiItemFlags_NoTabStop, true) @@ -479,9 +571,7 @@ CIMGUI_API void ImGui_PopTextWrapPos(void); // Style read access // - Use the ShowStyleEditor() function to interactively see/edit the colors. -CIMGUI_API ImFont* ImGui_GetFont(void); // get current font -CIMGUI_API float ImGui_GetFontSize(void); // get current font size (= height in pixels) of current font with current scale applied -CIMGUI_API ImVec2 ImGui_GetFontTexUvWhitePixel(void); // get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API +CIMGUI_API ImVec2 ImGui_GetFontTexUvWhitePixel(void); // get UV coordinate for a white pixel, useful to draw custom shapes via the ImDrawList API CIMGUI_API ImU32 ImGui_GetColorU32(ImGuiCol idx); // Implied alpha_mul = 1.0f CIMGUI_API ImU32 ImGui_GetColorU32Ex(ImGuiCol idx, float alpha_mul /* = 1.0f */); // retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList CIMGUI_API ImU32 ImGui_GetColorU32ImVec4(ImVec4 col); // retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList @@ -565,7 +655,7 @@ CIMGUI_API void ImGui_LabelText(const char* label, const char* fmt, ...) IM_FMTA CIMGUI_API void ImGui_LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST(2); CIMGUI_API void ImGui_BulletText(const char* fmt, ...) IM_FMTARGS(1); // shortcut for Bullet()+Text() CIMGUI_API void ImGui_BulletTextV(const char* fmt, va_list args) IM_FMTLIST(1); -CIMGUI_API void ImGui_SeparatorText(const char* label); // currently: formatted text with an horizontal line +CIMGUI_API void ImGui_SeparatorText(const char* label); // currently: formatted text with a horizontal line // Widgets: Main // - Most widgets return true when the value has been changed or when pressed/selected @@ -583,17 +673,21 @@ CIMGUI_API bool ImGui_RadioButtonIntPtr(const char* label, int* v, int v_button) CIMGUI_API void ImGui_ProgressBar(float fraction, ImVec2 size_arg /* = ImVec2(-FLT_MIN, 0) */, const char* overlay /* = NULL */); CIMGUI_API void ImGui_Bullet(void); // draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses CIMGUI_API bool ImGui_TextLink(const char* label); // hyperlink text button, return true when clicked -CIMGUI_API void ImGui_TextLinkOpenURL(const char* label); // Implied url = NULL -CIMGUI_API void ImGui_TextLinkOpenURLEx(const char* label, const char* url /* = NULL */); // hyperlink text button, automatically open file/url when clicked +CIMGUI_API bool ImGui_TextLinkOpenURL(const char* label); // Implied url = NULL +CIMGUI_API bool ImGui_TextLinkOpenURLEx(const char* label, const char* url /* = NULL */); // hyperlink text button, automatically open file/url when clicked // Widgets: Images -// - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples +// - Read about ImTextureID/ImTextureRef here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples // - 'uv0' and 'uv1' are texture coordinates. Read about them from the same link above. -// - Note that Image() may add +2.0f to provided size if a border is visible, ImageButton() adds style.FramePadding*2.0f to provided size. -CIMGUI_API void ImGui_Image(ImTextureID user_texture_id, ImVec2 image_size); // Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), tint_col = ImVec4(1, 1, 1, 1), border_col = ImVec4(0, 0, 0, 0) -CIMGUI_API void ImGui_ImageEx(ImTextureID user_texture_id, ImVec2 image_size, ImVec2 uv0 /* = ImVec2(0, 0) */, ImVec2 uv1 /* = ImVec2(1, 1) */, ImVec4 tint_col /* = ImVec4(1, 1, 1, 1) */, ImVec4 border_col /* = ImVec4(0, 0, 0, 0) */); -CIMGUI_API bool ImGui_ImageButton(const char* str_id, ImTextureID user_texture_id, ImVec2 image_size); // Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), bg_col = ImVec4(0, 0, 0, 0), tint_col = ImVec4(1, 1, 1, 1) -CIMGUI_API bool ImGui_ImageButtonEx(const char* str_id, ImTextureID user_texture_id, ImVec2 image_size, ImVec2 uv0 /* = ImVec2(0, 0) */, ImVec2 uv1 /* = ImVec2(1, 1) */, ImVec4 bg_col /* = ImVec4(0, 0, 0, 0) */, ImVec4 tint_col /* = ImVec4(1, 1, 1, 1) */); +// - Image() pads adds style.ImageBorderSize on each side, ImageButton() adds style.FramePadding on each side. +// - ImageButton() draws a background based on regular Button() color + optionally an inner background if specified. +// - An obsolete version of Image(), before 1.91.9 (March 2025), had a 'tint_col' parameter which is now supported by the ImageWithBg() function. +CIMGUI_API void ImGui_Image(ImTextureRef tex_ref, ImVec2 image_size); // Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1) +CIMGUI_API void ImGui_ImageEx(ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0 /* = ImVec2(0, 0) */, ImVec2 uv1 /* = ImVec2(1, 1) */); +CIMGUI_API void ImGui_ImageWithBg(ImTextureRef tex_ref, ImVec2 image_size); // Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), bg_col = ImVec4(0, 0, 0, 0), tint_col = ImVec4(1, 1, 1, 1) +CIMGUI_API void ImGui_ImageWithBgEx(ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0 /* = ImVec2(0, 0) */, ImVec2 uv1 /* = ImVec2(1, 1) */, ImVec4 bg_col /* = ImVec4(0, 0, 0, 0) */, ImVec4 tint_col /* = ImVec4(1, 1, 1, 1) */); +CIMGUI_API bool ImGui_ImageButton(const char* str_id, ImTextureRef tex_ref, ImVec2 image_size); // Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), bg_col = ImVec4(0, 0, 0, 0), tint_col = ImVec4(1, 1, 1, 1) +CIMGUI_API bool ImGui_ImageButtonEx(const char* str_id, ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0 /* = ImVec2(0, 0) */, ImVec2 uv1 /* = ImVec2(1, 1) */, ImVec4 bg_col /* = ImVec4(0, 0, 0, 0) */, ImVec4 tint_col /* = ImVec4(1, 1, 1, 1) */); // Widgets: Combo Box (Dropdown) // - The BeginCombo()/EndCombo() api allows you to manage your contents and selection state however you want it, by creating e.g. Selectable() items. @@ -613,7 +707,7 @@ CIMGUI_API bool ImGui_ComboCallbackEx(const char* label, int* current_item, cons // the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x // - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. "%.3f" -> 1.234; "%5.2f secs" -> 01.23 secs; "Biscuit: %.0f" -> Biscuit: 1; etc. // - Format string may also be set to NULL or use the default format ("%f" or "%d"). -// - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). +// - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For keyboard/gamepad navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision). // - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used. // - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum. // - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. @@ -763,8 +857,9 @@ CIMGUI_API bool ImGui_IsItemToggledSelection(void); // Widgets: List Boxes // - This is essentially a thin wrapper to using BeginChild/EndChild with the ImGuiChildFlags_FrameStyle flag for stylistic changes + displaying a label. +// - If you don't need a label you can probably simply use BeginChild() with the ImGuiChildFlags_FrameStyle flag for the same result. // - You can submit contents and manage your selection state however you want it, by creating e.g. Selectable() or any other items. -// - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analoguous to how Combos are created. +// - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analogous to how Combos are created. // - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth // - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items CIMGUI_API bool ImGui_BeginListBox(const char* label, ImVec2 size /* = ImVec2(0, 0) */); // open a framed scrolling region @@ -915,7 +1010,7 @@ CIMGUI_API void ImGui_TableAngledHeadersRow(void); CIMGUI_API ImGuiTableSortSpecs* ImGui_TableGetSortSpecs(void); // get latest sort specs for the table (NULL if not sorting). Lifetime: don't hold on this pointer over multiple frames or past any subsequent call to BeginTable(). CIMGUI_API int ImGui_TableGetColumnCount(void); // return number of columns (value passed to BeginTable) CIMGUI_API int ImGui_TableGetColumnIndex(void); // return current column index. -CIMGUI_API int ImGui_TableGetRowIndex(void); // return current row index. +CIMGUI_API int ImGui_TableGetRowIndex(void); // return current row index (header rows are accounted for) CIMGUI_API const char* ImGui_TableGetColumnName(int column_n /* = -1 */); // return "" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column. CIMGUI_API ImGuiTableColumnFlags ImGui_TableGetColumnFlags(int column_n /* = -1 */); // return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column. CIMGUI_API void ImGui_TableSetColumnEnabled(int column_n, bool v); // change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody) @@ -924,8 +1019,8 @@ CIMGUI_API void ImGui_TableSetBgColor(ImGuiTableBgTarget target // Legacy Columns API (prefer using Tables!) // - You can also use SameLine(pos_x) to mimic simplified columns. -CIMGUI_API void ImGui_Columns(void); // Implied count = 1, id = NULL, border = true -CIMGUI_API void ImGui_ColumnsEx(int count /* = 1 */, const char* id /* = NULL */, bool border /* = true */); +CIMGUI_API void ImGui_Columns(void); // Implied count = 1, id = NULL, borders = true +CIMGUI_API void ImGui_ColumnsEx(int count /* = 1 */, const char* id /* = NULL */, bool borders /* = true */); CIMGUI_API void ImGui_NextColumn(void); // next column, defaults to current row or next row if the current row is finished CIMGUI_API int ImGui_GetColumnIndex(void); // get current column index CIMGUI_API float ImGui_GetColumnWidth(int column_index /* = -1 */); // get column width (in pixels). pass -1 to use current column @@ -992,7 +1087,7 @@ CIMGUI_API const ImGuiPayload* ImGui_GetDragDropPayload(void); // - Disable all user interactions and dim items visuals (applying style.DisabledAlpha over current colors) // - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) // - Tooltips windows by exception are opted out of disabling. -// - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it. +// - BeginDisabled(false)/EndDisabled() essentially does nothing but is provided to facilitate use of boolean expressions (as a micro-optimization: if you have tens of thousands of BeginDisabled(false)/EndDisabled() pairs, you might want to reformulate your code to avoid making those calls) CIMGUI_API void ImGui_BeginDisabled(bool disabled /* = true */); CIMGUI_API void ImGui_EndDisabled(void); @@ -1002,11 +1097,13 @@ CIMGUI_API void ImGui_PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, b CIMGUI_API void ImGui_PopClipRect(void); // Focus, Activation -// - Prefer using "SetItemDefaultFocus()" over "if (IsWindowAppearing()) SetScrollHereY()" when applicable to signify "this is the default item" -CIMGUI_API void ImGui_SetItemDefaultFocus(void); // make last item the default focused item of a window. +CIMGUI_API void ImGui_SetItemDefaultFocus(void); // make last item the default focused item of a newly appearing window. CIMGUI_API void ImGui_SetKeyboardFocusHere(void); // Implied offset = 0 CIMGUI_API void ImGui_SetKeyboardFocusHereEx(int offset /* = 0 */); // focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget. +// Keyboard/Gamepad Navigation +CIMGUI_API void ImGui_SetNavCursorVisible(bool visible); // alter visibility of keyboard/gamepad cursor. by default: show when using an arrow key, hide when clicking with mouse. + // Overlapping mode CIMGUI_API void ImGui_SetNextItemAllowOverlap(void); // allow next item to be overlapped by a subsequent item. Useful with invisible buttons, selectable, treenode covering an area where subsequent items may need to be added. Note that both Selectable() and TreeNode() have dedicated flags doing this. @@ -1066,16 +1163,15 @@ CIMGUI_API void ImGui_ColorConvertHSVtoRGB(float h, float s, float v, float* o // Inputs Utilities: Keyboard/Mouse/Gamepad // - the ImGuiKey enum contains all possible keyboard, mouse and gamepad inputs (e.g. ImGuiKey_A, ImGuiKey_MouseLeft, ImGuiKey_GamepadDpadUp...). -// - before v1.87, we used ImGuiKey to carry native/user indices as defined by each backends. About use of those legacy ImGuiKey values: -// - without IMGUI_DISABLE_OBSOLETE_KEYIO (legacy support): you can still use your legacy native/user indices (< 512) according to how your backend/engine stored them in io.KeysDown[], but need to cast them to ImGuiKey. -// - with IMGUI_DISABLE_OBSOLETE_KEYIO (this is the way forward): any use of ImGuiKey will assert with key < 512. GetKeyIndex() is pass-through and therefore deprecated (gone if IMGUI_DISABLE_OBSOLETE_KEYIO is defined). +// - (legacy: before v1.87, we used ImGuiKey to carry native/user indices as defined by each backends. This was obsoleted in 1.87 (2022-02) and completely removed in 1.91.5 (2024-11). See https://github.com/ocornut/imgui/issues/4921) +// - (legacy: any use of ImGuiKey will assert when key < 512 to detect passing legacy native/user indices) CIMGUI_API bool ImGui_IsKeyDown(ImGuiKey key); // is key being held. CIMGUI_API bool ImGui_IsKeyPressed(ImGuiKey key); // Implied repeat = true CIMGUI_API bool ImGui_IsKeyPressedEx(ImGuiKey key, bool repeat /* = true */); // was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate CIMGUI_API bool ImGui_IsKeyReleased(ImGuiKey key); // was key released (went from Down to !Down)? CIMGUI_API bool ImGui_IsKeyChordPressed(ImGuiKeyChord key_chord); // was key chord (mods + key) pressed, e.g. you can pass 'ImGuiMod_Ctrl | ImGuiKey_S' as a key-chord. This doesn't do any routing or focus check, please consider using Shortcut() function instead. CIMGUI_API int ImGui_GetKeyPressedAmount(ImGuiKey key, float repeat_delay, float rate); // uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate -CIMGUI_API const char* ImGui_GetKeyName(ImGuiKey key); // [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared. +CIMGUI_API const char* ImGui_GetKeyName(ImGuiKey key); // [DEBUG] returns English name of the key. Those names are provided for debugging purpose and are not meant to be saved persistently nor compared. CIMGUI_API void ImGui_SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard); // Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting "io.WantCaptureKeyboard = want_capture_keyboard"; after the next NewFrame() call. // Inputs Utilities: Shortcut Testing & Routing [BETA] @@ -1104,7 +1200,7 @@ CIMGUI_API void ImGui_SetNextItemShortcut(ImGuiKeyChord key_chord, ImGuiInputFla // - Many related features are still in imgui_internal.h. For instance, most IsKeyXXX()/IsMouseXXX() functions have an owner-id-aware version. CIMGUI_API void ImGui_SetItemKeyOwner(ImGuiKey key); // Set key owner to last item ID if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'. -// Inputs Utilities: Mouse specific +// Inputs Utilities: Mouse // - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right. // - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle. // - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold') @@ -1113,6 +1209,7 @@ CIMGUI_API bool ImGui_IsMouseClicked(ImGuiMouseButton button); CIMGUI_API bool ImGui_IsMouseClickedEx(ImGuiMouseButton button, bool repeat /* = false */); // did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1. CIMGUI_API bool ImGui_IsMouseReleased(ImGuiMouseButton button); // did mouse button released? (went from Down to !Down) CIMGUI_API bool ImGui_IsMouseDoubleClicked(ImGuiMouseButton button); // did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true) +CIMGUI_API bool ImGui_IsMouseReleasedWithDelay(ImGuiMouseButton button, float delay); // delayed mouse release (use very sparingly!). Generally used with 'delay >= io.MouseDoubleClickTime' + combined with a 'io.MouseClickedLastCount==1' test. This is a very rarely used UI idiom, but some apps use this: e.g. MS Explorer single click on an icon to rename. CIMGUI_API int ImGui_GetMouseClickedCount(ImGuiMouseButton button); // return the number of successive mouse-clicks at the time where a click happen (otherwise 0). CIMGUI_API bool ImGui_IsMouseHoveringRect(ImVec2 r_min, ImVec2 r_max); // Implied clip = true CIMGUI_API bool ImGui_IsMouseHoveringRectEx(ImVec2 r_min, ImVec2 r_max, bool clip /* = true */); // is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block. @@ -1126,7 +1223,7 @@ CIMGUI_API void ImGui_ResetMouseDragDelta(void); CIMGUI_API void ImGui_ResetMouseDragDeltaEx(ImGuiMouseButton button /* = 0 */); // CIMGUI_API ImGuiMouseCursor ImGui_GetMouseCursor(void); // get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you CIMGUI_API void ImGui_SetMouseCursor(ImGuiMouseCursor cursor_type); // set desired mouse cursor shape -CIMGUI_API void ImGui_SetNextFrameWantCaptureMouse(bool want_capture_mouse); // Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. +CIMGUI_API void ImGui_SetNextFrameWantCaptureMouse(bool want_capture_mouse); // Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instructs your app to ignore inputs). This is equivalent to setting "io.WantCaptureMouse = want_capture_mouse;" after the next NewFrame() call. // Clipboard Utilities // - Also see the LogToClipboard() function to capture GUI into clipboard, or easily output text data to the clipboard. @@ -1164,13 +1261,12 @@ CIMGUI_API void ImGui_MemFree(void* ptr); // (Optional) Platform/OS interface for multi-viewport support // Read comments around the ImGuiPlatformIO structure for more details. // Note: You may use GetWindowViewport() to get the current viewport of the current window. -CIMGUI_API ImGuiPlatformIO* ImGui_GetPlatformIO(void); // platform/renderer functions, for backend to setup + viewports list. -CIMGUI_API void ImGui_UpdatePlatformWindows(void); // call in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport. -CIMGUI_API void ImGui_RenderPlatformWindowsDefault(void); // Implied platform_render_arg = NULL, renderer_render_arg = NULL -CIMGUI_API void ImGui_RenderPlatformWindowsDefaultEx(void* platform_render_arg /* = NULL */, void* renderer_render_arg /* = NULL */); // call in main loop. will call RenderWindow/SwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. -CIMGUI_API void ImGui_DestroyPlatformWindows(void); // call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext(). -CIMGUI_API ImGuiViewport* ImGui_FindViewportByID(ImGuiID id); // this is a helper for backends. -CIMGUI_API ImGuiViewport* ImGui_FindViewportByPlatformHandle(void* platform_handle); // this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.) +CIMGUI_API void ImGui_UpdatePlatformWindows(void); // call in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport. +CIMGUI_API void ImGui_RenderPlatformWindowsDefault(void); // Implied platform_render_arg = NULL, renderer_render_arg = NULL +CIMGUI_API void ImGui_RenderPlatformWindowsDefaultEx(void* platform_render_arg /* = NULL */, void* renderer_render_arg /* = NULL */); // call in main loop. will call RenderWindow/SwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs. +CIMGUI_API void ImGui_DestroyPlatformWindows(void); // call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext(). +CIMGUI_API ImGuiViewport* ImGui_FindViewportByID(ImGuiID id); // this is a helper for backends. +CIMGUI_API ImGuiViewport* ImGui_FindViewportByPlatformHandle(void* platform_handle); // this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.) //----------------------------------------------------------------------------- // [SECTION] Flags & Enumerations @@ -1197,8 +1293,8 @@ typedef enum ImGuiWindowFlags_NoBringToFrontOnFocus = 1<<13, // Disable bringing window to front when taking focus (e.g. clicking on it or programmatically giving it focus) ImGuiWindowFlags_AlwaysVerticalScrollbar = 1<<14, // Always show vertical scrollbar (even if ContentSize.y < Size.y) ImGuiWindowFlags_AlwaysHorizontalScrollbar = 1<<15, // Always show horizontal scrollbar (even if ContentSize.x < Size.x) - ImGuiWindowFlags_NoNavInputs = 1<<16, // No gamepad/keyboard navigation within the window - ImGuiWindowFlags_NoNavFocus = 1<<17, // No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB) + ImGuiWindowFlags_NoNavInputs = 1<<16, // No keyboard/gamepad navigation within the window + ImGuiWindowFlags_NoNavFocus = 1<<17, // No focusing toward this window with keyboard/gamepad navigation (e.g. skipped by CTRL+TAB) ImGuiWindowFlags_UnsavedDocument = 1<<18, // Display a dot next to the title. When used in a tab/docking context, tab is selected when clicking the X + closure is not assumed (will wait for user to stop submitting the tab). Otherwise closure is assumed when pressing the X, so if you keep submitting the tab may reappear at end of tab bar. ImGuiWindowFlags_NoDocking = 1<<19, // Disable docking of this window ImGuiWindowFlags_NoNav = ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, @@ -1206,22 +1302,22 @@ typedef enum ImGuiWindowFlags_NoInputs = ImGuiWindowFlags_NoMouseInputs | ImGuiWindowFlags_NoNavInputs | ImGuiWindowFlags_NoNavFocus, // [Internal] + ImGuiWindowFlags_DockNodeHost = 1<<23, // Don't use! For internal use by Begin()/NewFrame() ImGuiWindowFlags_ChildWindow = 1<<24, // Don't use! For internal use by BeginChild() ImGuiWindowFlags_Tooltip = 1<<25, // Don't use! For internal use by BeginTooltip() ImGuiWindowFlags_Popup = 1<<26, // Don't use! For internal use by BeginPopup() ImGuiWindowFlags_Modal = 1<<27, // Don't use! For internal use by BeginPopupModal() ImGuiWindowFlags_ChildMenu = 1<<28, // Don't use! For internal use by BeginMenu() - ImGuiWindowFlags_DockNodeHost = 1<<29, // Don't use! For internal use by Begin()/NewFrame() // Obsolete names #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiWindowFlags_NavFlattened = 1<<29, // Obsoleted in 1.90.9: Use ImGuiChildFlags_NavFlattened in BeginChild() call. ImGuiWindowFlags_AlwaysUseWindowPadding = 1<<30, // Obsoleted in 1.90.0: Use ImGuiChildFlags_AlwaysUseWindowPadding in BeginChild() call. - ImGuiWindowFlags_NavFlattened = 1<<31, // Obsoleted in 1.90.9: Use ImGuiChildFlags_NavFlattened in BeginChild() call. #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS } ImGuiWindowFlags_; // Flags for ImGui::BeginChild() -// (Legacy: bit 0 must always correspond to ImGuiChildFlags_Border to be backward compatible with old API using 'bool border = false'. +// (Legacy: bit 0 must always correspond to ImGuiChildFlags_Borders to be backward compatible with old API using 'bool border = false'. // About using AutoResizeX/AutoResizeY flags: // - May be combined with SetNextWindowSizeConstraints() to set a min/max size for each axis (see "Demo->Child->Auto-resize with Constraints"). // - Size measurement for a given axis is only performed when the child window is within visible boundaries, or is just appearing. @@ -1232,15 +1328,20 @@ typedef enum typedef enum { ImGuiChildFlags_None = 0, - ImGuiChildFlags_Border = 1<<0, // Show an outer border and enable WindowPadding. (IMPORTANT: this is always == 1 == true for legacy reason) - ImGuiChildFlags_AlwaysUseWindowPadding = 1<<1, // Pad with style.WindowPadding even if no border are drawn (no padding by default for non-bordered child windows because it makes more sense) - ImGuiChildFlags_ResizeX = 1<<2, // Allow resize from right border (layout direction). Enable .ini saving (unless ImGuiWindowFlags_NoSavedSettings passed to window flags) - ImGuiChildFlags_ResizeY = 1<<3, // Allow resize from bottom border (layout direction). " - ImGuiChildFlags_AutoResizeX = 1<<4, // Enable auto-resizing width. Read "IMPORTANT: Size measurement" details above. - ImGuiChildFlags_AutoResizeY = 1<<5, // Enable auto-resizing height. Read "IMPORTANT: Size measurement" details above. - ImGuiChildFlags_AlwaysAutoResize = 1<<6, // Combined with AutoResizeX/AutoResizeY. Always measure size even when child is hidden, always return true, always disable clipping optimization! NOT RECOMMENDED. - ImGuiChildFlags_FrameStyle = 1<<7, // Style the child window like a framed item: use FrameBg, FrameRounding, FrameBorderSize, FramePadding instead of ChildBg, ChildRounding, ChildBorderSize, WindowPadding. - ImGuiChildFlags_NavFlattened = 1<<8, // [BETA] Share focus scope, allow gamepad/keyboard navigation to cross over parent border to this child or between sibling child windows. + ImGuiChildFlags_Borders = 1<<0, // Show an outer border and enable WindowPadding. (IMPORTANT: this is always == 1 == true for legacy reason) + ImGuiChildFlags_AlwaysUseWindowPadding = 1<<1, // Pad with style.WindowPadding even if no border are drawn (no padding by default for non-bordered child windows because it makes more sense) + ImGuiChildFlags_ResizeX = 1<<2, // Allow resize from right border (layout direction). Enable .ini saving (unless ImGuiWindowFlags_NoSavedSettings passed to window flags) + ImGuiChildFlags_ResizeY = 1<<3, // Allow resize from bottom border (layout direction). " + ImGuiChildFlags_AutoResizeX = 1<<4, // Enable auto-resizing width. Read "IMPORTANT: Size measurement" details above. + ImGuiChildFlags_AutoResizeY = 1<<5, // Enable auto-resizing height. Read "IMPORTANT: Size measurement" details above. + ImGuiChildFlags_AlwaysAutoResize = 1<<6, // Combined with AutoResizeX/AutoResizeY. Always measure size even when child is hidden, always return true, always disable clipping optimization! NOT RECOMMENDED. + ImGuiChildFlags_FrameStyle = 1<<7, // Style the child window like a framed item: use FrameBg, FrameRounding, FrameBorderSize, FramePadding instead of ChildBg, ChildRounding, ChildBorderSize, WindowPadding. + ImGuiChildFlags_NavFlattened = 1<<8, // [BETA] Share focus scope, allow keyboard/gamepad navigation to cross over parent border to this child or between sibling child windows. + + // Obsolete names +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiChildFlags_Border = ImGuiChildFlags_Borders, // Renamed in 1.91.1 (August 2024) for consistency. +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS } ImGuiChildFlags_; // Flags for ImGui::PushItemFlag() @@ -1253,6 +1354,7 @@ typedef enum ImGuiItemFlags_NoNavDefaultFocus = 1<<2, // false // Disable item being a candidate for default focus (e.g. used by title bar items). ImGuiItemFlags_ButtonRepeat = 1<<3, // false // Any button-like behavior will have repeat mode enabled (based on io.KeyRepeatDelay and io.KeyRepeatRate values). Note that you can also call IsItemActive() after any button to tell if it is being held. ImGuiItemFlags_AutoClosePopups = 1<<4, // true // MenuItem()/Selectable() automatically close their parent popup window. + ImGuiItemFlags_AllowDuplicateId = 1<<5, // false // Allow submitting an item with the same identifier as an item already submitted this frame without triggering a warning tooltip if io.ConfigDebugHighlightIdConflicts is set. } ImGuiItemFlags_; // Flags for ImGui::InputText() @@ -1269,7 +1371,7 @@ typedef enum // Inputs ImGuiInputTextFlags_AllowTabInput = 1<<5, // Pressing TAB input a '\t' character into the text field - ImGuiInputTextFlags_EnterReturnsTrue = 1<<6, // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function. + ImGuiInputTextFlags_EnterReturnsTrue = 1<<6, // Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider using IsItemDeactivatedAfterEdit() instead! ImGuiInputTextFlags_EscapeClearsAll = 1<<7, // Escape key clears content if not empty, and deactivate otherwise (contrast to default behavior of Escape to revert) ImGuiInputTextFlags_CtrlEnterForNewLine = 1<<8, // In multi-line mode, validate with Enter, add new line with Ctrl+Enter (default is opposite: validate with Ctrl+Enter, add line with Enter). @@ -1283,13 +1385,16 @@ typedef enum ImGuiInputTextFlags_NoHorizontalScroll = 1<<15, // Disable following the cursor horizontally ImGuiInputTextFlags_NoUndoRedo = 1<<16, // Disable undo/redo. Note that input text owns the text data while active, if you want to provide your own undo/redo stack you need e.g. to call ClearActiveID(). + // Elide display / Alignment + ImGuiInputTextFlags_ElideLeft = 1<<17, // When text doesn't fit, elide left side to ensure right side stays visible. Useful for path/filenames. Single-line only! + // Callback features - ImGuiInputTextFlags_CallbackCompletion = 1<<17, // Callback on pressing TAB (for completion handling) - ImGuiInputTextFlags_CallbackHistory = 1<<18, // Callback on pressing Up/Down arrows (for history handling) - ImGuiInputTextFlags_CallbackAlways = 1<<19, // Callback on each iteration. User code may query cursor position, modify text buffer. - ImGuiInputTextFlags_CallbackCharFilter = 1<<20, // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. - ImGuiInputTextFlags_CallbackResize = 1<<21, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) - ImGuiInputTextFlags_CallbackEdit = 1<<22, // Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) + ImGuiInputTextFlags_CallbackCompletion = 1<<18, // Callback on pressing TAB (for completion handling) + ImGuiInputTextFlags_CallbackHistory = 1<<19, // Callback on pressing Up/Down arrows (for history handling) + ImGuiInputTextFlags_CallbackAlways = 1<<20, // Callback on each iteration. User code may query cursor position, modify text buffer. + ImGuiInputTextFlags_CallbackCharFilter = 1<<21, // Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. + ImGuiInputTextFlags_CallbackResize = 1<<22, // Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this) + ImGuiInputTextFlags_CallbackEdit = 1<<23, // Callback on any edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active. // Obsolete names //ImGuiInputTextFlags_AlwaysInsertMode = ImGuiInputTextFlags_AlwaysOverwrite // [renamed in 1.82] name was not matching behavior @@ -1299,27 +1404,36 @@ typedef enum typedef enum { ImGuiTreeNodeFlags_None = 0, - ImGuiTreeNodeFlags_Selected = 1<<0, // Draw as selected - ImGuiTreeNodeFlags_Framed = 1<<1, // Draw frame with background (e.g. for CollapsingHeader) - ImGuiTreeNodeFlags_AllowOverlap = 1<<2, // Hit testing to allow subsequent widgets to overlap this one - ImGuiTreeNodeFlags_NoTreePushOnOpen = 1<<3, // Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack - ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1<<4, // Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes) - ImGuiTreeNodeFlags_DefaultOpen = 1<<5, // Default node to be open - ImGuiTreeNodeFlags_OpenOnDoubleClick = 1<<6, // Need double-click to open node - ImGuiTreeNodeFlags_OpenOnArrow = 1<<7, // Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open. - ImGuiTreeNodeFlags_Leaf = 1<<8, // No collapsing, no arrow (use as a convenience for leaf nodes). - ImGuiTreeNodeFlags_Bullet = 1<<9, // Display a bullet instead of arrow. IMPORTANT: node can still be marked open/close if you don't set the _Leaf flag! - ImGuiTreeNodeFlags_FramePadding = 1<<10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding() before the node. - ImGuiTreeNodeFlags_SpanAvailWidth = 1<<11, // Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line without using AllowOverlap mode. - ImGuiTreeNodeFlags_SpanFullWidth = 1<<12, // Extend hit box to the left-most and right-most edges (cover the indent area). - ImGuiTreeNodeFlags_SpanTextWidth = 1<<13, // Narrow hit box + narrow hovering highlight, will only cover the label text. - ImGuiTreeNodeFlags_SpanAllColumns = 1<<14, // Frame will span all columns of its container table (text will still fit in current column) - ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 1<<15, // (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop) + ImGuiTreeNodeFlags_Selected = 1<<0, // Draw as selected + ImGuiTreeNodeFlags_Framed = 1<<1, // Draw frame with background (e.g. for CollapsingHeader) + ImGuiTreeNodeFlags_AllowOverlap = 1<<2, // Hit testing to allow subsequent widgets to overlap this one + ImGuiTreeNodeFlags_NoTreePushOnOpen = 1<<3, // Don't do a TreePush() when open (e.g. for CollapsingHeader) = no extra indent nor pushing on ID stack + ImGuiTreeNodeFlags_NoAutoOpenOnLog = 1<<4, // Don't automatically and temporarily open node when Logging is active (by default logging will automatically open tree nodes) + ImGuiTreeNodeFlags_DefaultOpen = 1<<5, // Default node to be open + ImGuiTreeNodeFlags_OpenOnDoubleClick = 1<<6, // Open on double-click instead of simple click (default for multi-select unless any _OpenOnXXX behavior is set explicitly). Both behaviors may be combined. + ImGuiTreeNodeFlags_OpenOnArrow = 1<<7, // Open when clicking on the arrow part (default for multi-select unless any _OpenOnXXX behavior is set explicitly). Both behaviors may be combined. + ImGuiTreeNodeFlags_Leaf = 1<<8, // No collapsing, no arrow (use as a convenience for leaf nodes). + ImGuiTreeNodeFlags_Bullet = 1<<9, // Display a bullet instead of arrow. IMPORTANT: node can still be marked open/close if you don't set the _Leaf flag! + ImGuiTreeNodeFlags_FramePadding = 1<<10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding() before the node. + ImGuiTreeNodeFlags_SpanAvailWidth = 1<<11, // Extend hit box to the right-most edge, even if not framed. This is not the default in order to allow adding other items on the same line without using AllowOverlap mode. + ImGuiTreeNodeFlags_SpanFullWidth = 1<<12, // Extend hit box to the left-most and right-most edges (cover the indent area). + ImGuiTreeNodeFlags_SpanLabelWidth = 1<<13, // Narrow hit box + narrow hovering highlight, will only cover the label text. + ImGuiTreeNodeFlags_SpanAllColumns = 1<<14, // Frame will span all columns of its container table (label will still fit in current column) + ImGuiTreeNodeFlags_LabelSpanAllColumns = 1<<15, // Label will span all columns of its container table //ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 16, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible + ImGuiTreeNodeFlags_NavLeftJumpsToParent = 1<<17, // Nav: left arrow moves back to parent. This is processed in TreePop() when there's an unfullfilled Left nav request remaining. ImGuiTreeNodeFlags_CollapsingHeader = ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog, + // [EXPERIMENTAL] Draw lines connecting TreeNode hierarchy. Discuss in GitHub issue #2920. + // Default value is pulled from style.TreeLinesFlags. May be overridden in TreeNode calls. + ImGuiTreeNodeFlags_DrawLinesNone = 1<<18, // No lines drawn + ImGuiTreeNodeFlags_DrawLinesFull = 1<<19, // Horizontal lines to child nodes. Vertical line drawn down to TreePop() position: cover full contents. Faster (for large trees). + ImGuiTreeNodeFlags_DrawLinesToNodes = 1<<20, // Horizontal lines to child nodes. Vertical line drawn down to bottom-most child node. Slower (for large trees). + #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - ImGuiTreeNodeFlags_AllowItemOverlap = ImGuiTreeNodeFlags_AllowOverlap, // Renamed in 1.89.7 + ImGuiTreeNodeFlags_NavLeftJumpsBackHere = ImGuiTreeNodeFlags_NavLeftJumpsToParent, // Renamed in 1.92.0 + ImGuiTreeNodeFlags_SpanTextWidth = ImGuiTreeNodeFlags_SpanLabelWidth, // Renamed in 1.90.7 + ImGuiTreeNodeFlags_AllowItemOverlap = ImGuiTreeNodeFlags_AllowOverlap, // Renamed in 1.89.7 #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS } ImGuiTreeNodeFlags_; @@ -1384,17 +1498,24 @@ typedef enum typedef enum { ImGuiTabBarFlags_None = 0, - ImGuiTabBarFlags_Reorderable = 1<<0, // Allow manually dragging tabs to re-order them + New tabs are appended at the end of list - ImGuiTabBarFlags_AutoSelectNewTabs = 1<<1, // Automatically select new tabs when they appear - ImGuiTabBarFlags_TabListPopupButton = 1<<2, // Disable buttons to open the tab list popup - ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1<<3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You may handle this behavior manually on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. - ImGuiTabBarFlags_NoTabListScrollingButtons = 1<<4, // Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll) - ImGuiTabBarFlags_NoTooltip = 1<<5, // Disable tooltips when hovering a tab - ImGuiTabBarFlags_DrawSelectedOverline = 1<<6, // Draw selected overline markers over selected tab - ImGuiTabBarFlags_FittingPolicyResizeDown = 1<<7, // Resize tabs when they don't fit - ImGuiTabBarFlags_FittingPolicyScroll = 1<<8, // Add scroll buttons when tabs don't fit - ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll, - ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyResizeDown, + ImGuiTabBarFlags_Reorderable = 1<<0, // Allow manually dragging tabs to re-order them + New tabs are appended at the end of list + ImGuiTabBarFlags_AutoSelectNewTabs = 1<<1, // Automatically select new tabs when they appear + ImGuiTabBarFlags_TabListPopupButton = 1<<2, // Disable buttons to open the tab list popup + ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1<<3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You may handle this behavior manually on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. + ImGuiTabBarFlags_NoTabListScrollingButtons = 1<<4, // Disable scrolling buttons (apply when fitting policy is ImGuiTabBarFlags_FittingPolicyScroll) + ImGuiTabBarFlags_NoTooltip = 1<<5, // Disable tooltips when hovering a tab + ImGuiTabBarFlags_DrawSelectedOverline = 1<<6, // Draw selected overline markers over selected tab + + // Fitting/Resize policy + ImGuiTabBarFlags_FittingPolicyMixed = 1<<7, // Shrink down tabs when they don't fit, until width is style.TabMinWidthShrink, then enable scrolling buttons. + ImGuiTabBarFlags_FittingPolicyShrink = 1<<8, // Shrink down tabs when they don't fit + ImGuiTabBarFlags_FittingPolicyScroll = 1<<9, // Enable scrolling buttons when tabs don't fit + ImGuiTabBarFlags_FittingPolicyMask_ = ImGuiTabBarFlags_FittingPolicyMixed | ImGuiTabBarFlags_FittingPolicyShrink | ImGuiTabBarFlags_FittingPolicyScroll, + ImGuiTabBarFlags_FittingPolicyDefault_ = ImGuiTabBarFlags_FittingPolicyMixed, + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiTabBarFlags_FittingPolicyResizeDown = ImGuiTabBarFlags_FittingPolicyShrink, // Renamed in 1.92.2 +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS } ImGuiTabBarFlags_; // Flags for ImGui::BeginTabItem() @@ -1441,7 +1562,7 @@ typedef enum ImGuiHoveredFlags_AllowWhenOverlappedByItem = 1<<8, // IsItemHovered() only: Return true even if the item uses AllowOverlap mode and is overlapped by another hoverable item. ImGuiHoveredFlags_AllowWhenOverlappedByWindow = 1<<9, // IsItemHovered() only: Return true even if the position is obstructed or overlapped by another window. ImGuiHoveredFlags_AllowWhenDisabled = 1<<10, // IsItemHovered() only: Return true even if the item is disabled - ImGuiHoveredFlags_NoNavOverride = 1<<11, // IsItemHovered() only: Disable using gamepad/keyboard navigation state when active, always query mouse + ImGuiHoveredFlags_NoNavOverride = 1<<11, // IsItemHovered() only: Disable using keyboard/gamepad navigation state when active, always query mouse ImGuiHoveredFlags_AllowWhenOverlapped = ImGuiHoveredFlags_AllowWhenOverlappedByItem | ImGuiHoveredFlags_AllowWhenOverlappedByWindow, ImGuiHoveredFlags_RectOnly = ImGuiHoveredFlags_AllowWhenBlockedByPopup | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem | ImGuiHoveredFlags_AllowWhenOverlapped, ImGuiHoveredFlags_RootAndChildWindows = ImGuiHoveredFlags_RootWindow | ImGuiHoveredFlags_ChildWindows, @@ -1527,6 +1648,7 @@ typedef enum ImGuiDataType_Float, // float ImGuiDataType_Double, // double ImGuiDataType_Bool, // bool (provided for user convenience, not supported by scalar widgets) + ImGuiDataType_String, // char* (provided for user convenience, not supported by scalar widgets) ImGuiDataType_COUNT, } ImGuiDataType_; @@ -1549,21 +1671,19 @@ enum // Forwa ImGuiSortDirection_Descending = 2, // Descending = 9->0, Z->A etc. }; -// Since 1.90, defining IMGUI_DISABLE_OBSOLETE_FUNCTIONS automatically defines IMGUI_DISABLE_OBSOLETE_KEYIO as well. -#if defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS)&&!defined(IMGUI_DISABLE_OBSOLETE_KEYIO) -#define IMGUI_DISABLE_OBSOLETE_KEYIO -#endif // #if defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS)&&!defined(IMGUI_DISABLE_OBSOLETE_KEYIO) // A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value): can represent Keyboard, Mouse and Gamepad values. -// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87). -// Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey. -// Read details about the 1.87 and 1.89 transition : https://github.com/ocornut/imgui/issues/4921 +// All our named keys are >= 512. Keys value 0 to 511 are left unused and were legacy native/opaque key values (< 1.87). +// Support for legacy keys was completely removed in 1.91.5. +// Read details about the 1.87+ transition : https://github.com/ocornut/imgui/issues/4921 // Note that "Keys" related to physical keys and are not the same concept as input "Characters", the later are submitted via io.AddInputCharacter(). // The keyboard key enum values are named after the keys on a standard US keyboard, and on other keyboard types the keys reported may not match the keycaps. -enum // Forward declared enum type ImGuiKey +enum // Forward declared enum type ImGuiKey { // Keyboard ImGuiKey_None = 0, - ImGuiKey_Tab = 512, // == ImGuiKey_NamedKey_BEGIN + ImGuiKey_NamedKey_BEGIN = 512, // First valid key value (other than 0) + + ImGuiKey_Tab = 512, // == ImGuiKey_NamedKey_BEGIN ImGuiKey_LeftArrow, ImGuiKey_RightArrow, ImGuiKey_UpArrow, @@ -1581,7 +1701,7 @@ enum // Forward declared enu ImGuiKey_LeftCtrl, ImGuiKey_LeftShift, ImGuiKey_LeftAlt, - ImGuiKey_LeftSuper, + ImGuiKey_LeftSuper, // Also see ImGuiMod_Ctrl, ImGuiMod_Shift, ImGuiMod_Alt, ImGuiMod_Super below! ImGuiKey_RightCtrl, ImGuiKey_RightShift, ImGuiKey_RightAlt, @@ -1647,17 +1767,17 @@ enum // Forward declared enu ImGuiKey_F22, ImGuiKey_F23, ImGuiKey_F24, - ImGuiKey_Apostrophe, // ' - ImGuiKey_Comma, // , - ImGuiKey_Minus, // - - ImGuiKey_Period, // . - ImGuiKey_Slash, // / - ImGuiKey_Semicolon, // ; - ImGuiKey_Equal, // = - ImGuiKey_LeftBracket, // [ - ImGuiKey_Backslash, // \ (this text inhibit multiline comment caused by backslash) - ImGuiKey_RightBracket, // ] - ImGuiKey_GraveAccent, // ` + ImGuiKey_Apostrophe, // ' + ImGuiKey_Comma, // , + ImGuiKey_Minus, // - + ImGuiKey_Period, // . + ImGuiKey_Slash, // / + ImGuiKey_Semicolon, // ; + ImGuiKey_Equal, // = + ImGuiKey_LeftBracket, // [ + ImGuiKey_Backslash, // \ (this text inhibit multiline comment caused by backslash) + ImGuiKey_RightBracket, // ] + ImGuiKey_GraveAccent, // ` ImGuiKey_CapsLock, ImGuiKey_ScrollLock, ImGuiKey_NumLock, @@ -1680,35 +1800,38 @@ enum // Forward declared enu ImGuiKey_KeypadAdd, ImGuiKey_KeypadEnter, ImGuiKey_KeypadEqual, - ImGuiKey_AppBack, // Available on some keyboard/mouses. Often referred as "Browser Back" + ImGuiKey_AppBack, // Available on some keyboard/mouses. Often referred as "Browser Back" ImGuiKey_AppForward, + ImGuiKey_Oem102, // Non-US backslash. - // Gamepad (some of those are analog values, 0.0f to 1.0f) // NAVIGATION ACTION + // Gamepad + // (analog values are 0.0f to 1.0f) // (download controller mapping PNG/PSD at http://dearimgui.com/controls_sheets) - ImGuiKey_GamepadStart, // Menu (Xbox) + (Switch) Start/Options (PS) - ImGuiKey_GamepadBack, // View (Xbox) - (Switch) Share (PS) - ImGuiKey_GamepadFaceLeft, // X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows) - ImGuiKey_GamepadFaceRight, // B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit - ImGuiKey_GamepadFaceUp, // Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard - ImGuiKey_GamepadFaceDown, // A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak - ImGuiKey_GamepadDpadLeft, // D-pad Left // Move / Tweak / Resize Window (in Windowing mode) - ImGuiKey_GamepadDpadRight, // D-pad Right // Move / Tweak / Resize Window (in Windowing mode) - ImGuiKey_GamepadDpadUp, // D-pad Up // Move / Tweak / Resize Window (in Windowing mode) - ImGuiKey_GamepadDpadDown, // D-pad Down // Move / Tweak / Resize Window (in Windowing mode) - ImGuiKey_GamepadL1, // L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode) - ImGuiKey_GamepadR1, // R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode) - ImGuiKey_GamepadL2, // L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog] - ImGuiKey_GamepadR2, // R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog] - ImGuiKey_GamepadL3, // L Stick (Xbox) L3 (Switch) L3 (PS) - ImGuiKey_GamepadR3, // R Stick (Xbox) R3 (Switch) R3 (PS) - ImGuiKey_GamepadLStickLeft, // [Analog] // Move Window (in Windowing mode) - ImGuiKey_GamepadLStickRight, // [Analog] // Move Window (in Windowing mode) - ImGuiKey_GamepadLStickUp, // [Analog] // Move Window (in Windowing mode) - ImGuiKey_GamepadLStickDown, // [Analog] // Move Window (in Windowing mode) - ImGuiKey_GamepadRStickLeft, // [Analog] - ImGuiKey_GamepadRStickRight, // [Analog] - ImGuiKey_GamepadRStickUp, // [Analog] - ImGuiKey_GamepadRStickDown, // [Analog] + // // XBOX | SWITCH | PLAYSTA. | -> ACTION + ImGuiKey_GamepadStart, // Menu | + | Options | + ImGuiKey_GamepadBack, // View | - | Share | + ImGuiKey_GamepadFaceLeft, // X | Y | Square | Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows) + ImGuiKey_GamepadFaceRight, // B | A | Circle | Cancel / Close / Exit + ImGuiKey_GamepadFaceUp, // Y | X | Triangle | Text Input / On-screen Keyboard + ImGuiKey_GamepadFaceDown, // A | B | Cross | Activate / Open / Toggle / Tweak + ImGuiKey_GamepadDpadLeft, // D-pad Left | " | " | Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadRight, // D-pad Right | " | " | Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadUp, // D-pad Up | " | " | Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadDpadDown, // D-pad Down | " | " | Move / Tweak / Resize Window (in Windowing mode) + ImGuiKey_GamepadL1, // L Bumper | L | L1 | Tweak Slower / Focus Previous (in Windowing mode) + ImGuiKey_GamepadR1, // R Bumper | R | R1 | Tweak Faster / Focus Next (in Windowing mode) + ImGuiKey_GamepadL2, // L Trigger | ZL | L2 | [Analog] + ImGuiKey_GamepadR2, // R Trigger | ZR | R2 | [Analog] + ImGuiKey_GamepadL3, // L Stick | L3 | L3 | + ImGuiKey_GamepadR3, // R Stick | R3 | R3 | + ImGuiKey_GamepadLStickLeft, // | | | [Analog] Move Window (in Windowing mode) + ImGuiKey_GamepadLStickRight, // | | | [Analog] Move Window (in Windowing mode) + ImGuiKey_GamepadLStickUp, // | | | [Analog] Move Window (in Windowing mode) + ImGuiKey_GamepadLStickDown, // | | | [Analog] Move Window (in Windowing mode) + ImGuiKey_GamepadRStickLeft, // | | | [Analog] + ImGuiKey_GamepadRStickRight, // | | | [Analog] + ImGuiKey_GamepadRStickUp, // | | | [Analog] + ImGuiKey_GamepadRStickDown, // | | | [Analog] // Aliases: Mouse Buttons (auto-submitted from AddMouseButtonEvent() calls) // - This is mirroring the data also written to io.MouseDown[], io.MouseWheel, in a format allowing them to be accessed via standard key API. @@ -1725,11 +1848,15 @@ enum // Forward declared enu ImGuiKey_ReservedForModShift, ImGuiKey_ReservedForModAlt, ImGuiKey_ReservedForModSuper, - ImGuiKey_COUNT, + + // [Internal] If you need to iterate all keys (for e.g. an input mapper) you may use ImGuiKey_NamedKey_BEGIN..ImGuiKey_NamedKey_END. + ImGuiKey_NamedKey_END, + ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END-ImGuiKey_NamedKey_BEGIN, // Keyboard Modifiers (explicitly submitted by backend via AddKeyEvent() calls) - // - This is mirroring the data also written to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper, in a format allowing - // them to be accessed via standard key API, allowing calls such as IsKeyPressed(), IsKeyReleased(), querying duration etc. + // - Any functions taking a ImGuiKeyChord parameter can binary-or those with regular keys, e.g. Shortcut(ImGuiMod_Ctrl | ImGuiKey_S). + // - Those are written back into io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper for convenience, + // but may be accessed via standard key API such as IsKeyPressed(), IsKeyReleased(), querying duration etc. // - Code polling every key (e.g. an interface to detect a key press for input mapping) might want to ignore those // and prefer using the real keys (e.g. ImGuiKey_LeftCtrl, ImGuiKey_RightCtrl instead of ImGuiMod_Ctrl). // - In theory the value of keyboard modifiers should be roughly equivalent to a logical or of the equivalent left/right keys. @@ -1737,31 +1864,19 @@ enum // Forward declared enu // backends tend to interfere and break that equivalence. The safer decision is to relay that ambiguity down to the end-user... // - On macOS, we swap Cmd(Super) and Ctrl keys at the time of the io.AddKeyEvent() call. ImGuiMod_None = 0, - ImGuiMod_Ctrl = 1<<12, // Ctrl (non-macOS), Cmd (macOS) - ImGuiMod_Shift = 1<<13, // Shift - ImGuiMod_Alt = 1<<14, // Option/Menu - ImGuiMod_Super = 1<<15, // Windows/Super (non-macOS), Ctrl (macOS) - ImGuiMod_Mask_ = 0xF000, // 4-bits + ImGuiMod_Ctrl = 1<<12, // Ctrl (non-macOS), Cmd (macOS) + ImGuiMod_Shift = 1<<13, // Shift + ImGuiMod_Alt = 1<<14, // Option/Menu + ImGuiMod_Super = 1<<15, // Windows/Super (non-macOS), Ctrl (macOS) + ImGuiMod_Mask_ = 0xF000, // 4-bits - // [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array. - // We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE) - // If you need to iterate all keys (for e.g. an input mapper) you may use ImGuiKey_NamedKey_BEGIN..ImGuiKey_NamedKey_END. - ImGuiKey_NamedKey_BEGIN = 512, - ImGuiKey_NamedKey_END = ImGuiKey_COUNT, - ImGuiKey_NamedKey_COUNT = ImGuiKey_NamedKey_END-ImGuiKey_NamedKey_BEGIN, -#ifdef IMGUI_DISABLE_OBSOLETE_KEYIO - ImGuiKey_KeysData_SIZE = ImGuiKey_NamedKey_COUNT, // Size of KeysData[]: only hold named keys - ImGuiKey_KeysData_OFFSET = ImGuiKey_NamedKey_BEGIN, // Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index. -#else - ImGuiKey_KeysData_SIZE = ImGuiKey_COUNT, // Size of KeysData[]: hold legacy 0..512 keycodes + named keys - ImGuiKey_KeysData_OFFSET = 0, // Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index. -#endif // #ifdef IMGUI_DISABLE_OBSOLETE_KEYIO #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS - ImGuiMod_Shortcut = ImGuiMod_Ctrl, // Removed in 1.90.7, you can now simply use ImGuiMod_Ctrl + ImGuiKey_COUNT = ImGuiKey_NamedKey_END, // Obsoleted in 1.91.5 because it was extremely misleading (since named keys don't start at 0 anymore) + ImGuiMod_Shortcut = ImGuiMod_Ctrl, // Removed in 1.90.7, you can now simply use ImGuiMod_Ctrl ImGuiKey_ModCtrl = ImGuiMod_Ctrl, ImGuiKey_ModShift = ImGuiMod_Shift, ImGuiKey_ModAlt = ImGuiMod_Alt, - ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 + ImGuiKey_ModSuper = ImGuiMod_Super, // Renamed in 1.89 //ImGuiKey_KeyPadEnter = ImGuiKey_KeypadEnter, // Renamed in 1.87 #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS }; @@ -1791,39 +1906,12 @@ typedef enum ImGuiInputFlags_Tooltip = 1<<18, // Automatically display a tooltip when hovering item [BETA] Unsure of right api (opt-in/opt-out) } ImGuiInputFlags_; -#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO -// OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[]. -// Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set. -// Custom backends: feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. -typedef enum -{ - ImGuiNavInput_Activate, - ImGuiNavInput_Cancel, - ImGuiNavInput_Input, - ImGuiNavInput_Menu, - ImGuiNavInput_DpadLeft, - ImGuiNavInput_DpadRight, - ImGuiNavInput_DpadUp, - ImGuiNavInput_DpadDown, - ImGuiNavInput_LStickLeft, - ImGuiNavInput_LStickRight, - ImGuiNavInput_LStickUp, - ImGuiNavInput_LStickDown, - ImGuiNavInput_FocusPrev, - ImGuiNavInput_FocusNext, - ImGuiNavInput_TweakSlow, - ImGuiNavInput_TweakFast, - ImGuiNavInput_COUNT, -} ImGuiNavInput; -#endif // #ifndef IMGUI_DISABLE_OBSOLETE_KEYIO // Configuration flags stored in io.ConfigFlags. Set by user/application. typedef enum { ImGuiConfigFlags_None = 0, ImGuiConfigFlags_NavEnableKeyboard = 1<<0, // Master keyboard navigation enable flag. Enable full Tabbing + directional arrows + space/enter to activate. ImGuiConfigFlags_NavEnableGamepad = 1<<1, // Master gamepad navigation enable flag. Backend also needs to set ImGuiBackendFlags_HasGamepad. - ImGuiConfigFlags_NavEnableSetMousePos = 1<<2, // Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth. - ImGuiConfigFlags_NavNoCaptureKeyboard = 1<<3, // Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set. ImGuiConfigFlags_NoMouse = 1<<4, // Instruct dear imgui to disable mouse inputs and interactions. ImGuiConfigFlags_NoMouseCursorChange = 1<<5, // Instruct backend to not alter mouse cursor shape and visibility. Use if the backend cursor changes are interfering with yours and you don't want to use SetMouseCursor() to change mouse cursor. You may want to honor requests from imgui by reading GetMouseCursor() yourself instead. ImGuiConfigFlags_NoKeyboard = 1<<6, // Instruct dear imgui to disable keyboard inputs and interactions. This is done by ignoring keyboard events and clearing existing states. @@ -1834,12 +1922,17 @@ typedef enum // [BETA] Viewports // When using viewports it is recommended that your default value for ImGuiCol_WindowBg is opaque (Alpha=1.0) so transition to a viewport won't be noticeable. ImGuiConfigFlags_ViewportsEnable = 1<<10, // Viewport enable flags (require both ImGuiBackendFlags_PlatformHasViewports + ImGuiBackendFlags_RendererHasViewports set by the respective backends) - ImGuiConfigFlags_DpiEnableScaleViewports = 1<<14, // [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application. - ImGuiConfigFlags_DpiEnableScaleFonts = 1<<15, // [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas and/or fonts in the Platform_OnChangedViewport callback, but this is all early work in progress. // User storage (to allow your backend/engine to communicate to code that may be shared between multiple projects. Those flags are NOT used by core Dear ImGui) ImGuiConfigFlags_IsSRGB = 1<<20, // Application is SRGB-aware. ImGuiConfigFlags_IsTouchScreen = 1<<21, // Application is using a touch screen instead of a mouse. + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiConfigFlags_NavEnableSetMousePos = 1<<2, // [moved/renamed in 1.91.4] -> use bool io.ConfigNavMoveSetMousePos + ImGuiConfigFlags_NavNoCaptureKeyboard = 1<<3, // [moved/renamed in 1.91.4] -> use bool io.ConfigNavCaptureKeyboard + ImGuiConfigFlags_DpiEnableScaleFonts = 1<<14, // [moved/renamed in 1.92.0] -> use bool io.ConfigDpiScaleFonts + ImGuiConfigFlags_DpiEnableScaleViewports = 1<<15, // [moved/renamed in 1.92.0] -> use bool io.ConfigDpiScaleViewports +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS } ImGuiConfigFlags_; // Backend capabilities flags stored in io.BackendFlags. Set by imgui_impl_xxx or custom backend. @@ -1848,8 +1941,9 @@ typedef enum ImGuiBackendFlags_None = 0, ImGuiBackendFlags_HasGamepad = 1<<0, // Backend Platform supports gamepad and currently has one connected. ImGuiBackendFlags_HasMouseCursors = 1<<1, // Backend Platform supports honoring GetMouseCursor() value to change the OS cursor shape. - ImGuiBackendFlags_HasSetMousePos = 1<<2, // Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set). + ImGuiBackendFlags_HasSetMousePos = 1<<2, // Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if io.ConfigNavMoveSetMousePos is set). ImGuiBackendFlags_RendererHasVtxOffset = 1<<3, // Backend Renderer supports ImDrawCmd::VtxOffset. This enables output of large meshes (64K+ vertices) while still using 16-bit indices. + ImGuiBackendFlags_RendererHasTextures = 1<<4, // Backend Renderer supports ImTextureData requests to create/update/destroy textures. This enables incremental texture updates and texture reloads. See https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md for instructions on how to upgrade your custom backend. // [BETA] Viewports ImGuiBackendFlags_PlatformHasViewports = 1<<10, // Backend Platform supports multiple viewports. @@ -1893,6 +1987,7 @@ typedef enum ImGuiCol_ResizeGrip, // Resize grip in lower-right and lower-left corners of windows. ImGuiCol_ResizeGripHovered, ImGuiCol_ResizeGripActive, + ImGuiCol_InputTextCursor, // InputText cursor/caret ImGuiCol_TabHovered, // Tab background, when hovered ImGuiCol_Tab, // Tab background, when tab-bar is focused & tab is unselected ImGuiCol_TabSelected, // Tab background, when tab-bar is focused & tab is selected @@ -1912,9 +2007,10 @@ typedef enum ImGuiCol_TableRowBg, // Table row background (even rows) ImGuiCol_TableRowBgAlt, // Table row background (odd rows) ImGuiCol_TextLink, // Hyperlink color - ImGuiCol_TextSelectedBg, + ImGuiCol_TextSelectedBg, // Selected text inside an InputText + ImGuiCol_TreeLines, // Tree node hierarchy outlines when using ImGuiTreeNodeFlags_DrawLines ImGuiCol_DragDropTarget, // Rectangle highlighting a drop target - ImGuiCol_NavHighlight, // Gamepad/keyboard: current highlighted item + ImGuiCol_NavCursor, // Color of keyboard/gamepad navigation cursor/rectangle, when visible ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active ImGuiCol_ModalWindowDimBg, // Darken/colorize entire screen behind a modal window, when one is active @@ -1924,6 +2020,7 @@ typedef enum ImGuiCol_TabActive = ImGuiCol_TabSelected, // [renamed in 1.90.9] ImGuiCol_TabUnfocused = ImGuiCol_TabDimmed, // [renamed in 1.90.9] ImGuiCol_TabUnfocusedActive = ImGuiCol_TabDimmedSelected, // [renamed in 1.90.9] + ImGuiCol_NavHighlight = ImGuiCol_NavCursor, // [renamed in 1.91.4] #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS } ImGuiCol_; @@ -1960,12 +2057,17 @@ typedef enum ImGuiStyleVar_ScrollbarRounding, // float ScrollbarRounding ImGuiStyleVar_GrabMinSize, // float GrabMinSize ImGuiStyleVar_GrabRounding, // float GrabRounding + ImGuiStyleVar_ImageBorderSize, // float ImageBorderSize ImGuiStyleVar_TabRounding, // float TabRounding ImGuiStyleVar_TabBorderSize, // float TabBorderSize + ImGuiStyleVar_TabMinWidthBase, // float TabMinWidthBase + ImGuiStyleVar_TabMinWidthShrink, // float TabMinWidthShrink ImGuiStyleVar_TabBarBorderSize, // float TabBarBorderSize ImGuiStyleVar_TabBarOverlineSize, // float TabBarOverlineSize ImGuiStyleVar_TableAngledHeadersAngle, // float TableAngledHeadersAngle ImGuiStyleVar_TableAngledHeadersTextAlign, // ImVec2 TableAngledHeadersTextAlign + ImGuiStyleVar_TreeLinesSize, // float TreeLinesSize + ImGuiStyleVar_TreeLinesRounding, // float TreeLinesRounding ImGuiStyleVar_ButtonTextAlign, // ImVec2 ButtonTextAlign ImGuiStyleVar_SelectableTextAlign, // ImVec2 SelectableTextAlign ImGuiStyleVar_SeparatorTextBorderSize, // float SeparatorTextBorderSize @@ -1983,7 +2085,7 @@ typedef enum ImGuiButtonFlags_MouseButtonRight = 1<<1, // React on right mouse button ImGuiButtonFlags_MouseButtonMiddle = 1<<2, // React on center mouse button ImGuiButtonFlags_MouseButtonMask_ = ImGuiButtonFlags_MouseButtonLeft | ImGuiButtonFlags_MouseButtonRight | ImGuiButtonFlags_MouseButtonMiddle, // [Internal] - //ImGuiButtonFlags_MouseButtonDefault_ = ImGuiButtonFlags_MouseButtonLeft, + ImGuiButtonFlags_EnableNav = 1<<3, // InvisibleButton(): do not disable navigation/tabbing. Otherwise disabled by default. } ImGuiButtonFlags_; // Flags for ColorEdit3() / ColorEdit4() / ColorPicker3() / ColorPicker4() / ColorButton() @@ -2001,10 +2103,16 @@ typedef enum ImGuiColorEditFlags_NoDragDrop = 1<<9, // // ColorEdit: disable drag and drop target. ColorButton: disable drag and drop source. ImGuiColorEditFlags_NoBorder = 1<<10, // // ColorButton: disable border (which is enforced by default) + // Alpha preview + // - Prior to 1.91.8 (2025/01/21): alpha was made opaque in the preview by default using old name ImGuiColorEditFlags_AlphaPreview. + // - We now display the preview as transparent by default. You can use ImGuiColorEditFlags_AlphaOpaque to use old behavior. + // - The new flags may be combined better and allow finer controls. + ImGuiColorEditFlags_AlphaOpaque = 1<<11, // // ColorEdit, ColorPicker, ColorButton: disable alpha in the preview,. Contrary to _NoAlpha it may still be edited when calling ColorEdit4()/ColorPicker4(). For ColorButton() this does the same as _NoAlpha. + ImGuiColorEditFlags_AlphaNoBg = 1<<12, // // ColorEdit, ColorPicker, ColorButton: disable rendering a checkerboard background behind transparent color. + ImGuiColorEditFlags_AlphaPreviewHalf = 1<<13, // // ColorEdit, ColorPicker, ColorButton: display half opaque / half transparent preview. + // User Options (right-click on widget to change some of them). ImGuiColorEditFlags_AlphaBar = 1<<16, // // ColorEdit, ColorPicker: show vertical alpha bar/gradient in picker. - ImGuiColorEditFlags_AlphaPreview = 1<<17, // // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque. - ImGuiColorEditFlags_AlphaPreviewHalf = 1<<18, // // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque. ImGuiColorEditFlags_HDR = 1<<19, // // (WIP) ColorEdit: Currently only disable 0.0f..1.0f limits in RGBA edition (note: you probably want to use ImGuiColorEditFlags_Float flag as well). ImGuiColorEditFlags_DisplayRGB = 1<<20, // [Display] // ColorEdit: override _display_ type among RGB/HSV/Hex. ColorPicker: select any combination using one or more of RGB/HSV/Hex. ImGuiColorEditFlags_DisplayHSV = 1<<21, // [Display] // " @@ -2021,30 +2129,34 @@ typedef enum ImGuiColorEditFlags_DefaultOptions_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_PickerHueBar, // [Internal] Masks + ImGuiColorEditFlags_AlphaMask_ = ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaOpaque | ImGuiColorEditFlags_AlphaNoBg | ImGuiColorEditFlags_AlphaPreviewHalf, ImGuiColorEditFlags_DisplayMask_ = ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex, ImGuiColorEditFlags_DataTypeMask_ = ImGuiColorEditFlags_Uint8 | ImGuiColorEditFlags_Float, ImGuiColorEditFlags_PickerMask_ = ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_PickerHueBar, ImGuiColorEditFlags_InputMask_ = ImGuiColorEditFlags_InputRGB | ImGuiColorEditFlags_InputHSV, // Obsolete names +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImGuiColorEditFlags_AlphaPreview = 0, // [Removed in 1.91.8] This is the default now. Will display a checkerboard unless ImGuiColorEditFlags_AlphaNoBg is set. +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS //ImGuiColorEditFlags_RGB = ImGuiColorEditFlags_DisplayRGB, ImGuiColorEditFlags_HSV = ImGuiColorEditFlags_DisplayHSV, ImGuiColorEditFlags_HEX = ImGuiColorEditFlags_DisplayHex // [renamed in 1.69] } ImGuiColorEditFlags_; // Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc. // We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them. -// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText) +// (Those are per-item flags. There is shared behavior flag too: ImGuiIO: io.ConfigDragClickToInputText) typedef enum { ImGuiSliderFlags_None = 0, - ImGuiSliderFlags_AlwaysClamp = 1<<4, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. ImGuiSliderFlags_Logarithmic = 1<<5, // Make the widget logarithmic (linear otherwise). Consider using ImGuiSliderFlags_NoRoundToFormat with this if using a format-string with small amount of digits. ImGuiSliderFlags_NoRoundToFormat = 1<<6, // Disable rounding underlying value to match precision of the display format string (e.g. %.3f values are rounded to those 3 digits). ImGuiSliderFlags_NoInput = 1<<7, // Disable CTRL+Click or Enter key allowing to input text directly into the widget. - ImGuiSliderFlags_WrapAround = 1<<8, // Enable wrapping around from max to min and from min to max (only supported by DragXXX() functions for now. + ImGuiSliderFlags_WrapAround = 1<<8, // Enable wrapping around from max to min and from min to max. Only supported by DragXXX() functions for now. + ImGuiSliderFlags_ClampOnInput = 1<<9, // Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds. + ImGuiSliderFlags_ClampZeroRange = 1<<10, // Clamp even if min==max==0.0f. Otherwise due to legacy reason DragXXX functions don't clamp with those values. When your clamping limits are dynamic you almost always want to use it. + ImGuiSliderFlags_NoSpeedTweaks = 1<<11, // Disable keyboard modifiers altering tweak speed. Useful if you want to alter tweak speed yourself based on your own logic. + ImGuiSliderFlags_AlwaysClamp = ImGuiSliderFlags_ClampOnInput | ImGuiSliderFlags_ClampZeroRange, ImGuiSliderFlags_InvalidMask_ = 0x7000000F, // [Internal] We treat using those bits as being potentially a 'float power' argument from the previous API that has got miscast to this enum, and will trigger an assert if needed. - - // Obsolete names - //ImGuiSliderFlags_ClampOnInput = ImGuiSliderFlags_AlwaysClamp, // [renamed in 1.79] } ImGuiSliderFlags_; // Identify a mouse button. @@ -2070,6 +2182,8 @@ typedef enum ImGuiMouseCursor_ResizeNESW, // When hovering over the bottom-left corner of a window ImGuiMouseCursor_ResizeNWSE, // When hovering over the bottom-right corner of a window ImGuiMouseCursor_Hand, // (Unused by Dear ImGui functions. Use for e.g. hyperlinks) + ImGuiMouseCursor_Wait, // When waiting for something to process/load. + ImGuiMouseCursor_Progress, // When waiting for something to process/load, but application is still interactive. ImGuiMouseCursor_NotAllowed, // When hovering something with disallowed interaction. Usually a crossed circle. ImGuiMouseCursor_COUNT, } ImGuiMouseCursor_; @@ -2193,7 +2307,7 @@ typedef enum ImGuiTableColumnFlags_NoSort = 1<<9, // Disable ability to sort on this field (even if ImGuiTableFlags_Sortable is set on the table). ImGuiTableColumnFlags_NoSortAscending = 1<<10, // Disable ability to sort in the ascending direction. ImGuiTableColumnFlags_NoSortDescending = 1<<11, // Disable ability to sort in the descending direction. - ImGuiTableColumnFlags_NoHeaderLabel = 1<<12, // TableHeadersRow() will not submit horizontal label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers. + ImGuiTableColumnFlags_NoHeaderLabel = 1<<12, // TableHeadersRow() will submit an empty label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers. You may append into this cell by calling TableSetColumnIndex() right after the TableHeadersRow() call. ImGuiTableColumnFlags_NoHeaderWidth = 1<<13, // Disable header text width contribution to automatic column width. ImGuiTableColumnFlags_PreferSortAscending = 1<<14, // Make the initial sort direction Ascending when first sorting on this column (default). ImGuiTableColumnFlags_PreferSortDescending = 1<<15, // Make the initial sort direction Descending when first sorting on this column. @@ -2242,21 +2356,21 @@ typedef enum // Obtained by calling TableGetSortSpecs(). // When 'SpecsDirty == true' you can sort your data. It will be true with sorting specs have changed since last call, or the first time. // Make sure to set 'SpecsDirty = false' after sorting, else you may wastefully sort your data every frame! -typedef struct ImGuiTableSortSpecs_t +struct ImGuiTableSortSpecs_t { const ImGuiTableColumnSortSpecs* Specs; // Pointer to sort spec array. int SpecsCount; // Sort spec count. Most often 1. May be > 1 when ImGuiTableFlags_SortMulti is enabled. May be == 0 when ImGuiTableFlags_SortTristate is enabled. bool SpecsDirty; // Set to true when specs have changed since last time! Use this to sort again, then clear the flag. -} ImGuiTableSortSpecs; +}; // Sorting specification for one column of a table (sizeof == 12 bytes) -typedef struct ImGuiTableColumnSortSpecs_t +struct ImGuiTableColumnSortSpecs_t { ImGuiID ColumnUserID; // User id of the column (if specified by a TableSetupColumn() call) ImS16 ColumnIndex; // Index of the column ImS16 SortOrder; // Index within parent ImGuiTableSortSpecs (always stored in order starting from 0, tables sorted on a single criteria will always have a 0 here) ImGuiSortDirection SortDirection; // ImGuiSortDirection_Ascending or ImGuiSortDirection_Descending -} ImGuiTableColumnSortSpecs; +}; //----------------------------------------------------------------------------- // [SECTION] Helpers: Debug log, memory allocations macros, ImVector<> @@ -2266,6 +2380,13 @@ typedef struct ImGuiTableColumnSortSpecs_t CIMGUI_API void ImVector_Construct(void* vector); // Construct a zero-size ImVector<> (of any type). This is primarily useful when calling ImFontGlyphRangesBuilder_BuildRanges() CIMGUI_API void ImVector_Destruct(void* vector); // Destruct an ImVector<> (of any type). Important: Frees the vector memory but does not call destructors on contained objects (if they have them) +CIMGUI_API void ImGuiPlatformIO_SetPlatform_GetWindowWorkAreaInsets(void (*getWindowWorkAreaInsetsFunc)(ImGuiViewport* vp, ImVec4* result)); // Set ImGuiPlatformIO::Platform_GetWindowWorkAreaInsets in a C-compatible mannner + +CIMGUI_API void ImGuiPlatformIO_SetPlatform_GetWindowFramebufferScale(void (*getWindowFramebufferScaleFunc)(ImGuiViewport* vp, ImVec2* result)); // Set ImGuiPlatformIO::Platform_GetWindowFramebufferScale in a C-compatible mannner + +CIMGUI_API void ImGuiPlatformIO_SetPlatform_GetWindowPos(void (*getWindowPosFunc)(ImGuiViewport* vp, ImVec2* result)); // Set ImGuiPlatformIO::Platform_GetWindowPos in a C-compatible mannner +CIMGUI_API void ImGuiPlatformIO_SetPlatform_GetWindowSize(void (*getWindowSizeFunc)(ImGuiViewport* vp, ImVec2* result)); // Set ImGuiPlatformIO::Platform_GetWindowSize in a C-compatible mannner + #if defined(IMGUI_HAS_IMSTR) #if IMGUI_HAS_IMSTR CIMGUI_API ImStr ImStr_FromCharStr(const char* b); // Build an ImStr from a regular const char* (no data is copied, so you need to make sure the original char* isn't altered as long as you are using the ImStr). @@ -2302,195 +2423,32 @@ CIMGUI_API ImStr ImStr_FromCharStr(const char* b); // Build an ImStr from a reg //----------------------------------------------------------------------------- IM_MSVC_RUNTIME_CHECKS_OFF - -// Instantiation of ImVector - -typedef struct ImVector_ImWchar_t -{ - int Size; - int Capacity; - ImWchar* Data; -} ImVector_ImWchar; - -// Instantiation of ImVector - -typedef struct ImVector_ImGuiTextFilter_ImGuiTextRange_t -{ - int Size; - int Capacity; - ImGuiTextFilter_ImGuiTextRange* Data; -} ImVector_ImGuiTextFilter_ImGuiTextRange; - -// Instantiation of ImVector - -typedef struct ImVector_char_t -{ - int Size; - int Capacity; - char* Data; -} ImVector_char; - -// Instantiation of ImVector - -typedef struct ImVector_ImGuiStoragePair_t -{ - int Size; - int Capacity; - ImGuiStoragePair* Data; -} ImVector_ImGuiStoragePair; - -// Instantiation of ImVector - -typedef struct ImVector_ImGuiSelectionRequest_t -{ - int Size; - int Capacity; - ImGuiSelectionRequest* Data; -} ImVector_ImGuiSelectionRequest; - -// Instantiation of ImVector - -typedef struct ImVector_ImDrawCmd_t -{ - int Size; - int Capacity; - ImDrawCmd* Data; -} ImVector_ImDrawCmd; - -// Instantiation of ImVector - -typedef struct ImVector_ImDrawIdx_t -{ - int Size; - int Capacity; - ImDrawIdx* Data; -} ImVector_ImDrawIdx; - -// Instantiation of ImVector - -typedef struct ImVector_ImDrawChannel_t -{ - int Size; - int Capacity; - ImDrawChannel* Data; -} ImVector_ImDrawChannel; - -// Instantiation of ImVector - -typedef struct ImVector_ImDrawVert_t -{ - int Size; - int Capacity; - ImDrawVert* Data; -} ImVector_ImDrawVert; - -// Instantiation of ImVector - -typedef struct ImVector_ImVec2_t -{ - int Size; - int Capacity; - ImVec2* Data; -} ImVector_ImVec2; - -// Instantiation of ImVector - -typedef struct ImVector_ImVec4_t -{ - int Size; - int Capacity; - ImVec4* Data; -} ImVector_ImVec4; - -// Instantiation of ImVector - -typedef struct ImVector_ImTextureID_t -{ - int Size; - int Capacity; - ImTextureID* Data; -} ImVector_ImTextureID; - -// Instantiation of ImVector - -typedef struct ImVector_ImDrawListPtr_t -{ - int Size; - int Capacity; - ImDrawList** Data; -} ImVector_ImDrawListPtr; - -// Instantiation of ImVector - -typedef struct ImVector_ImU32_t -{ - int Size; - int Capacity; - ImU32* Data; -} ImVector_ImU32; - -// Instantiation of ImVector - -typedef struct ImVector_ImFontPtr_t -{ - int Size; - int Capacity; - ImFont** Data; -} ImVector_ImFontPtr; - -// Instantiation of ImVector - -typedef struct ImVector_ImFontAtlasCustomRect_t -{ - int Size; - int Capacity; - ImFontAtlasCustomRect* Data; -} ImVector_ImFontAtlasCustomRect; - -// Instantiation of ImVector - -typedef struct ImVector_ImFontConfig_t -{ - int Size; - int Capacity; - ImFontConfig* Data; -} ImVector_ImFontConfig; - -// Instantiation of ImVector - -typedef struct ImVector_float_t -{ - int Size; - int Capacity; - float* Data; -} ImVector_float; - -// Instantiation of ImVector - -typedef struct ImVector_ImFontGlyph_t -{ - int Size; - int Capacity; - ImFontGlyph* Data; -} ImVector_ImFontGlyph; - -// Instantiation of ImVector - -typedef struct ImVector_ImGuiPlatformMonitor_t -{ - int Size; - int Capacity; - ImGuiPlatformMonitor* Data; -} ImVector_ImGuiPlatformMonitor; - -// Instantiation of ImVector - -typedef struct ImVector_ImGuiViewportPtr_t -{ - int Size; - int Capacity; - ImGuiViewport** Data; -} ImVector_ImGuiViewportPtr; +struct ImVector_ImGuiTextRange_t { int Size; int Capacity; ImGuiTextFilter_ImGuiTextRange* Data; }; // Instantiation of ImVector +struct ImVector_char_t { int Size; int Capacity; char* Data; }; // Instantiation of ImVector +struct ImVector_ImGuiStoragePair_t { int Size; int Capacity; ImGuiStoragePair* Data; }; // Instantiation of ImVector +struct ImVector_ImGuiSelectionRequest_t { int Size; int Capacity; ImGuiSelectionRequest* Data; }; // Instantiation of ImVector +struct ImVector_ImDrawChannel_t { int Size; int Capacity; ImDrawChannel* Data; }; // Instantiation of ImVector +struct ImVector_ImDrawCmd_t { int Size; int Capacity; ImDrawCmd* Data; }; // Instantiation of ImVector +struct ImVector_ImDrawIdx_t { int Size; int Capacity; ImDrawIdx* Data; }; // Instantiation of ImVector +struct ImVector_ImDrawVert_t { int Size; int Capacity; ImDrawVert* Data; }; // Instantiation of ImVector +struct ImVector_ImVec2_t { int Size; int Capacity; ImVec2* Data; }; // Instantiation of ImVector +struct ImVector_ImVec4_t { int Size; int Capacity; ImVec4* Data; }; // Instantiation of ImVector +struct ImVector_ImTextureRef_t { int Size; int Capacity; ImTextureRef* Data; }; // Instantiation of ImVector +struct ImVector_ImU8_t { int Size; int Capacity; ImU8* Data; }; // Instantiation of ImVector +struct ImVector_ImDrawListPtr_t { int Size; int Capacity; ImDrawList** Data; }; // Instantiation of ImVector +struct ImVector_ImTextureRect_t { int Size; int Capacity; ImTextureRect* Data; }; // Instantiation of ImVector +struct ImVector_ImU32_t { int Size; int Capacity; ImU32* Data; }; // Instantiation of ImVector +struct ImVector_ImWchar_t { int Size; int Capacity; ImWchar* Data; }; // Instantiation of ImVector +struct ImVector_ImFontPtr_t { int Size; int Capacity; ImFont** Data; }; // Instantiation of ImVector +struct ImVector_ImFontConfig_t { int Size; int Capacity; ImFontConfig* Data; }; // Instantiation of ImVector +struct ImVector_ImDrawListSharedDataPtr_t { int Size; int Capacity; ImDrawListSharedData** Data; }; // Instantiation of ImVector +struct ImVector_float_t { int Size; int Capacity; float* Data; }; // Instantiation of ImVector +struct ImVector_ImU16_t { int Size; int Capacity; ImU16* Data; }; // Instantiation of ImVector +struct ImVector_ImFontGlyph_t { int Size; int Capacity; ImFontGlyph* Data; }; // Instantiation of ImVector +struct ImVector_ImFontConfigPtr_t { int Size; int Capacity; ImFontConfig** Data; }; // Instantiation of ImVector +struct ImVector_ImGuiPlatformMonitor_t { int Size; int Capacity; ImGuiPlatformMonitor* Data; }; // Instantiation of ImVector +struct ImVector_ImTextureDataPtr_t { int Size; int Capacity; ImTextureData** Data; }; // Instantiation of ImVector +struct ImVector_ImGuiViewportPtr_t { int Size; int Capacity; ImGuiViewport** Data; }; // Instantiation of ImVector IM_MSVC_RUNTIME_CHECKS_RESTORE //----------------------------------------------------------------------------- @@ -2501,67 +2459,87 @@ IM_MSVC_RUNTIME_CHECKS_RESTORE // and ImGui::PushStyleColor(ImGuiCol_XXX)/PopStyleColor() for colors. //----------------------------------------------------------------------------- -typedef struct ImGuiStyle_t +struct ImGuiStyle_t { - float Alpha; // Global alpha applies to everything in Dear ImGui. - float DisabledAlpha; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. - ImVec2 WindowPadding; // Padding within a window. - float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. - float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints(). - ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. - ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. - float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. - float ChildBorderSize; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - float PopupRounding; // Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) - float PopupBorderSize; // Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). - float FrameRounding; // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). - float FrameBorderSize; // Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). - ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines. - ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). - ImVec2 CellPadding; // Padding within a table cell. Cellpadding.x is locked for entire table. CellPadding.y may be altered between different rows. - ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! - float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). - float ColumnsMinSpacing; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). - float ScrollbarSize; // Width of the vertical scrollbar, Height of the horizontal scrollbar. - float ScrollbarRounding; // Radius of grab corners for scrollbar. - float GrabMinSize; // Minimum width/height of a grab box for slider/scrollbar. - float GrabRounding; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. - float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. - float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. - float TabBorderSize; // Thickness of border around tabs. - float TabMinWidthForCloseButton; // Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected. - float TabBarBorderSize; // Thickness of tab-bar separator, which takes on the tab active color to denote focus. - float TabBarOverlineSize; // Thickness of tab-bar overline, which highlights the selected tab-bar. - float TableAngledHeadersAngle; // Angle of angled headers (supported values range from -50.0f degrees to +50.0f degrees). - ImVec2 TableAngledHeadersTextAlign; // Alignment of angled headers within the cell - ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. - ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). - ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. - float SeparatorTextBorderSize; // Thickness of border in SeparatorText() - ImVec2 SeparatorTextAlign; // Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center). - ImVec2 SeparatorTextPadding; // Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y. - ImVec2 DisplayWindowPadding; // Apply to regular windows: amount which we enforce to keep visible when moving near edges of your screen. - ImVec2 DisplaySafeAreaPadding; // Apply to every windows, menus, popups, tooltips: amount where we avoid displaying contents. Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured). - float DockingSeparatorSize; // Thickness of resizing border between docked windows - float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later. - bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). - bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList). - bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). - float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. - float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. - ImVec4 Colors[ImGuiCol_COUNT]; + // Font scaling + // - recap: ImGui::GetFontSize() == FontSizeBase * (FontScaleMain * FontScaleDpi * other_scaling_factors) + float FontSizeBase; // Current base font size before external global factors are applied. Use PushFont(NULL, size) to modify. Use ImGui::GetFontSize() to obtain scaled value. + float FontScaleMain; // Main global scale factor. May be set by application once, or exposed to end-user. + float FontScaleDpi; // Additional global scale factor from viewport/monitor contents scale. When io.ConfigDpiScaleFonts is enabled, this is automatically overwritten when changing monitor DPI. + + float Alpha; // Global alpha applies to everything in Dear ImGui. + float DisabledAlpha; // Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha. + ImVec2 WindowPadding; // Padding within a window. + float WindowRounding; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended. + float WindowBorderSize; // Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + float WindowBorderHoverPadding; // Hit-testing extent outside/inside resizing border. Also extend determination of hovered window. Generally meaningfully larger than WindowBorderSize to make it easy to reach borders. + ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints(). + ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered. + ImGuiDir WindowMenuButtonPosition; // Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left. + float ChildRounding; // Radius of child window corners rounding. Set to 0.0f to have rectangular windows. + float ChildBorderSize; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + float PopupRounding; // Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) + float PopupBorderSize; // Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). + float FrameRounding; // Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). + float FrameBorderSize; // Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). + ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines. + ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). + ImVec2 CellPadding; // Padding within a table cell. Cellpadding.x is locked for entire table. CellPadding.y may be altered between different rows. + ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! + float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). + float ColumnsMinSpacing; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1). + float ScrollbarSize; // Width of the vertical scrollbar, Height of the horizontal scrollbar. + float ScrollbarRounding; // Radius of grab corners for scrollbar. + float GrabMinSize; // Minimum width/height of a grab box for slider/scrollbar. + float GrabRounding; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. + float LogSliderDeadzone; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero. + float ImageBorderSize; // Thickness of border around Image() calls. + float TabRounding; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. + float TabBorderSize; // Thickness of border around tabs. + float TabMinWidthBase; // Minimum tab width, to make tabs larger than their contents. TabBar buttons are not affected. + float TabMinWidthShrink; // Minimum tab width after shrinking, when using ImGuiTabBarFlags_FittingPolicyMixed policy. + float TabCloseButtonMinWidthSelected; // -1: always visible. 0.0f: visible when hovered. >0.0f: visible when hovered if minimum width. + float TabCloseButtonMinWidthUnselected; // -1: always visible. 0.0f: visible when hovered. >0.0f: visible when hovered if minimum width. FLT_MAX: never show close button when unselected. + float TabBarBorderSize; // Thickness of tab-bar separator, which takes on the tab active color to denote focus. + float TabBarOverlineSize; // Thickness of tab-bar overline, which highlights the selected tab-bar. + float TableAngledHeadersAngle; // Angle of angled headers (supported values range from -50.0f degrees to +50.0f degrees). + ImVec2 TableAngledHeadersTextAlign; // Alignment of angled headers within the cell + ImGuiTreeNodeFlags TreeLinesFlags; // Default way to draw lines connecting TreeNode hierarchy. ImGuiTreeNodeFlags_DrawLinesNone or ImGuiTreeNodeFlags_DrawLinesFull or ImGuiTreeNodeFlags_DrawLinesToNodes. + float TreeLinesSize; // Thickness of outlines when using ImGuiTreeNodeFlags_DrawLines. + float TreeLinesRounding; // Radius of lines connecting child nodes to the vertical line. + ImGuiDir ColorButtonPosition; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right. + ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered). + ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line. + float SeparatorTextBorderSize; // Thickness of border in SeparatorText() + ImVec2 SeparatorTextAlign; // Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center). + ImVec2 SeparatorTextPadding; // Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y. + ImVec2 DisplayWindowPadding; // Apply to regular windows: amount which we enforce to keep visible when moving near edges of your screen. + ImVec2 DisplaySafeAreaPadding; // Apply to every windows, menus, popups, tooltips: amount where we avoid displaying contents. Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured). + float DockingSeparatorSize; // Thickness of resizing border between docked windows + float MouseCursorScale; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later. + bool AntiAliasedLines; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedLinesUseTex; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList). + bool AntiAliasedFill; // Enable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList). + float CurveTessellationTol; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality. + float CircleTessellationMaxError; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry. + + // Colors + ImVec4 Colors[ImGuiCol_COUNT]; // Behaviors // (It is possible to modify those fields mid-frame if specific behavior need it, unlike e.g. configuration fields in ImGuiIO) - float HoverStationaryDelay; // Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary. - float HoverDelayShort; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay. - float HoverDelayNormal; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). " - ImGuiHoveredFlags HoverFlagsForTooltipMouse; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse. - ImGuiHoveredFlags HoverFlagsForTooltipNav; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad. -} ImGuiStyle; -CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self, float scale_factor); + float HoverStationaryDelay; // Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary. + float HoverDelayShort; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay. + float HoverDelayNormal; // Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). " + ImGuiHoveredFlags HoverFlagsForTooltipMouse; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse. + ImGuiHoveredFlags HoverFlagsForTooltipNav; // Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad. + + // [Internal] + float _MainScale; // FIXME-WIP: Reference scale, as applied by ScaleAllSizes(). + float _NextFrameFontSizeBase; // FIXME: Temporary hack until we finish remaining work. +}; +CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self, float scale_factor); // Scale all spacing/padding/thickness values. Do not scale fonts. //----------------------------------------------------------------------------- // [SECTION] ImGuiIO @@ -2572,125 +2550,152 @@ CIMGUI_API void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self, float scale_factor); // - initialization: backends and user code writes to ImGuiIO. // - main loop: backends writes to ImGuiIO, user code and imgui code reads from ImGuiIO. //----------------------------------------------------------------------------- +// Also see ImGui::GetPlatformIO() and ImGuiPlatformIO struct for OS/platform related functions: clipboard, IME etc. +//----------------------------------------------------------------------------- // [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions. // If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration. -typedef struct ImGuiKeyData_t +struct ImGuiKeyData_t { bool Down; // True for if key is down float DownDuration; // Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held) float DownDurationPrev; // Last frame duration the key has been down float AnalogValue; // 0.0f..1.0f for gamepad values -} ImGuiKeyData; +}; -typedef struct ImGuiIO_t +struct ImGuiIO_t { //------------------------------------------------------------------ // Configuration // Default value //------------------------------------------------------------------ - ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc. - ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. - ImVec2 DisplaySize; // // Main display size, in pixels (generally == GetMainViewport()->Size). May change every frame. - float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame. - float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. - const char* IniFilename; // = "imgui.ini" // Path to .ini file (important: default "imgui.ini" is relative to current working dir!). Set NULL to disable automatic .ini loading/saving or if you want to manually call LoadIniSettingsXXX() / SaveIniSettingsXXX() functions. - const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). - void* UserData; // = NULL // Store your own data. + ImGuiConfigFlags ConfigFlags; // = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Keyboard/Gamepad navigation options, etc. + ImGuiBackendFlags BackendFlags; // = 0 // See ImGuiBackendFlags_ enum. Set by backend (imgui_impl_xxx files or custom backend) to communicate features supported by the backend. + ImVec2 DisplaySize; // // Main display size, in pixels (== GetMainViewport()->Size). May change every frame. + ImVec2 DisplayFramebufferScale; // = (1, 1) // Main display density. For retina display where window coordinates are different from framebuffer coordinates. This will affect font density + will end up in ImDrawData::FramebufferScale. + float DeltaTime; // = 1.0f/60.0f // Time elapsed since last frame, in seconds. May change every frame. + float IniSavingRate; // = 5.0f // Minimum time between saving positions/sizes to .ini file, in seconds. + const char* IniFilename; // = "imgui.ini" // Path to .ini file (important: default "imgui.ini" is relative to current working dir!). Set NULL to disable automatic .ini loading/saving or if you want to manually call LoadIniSettingsXXX() / SaveIniSettingsXXX() functions. + const char* LogFilename; // = "imgui_log.txt"// Path to .log file (default parameter to ImGui::LogToFile when no file is specified). + void* UserData; // = NULL // Store your own data. - ImFontAtlas* Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. - float FontGlobalScale; // = 1.0f // Global scale all fonts - bool FontAllowUserScaling; // = false // Allow user scaling text of individual window with CTRL+Wheel. - ImFont* FontDefault; // = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0]. - ImVec2 DisplayFramebufferScale; // = (1, 1) // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale. + // Font system + ImFontAtlas* Fonts; // // Font atlas: load, rasterize and pack one or more fonts into a single texture. + ImFont* FontDefault; // = NULL // Font to use on NewFrame(). Use NULL to uses Fonts->Fonts[0]. + bool FontAllowUserScaling; // = false // [OBSOLETE] Allow user scaling text of individual window with CTRL+Wheel. + + // Keyboard/Gamepad Navigation options + bool ConfigNavSwapGamepadButtons; // = false // Swap Activate<>Cancel (A<>B) buttons, matching typical "Nintendo/Japanese style" gamepad layout. + bool ConfigNavMoveSetMousePos; // = false // Directional/tabbing navigation teleports the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is difficult. Will update io.MousePos and set io.WantSetMousePos=true. + bool ConfigNavCaptureKeyboard; // = true // Sets io.WantCaptureKeyboard when io.NavActive is set. + bool ConfigNavEscapeClearFocusItem; // = true // Pressing Escape can clear focused item + navigation id/highlight. Set to false if you want to always keep highlight on. + bool ConfigNavEscapeClearFocusWindow; // = false // Pressing Escape can clear focused window as well (super set of io.ConfigNavEscapeClearFocusItem). + bool ConfigNavCursorVisibleAuto; // = true // Using directional navigation key makes the cursor visible. Mouse click hides the cursor. + bool ConfigNavCursorVisibleAlways; // = false // Navigation cursor is always visible. // Docking options (when ImGuiConfigFlags_DockingEnable is set) - bool ConfigDockingNoSplit; // = false // Simplified docking mode: disable window splitting, so docking is limited to merging multiple windows together into tab-bars. - bool ConfigDockingWithShift; // = false // Enable docking with holding Shift key (reduce visual noise, allows dropping in wider space) - bool ConfigDockingAlwaysTabBar; // = false // [BETA] [FIXME: This currently creates regression with auto-sizing and general overhead] Make every single floating window display within a docking node. - bool ConfigDockingTransparentPayload; // = false // [BETA] Make window or viewport transparent when docking and only display docking boxes on the target viewport. Useful if rendering of multiple viewport cannot be synced. Best used with ConfigViewportsNoAutoMerge. + bool ConfigDockingNoSplit; // = false // Simplified docking mode: disable window splitting, so docking is limited to merging multiple windows together into tab-bars. + bool ConfigDockingWithShift; // = false // Enable docking with holding Shift key (reduce visual noise, allows dropping in wider space) + bool ConfigDockingAlwaysTabBar; // = false // [BETA] [FIXME: This currently creates regression with auto-sizing and general overhead] Make every single floating window display within a docking node. + bool ConfigDockingTransparentPayload; // = false // [BETA] Make window or viewport transparent when docking and only display docking boxes on the target viewport. Useful if rendering of multiple viewport cannot be synced. Best used with ConfigViewportsNoAutoMerge. // Viewport options (when ImGuiConfigFlags_ViewportsEnable is set) - bool ConfigViewportsNoAutoMerge; // = false; // Set to make all floating imgui windows always create their own viewport. Otherwise, they are merged into the main host viewports when overlapping it. May also set ImGuiViewportFlags_NoAutoMerge on individual viewport. - bool ConfigViewportsNoTaskBarIcon; // = false // Disable default OS task bar icon flag for secondary viewports. When a viewport doesn't want a task bar icon, ImGuiViewportFlags_NoTaskBarIcon will be set on it. - bool ConfigViewportsNoDecoration; // = true // Disable default OS window decoration flag for secondary viewports. When a viewport doesn't want window decorations, ImGuiViewportFlags_NoDecoration will be set on it. Enabling decoration can create subsequent issues at OS levels (e.g. minimum window size). - bool ConfigViewportsNoDefaultParent; // = false // Disable default OS parenting to main viewport for secondary viewports. By default, viewports are marked with ParentViewportId = , expecting the platform backend to setup a parent/child relationship between the OS windows (some backend may ignore this). Set to true if you want the default to be 0, then all viewports will be top-level OS windows. + bool ConfigViewportsNoAutoMerge; // = false; // Set to make all floating imgui windows always create their own viewport. Otherwise, they are merged into the main host viewports when overlapping it. May also set ImGuiViewportFlags_NoAutoMerge on individual viewport. + bool ConfigViewportsNoTaskBarIcon; // = false // Disable default OS task bar icon flag for secondary viewports. When a viewport doesn't want a task bar icon, ImGuiViewportFlags_NoTaskBarIcon will be set on it. + bool ConfigViewportsNoDecoration; // = true // Disable default OS window decoration flag for secondary viewports. When a viewport doesn't want window decorations, ImGuiViewportFlags_NoDecoration will be set on it. Enabling decoration can create subsequent issues at OS levels (e.g. minimum window size). + bool ConfigViewportsNoDefaultParent; // = false // Disable default OS parenting to main viewport for secondary viewports. By default, viewports are marked with ParentViewportId = , expecting the platform backend to setup a parent/child relationship between the OS windows (some backend may ignore this). Set to true if you want the default to be 0, then all viewports will be top-level OS windows. + bool ConfigViewportPlatformFocusSetsImGuiFocus; //= true // When a platform window is focused (e.g. using Alt+Tab, clicking Platform Title Bar), apply corresponding focus on imgui windows (may clear focus/active id from imgui windows location in other platform windows). In principle this is better enabled but we provide an opt-out, because some Linux window managers tend to eagerly focus windows (e.g. on mouse hover, or even a simple window pos/size change). + + // DPI/Scaling options + // This may keep evolving during 1.92.x releases. Expect some turbulence. + bool ConfigDpiScaleFonts; // = false // [EXPERIMENTAL] Automatically overwrite style.FontScaleDpi when Monitor DPI changes. This will scale fonts but _NOT_ scale sizes/padding for now. + bool ConfigDpiScaleViewports; // = false // [EXPERIMENTAL] Scale Dear ImGui and Platform Windows when Monitor DPI changes. // Miscellaneous options - bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. - bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // Swap Cmd<>Ctrl keys + OS X style text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. - bool ConfigNavSwapGamepadButtons; // = false // Swap Activate<>Cancel (A<>B) buttons, matching typical "Nintendo/Japanese style" gamepad layout. - bool ConfigInputTrickleEventQueue; // = true // Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates. - bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). - bool ConfigInputTextEnterKeepActive; // = false // [BETA] Pressing Enter will keep item active and select contents (single-line only). - bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. - bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) - bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. - float ConfigMemoryCompactTimer; // = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set to -1.0f to disable. + // (you can visualize and interact with all options in 'Demo->Configuration') + bool MouseDrawCursor; // = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations. + bool ConfigMacOSXBehaviors; // = defined(__APPLE__) // Swap Cmd<>Ctrl keys + OS X style text editing cursor movement using Alt instead of Ctrl, Shortcuts using Cmd/Super instead of Ctrl, Line/Text Start and End using Cmd+Arrows instead of Home/End, Double click selects by word instead of selecting whole text, Multi-selection in lists uses Cmd/Super instead of Ctrl. + bool ConfigInputTrickleEventQueue; // = true // Enable input queue trickling: some types of events submitted during the same frame (e.g. button down + up) will be spread over multiple frames, improving interactions with low framerates. + bool ConfigInputTextCursorBlink; // = true // Enable blinking cursor (optional as some users consider it to be distracting). + bool ConfigInputTextEnterKeepActive; // = false // [BETA] Pressing Enter will keep item active and select contents (single-line only). + bool ConfigDragClickToInputText; // = false // [BETA] Enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). Not desirable on devices without a keyboard. + bool ConfigWindowsResizeFromEdges; // = true // Enable resizing of windows from their edges and from the lower-left corner. This requires ImGuiBackendFlags_HasMouseCursors for better mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag) + bool ConfigWindowsMoveFromTitleBarOnly; // = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar. + bool ConfigWindowsCopyContentsWithCtrlC; // = false // [EXPERIMENTAL] CTRL+C copy the contents of focused window into the clipboard. Experimental because: (1) has known issues with nested Begin/End pairs (2) text output quality varies (3) text output is in submission order rather than spatial order. + bool ConfigScrollbarScrollByPage; // = true // Enable scrolling page by page when clicking outside the scrollbar grab. When disabled, always scroll to clicked location. When enabled, Shift+Click scrolls to clicked location. + float ConfigMemoryCompactTimer; // = 60.0f // Timer (in seconds) to free transient windows/tables memory buffers when unused. Set to -1.0f to disable. // Inputs Behaviors // (other variables, ones which are expected to be tweaked within UI code, are exposed in ImGuiStyle) - float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. - float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. - float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. - float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). - float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. + float MouseDoubleClickTime; // = 0.30f // Time for a double-click, in seconds. + float MouseDoubleClickMaxDist; // = 6.0f // Distance threshold to stay in to validate a double-click, in pixels. + float MouseDragThreshold; // = 6.0f // Distance threshold before considering we are dragging. + float KeyRepeatDelay; // = 0.275f // When holding a key/button, time before it starts repeating, in seconds (for buttons in Repeat mode, etc.). + float KeyRepeatRate; // = 0.050f // When holding a key/button, rate at which it repeats, in seconds. //------------------------------------------------------------------ // Debug options //------------------------------------------------------------------ + // Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL] + // - Error recovery is provided as a way to facilitate: + // - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running). + // - Recovery after running an exception handler or any error processing which may skip code after an error has been detected. + // - Error recovery is not perfect nor guaranteed! It is a feature to ease development. + // You not are not supposed to rely on it in the course of a normal application run. + // - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT(). + // - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked! + // - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls! + // Otherwise it would severely hinder your ability to catch and correct mistakes! + // Read https://github.com/ocornut/imgui/wiki/Error-Handling for details. + // - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!) + // - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.) + // - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings. + bool ConfigErrorRecovery; // = true // Enable error recovery support. Some errors won't be detected and lead to direct crashes if recovery is disabled. + bool ConfigErrorRecoveryEnableAssert; // = true // Enable asserts on recoverable error. By default call IM_ASSERT() when returning from a failing IM_ASSERT_USER_ERROR() + bool ConfigErrorRecoveryEnableDebugLog; // = true // Enable debug log output on recoverable errors. + bool ConfigErrorRecoveryEnableTooltip; // = true // Enable tooltip on recoverable errors. The tooltip include a way to enable asserts if they were disabled. + // Option to enable various debug tools showing buttons that will call the IM_DEBUG_BREAK() macro. // - The Item Picker tool will be available regardless of this being enabled, in order to maximize its discoverability. // - Requires a debugger being attached, otherwise IM_DEBUG_BREAK() options will appear to crash your application. // e.g. io.ConfigDebugIsDebuggerPresent = ::IsDebuggerPresent() on Win32, or refer to ImOsIsDebuggerPresent() imgui_test_engine/imgui_te_utils.cpp for a Unix compatible version). - bool ConfigDebugIsDebuggerPresent; // = false // Enable various tools calling IM_DEBUG_BREAK(). + bool ConfigDebugIsDebuggerPresent; // = false // Enable various tools calling IM_DEBUG_BREAK(). + + // Tools to detect code submitting items with conflicting/duplicate IDs + // - Code should use PushID()/PopID() in loops, or append "##xx" to same-label identifiers. + // - Empty label e.g. Button("") == same ID as parent widget/node. Use Button("##xx") instead! + // - See FAQ https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-about-the-id-stack-system + bool ConfigDebugHighlightIdConflicts; // = true // Highlight and show an error message popup when multiple items have conflicting identifiers. + bool ConfigDebugHighlightIdConflictsShowItemPicker; //=true // Show "Item Picker" button in aforementioned popup. // Tools to test correct Begin/End and BeginChild/EndChild behaviors. // - Presently Begin()/End() and BeginChild()/EndChild() needs to ALWAYS be called in tandem, regardless of return value of BeginXXX() // - This is inconsistent with other BeginXXX functions and create confusion for many users. // - We expect to update the API eventually. In the meanwhile we provide tools to facilitate checking user-code behavior. - bool ConfigDebugBeginReturnValueOnce; // = false // First-time calls to Begin()/BeginChild() will return false. NEEDS TO BE SET AT APPLICATION BOOT TIME if you don't want to miss windows. - bool ConfigDebugBeginReturnValueLoop; // = false // Some calls to Begin()/BeginChild() will return false. Will cycle through window depths then repeat. Suggested use: add "io.ConfigDebugBeginReturnValue = io.KeyShift" in your main loop then occasionally press SHIFT. Windows should be flickering while running. + bool ConfigDebugBeginReturnValueOnce; // = false // First-time calls to Begin()/BeginChild() will return false. NEEDS TO BE SET AT APPLICATION BOOT TIME if you don't want to miss windows. + bool ConfigDebugBeginReturnValueLoop; // = false // Some calls to Begin()/BeginChild() will return false. Will cycle through window depths then repeat. Suggested use: add "io.ConfigDebugBeginReturnValue = io.KeyShift" in your main loop then occasionally press SHIFT. Windows should be flickering while running. // Option to deactivate io.AddFocusEvent(false) handling. // - May facilitate interactions with a debugger when focus loss leads to clearing inputs data. // - Backends may have other side-effects on focus loss, so this will reduce side-effects but not necessary remove all of them. - bool ConfigDebugIgnoreFocusLoss; // = false // Ignore io.AddFocusEvent(false), consequently not calling io.ClearInputKeys()/io.ClearInputMouse() in input processing. + bool ConfigDebugIgnoreFocusLoss; // = false // Ignore io.AddFocusEvent(false), consequently not calling io.ClearInputKeys()/io.ClearInputMouse() in input processing. // Option to audit .ini data - bool ConfigDebugIniSettings; // = false // Save .ini data with extra comments (particularly helpful for Docking, but makes saving slower) + bool ConfigDebugIniSettings; // = false // Save .ini data with extra comments (particularly helpful for Docking, but makes saving slower) //------------------------------------------------------------------ - // Platform Functions + // Platform Identifiers // (the imgui_impl_xxxx backend files are setting those up for you) //------------------------------------------------------------------ + // Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons. // Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff. - const char* BackendPlatformName; // = NULL - const char* BackendRendererName; // = NULL - void* BackendPlatformUserData; // = NULL // User data for platform backend - void* BackendRendererUserData; // = NULL // User data for renderer backend - void* BackendLanguageUserData; // = NULL // User data for non C++ programming language backend - - // Optional: Access OS clipboard - // (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures) - const char* (*GetClipboardTextFn)(void* user_data); - void (*SetClipboardTextFn)(void* user_data, const char* text); - void* ClipboardUserData; - - // Optional: Open link/folder/file in OS Shell - // (default to use ShellExecuteA() on Windows, system() on Linux/Mac) - bool (*PlatformOpenInShellFn)(ImGuiContext* ctx, const char* path); - void* PlatformOpenInShellUserData; - - // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) - // (default to use native imm32 api on Windows) - void (*PlatformSetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data); - //void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); // [Renamed to io.PlatformSetImeDataFn in 1.91.0] - - // Optional: Platform locale - ImWchar PlatformLocaleDecimalPoint; // '.' // [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point + const char* BackendPlatformName; // = NULL + const char* BackendRendererName; // = NULL + void* BackendPlatformUserData; // = NULL // User data for platform backend + void* BackendRendererUserData; // = NULL // User data for renderer backend + void* BackendLanguageUserData; // = NULL // User data for non C++ programming language backend //------------------------------------------------------------------ // Input - Call before calling NewFrame() @@ -2702,78 +2707,87 @@ typedef struct ImGuiIO_t // generally easier and more correct to use their state BEFORE calling NewFrame(). See FAQ for details!) //------------------------------------------------------------------ - bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). - bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). - bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). - bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled. - bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! - bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. - bool NavVisible; // Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events). - float Framerate; // Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally. - int MetricsRenderVertices; // Vertices output during last call to Render() - int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 - int MetricsRenderWindows; // Number of visible windows - int MetricsActiveWindows; // Number of active windows - ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. + bool WantCaptureMouse; // Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.). + bool WantCaptureKeyboard; // Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.). + bool WantTextInput; // Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active). + bool WantSetMousePos; // MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when io.ConfigNavMoveSetMousePos is enabled. + bool WantSaveIniSettings; // When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving! + bool NavActive; // Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag. + bool NavVisible; // Keyboard/Gamepad navigation highlight is visible and allowed (will handle ImGuiKey_NavXXX events). + float Framerate; // Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally. + int MetricsRenderVertices; // Vertices output during last call to Render() + int MetricsRenderIndices; // Indices output during last call to Render() = number of triangles * 3 + int MetricsRenderWindows; // Number of visible windows + int MetricsActiveWindows; // Number of active windows + ImVec2 MouseDelta; // Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta. //------------------------------------------------------------------ // [Internal] Dear ImGui will maintain those fields. Forward compatibility not guaranteed! //------------------------------------------------------------------ - ImGuiContext* Ctx; // Parent UI context (needs to be set explicitly by parent). + ImGuiContext* Ctx; // Parent UI context (needs to be set explicitly by parent). // Main Input State // (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead) // (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere) - ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) - bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. - float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold SHIFT to turn vertical scroll into horizontal scroll. - float MouseWheelH; // Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends. - ImGuiMouseSource MouseSource; // Mouse actual input peripheral (Mouse/TouchScreen/Pen). - ImGuiID MouseHoveredViewport; // (Optional) Modify using io.AddMouseViewportEvent(). With multi-viewports: viewport the OS mouse is hovering. If possible _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag is much better (few backends can handle that). Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows). - bool KeyCtrl; // Keyboard modifier down: Control - bool KeyShift; // Keyboard modifier down: Shift - bool KeyAlt; // Keyboard modifier down: Alt - bool KeySuper; // Keyboard modifier down: Cmd/Super/Windows + ImVec2 MousePos; // Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.) + bool MouseDown[5]; // Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API. + float MouseWheel; // Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold SHIFT to turn vertical scroll into horizontal scroll. + float MouseWheelH; // Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends. + ImGuiMouseSource MouseSource; // Mouse actual input peripheral (Mouse/TouchScreen/Pen). + ImGuiID MouseHoveredViewport; // (Optional) Modify using io.AddMouseViewportEvent(). With multi-viewports: viewport the OS mouse is hovering. If possible _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag is much better (few backends can handle that). Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows). + bool KeyCtrl; // Keyboard modifier down: Ctrl (non-macOS), Cmd (macOS) + bool KeyShift; // Keyboard modifier down: Shift + bool KeyAlt; // Keyboard modifier down: Alt + bool KeySuper; // Keyboard modifier down: Windows/Super (non-macOS), Ctrl (macOS) // Other state maintained from data above + IO function calls - ImGuiKeyChord KeyMods; // Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags. Read-only, updated by NewFrame() - ImGuiKeyData KeysData[ImGuiKey_KeysData_SIZE]; // Key state for all known keys. Use IsKeyXXX() functions to access this. - bool WantCaptureMouseUnlessPopupClose; // Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. - ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) - ImVec2 MouseClickedPos[5]; // Position at time of clicking - double MouseClickedTime[5]; // Time of last click (used to figure out double-click) - bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) - bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) - ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down - ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. - bool MouseReleased[5]; // Mouse button went from Down to !Down - bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. - bool MouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window. - bool MouseWheelRequestAxisSwap; // On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac system this is already enforced by the system. - bool MouseCtrlLeftAsRightClick; // (OSX) Set to true when the current click was a ctrl-click that spawned a simulated right click - float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) - float MouseDownDurationPrev[5]; // Previous time the mouse button has been down - ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point - float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds) - float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. - bool AppFocusLost; // Only modify via AddFocusEvent() - bool AppAcceptingEvents; // Only modify via SetAppAcceptingEvents() - ImS8 BackendUsingLegacyKeyArrays; // -1: unknown, 0: using AddKeyEvent(), 1: using legacy io.KeysDown[] - bool BackendUsingLegacyNavInputArray; // 0: using AddKeyAnalogEvent(), 1: writing to legacy io.NavInputs[] directly - ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16() - ImVector_ImWchar InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. + ImGuiKeyChord KeyMods; // Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags. Read-only, updated by NewFrame() + ImGuiKeyData KeysData[ImGuiKey_NamedKey_COUNT]; // Key state for all known keys. MUST use 'key - ImGuiKey_NamedKey_BEGIN' as index. Use IsKeyXXX() functions to access this. + bool WantCaptureMouseUnlessPopupClose; // Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup. + ImVec2 MousePosPrev; // Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid) + ImVec2 MouseClickedPos[5]; // Position at time of clicking + double MouseClickedTime[5]; // Time of last click (used to figure out double-click) + bool MouseClicked[5]; // Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0) + bool MouseDoubleClicked[5]; // Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2) + ImU16 MouseClickedCount[5]; // == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down + ImU16 MouseClickedLastCount[5]; // Count successive number of clicks. Stays valid after mouse release. Reset after another click is done. + bool MouseReleased[5]; // Mouse button went from Down to !Down + double MouseReleasedTime[5]; // Time of last released (rarely used! but useful to handle delayed single-click when trying to disambiguate them from double-click). + bool MouseDownOwned[5]; // Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds. + bool MouseDownOwnedUnlessPopupClose[5]; // Track if button was clicked inside a dear imgui window. + bool MouseWheelRequestAxisSwap; // On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac system this is already enforced by the system. + bool MouseCtrlLeftAsRightClick; // (OSX) Set to true when the current click was a Ctrl+click that spawned a simulated right click + float MouseDownDuration[5]; // Duration the mouse button has been down (0.0f == just clicked) + float MouseDownDurationPrev[5]; // Previous time the mouse button has been down + ImVec2 MouseDragMaxDistanceAbs[5]; // Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point + float MouseDragMaxDistanceSqr[5]; // Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds) + float PenPressure; // Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui. + bool AppFocusLost; // Only modify via AddFocusEvent() + bool AppAcceptingEvents; // Only modify via SetAppAcceptingEvents() + ImWchar16 InputQueueSurrogate; // For AddInputCharacterUTF16() + ImVector_ImWchar InputQueueCharacters; // Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper. // Legacy: before 1.87, we required backend to fill io.KeyMap[] (imgui->native map) during initialization and io.KeysDown[] (native indices) every frame. // This is still temporarily supported as a legacy feature. However the new preferred scheme is for backend to call io.AddKeyEvent(). // Old (<1.87): ImGui::IsKeyPressed(ImGui::GetIO().KeyMap[ImGuiKey_Space]) --> New (1.87+) ImGui::IsKeyPressed(ImGuiKey_Space) -#ifndef IMGUI_DISABLE_OBSOLETE_KEYIO - int KeyMap[ImGuiKey_COUNT]; // [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512. - bool KeysDown[ImGuiKey_COUNT]; // [LEGACY] Input: Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow. - float NavInputs[ImGuiNavInput_COUNT]; // [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. + // Old (<1.87): ImGui::IsKeyPressed(MYPLATFORM_KEY_SPACE) --> New (1.87+) ImGui::IsKeyPressed(ImGuiKey_Space) + // Read https://github.com/ocornut/imgui/issues/4921 for details. + //int KeyMap[ImGuiKey_COUNT]; // [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your "native" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512. + //bool KeysDown[ImGuiKey_COUNT]; // [LEGACY] Input: Keyboard keys that are pressed (ideally left in the "native" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow. + //float NavInputs[ImGuiNavInput_COUNT]; // [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums. //void* ImeWindowHandle; // [Obsoleted in 1.87] Set ImGuiViewport::PlatformHandleRaw instead. Set this to your HWND to get automatic IME cursor positioning. -#endif // #ifndef IMGUI_DISABLE_OBSOLETE_KEYIO -} ImGuiIO; + +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + float FontGlobalScale; // Moved io.FontGlobalScale to style.FontScaleMain in 1.92 (June 2025) + + // Legacy: before 1.91.1, clipboard functions were stored in ImGuiIO instead of ImGuiPlatformIO. + // As this is will affect all users of custom engines/backends, we are providing proper legacy redirection (will obsolete). + const char* (*GetClipboardTextFn)(void* user_data); + void (*SetClipboardTextFn)(void* user_data, const char* text); + void* ClipboardUserData; +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +}; // Input Functions CIMGUI_API void ImGuiIO_AddKeyEvent(ImGuiIO* self, ImGuiKey key, bool down); // Queue a new key down/up event. Key should be "translated" (as in, generally ImGuiKey_A matches the key end-user would use to emit an 'A' character) CIMGUI_API void ImGuiIO_AddKeyAnalogEvent(ImGuiIO* self, ImGuiKey key, bool down, float v); // Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend. @@ -2803,13 +2817,13 @@ CIMGUI_API void ImGuiIO_ClearInputCharacters(ImGuiIO* self); // [Obsoleted in 1 // Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used. // The callback function should return 0 by default. // Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details) -// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active) +// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active. // - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration // - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB // - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows // - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard. // - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. -typedef struct ImGuiInputTextCallbackData_t +struct ImGuiInputTextCallbackData_t { ImGuiContext* Ctx; // Parent UI context ImGuiInputTextFlags EventFlag; // One ImGuiInputTextFlags_Callback* // Read-only @@ -2830,7 +2844,7 @@ typedef struct ImGuiInputTextCallbackData_t int CursorPos; // // Read-write // [Completion,History,Always] int SelectionStart; // // Read-write // [Completion,History,Always] == to SelectionEnd when no selection) int SelectionEnd; // // Read-write // [Completion,History,Always] -} ImGuiInputTextCallbackData; +}; CIMGUI_API void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self, int pos, int bytes_count); CIMGUI_API void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self, int pos, const char* text, const char* text_end /* = NULL */); CIMGUI_API void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self); @@ -2839,13 +2853,13 @@ CIMGUI_API bool ImGuiInputTextCallbackData_HasSelection(const ImGuiInputTextCall // Resizing callback data to apply custom constraint. As enabled by SetNextWindowSizeConstraints(). Callback is called during the next Begin(). // NB: For basic min/max size constraint on each axis you don't need to use the callback! The SetNextWindowSizeConstraints() parameters are enough. -typedef struct ImGuiSizeCallbackData_t +struct ImGuiSizeCallbackData_t { void* UserData; // Read-only. What user passed to SetNextWindowSizeConstraints(). Generally store an integer or float in here (need reinterpret_cast<>). ImVec2 Pos; // Read-only. Window position, for reference. ImVec2 CurrentSize; // Read-only. Current window size. ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing. -} ImGuiSizeCallbackData; +}; // [ALPHA] Rarely used / very advanced uses only. Use with SetNextWindowClass() and DockSpace() functions. // Important: the content of this class is still highly WIP and likely to change and be refactored @@ -2854,7 +2868,7 @@ typedef struct ImGuiSizeCallbackData_t // - To the platform backend via altered viewport flags (enable/disable OS decoration, OS task bar icons, etc.) // - To the platform backend for OS level parent/child relationships of viewport. // - To the docking system for various options and filtering. -typedef struct ImGuiWindowClass_t +struct ImGuiWindowClass_t { ImGuiID ClassId; // User data. 0 = Default class (unclassed). Windows of different classes cannot be docked with each others. ImGuiID ParentViewportId; // Hint for the platform backend. -1: use default. 0: request platform backend to not parent the platform. != 0: request platform backend to create a parent<>child relationship between the platform windows. Not conforming backends are free to e.g. parent every viewport to the main viewport or not. @@ -2865,10 +2879,10 @@ typedef struct ImGuiWindowClass_t ImGuiDockNodeFlags DockNodeFlagsOverrideSet; // [EXPERIMENTAL] Dock node flags to set when a window of this class is hosted by a dock node (it doesn't have to be selected!) bool DockingAlwaysTabBar; // Set to true to enforce single floating windows of this class always having their own docking node (equivalent of setting the global io.ConfigDockingAlwaysTabBar) bool DockingAllowUnclassed; // Set to true to allow windows of this class to be docked/merged with an unclassed window. // FIXME-DOCK: Move to DockNodeFlags override? -} ImGuiWindowClass; +}; // Data payload for Drag and Drop operations: AcceptDragDropPayload(), GetDragDropPayload() -typedef struct ImGuiPayload_t +struct ImGuiPayload_t { // Members void* Data; // Data (copied and owned by dear imgui) @@ -2881,7 +2895,7 @@ typedef struct ImGuiPayload_t char DataType[32+1]; // Data type tag (short user-supplied string, 32 characters max) bool Preview; // Set when AcceptDragDropPayload() was called and mouse has been hovering the target item (nb: handle overlapping drag targets) bool Delivery; // Set when AcceptDragDropPayload() was called and mouse button is released over the target item. -} ImGuiPayload; +}; CIMGUI_API void ImGuiPayload_Clear(ImGuiPayload* self); CIMGUI_API bool ImGuiPayload_IsDataType(const ImGuiPayload* self, const char* type); CIMGUI_API bool ImGuiPayload_IsPreview(const ImGuiPayload* self); @@ -2900,20 +2914,20 @@ CIMGUI_API bool ImGuiPayload_IsDelivery(const ImGuiPayload* self); #endif // #ifdef IMGUI_USE_WCHAR32 // [Internal] -typedef struct ImGuiTextFilter_ImGuiTextRange_t +struct ImGuiTextFilter_ImGuiTextRange_t { const char* b; const char* e; -} ImGuiTextFilter_ImGuiTextRange; +}; CIMGUI_API bool ImGuiTextFilter_ImGuiTextRange_empty(const ImGuiTextFilter_ImGuiTextRange* self); -CIMGUI_API void ImGuiTextFilter_ImGuiTextRange_split(const ImGuiTextFilter_ImGuiTextRange* self, char separator, ImVector_ImGuiTextFilter_ImGuiTextRange* out); +CIMGUI_API void ImGuiTextFilter_ImGuiTextRange_split(const ImGuiTextFilter_ImGuiTextRange* self, char separator, ImVector_ImGuiTextRange* out); // Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]" -typedef struct ImGuiTextFilter_t +struct ImGuiTextFilter_t { - char InputBuf[256]; - ImVector_ImGuiTextFilter_ImGuiTextRange Filters; - int CountGrep; -} ImGuiTextFilter; + char InputBuf[256]; + ImVector_ImGuiTextRange Filters; + int CountGrep; +}; CIMGUI_API bool ImGuiTextFilter_Draw(ImGuiTextFilter* self, const char* label /* = "Filter (inc,-exc)" */, float width /* = 0.0f */); // Helper calling InputText+Build CIMGUI_API bool ImGuiTextFilter_PassFilter(const ImGuiTextFilter* self, const char* text, const char* text_end /* = NULL */); CIMGUI_API void ImGuiTextFilter_Build(ImGuiTextFilter* self); @@ -2922,15 +2936,16 @@ CIMGUI_API bool ImGuiTextFilter_IsActive(const ImGuiTextFilter* self); // Helper: Growable text buffer for logging/accumulating text // (this could be called 'ImGuiTextBuilder' / 'ImGuiStringBuilder') -typedef struct ImGuiTextBuffer_t +struct ImGuiTextBuffer_t { ImVector_char Buf; -} ImGuiTextBuffer; +}; CIMGUI_API const char* ImGuiTextBuffer_begin(const ImGuiTextBuffer* self); CIMGUI_API const char* ImGuiTextBuffer_end(const ImGuiTextBuffer* self); // Buf is zero-terminated, so end() will point on the zero-terminator CIMGUI_API int ImGuiTextBuffer_size(const ImGuiTextBuffer* self); CIMGUI_API bool ImGuiTextBuffer_empty(const ImGuiTextBuffer* self); CIMGUI_API void ImGuiTextBuffer_clear(ImGuiTextBuffer* self); +CIMGUI_API void ImGuiTextBuffer_resize(ImGuiTextBuffer* self, int size); // Similar to resize(0) on ImVector: empty string but don't free buffer. CIMGUI_API void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self, int capacity); CIMGUI_API const char* ImGuiTextBuffer_c_str(const ImGuiTextBuffer* self); CIMGUI_API void ImGuiTextBuffer_append(ImGuiTextBuffer* self, const char* str, const char* str_end /* = NULL */); @@ -2938,7 +2953,7 @@ CIMGUI_API void ImGuiTextBuffer_appendf(ImGuiTextBuffer* self, const char CIMGUI_API void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self, const char* fmt, va_list args) IM_FMTLIST(2); // [Internal] Key+Value for ImGuiStorage -typedef struct ImGuiStoragePair_t +struct ImGuiStoragePair_t { ImGuiID key; union @@ -2947,7 +2962,7 @@ typedef struct ImGuiStoragePair_t float val_f; void* val_p; }; -} ImGuiStoragePair; +}; // Helper: Key->Value storage // Typically you don't have to worry about this since a storage is held within each Window. @@ -2957,11 +2972,11 @@ typedef struct ImGuiStoragePair_t // - You want to manipulate the open/close state of a particular sub-tree in your interface (tree node uses Int 0/1 to store their state). // - You want to store custom debug data easily without adding or editing structures in your code (probably not efficient, but convenient) // Types are NOT stored, so it is up to you to make sure your Key don't collide with different types. -typedef struct ImGuiStorage_t +struct ImGuiStorage_t { // [Internal] ImVector_ImGuiStoragePair Data; -} ImGuiStorage; +}; // - Get***() functions find pair, never add/allocate. Pairs are sorted so a query is O(log N) // - Set***() functions find pair, insertion on demand if missing. // - Sorted insertion is costly, paid once. A typical frame shouldn't need to insert any new pair. @@ -3007,17 +3022,17 @@ CIMGUI_API void ImGuiStorage_SetAllInt(ImGuiStorage* self, int val); // - Clipper calculate the actual range of elements to display based on the current clipping rectangle, position the cursor before the first visible element. // - User code submit visible elements. // - The clipper also handles various subtleties related to keyboard/gamepad navigation, wrapping etc. -typedef struct ImGuiListClipper_t +struct ImGuiListClipper_t { ImGuiContext* Ctx; // Parent UI context int DisplayStart; // First item to display, updated by each call to Step() int DisplayEnd; // End of items to display (exclusive) int ItemsCount; // [Internal] Number of items float ItemsHeight; // [Internal] Height of item after a first step and item submission can calculate it - float StartPosY; // [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed + double StartPosY; // [Internal] Cursor position at the time of Begin() or after table frozen rows are all processed double StartSeekOffsetY; // [Internal] Account for frozen rows in a table and initial loss of precision in very large windows. void* TempData; // [Internal] Internal data -} ImGuiListClipper; +}; CIMGUI_API void ImGuiListClipper_Begin(ImGuiListClipper* self, int items_count, float items_height /* = -1.0f */); CIMGUI_API void ImGuiListClipper_End(ImGuiListClipper* self); // Automatically called on the last call of Step() that returns false. CIMGUI_API bool ImGuiListClipper_Step(ImGuiListClipper* self); // Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items. @@ -3030,21 +3045,22 @@ CIMGUI_API void ImGuiListClipper_IncludeItemsByIndex(ImGuiListClipper* self, int // - In this case, after all steps are done, you'll want to call SeekCursorForItem(item_count). CIMGUI_API void ImGuiListClipper_SeekCursorForItem(ImGuiListClipper* self, int item_index); #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS -CIMGUI_API void ImGuiListClipper_IncludeRangeByIndices(ImGuiListClipper* self, int item_begin, int item_end); // [renamed in 1.89.9] -CIMGUI_API void ImGuiListClipper_ForceDisplayRangeByIndices(ImGuiListClipper* self, int item_begin, int item_end); // [renamed in 1.89.6] +CIMGUI_API void ImGuiListClipper_IncludeRangeByIndices(ImGuiListClipper* self, int item_begin, int item_end); // [renamed in 1.89.9] #endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS // Helpers: ImVec2/ImVec4 operators // - It is important that we are keeping those disabled by default so they don't leak in user space. // - This is in order to allow user enabling implicit cast operators between ImVec2/ImVec4 and their own types (using IM_VEC2_CLASS_EXTRA in imconfig.h) -// - You can use '#define IMGUI_DEFINE_MATH_OPERATORS' to import our operators, provided as a courtesy. +// - Add '#define IMGUI_DEFINE_MATH_OPERATORS' before including this file (or in imconfig.h) to access courtesy maths operators for ImVec2 and ImVec4. +// - We intentionally provide ImVec2*float but not float*ImVec2: this is rare enough and we want to reduce the surface for possible user mistake. #ifdef IMGUI_DEFINE_MATH_OPERATORS #define IMGUI_DEFINE_MATH_OPERATORS_IMPLEMENTED IM_MSVC_RUNTIME_CHECKS_OFF IM_MSVC_RUNTIME_CHECKS_RESTORE #endif // #ifdef IMGUI_DEFINE_MATH_OPERATORS // Helpers macros to generate 32-bit encoded colors -// User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. +// - User can declare their own format by #defining the 5 _SHIFT/_MASK macros in their imconfig file. +// - Any setting other than the default will need custom backend support. The only standard backend that supports anything else than the default is DirectX9. #ifndef IM_COL32_R_SHIFT #ifdef IMGUI_USE_BGRA_PACKED_COLOR #define IM_COL32_R_SHIFT 16 @@ -3069,13 +3085,13 @@ IM_MSVC_RUNTIME_CHECKS_RESTORE // Prefer using IM_COL32() macros if you want a guaranteed compile-time ImU32 for usage with ImDrawList API. // **Avoid storing ImColor! Store either u32 of ImVec4. This is not a full-featured color class. MAY OBSOLETE. // **None of the ImGui API are using ImColor directly but you can use it as a convenience to pass colors in either ImU32 or ImVec4 formats. Explicitly cast to ImU32 or ImVec4 if needed. -typedef struct ImColor_t +struct ImColor_t { ImVec4 Value; -} ImColor; +}; // FIXME-OBSOLETE: May need to obsolete/cleanup those helpers. CIMGUI_API void ImColor_SetHSV(ImColor* self, float h, float s, float v, float a /* = 1.0f */); -CIMGUI_API ImColor ImColor_HSV(ImColor* self, float h, float s, float v, float a /* = 1.0f */); +CIMGUI_API ImColor ImColor_HSV(float h, float s, float v, float a /* = 1.0f */); //----------------------------------------------------------------------------- // [SECTION] Multi-Select API flags and structures (ImGuiMultiSelectFlags, ImGuiSelectionRequestType, ImGuiSelectionRequest, ImGuiMultiSelectIO, ImGuiSelectionBasicStorage) @@ -3145,7 +3161,7 @@ typedef enum // - Use 'Demo->Tools->Debug Log->Selection' to see requests as they happen. // - Some fields are only useful if your list is dynamic and allows deletion (getting post-deletion focus/state right is shown in the demo) // - Below: who reads/writes each fields? 'r'=read, 'w'=write, 'ms'=multi-select code, 'app'=application/user code. -typedef struct ImGuiMultiSelectIO_t +struct ImGuiMultiSelectIO_t { //------------------------------------------// BeginMultiSelect / EndMultiSelect ImVector_ImGuiSelectionRequest Requests; // ms:w, app:r / ms:w app:r // Requests to apply to your selection data. @@ -3154,7 +3170,7 @@ typedef struct ImGuiMultiSelectIO_t bool NavIdSelected; // ms:w, app:r / app:r // (If using deletion) Last known selection state for NavId (if part of submitted items). bool RangeSrcReset; // app:w / ms:r // (If using deletion) Set before EndMultiSelect() to reset ResetSrcItem (e.g. if deleted selection). int ItemsCount; // ms:w, app:r / app:r // 'int items_count' parameter to BeginMultiSelect() is copied here for convenience, allowing simpler calls to your ApplyRequests handler. Not used internally. -} ImGuiMultiSelectIO; +}; // Selection request type typedef enum @@ -3165,7 +3181,7 @@ typedef enum } ImGuiSelectionRequestType; // Selection request item -typedef struct ImGuiSelectionRequest_t +struct ImGuiSelectionRequest_t { //------------------------------------------// BeginMultiSelect / EndMultiSelect ImGuiSelectionRequestType Type; // ms:w, app:r / ms:w, app:r // Request type. You'll most often receive 1 Clear + 1 SetRange with a single-item range. @@ -3173,7 +3189,7 @@ typedef struct ImGuiSelectionRequest_t ImS8 RangeDirection; // / ms:w app:r // Parameter for SetRange request: +1 when RangeFirstItem comes before RangeLastItem, -1 otherwise. Useful if you want to preserve selection order on a backward Shift+Click. ImGuiSelectionUserData RangeFirstItem; // / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift selecting from top to bottom). ImGuiSelectionUserData RangeLastItem; // / ms:w, app:r // Parameter for SetRange request (this is generally == RangeSrcItem when shift selecting from bottom to top). Inclusive! -} ImGuiSelectionRequest; +}; // Optional helper to store multi-selection state + apply multi-selection requests. // - Used by our demos and provided as a convenience to easily implement basic multi-selection. @@ -3191,7 +3207,7 @@ typedef struct ImGuiSelectionRequest_t // Many combinations are possible depending on how you prefer to store your items and how you prefer to store your selection. // Large applications are likely to eventually want to get rid of this indirection layer and do their own thing. // See https://github.com/ocornut/imgui/wiki/Multi-Select for details and pseudo-code using this helper. -typedef struct ImGuiSelectionBasicStorage_t +struct ImGuiSelectionBasicStorage_t { // Members int Size; // // Number of selected items, maintained by this helper. @@ -3200,23 +3216,23 @@ typedef struct ImGuiSelectionBasicStorage_t ImGuiID (*AdapterIndexToStorageId)(ImGuiSelectionBasicStorage* self, int idx); // e.g. selection.AdapterIndexToStorageId = [](ImGuiSelectionBasicStorage* self, int idx) { return ((MyItems**)self->UserData)[idx]->ID; }; int _SelectionOrder; // [Internal] Increasing counter to store selection order ImGuiStorage _Storage; // [Internal] Selection set. Think of this as similar to e.g. std::set. Prefer not accessing directly: iterate with GetNextSelectedItem(). -} ImGuiSelectionBasicStorage; +}; CIMGUI_API void ImGuiSelectionBasicStorage_ApplyRequests(ImGuiSelectionBasicStorage* self, ImGuiMultiSelectIO* ms_io); // Apply selection requests coming from BeginMultiSelect() and EndMultiSelect() functions. It uses 'items_count' passed to BeginMultiSelect() CIMGUI_API bool ImGuiSelectionBasicStorage_Contains(const ImGuiSelectionBasicStorage* self, ImGuiID id); // Query if an item id is in selection. CIMGUI_API void ImGuiSelectionBasicStorage_Clear(ImGuiSelectionBasicStorage* self); // Clear selection CIMGUI_API void ImGuiSelectionBasicStorage_Swap(ImGuiSelectionBasicStorage* self, ImGuiSelectionBasicStorage* r); // Swap two selections CIMGUI_API void ImGuiSelectionBasicStorage_SetItemSelected(ImGuiSelectionBasicStorage* self, ImGuiID id, bool selected); // Add/remove an item from selection (generally done by ApplyRequests() function) -CIMGUI_API bool ImGuiSelectionBasicStorage_GetNextSelectedItem(ImGuiSelectionBasicStorage* self, void** opaque_it, ImGuiID* out_id); // Iterate selection with 'void* it = NULL; ImGuiId id; while (selection.GetNextSelectedItem(&it, &id)) { ... }' +CIMGUI_API bool ImGuiSelectionBasicStorage_GetNextSelectedItem(ImGuiSelectionBasicStorage* self, void** opaque_it, ImGuiID* out_id); // Iterate selection with 'void* it = NULL; ImGuiID id; while (selection.GetNextSelectedItem(&it, &id)) { ... }' CIMGUI_API ImGuiID ImGuiSelectionBasicStorage_GetStorageIdFromIndex(ImGuiSelectionBasicStorage* self, int idx); // Convert index to item id based on provided adapter. // Optional helper to apply multi-selection requests to existing randomly accessible storage. // Convenient if you want to quickly wire multi-select API on e.g. an array of bool or items storing their own selection state. -typedef struct ImGuiSelectionExternalStorage_t +struct ImGuiSelectionExternalStorage_t { // Members void* UserData; // User data for use by adapter function // e.g. selection.UserData = (void*)my_items; void (*AdapterSetItemSelected)(ImGuiSelectionExternalStorage* self, int idx, bool selected); // e.g. AdapterSetItemSelected = [](ImGuiSelectionExternalStorage* self, int idx, bool selected) { ((MyItems**)self->UserData)[idx]->Selected = selected; } -} ImGuiSelectionExternalStorage; +}; CIMGUI_API void ImGuiSelectionExternalStorage_ApplyRequests(ImGuiSelectionExternalStorage* self, ImGuiMultiSelectIO* ms_io); // Apply selection requests by using AdapterSetItemSelected() calls //----------------------------------------------------------------------------- @@ -3226,7 +3242,7 @@ CIMGUI_API void ImGuiSelectionExternalStorage_ApplyRequests(ImGuiSelectionExtern // The maximum line width to bake anti-aliased textures for. Build atlas with ImFontAtlasFlags_NoBakedLines to disable baking. #ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX -#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (63) +#define IM_DRAWLIST_TEX_LINES_WIDTH_MAX (32) #endif // #ifndef IM_DRAWLIST_TEX_LINES_WIDTH_MAX // ImDrawCallback: Draw callbacks for advanced uses [configurable type: override in imconfig.h] // NB: You most likely do NOT need to use draw callbacks just to create your own widget or customized UI rendering, @@ -3248,28 +3264,31 @@ typedef void (*ImDrawCallback)(const ImDrawList* parent_list, const ImDrawCmd* c // - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled, // this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices. // Backends made for <1.71. will typically ignore the VtxOffset fields. -// - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). -typedef struct ImDrawCmd_t +// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for). +struct ImDrawCmd_t { - ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates - ImTextureID TextureId; // 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas. - unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. - unsigned int IdxOffset; // 4 // Start offset in index buffer. - unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. - ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. - void* UserCallbackData; // 4-8 // The draw callback code can access this. -} ImDrawCmd; + ImVec4 ClipRect; // 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping rectangle in "viewport" coordinates + ImTextureRef TexRef; // 16 // Reference to a font/texture atlas (where backend called ImTextureData::SetTexID()) or to a user-provided texture ID (via e.g. ImGui::Image() calls). Both will lead to a ImTextureID value. + unsigned int VtxOffset; // 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may be >0 to support meshes larger than 64K vertices with 16-bit indices. + unsigned int IdxOffset; // 4 // Start offset in index buffer. + unsigned int ElemCount; // 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee ImDrawList's vtx_buffer[] array, indices in idx_buffer[]. + ImDrawCallback UserCallback; // 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will be set normally. + void* UserCallbackData; // 4-8 // Callback user data (when UserCallback != NULL). If called AddCallback() with size == 0, this is a copy of the AddCallback() argument. If called AddCallback() with size > 0, this is pointing to a buffer where data is stored. + int UserCallbackDataSize; // 4 // Size of callback user data when using storage, otherwise 0. + int UserCallbackDataOffset; // 4 // [Internal] Offset of callback user data when using storage, otherwise -1. +}; // Since 1.83: returns ImTextureID associated with this draw call. Warning: DO NOT assume this is always same as 'TextureId' (we will change this function for an upcoming feature) -CIMGUI_API ImTextureID ImDrawCmd_GetTexID(const ImDrawCmd* self); +// Since 1.92: removed ImDrawCmd::TextureId field, the getter function must be used! +CIMGUI_API ImTextureID ImDrawCmd_GetTexID(const ImDrawCmd* self); // == (TexRef._TexData ? TexRef._TexData->TexID : TexRef._TexID // Vertex layout #ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT -typedef struct ImDrawVert_t +struct ImDrawVert_t { ImVec2 pos; ImVec2 uv; ImU32 col; -} ImDrawVert; +}; #else // You can override the vertex format layout by defining IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT in imconfig.h // The code expect ImVec2 pos (8 bytes), ImVec2 uv (8 bytes), ImU32 col (4 bytes), but you can re-order them or add other fields as needed to simplify integration in your engine. @@ -3278,28 +3297,28 @@ typedef struct ImDrawVert_t IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT #endif // #ifndef IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT // [Internal] For use by ImDrawList -typedef struct ImDrawCmdHeader_t +struct ImDrawCmdHeader_t { ImVec4 ClipRect; - ImTextureID TextureId; + ImTextureRef TexRef; unsigned int VtxOffset; -} ImDrawCmdHeader; +}; // [Internal] For use by ImDrawListSplitter -typedef struct ImDrawChannel_t +struct ImDrawChannel_t { ImVector_ImDrawCmd _CmdBuffer; ImVector_ImDrawIdx _IdxBuffer; -} ImDrawChannel; +}; // Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order. // This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call. -typedef struct ImDrawListSplitter_t +struct ImDrawListSplitter_t { int _Current; // Current channel number (0) int _Count; // Number of active channels (1+) ImVector_ImDrawChannel _Channels; // Draw channels (not resized down so _Count might be < Channels.Size) -} ImDrawListSplitter; +}; CIMGUI_API void ImDrawListSplitter_Clear(ImDrawListSplitter* self); // Do not clear Channels[] so our allocations are reused next frame CIMGUI_API void ImDrawListSplitter_ClearFreeMemory(ImDrawListSplitter* self); CIMGUI_API void ImDrawListSplitter_Split(ImDrawListSplitter* self, ImDrawList* draw_list, int count); @@ -3344,41 +3363,41 @@ typedef enum // access the current window draw list and draw custom primitives. // You can interleave normal ImGui:: calls and adding primitives to the current draw list. // In single viewport mode, top-left is == GetMainViewport()->Pos (generally 0,0), bottom-right is == GetMainViewport()->Pos+Size (generally io.DisplaySize). -// You are totally free to apply whatever transformation matrix to want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!) +// You are totally free to apply whatever transformation matrix you want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!) // Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects. -typedef struct ImDrawList_t +struct ImDrawList_t { // This is what you have to render - ImVector_ImDrawCmd CmdBuffer; // Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. - ImVector_ImDrawIdx IdxBuffer; // Index buffer. Each command consume ImDrawCmd::ElemCount of those - ImVector_ImDrawVert VtxBuffer; // Vertex buffer. - ImDrawListFlags Flags; // Flags, you may poke into these to adjust anti-aliasing settings per-primitive. + ImVector_ImDrawCmd CmdBuffer; // Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. + ImVector_ImDrawIdx IdxBuffer; // Index buffer. Each command consume ImDrawCmd::ElemCount of those + ImVector_ImDrawVert VtxBuffer; // Vertex buffer. + ImDrawListFlags Flags; // Flags, you may poke into these to adjust anti-aliasing settings per-primitive. // [Internal, used while building lists] - unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. - ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) - ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) - ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) - ImVector_ImVec2 _Path; // [Internal] current path building - ImDrawCmdHeader _CmdHeader; // [Internal] template of active commands. Fields should match those of CmdBuffer.back(). - ImDrawListSplitter _Splitter; // [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) - ImVector_ImVec4 _ClipRectStack; // [Internal] - ImVector_ImTextureID _TextureIdStack; // [Internal] - float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content - const char* _OwnerName; // Pointer to owner window's name for debugging + unsigned int _VtxCurrentIdx; // [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to 0. + ImDrawListSharedData* _Data; // Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current ImGui context) + ImDrawVert* _VtxWritePtr; // [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImDrawIdx* _IdxWritePtr; // [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> operators too much) + ImVector_ImVec2 _Path; // [Internal] current path building + ImDrawCmdHeader _CmdHeader; // [Internal] template of active commands. Fields should match those of CmdBuffer.back(). + ImDrawListSplitter _Splitter; // [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) + ImVector_ImVec4 _ClipRectStack; // [Internal] + ImVector_ImTextureRef _TextureStack; // [Internal] + ImVector_ImU8 _CallbacksDataBuf; // [Internal] + float _FringeScale; // [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at vertex buffer content + const char* _OwnerName; // Pointer to owner window's name for debugging - // Obsolete names //inline void AddEllipse(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0, float thickness = 1.0f) { AddEllipse(center, ImVec2(radius_x, radius_y), col, rot, num_segments, thickness); } // OBSOLETED in 1.90.5 (Mar 2024) //inline void AddEllipseFilled(const ImVec2& center, float radius_x, float radius_y, ImU32 col, float rot = 0.0f, int num_segments = 0) { AddEllipseFilled(center, ImVec2(radius_x, radius_y), col, rot, num_segments); } // OBSOLETED in 1.90.5 (Mar 2024) //inline void PathEllipticalArcTo(const ImVec2& center, float radius_x, float radius_y, float rot, float a_min, float a_max, int num_segments = 0) { PathEllipticalArcTo(center, ImVec2(radius_x, radius_y), rot, a_min, a_max, num_segments); } // OBSOLETED in 1.90.5 (Mar 2024) - //inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) - //inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) -} ImDrawList; + //inline void AddBezierCurve(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments = 0) { AddBezierCubic(p1, p2, p3, p4, col, thickness, num_segments); } // OBSOLETED in 1.80 (Jan 2021) + //inline void PathBezierCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0) { PathBezierCubicCurveTo(p2, p3, p4, num_segments); } // OBSOLETED in 1.80 (Jan 2021) +}; CIMGUI_API void ImDrawList_PushClipRect(ImDrawList* self, ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_current_clip_rect /* = false */); // Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling) CIMGUI_API void ImDrawList_PushClipRectFullScreen(ImDrawList* self); CIMGUI_API void ImDrawList_PopClipRect(ImDrawList* self); -CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* self, ImTextureID texture_id); -CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self); +CIMGUI_API void ImDrawList_PushTexture(ImDrawList* self, ImTextureRef tex_ref); +CIMGUI_API void ImDrawList_PopTexture(ImDrawList* self); CIMGUI_API ImVec2 ImDrawList_GetClipRectMin(const ImDrawList* self); CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(const ImDrawList* self); // Primitives @@ -3388,50 +3407,50 @@ CIMGUI_API ImVec2 ImDrawList_GetClipRectMax(const ImDrawList* self); // In older versions (until Dear ImGui 1.77) the AddCircle functions defaulted to num_segments == 12. // In future versions we will use textures to provide cheaper and higher-quality circles. // Use AddNgon() and AddNgonFilled() functions if you need to guarantee a specific number of sides. -CIMGUI_API void ImDrawList_AddLine(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col); // Implied thickness = 1.0f +CIMGUI_API void ImDrawList_AddLine(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col); // Implied thickness = 1.0f CIMGUI_API void ImDrawList_AddLineEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImU32 col, float thickness /* = 1.0f */); -CIMGUI_API void ImDrawList_AddRect(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col); // Implied rounding = 0.0f, flags = 0, thickness = 1.0f +CIMGUI_API void ImDrawList_AddRect(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col); // Implied rounding = 0.0f, flags = 0, thickness = 1.0f CIMGUI_API void ImDrawList_AddRectEx(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding /* = 0.0f */, ImDrawFlags flags /* = 0 */, float thickness /* = 1.0f */); // a: upper-left, b: lower-right (== upper-left + size) -CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col); // Implied rounding = 0.0f, flags = 0 +CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col); // Implied rounding = 0.0f, flags = 0 CIMGUI_API void ImDrawList_AddRectFilledEx(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col, float rounding /* = 0.0f */, ImDrawFlags flags /* = 0 */); // a: upper-left, b: lower-right (== upper-left + size) CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self, ImVec2 p_min, ImVec2 p_max, ImU32 col_upr_left, ImU32 col_upr_right, ImU32 col_bot_right, ImU32 col_bot_left); -CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col); // Implied thickness = 1.0f +CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col); // Implied thickness = 1.0f CIMGUI_API void ImDrawList_AddQuadEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col, float thickness /* = 1.0f */); CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col); -CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col); // Implied thickness = 1.0f +CIMGUI_API void ImDrawList_AddTriangle(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col); // Implied thickness = 1.0f CIMGUI_API void ImDrawList_AddTriangleEx(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness /* = 1.0f */); CIMGUI_API void ImDrawList_AddTriangleFilled(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col); -CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self, ImVec2 center, float radius, ImU32 col); // Implied num_segments = 0, thickness = 1.0f +CIMGUI_API void ImDrawList_AddCircle(ImDrawList* self, ImVec2 center, float radius, ImU32 col); // Implied num_segments = 0, thickness = 1.0f CIMGUI_API void ImDrawList_AddCircleEx(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments /* = 0 */, float thickness /* = 1.0f */); CIMGUI_API void ImDrawList_AddCircleFilled(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments /* = 0 */); -CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments); // Implied thickness = 1.0f +CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments); // Implied thickness = 1.0f CIMGUI_API void ImDrawList_AddNgonEx(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments, float thickness /* = 1.0f */); CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self, ImVec2 center, float radius, ImU32 col, int num_segments); -CIMGUI_API void ImDrawList_AddEllipse(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col); // Implied rot = 0.0f, num_segments = 0, thickness = 1.0f +CIMGUI_API void ImDrawList_AddEllipse(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col); // Implied rot = 0.0f, num_segments = 0, thickness = 1.0f CIMGUI_API void ImDrawList_AddEllipseEx(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col, float rot /* = 0.0f */, int num_segments /* = 0 */, float thickness /* = 1.0f */); -CIMGUI_API void ImDrawList_AddEllipseFilled(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col); // Implied rot = 0.0f, num_segments = 0 +CIMGUI_API void ImDrawList_AddEllipseFilled(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col); // Implied rot = 0.0f, num_segments = 0 CIMGUI_API void ImDrawList_AddEllipseFilledEx(ImDrawList* self, ImVec2 center, ImVec2 radius, ImU32 col, float rot /* = 0.0f */, int num_segments /* = 0 */); -CIMGUI_API void ImDrawList_AddText(ImDrawList* self, ImVec2 pos, ImU32 col, const char* text_begin); // Implied text_end = NULL +CIMGUI_API void ImDrawList_AddText(ImDrawList* self, ImVec2 pos, ImU32 col, const char* text_begin); // Implied text_end = NULL CIMGUI_API void ImDrawList_AddTextEx(ImDrawList* self, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end /* = NULL */); -CIMGUI_API void ImDrawList_AddTextImFontPtr(ImDrawList* self, const ImFont* font, float font_size, ImVec2 pos, ImU32 col, const char* text_begin); // Implied text_end = NULL, wrap_width = 0.0f, cpu_fine_clip_rect = NULL -CIMGUI_API void ImDrawList_AddTextImFontPtrEx(ImDrawList* self, const ImFont* font, float font_size, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end /* = NULL */, float wrap_width /* = 0.0f */, const ImVec4* cpu_fine_clip_rect /* = NULL */); +CIMGUI_API void ImDrawList_AddTextImFontPtr(ImDrawList* self, ImFont* font, float font_size, ImVec2 pos, ImU32 col, const char* text_begin); // Implied text_end = NULL, wrap_width = 0.0f, cpu_fine_clip_rect = NULL +CIMGUI_API void ImDrawList_AddTextImFontPtrEx(ImDrawList* self, ImFont* font, float font_size, ImVec2 pos, ImU32 col, const char* text_begin, const char* text_end /* = NULL */, float wrap_width /* = 0.0f */, const ImVec4* cpu_fine_clip_rect /* = NULL */); CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImU32 col, float thickness, int num_segments /* = 0 */); // Cubic Bezier (4 control points) -CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness, int num_segments /* = 0 */); // Quadratic Bezier (3 control points) +CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImU32 col, float thickness, int num_segments /* = 0 */); // Quadratic Bezier (3 control points) // General polygon // - Only simple polygons are supported by filling functions (no self-intersections, no holes). -// - Concave polygon fill is more expensive than convex one: it has O(N^2) complexity. Provided as a convenience fo user but not used by main library. +// - Concave polygon fill is more expensive than convex one: it has O(N^2) complexity. Provided as a convenience for the user but not used by the main library. CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col, ImDrawFlags flags, float thickness); CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col); CIMGUI_API void ImDrawList_AddConcavePolyFilled(ImDrawList* self, const ImVec2* points, int num_points, ImU32 col); // Image primitives -// - Read FAQ to understand what ImTextureID is. +// - Read FAQ to understand what ImTextureID/ImTextureRef are. // - "p_min" and "p_max" represent the upper-left and lower-right corners of the rectangle. // - "uv_min" and "uv_max" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture. -CIMGUI_API void ImDrawList_AddImage(ImDrawList* self, ImTextureID user_texture_id, ImVec2 p_min, ImVec2 p_max); // Implied uv_min = ImVec2(0, 0), uv_max = ImVec2(1, 1), col = IM_COL32_WHITE -CIMGUI_API void ImDrawList_AddImageEx(ImDrawList* self, ImTextureID user_texture_id, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min /* = ImVec2(0, 0) */, ImVec2 uv_max /* = ImVec2(1, 1) */, ImU32 col /* = IM_COL32_WHITE */); -CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self, ImTextureID user_texture_id, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4); // Implied uv1 = ImVec2(0, 0), uv2 = ImVec2(1, 0), uv3 = ImVec2(1, 1), uv4 = ImVec2(0, 1), col = IM_COL32_WHITE -CIMGUI_API void ImDrawList_AddImageQuadEx(ImDrawList* self, ImTextureID user_texture_id, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImVec2 uv1 /* = ImVec2(0, 0) */, ImVec2 uv2 /* = ImVec2(1, 0) */, ImVec2 uv3 /* = ImVec2(1, 1) */, ImVec2 uv4 /* = ImVec2(0, 1) */, ImU32 col /* = IM_COL32_WHITE */); -CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self, ImTextureID user_texture_id, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min, ImVec2 uv_max, ImU32 col, float rounding, ImDrawFlags flags /* = 0 */); +CIMGUI_API void ImDrawList_AddImage(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max); // Implied uv_min = ImVec2(0, 0), uv_max = ImVec2(1, 1), col = IM_COL32_WHITE +CIMGUI_API void ImDrawList_AddImageEx(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min /* = ImVec2(0, 0) */, ImVec2 uv_max /* = ImVec2(1, 1) */, ImU32 col /* = IM_COL32_WHITE */); +CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4); // Implied uv1 = ImVec2(0, 0), uv2 = ImVec2(1, 0), uv3 = ImVec2(1, 1), uv4 = ImVec2(0, 1), col = IM_COL32_WHITE +CIMGUI_API void ImDrawList_AddImageQuadEx(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p1, ImVec2 p2, ImVec2 p3, ImVec2 p4, ImVec2 uv1 /* = ImVec2(0, 0) */, ImVec2 uv2 /* = ImVec2(1, 0) */, ImVec2 uv3 /* = ImVec2(1, 1) */, ImVec2 uv4 /* = ImVec2(0, 1) */, ImU32 col /* = IM_COL32_WHITE */); +CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self, ImTextureRef tex_ref, ImVec2 p_min, ImVec2 p_max, ImVec2 uv_min, ImVec2 uv_max, ImU32 col, float rounding, ImDrawFlags flags /* = 0 */); // Stateful path API, add points then finish with PathFillConvex() or PathStroke() // - Important: filled shapes must always use clockwise winding order! The anti-aliasing fringe depends on it. Counter-clockwise shapes will have "inward" anti-aliasing. // so e.g. 'PathArcTo(center, radius, PI * -0.5f, PI)' is ok, whereas 'PathArcTo(center, radius, PI, PI * -0.5f)' won't have correct anti-aliasing when followed by PathFillConvex(). @@ -3442,16 +3461,26 @@ CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self, ImU32 col); CIMGUI_API void ImDrawList_PathFillConcave(ImDrawList* self, ImU32 col); CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self, ImU32 col, ImDrawFlags flags /* = 0 */, float thickness /* = 1.0f */); CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self, ImVec2 center, float radius, float a_min, float a_max, int num_segments /* = 0 */); -CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self, ImVec2 center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle -CIMGUI_API void ImDrawList_PathEllipticalArcTo(ImDrawList* self, ImVec2 center, ImVec2 radius, float rot, float a_min, float a_max); // Implied num_segments = 0 +CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self, ImVec2 center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle +CIMGUI_API void ImDrawList_PathEllipticalArcTo(ImDrawList* self, ImVec2 center, ImVec2 radius, float rot, float a_min, float a_max); // Implied num_segments = 0 CIMGUI_API void ImDrawList_PathEllipticalArcToEx(ImDrawList* self, ImVec2 center, ImVec2 radius, float rot, float a_min, float a_max, int num_segments /* = 0 */); // Ellipse -CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self, ImVec2 p2, ImVec2 p3, ImVec2 p4, int num_segments /* = 0 */); // Cubic Bezier (4 control points) -CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self, ImVec2 p2, ImVec2 p3, int num_segments /* = 0 */); // Quadratic Bezier (3 control points) +CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self, ImVec2 p2, ImVec2 p3, ImVec2 p4, int num_segments /* = 0 */); // Cubic Bezier (4 control points) +CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self, ImVec2 p2, ImVec2 p3, int num_segments /* = 0 */); // Quadratic Bezier (3 control points) CIMGUI_API void ImDrawList_PathRect(ImDrawList* self, ImVec2 rect_min, ImVec2 rect_max, float rounding /* = 0.0f */, ImDrawFlags flags /* = 0 */); -// Advanced -CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self, ImDrawCallback callback, void* callback_data); // Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. -CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible -CIMGUI_API ImDrawList* ImDrawList_CloneOutput(const ImDrawList* self); // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. +// Advanced: Draw Callbacks +// - May be used to alter render state (change sampler, blending, current shader). May be used to emit custom rendering commands (difficult to do correctly, but possible). +// - Use special ImDrawCallback_ResetRenderState callback to instruct backend to reset its render state to the default. +// - Your rendering loop must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. All standard backends are honoring this. +// - For some backends, the callback may access selected render-states exposed by the backend in a ImGui_ImplXXXX_RenderState structure pointed to by platform_io.Renderer_RenderState. +// - IMPORTANT: please be mindful of the different level of indirection between using size==0 (copying argument) and using size>0 (copying pointed data into a buffer). +// - If userdata_size == 0: we copy/store the 'userdata' argument as-is. It will be available unmodified in ImDrawCmd::UserCallbackData during render. +// - If userdata_size > 0, we copy/store 'userdata_size' bytes pointed to by 'userdata'. We store them in a buffer stored inside the drawlist. ImDrawCmd::UserCallbackData will point inside that buffer so you have to retrieve data from there. Your callback may need to use ImDrawCmd::UserCallbackDataSize if you expect dynamically-sized data. +// - Support for userdata_size > 0 was added in v1.91.4, October 2024. So earlier code always only allowed to copy/store a simple void*. +CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self, ImDrawCallback callback, void* userdata); // Implied userdata_size = 0 +CIMGUI_API void ImDrawList_AddCallbackEx(ImDrawList* self, ImDrawCallback callback, void* userdata, size_t userdata_size /* = 0 */); +// Advanced: Miscellaneous +CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self); // This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible +CIMGUI_API ImDrawList* ImDrawList_CloneOutput(const ImDrawList* self); // Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer. // Advanced: Channels // - Use to split render into layers. By switching channels to can render out-of-order (e.g. submit FG primitives before BG primitives) // - Use to minimize draw calls (e.g. if going back-and-forth between multiple clipping rectangles, prefer to append into separate channels then merge at the end) @@ -3466,20 +3495,27 @@ CIMGUI_API void ImDrawList_ChannelsSetCurrent(ImDrawList* self, int n); // - All primitives needs to be reserved via PrimReserve() beforehand. CIMGUI_API void ImDrawList_PrimReserve(ImDrawList* self, int idx_count, int vtx_count); CIMGUI_API void ImDrawList_PrimUnreserve(ImDrawList* self, int idx_count, int vtx_count); -CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self, ImVec2 a, ImVec2 b, ImU32 col); // Axis aligned rectangle (composed of two triangles) +CIMGUI_API void ImDrawList_PrimRect(ImDrawList* self, ImVec2 a, ImVec2 b, ImU32 col); // Axis aligned rectangle (composed of two triangles) CIMGUI_API void ImDrawList_PrimRectUV(ImDrawList* self, ImVec2 a, ImVec2 b, ImVec2 uv_a, ImVec2 uv_b, ImU32 col); CIMGUI_API void ImDrawList_PrimQuadUV(ImDrawList* self, ImVec2 a, ImVec2 b, ImVec2 c, ImVec2 d, ImVec2 uv_a, ImVec2 uv_b, ImVec2 uv_c, ImVec2 uv_d, ImU32 col); CIMGUI_API void ImDrawList_PrimWriteVtx(ImDrawList* self, ImVec2 pos, ImVec2 uv, ImU32 col); CIMGUI_API void ImDrawList_PrimWriteIdx(ImDrawList* self, ImDrawIdx idx); -CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self, ImVec2 pos, ImVec2 uv, ImU32 col); // Write vertex with unique index +CIMGUI_API void ImDrawList_PrimVtx(ImDrawList* self, ImVec2 pos, ImVec2 uv, ImU32 col); // Write vertex with unique index +// Obsolete names +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +CIMGUI_API void ImDrawList_PushTextureID(ImDrawList* self, ImTextureRef tex_ref); // RENAMED in 1.92.x +CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self); // RENAMED in 1.92.x +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS // [Internal helpers] +CIMGUI_API void ImDrawList__SetDrawListSharedData(ImDrawList* self, ImDrawListSharedData* data); CIMGUI_API void ImDrawList__ResetForNewFrame(ImDrawList* self); CIMGUI_API void ImDrawList__ClearFreeMemory(ImDrawList* self); CIMGUI_API void ImDrawList__PopUnusedDrawCmd(ImDrawList* self); CIMGUI_API void ImDrawList__TryMergeDrawCmds(ImDrawList* self); CIMGUI_API void ImDrawList__OnChangedClipRect(ImDrawList* self); -CIMGUI_API void ImDrawList__OnChangedTextureID(ImDrawList* self); +CIMGUI_API void ImDrawList__OnChangedTexture(ImDrawList* self); CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self); +CIMGUI_API void ImDrawList__SetTexture(ImDrawList* self, ImTextureRef tex_ref); CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(const ImDrawList* self, float radius); CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self, ImVec2 center, float radius, int a_min_sample, int a_max_sample, int a_step); CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self, ImVec2 center, float radius, float a_min, float a_max, int num_segments); @@ -3487,71 +3523,159 @@ CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self, ImVec2 center, f // All draw data to render a Dear ImGui frame // (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose, // as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList) -typedef struct ImDrawData_t +struct ImDrawData_t { - bool Valid; // Only valid after Render() is called and before the next NewFrame() is called. - int CmdListsCount; // Number of ImDrawList* to render - int TotalIdxCount; // For convenience, sum of all ImDrawList's IdxBuffer.Size - int TotalVtxCount; // For convenience, sum of all ImDrawList's VtxBuffer.Size - ImVector_ImDrawListPtr CmdLists; // Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here. - ImVec2 DisplayPos; // Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications) - ImVec2 DisplaySize; // Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications) - ImVec2 FramebufferScale; // Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display. - ImGuiViewport* OwnerViewport; // Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not). -} ImDrawData; + bool Valid; // Only valid after Render() is called and before the next NewFrame() is called. + int CmdListsCount; // == CmdLists.Size. (OBSOLETE: exists for legacy reasons). Number of ImDrawList* to render. + int TotalIdxCount; // For convenience, sum of all ImDrawList's IdxBuffer.Size + int TotalVtxCount; // For convenience, sum of all ImDrawList's VtxBuffer.Size + ImVector_ImDrawListPtr CmdLists; // Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here. + ImVec2 DisplayPos; // Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (== GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications) + ImVec2 DisplaySize; // Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize in most single-viewport applications) + ImVec2 FramebufferScale; // Amount of pixels for each unit of DisplaySize. Copied from viewport->FramebufferScale (== io.DisplayFramebufferScale for main viewport). Generally (1,1) on normal display, (2,2) on OSX with Retina display. + ImGuiViewport* OwnerViewport; // Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not). + ImVector_ImTextureDataPtr* Textures; // List of textures to update. Most of the times the list is shared by all ImDrawData, has only 1 texture and it doesn't need any update. This almost always points to ImGui::GetPlatformIO().Textures[]. May be overriden or set to NULL if you want to manually update textures. +}; CIMGUI_API void ImDrawData_Clear(ImDrawData* self); CIMGUI_API void ImDrawData_AddDrawList(ImDrawData* self, ImDrawList* draw_list); // Helper to add an external draw list into an existing ImDrawData. CIMGUI_API void ImDrawData_DeIndexAllBuffers(ImDrawData* self); // Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering! CIMGUI_API void ImDrawData_ScaleClipRects(ImDrawData* self, ImVec2 fb_scale); // Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution. +//----------------------------------------------------------------------------- +// [SECTION] Texture API (ImTextureFormat, ImTextureStatus, ImTextureRect, ImTextureData) +//----------------------------------------------------------------------------- +// In principle, the only data types that user/application code should care about are 'ImTextureRef' and 'ImTextureID'. +// They are defined above in this header file. Read their description to the difference between ImTextureRef and ImTextureID. +// FOR ALL OTHER ImTextureXXXX TYPES: ONLY CORE LIBRARY AND RENDERER BACKENDS NEED TO KNOW AND CARE ABOUT THEM. +//----------------------------------------------------------------------------- + +#undef Status // X11 headers are leaking this. // We intentionally support a limited amount of texture formats to limit burden on CPU-side code and extension. +// Most standard backends only support RGBA32 but we provide a single channel option for low-resource/embedded systems. +typedef enum +{ + ImTextureFormat_RGBA32, // 4 components per pixel, each is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 + ImTextureFormat_Alpha8, // 1 component per pixel, each is unsigned 8-bit. Total size = TexWidth * TexHeight +} ImTextureFormat; + +// Status of a texture to communicate with Renderer Backend. +typedef enum +{ + ImTextureStatus_OK, + ImTextureStatus_Destroyed, // Backend destroyed the texture. + ImTextureStatus_WantCreate, // Requesting backend to create the texture. Set status OK when done. + ImTextureStatus_WantUpdates, // Requesting backend to update specific blocks of pixels (write to texture portions which have never been used before). Set status OK when done. + ImTextureStatus_WantDestroy, // Requesting backend to destroy the texture. Set status to Destroyed when done. +} ImTextureStatus; + +// Coordinates of a rectangle within a texture. +// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system. +// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box. +struct ImTextureRect_t +{ + unsigned short x, y; // Upper-left coordinates of rectangle to update + unsigned short w, h; // Size of rectangle to update (in pixels) +}; + +// Specs and pixel storage for a texture used by Dear ImGui. +// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this. +// Renderer Backends will create a GPU-side version of this. +// Why does we store two identifiers: TexID and BackendUserData? +// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData. +// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both. +// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend +struct ImTextureData_t +{ + //------------------------------------------ core / backend --------------------------------------- + int UniqueID; // w - // [DEBUG] Sequential index to facilitate identifying a texture when debugging/printing. Unique per atlas. + ImTextureStatus Status; // rw rw // ImTextureStatus_OK/_WantCreate/_WantUpdates/_WantDestroy. Always use SetStatus() to modify! + void* BackendUserData; // - rw // Convenience storage for backend. Some backends may have enough with TexID. + ImTextureID TexID; // r w // Backend-specific texture identifier. Always use SetTexID() to modify! The identifier will stored in ImDrawCmd::GetTexID() and passed to backend's RenderDrawData function. + ImTextureFormat Format; // w r // ImTextureFormat_RGBA32 (default) or ImTextureFormat_Alpha8 + int Width; // w r // Texture width + int Height; // w r // Texture height + int BytesPerPixel; // w r // 4 or 1 + unsigned char* Pixels; // w r // Pointer to buffer holding 'Width*Height' pixels and 'Width*Height*BytesPerPixels' bytes. + ImTextureRect UsedRect; // w r // Bounding box encompassing all past and queued Updates[]. + ImTextureRect UpdateRect; // w r // Bounding box encompassing all queued Updates[]. + ImVector_ImTextureRect Updates; // w r // Array of individual updates. + int UnusedFrames; // w r // In order to facilitate handling Status==WantDestroy in some backend: this is a count successive frames where the texture was not used. Always >0 when Status==WantDestroy. + unsigned short RefCount; // w r // Number of contexts using this texture. Used during backend shutdown. + bool UseColors; // w r // Tell whether our texture data is known to use colors (rather than just white + alpha). + bool WantDestroyNextFrame; // rw - // [Internal] Queued to set ImTextureStatus_WantDestroy next frame. May still be used in the current frame. +}; +CIMGUI_API void ImTextureData_Create(ImTextureData* self, ImTextureFormat format, int w, int h); +CIMGUI_API void ImTextureData_DestroyPixels(ImTextureData* self); +CIMGUI_API void* ImTextureData_GetPixels(ImTextureData* self); +CIMGUI_API void* ImTextureData_GetPixelsAt(ImTextureData* self, int x, int y); +CIMGUI_API int ImTextureData_GetSizeInBytes(const ImTextureData* self); +CIMGUI_API int ImTextureData_GetPitch(const ImTextureData* self); +CIMGUI_API ImTextureRef ImTextureData_GetTexRef(ImTextureData* self); +CIMGUI_API ImTextureID ImTextureData_GetTexID(const ImTextureData* self); +// Called by Renderer backend +CIMGUI_API void ImTextureData_SetTexID(ImTextureData* self, ImTextureID tex_id); // Call after creating or destroying the texture. Never modify TexID directly! +CIMGUI_API void ImTextureData_SetStatus(ImTextureData* self, ImTextureStatus status); // Call after honoring a request. Never modify Status directly! + //----------------------------------------------------------------------------- // [SECTION] Font API (ImFontConfig, ImFontGlyph, ImFontAtlasFlags, ImFontAtlas, ImFontGlyphRangesBuilder, ImFont) //----------------------------------------------------------------------------- -typedef struct ImFontConfig_t +// A font input/source (we may rename this to ImFontSource in the future) +struct ImFontConfig_t { - void* FontData; // // TTF/OTF data - int FontDataSize; // // TTF/OTF data size - bool FontDataOwnedByAtlas; // true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself). - int FontNo; // 0 // Index of font within TTF/OTF file - float SizePixels; // // Size in pixels for rasterizer (more or less maps to the resulting font height). - int OversampleH; // 2 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details. - int OversampleV; // 1 // Rasterize at higher quality for sub-pixel positioning. This is not really useful as we don't use sub-pixel positions on the Y axis. - bool PixelSnapH; // false // Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1. - ImVec2 GlyphExtraSpacing; // 0, 0 // Extra spacing (in pixels) between glyphs. Only X axis is supported for now. - ImVec2 GlyphOffset; // 0, 0 // Offset all glyphs from this font input. - const ImWchar* GlyphRanges; // NULL // THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list). - float GlyphMinAdvanceX; // 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font - float GlyphMaxAdvanceX; // FLT_MAX // Maximum AdvanceX for glyphs - bool MergeMode; // false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. - unsigned int FontBuilderFlags; // 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if unsure. - float RasterizerMultiply; // 1.0f // Linearly brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. This is a silly thing we may remove in the future. - float RasterizerDensity; // 1.0f // DPI scale for rasterization, not altering other font metrics: make it easy to swap between e.g. a 100% and a 400% fonts for a zooming display. IMPORTANT: If you increase this it is expected that you increase font scale accordingly, otherwise quality may look lowered. - ImWchar EllipsisChar; // -1 // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. + // Data Source + char Name[40]; // // Name (strictly to ease debugging, hence limited size buffer) + void* FontData; // // TTF/OTF data + int FontDataSize; // // TTF/OTF data size + bool FontDataOwnedByAtlas; // true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself). + + // Options + bool MergeMode; // false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights. + bool PixelSnapH; // false // Align every glyph AdvanceX to pixel boundaries. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1. + bool PixelSnapV; // true // Align Scaled GlyphOffset.y to pixel boundaries. + ImS8 OversampleH; // 0 (2) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1 or 2 depending on size. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details. + ImS8 OversampleV; // 0 (1) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1. This is not really useful as we don't use sub-pixel positions on the Y axis. + ImWchar EllipsisChar; // 0 // Explicitly specify Unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used. + float SizePixels; // // Size in pixels for rasterizer (more or less maps to the resulting font height). + const ImWchar* GlyphRanges; // NULL // *LEGACY* THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list). + const ImWchar* GlyphExcludeRanges; // NULL // Pointer to a small user-provided list of Unicode ranges (2 value per range, values are inclusive, zero-terminated list). This is very close to GlyphRanges[] but designed to exclude ranges from a font source, when merging fonts with overlapping glyphs. Use "Input Glyphs Overlap Detection Tool" to find about your overlapping ranges. + //ImVec2 GlyphExtraSpacing; // 0, 0 // (REMOVED AT IT SEEMS LARGELY OBSOLETE. PLEASE REPORT IF YOU WERE USING THIS). Extra spacing (in pixels) between glyphs when rendered: essentially add to glyph->AdvanceX. Only X axis is supported for now. + ImVec2 GlyphOffset; // 0, 0 // Offset (in pixels) all glyphs from this font input. Absolute value for default size, other sizes will scale this value. + float GlyphMinAdvanceX; // 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font. Absolute value for default size, other sizes will scale this value. + float GlyphMaxAdvanceX; // FLT_MAX // Maximum AdvanceX for glyphs + float GlyphExtraAdvanceX; // 0 // Extra spacing (in pixels) between glyphs. Please contact us if you are using this. // FIXME-NEWATLAS: Intentionally unscaled + ImU32 FontNo; // 0 // Index of font within TTF/OTF file + unsigned int FontLoaderFlags; // 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if unsure. + //unsigned int FontBuilderFlags; // -- // [Renamed in 1.92] Ue FontLoaderFlags. + float RasterizerMultiply; // 1.0f // Linearly brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. This is a silly thing we may remove in the future. + float RasterizerDensity; // 1.0f // [LEGACY: this only makes sense when ImGuiBackendFlags_RendererHasTextures is not supported] DPI scale multiplier for rasterization. Not altering other font metrics: makes it easy to swap between e.g. a 100% and a 400% fonts for a zooming display, or handle Retina screen. IMPORTANT: If you change this it is expected that you increase/decrease font scale roughly to the inverse of this, otherwise quality may look lowered. // [Internal] - char Name[40]; // Name (strictly to ease debugging) - ImFont* DstFont; -} ImFontConfig; + ImFontFlags Flags; // Font flags (don't use just yet, will be exposed in upcoming 1.92.X updates) + ImFont* DstFont; // Target font (as we merging fonts, multiple ImFontConfig may target the same font) + const ImFontLoader* FontLoader; // Custom font backend for this source (default source is the one stored in ImFontAtlas) + void* FontLoaderData; // Font loader opaque storage (per font config) +}; // Hold rendering data for one glyph. -// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this) -typedef struct ImFontGlyph_t +// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this) +struct ImFontGlyph_t { unsigned int Colored : 1; // Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on little-endian as this is used in loops) unsigned int Visible : 1; // Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering. - unsigned int Codepoint : 30; // 0x0000..0x10FFFF - float AdvanceX; // Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in) - float X0, Y0, X1, Y1; // Glyph corners - float U0, V0, U1, V1; // Texture coordinates -} ImFontGlyph; + unsigned int SourceIdx : 4; // Index of source in parent font + unsigned int Codepoint : 26; // 0x0000..0x10FFFF + float AdvanceX; // Horizontal distance to advance cursor/layout position. + float X0, Y0, X1, Y1; // Glyph corners. Offsets from current cursor/layout position. + float U0, V0, U1, V1; // Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling GetCustomRect() with PackId. + int PackId; // [Internal] ImFontAtlasRectId value (FIXME: Cold data, could be moved elsewhere?) +}; // Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges(). // This is essentially a tightly packed of vector of 64k booleans = 8KB storage. -typedef struct ImFontGlyphRangesBuilder_t +struct ImFontGlyphRangesBuilder_t { ImVector_ImU32 UsedChars; // Store 1-bit per Unicode code point (0=unused, 1=used) -} ImFontGlyphRangesBuilder; +}; CIMGUI_API void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self); CIMGUI_API bool ImFontGlyphRangesBuilder_GetBit(const ImFontGlyphRangesBuilder* self, size_t n); // Get bit n in the array CIMGUI_API void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self, size_t n); // Set bit n in the array @@ -3560,17 +3684,20 @@ CIMGUI_API void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self, CIMGUI_API void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self, const ImWchar* ranges); // Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext CIMGUI_API void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self, ImVector_ImWchar* out_ranges); // Output new ranges (ImVector_Construct()/ImVector_Destruct() can be used to safely construct out_ranges) -// See ImFontAtlas::AddCustomRectXXX functions. -typedef struct ImFontAtlasCustomRect_t +// An opaque identifier to a rectangle in the atlas. -1 when invalid. +// The rectangle may move and UV may be invalidated, use GetCustomRect() to retrieve it. +typedef int ImFontAtlasRectId; +#define ImFontAtlasRectId_Invalid -1 + +// Output of ImFontAtlas::GetCustomRect() when using custom rectangles. +// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef +// (this is in theory derived from ImTextureRect but we use separate structures for reasons) +struct ImFontAtlasRect_t { - unsigned short Width, Height; // Input // Desired rectangle dimension - unsigned short X, Y; // Output // Packed position in Atlas - unsigned int GlyphID; // Input // For custom font glyphs only (ID < 0x110000) - float GlyphAdvanceX; // Input // For custom font glyphs only: glyph xadvance - ImVec2 GlyphOffset; // Input // For custom font glyphs only: glyph display offset - ImFont* Font; // Input // For custom font glyphs only: target font -} ImFontAtlasCustomRect; -CIMGUI_API bool ImFontAtlasCustomRect_IsPacked(const ImFontAtlasCustomRect* self); + unsigned short x, y; // Position (in current texture) + unsigned short w, h; // Size + ImVec2 uv0, uv1; // UV coordinates (in current texture) +}; // Flags for ImFontAtlas build typedef enum @@ -3585,12 +3712,14 @@ typedef enum // - One or more fonts. // - Custom graphics data needed to render the shapes needed by Dear ImGui. // - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas). -// It is the user-code responsibility to setup/build the atlas, then upload the pixel data into a texture accessible by your graphics api. -// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you. -// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data. -// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples) +// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you. +// It is the rendering backend responsibility to upload texture into your graphics API: +// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance. +// - Backend then set ImTextureData's TexID and BackendUserData. +// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details. +// Legacy path: +// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data. // - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API. -// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details. // Common pitfalls: // - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the // atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data. @@ -3598,150 +3727,242 @@ typedef enum // You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed, // - Even though many functions are suffixed with "TTF", OTF data is supported just as well. // - This is an old API and it is currently awkward for those and various other reasons! We will address them in the future! -typedef struct ImFontAtlas_t +struct ImFontAtlas_t { //------------------------------------------- // Glyph Ranges //------------------------------------------- //------------------------------------------- - // [BETA] Custom Rectangles/Glyphs API + // [ALPHA] Custom Rectangles/Glyphs API //------------------------------------------- //------------------------------------------- // Members //------------------------------------------- - ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) - ImTextureID TexID; // User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure. - int TexDesiredWidth; // Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height. - int TexGlyphPadding; // Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false). - bool Locked; // Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert. - void* UserData; // Store your own atlas related user-data (if e.g. you have multiple font atlas). + // Input + ImFontAtlasFlags Flags; // Build flags (see ImFontAtlasFlags_) + ImTextureFormat TexDesiredFormat; // Desired texture format (default to ImTextureFormat_RGBA32 but may be changed to ImTextureFormat_Alpha8). + int TexGlyphPadding; // FIXME: Should be called "TexPackPadding". Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false). + int TexMinWidth; // Minimum desired texture width. Must be a power of two. Default to 512. + int TexMinHeight; // Minimum desired texture height. Must be a power of two. Default to 128. + int TexMaxWidth; // Maximum desired texture width. Must be a power of two. Default to 8192. + int TexMaxHeight; // Maximum desired texture height. Must be a power of two. Default to 8192. + void* UserData; // Store your own atlas related user-data (if e.g. you have multiple font atlas). + + // Output + // - Because textures are dynamically created/resized, the current texture identifier may changed at *ANY TIME* during the frame. + // - This should not affect you as you can always use the latest value. But note that any precomputed UV coordinates are only valid for the current TexRef. +#ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImTextureRef TexRef; // Latest texture identifier == TexData->GetTexRef(). +#else + union // Latest texture identifier == TexData->GetTexRef(). // RENAMED TexID to TexRef in 1.92.x + { + ImTextureRef TexRef; + ImTextureRef TexID; + }; +#endif // #ifdef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + ImTextureData* TexData; // Latest texture. // [Internal] - // NB: Access texture data via GetTexData*() calls! Which will setup a default font for you. - bool TexReady; // Set when texture was built matching current font input - bool TexPixelsUseColors; // Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format. - unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight - unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 - int TexWidth; // Texture width calculated during Build(). - int TexHeight; // Texture height calculated during Build(). - ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight) - ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel - ImVector_ImFontPtr Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font. - ImVector_ImFontAtlasCustomRect CustomRects; // Rectangles for packing custom texture data into the atlas. - ImVector_ImFontConfig ConfigData; // Configuration data - ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1]; // UVs for baked anti-aliased lines - - // [Internal] Font builder - const ImFontBuilderIO* FontBuilderIO; // Opaque interface to a font builder (default to stb_truetype, can be changed to use FreeType by defining IMGUI_ENABLE_FREETYPE). - unsigned int FontBuilderFlags; // Shared flags (for all fonts) for custom font builder. THIS IS BUILD IMPLEMENTATION DEPENDENT. Per-font override is also available in ImFontConfig. - - // [Internal] Packing data - int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors - int PackIdLines; // Custom texture rectangle ID for baked anti-aliased lines + ImVector_ImTextureDataPtr TexList; // Texture list (most often TexList.Size == 1). TexData is always == TexList.back(). DO NOT USE DIRECTLY, USE GetDrawData().Textures[]/GetPlatformIO().Textures[] instead! + bool Locked; // Marked as locked during ImGui::NewFrame()..EndFrame() scope if TexUpdates are not supported. Any attempt to modify the atlas will assert. + bool RendererHasTextures; // Copy of (BackendFlags & ImGuiBackendFlags_RendererHasTextures) from supporting context. + bool TexIsBuilt; // Set when texture was built matching current font input. Mostly useful for legacy IsBuilt() call. + bool TexPixelsUseColors; // Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format or conversion process. + ImVec2 TexUvScale; // = (1.0f/TexData->TexWidth, 1.0f/TexData->TexHeight). May change as new texture gets created. + ImVec2 TexUvWhitePixel; // Texture coordinates to a white pixel. May change as new texture gets created. + ImVector_ImFontPtr Fonts; // Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(), use ImGui::PushFont()/PopFont() to change the current font. + ImVector_ImFontConfig Sources; // Source/configuration data + ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX+1]; // UVs for baked anti-aliased lines + int TexNextUniqueID; // Next value to be stored in TexData->UniqueID + int FontNextUniqueID; // Next value to be stored in ImFont->FontID + ImVector_ImDrawListSharedDataPtr DrawListSharedDatas; // List of users for this atlas. Typically one per Dear ImGui context. + ImFontAtlasBuilder* Builder; // Opaque interface to our data that doesn't need to be public and may be discarded when rebuilding. + const ImFontLoader* FontLoader; // Font loader opaque interface (default to use FreeType when IMGUI_ENABLE_FREETYPE is defined, otherwise default to use stb_truetype). Use SetFontLoader() to change this at runtime. + const char* FontLoaderName; // Font loader name (for display e.g. in About box) == FontLoader->Name + void* FontLoaderData; // Font backend opaque storage + unsigned int FontLoaderFlags; // Shared flags (for all fonts) for font loader. THIS IS BUILD IMPLEMENTATION DEPENDENT (e.g. Per-font override is also available in ImFontConfig). + int RefCount; // Number of contexts using this atlas + ImGuiContext* OwnerContext; // Context which own the atlas will be in charge of updating and destroying it. // [Obsolete] - //typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ - //typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ -} ImFontAtlas; -CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self, const ImFontConfig* font_cfg); -CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self, const ImFontConfig* font_cfg /* = NULL */); -CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self, const char* filename, float size_pixels, const ImFontConfig* font_cfg /* = NULL */, const ImWchar* glyph_ranges /* = NULL */); -CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self, void* font_data, int font_data_size, float size_pixels, const ImFontConfig* font_cfg /* = NULL */, const ImWchar* glyph_ranges /* = NULL */); // Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. -CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_data_size, float size_pixels, const ImFontConfig* font_cfg /* = NULL */, const ImWchar* glyph_ranges /* = NULL */); // 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. -CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels, const ImFontConfig* font_cfg /* = NULL */, const ImWchar* glyph_ranges /* = NULL */); // 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. -CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self); // Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. -CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self); // Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory. -CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self); // Clear output font data (glyphs storage, UV coordinates). -CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self); // Clear all input and output. -// Build atlas, retrieve pixel data. -// User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID(). -// The pitch is always = Width * BytesPerPixels (1 or 4) -// Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into -// the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste. -CIMGUI_API bool ImFontAtlas_Build(ImFontAtlas* self); // Build pixels data. This is called automatically for you by the GetTexData*** functions. -CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel /* = NULL */); // 1 byte per-pixel -CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel /* = NULL */); // 4 bytes-per-pixel -CIMGUI_API bool ImFontAtlas_IsBuilt(const ImFontAtlas* self); // Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent... -CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self, ImTextureID id); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + // Legacy: You can request your rectangles to be mapped as font glyph (given a font + Unicode point), so you can render e.g. custom colorful icons and use them as regular glyphs. --> Prefer using a custom ImFontLoader. + ImFontAtlasRect TempRect; // For old GetCustomRectByIndex() API +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + //unsigned int FontBuilderFlags; // OBSOLETED in 1.92.X: Renamed to FontLoaderFlags. + //int TexDesiredWidth; // OBSOLETED in 1.92.X: Force texture width before calling Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height) + //typedef ImFontAtlasRect ImFontAtlasCustomRect; // OBSOLETED in 1.92.X + //typedef ImFontAtlasCustomRect CustomRect; // OBSOLETED in 1.72+ + //typedef ImFontGlyphRangesBuilder GlyphRangesBuilder; // OBSOLETED in 1.67+ +}; +CIMGUI_API ImFont* ImFontAtlas_AddFont(ImFontAtlas* self, const ImFontConfig* font_cfg); +CIMGUI_API ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self, const ImFontConfig* font_cfg /* = NULL */); +CIMGUI_API ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self, const char* filename, float size_pixels /* = 0.0f */, const ImFontConfig* font_cfg /* = NULL */, const ImWchar* glyph_ranges /* = NULL */); +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self, void* font_data, int font_data_size, float size_pixels /* = 0.0f */, const ImFontConfig* font_cfg /* = NULL */, const ImWchar* glyph_ranges /* = NULL */); // Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed. +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self, const void* compressed_font_data, int compressed_font_data_size, float size_pixels /* = 0.0f */, const ImFontConfig* font_cfg /* = NULL */, const ImWchar* glyph_ranges /* = NULL */); // 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp. +CIMGUI_API ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, const char* compressed_font_data_base85, float size_pixels /* = 0.0f */, const ImFontConfig* font_cfg /* = NULL */, const ImWchar* glyph_ranges /* = NULL */); // 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter. +CIMGUI_API void ImFontAtlas_RemoveFont(ImFontAtlas* self, ImFont* font); +CIMGUI_API void ImFontAtlas_Clear(ImFontAtlas* self); // Clear everything (input fonts, output glyphs/textures) +CIMGUI_API void ImFontAtlas_CompactCache(ImFontAtlas* self); // Compact cached glyphs and texture. +CIMGUI_API void ImFontAtlas_SetFontLoader(ImFontAtlas* self, const ImFontLoader* font_loader); // Change font loader at runtime. +// As we are transitioning toward a new font system, we expect to obsolete those soon: +CIMGUI_API void ImFontAtlas_ClearInputData(ImFontAtlas* self); // [OBSOLETE] Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts. +CIMGUI_API void ImFontAtlas_ClearFonts(ImFontAtlas* self); // [OBSOLETE] Clear input+output font data (same as ClearInputData() + glyphs storage, UV coordinates). +CIMGUI_API void ImFontAtlas_ClearTexData(ImFontAtlas* self); // [OBSOLETE] Clear CPU-side copy of the texture data. Saves RAM once the texture has been copied to graphics memory. +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Legacy path for build atlas + retrieving pixel data. +// - User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID(). +// - The pitch is always = Width * BytesPerPixels (1 or 4) +// - Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into +// the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste. +// - From 1.92 with backends supporting ImGuiBackendFlags_RendererHasTextures: +// - Calling Build(), GetTexDataAsAlpha8(), GetTexDataAsRGBA32() is not needed. +// - In backend: replace calls to ImFontAtlas::SetTexID() with calls to ImTextureData::SetTexID() after honoring texture creation. +CIMGUI_API bool ImFontAtlas_Build(ImFontAtlas* self); // Build pixels data. This is called automatically for you by the GetTexData*** functions. +CIMGUI_API void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel /* = NULL */); // 1 byte per-pixel +CIMGUI_API void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self, unsigned char** out_pixels, int* out_width, int* out_height, int* out_bytes_per_pixel /* = NULL */); // 4 bytes-per-pixel +CIMGUI_API void ImFontAtlas_SetTexID(ImFontAtlas* self, ImTextureID id); // Called by legacy backends. May be called before texture creation. +CIMGUI_API void ImFontAtlas_SetTexIDImTextureRef(ImFontAtlas* self, ImTextureRef id); // Called by legacy backends. +CIMGUI_API bool ImFontAtlas_IsBuilt(const ImFontAtlas* self); // Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent.. +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Since 1.92: specifying glyph ranges is only useful/necessary if your backend doesn't support ImGuiBackendFlags_RendererHasTextures! +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); // Basic Latin, Extended Latin +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS // Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list) // NB: Make sure that your string are UTF-8 and NOT in your local code page. // Read https://github.com/ocornut/imgui/blob/master/docs/FONTS.md/#about-utf-8-encoding for details. // NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data. -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); // Basic Latin, Extended Latin -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self); // Default + Greek and Coptic -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); // Default + Korean characters -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self); // Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self); // Default + about 400 Cyrillic characters -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self); // Default + Thai characters -CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self); // Default + Vietnamese characters -// You can request arbitrary rectangles to be packed into the atlas, for your own purposes. -// - After calling Build(), you can query the rectangle position and render your pixels. -// - If you render colored output, set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format. -// - You can also request your rectangles to be mapped as font glyph (given a font + Unicode point), -// so you can render e.g. custom colorful icons and use them as regular glyphs. +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesGreek(ImFontAtlas* self); // Default + Greek and Coptic +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); // Default + Korean characters +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self); // Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self); // Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self); // Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self); // Default + about 400 Cyrillic characters +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self); // Default + Thai characters +CIMGUI_API const ImWchar* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self); // Default + Vietnamese characters +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// Register and retrieve custom rectangles +// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose. +// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call) +// - You can render your pixels into the texture right after calling the AddCustomRect() functions. +// - VERY IMPORTANT: +// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions. +// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect(). +// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time. +// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format. // - Read docs/FONTS.md for more details about using colorful icons. -// - Note: this API may be redesigned later in order to support multi-monitor varying DPI settings. -CIMGUI_API int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self, int width, int height); -CIMGUI_API int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self, ImFont* font, ImWchar id, int width, int height, float advance_x, ImVec2 offset /* = ImVec2(0, 0) */); -CIMGUI_API ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self, int index); -// [Internal] -CIMGUI_API void ImFontAtlas_CalcCustomRectUV(const ImFontAtlas* self, const ImFontAtlasCustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_max); -CIMGUI_API bool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self, ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out_size, ImVec2 out_uv_border[2], ImVec2 out_uv_fill[2]); +// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings. +// - (Pre-1.92 names) ------------> (1.92 names) +// - GetCustomRectByIndex() --> Use GetCustomRect() +// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields. +// - AddCustomRectRegular() --> Renamed to AddCustomRect() +// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig +// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect +CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRect(ImFontAtlas* self, int width, int height, ImFontAtlasRect* out_r /* = NULL */); // Register a rectangle. Return -1 (ImFontAtlasRectId_Invalid) on error. +CIMGUI_API void ImFontAtlas_RemoveCustomRect(ImFontAtlas* self, ImFontAtlasRectId id); // Unregister a rectangle. Existing pixels will stay in texture until resized / garbage collected. +CIMGUI_API bool ImFontAtlas_GetCustomRect(const ImFontAtlas* self, ImFontAtlasRectId id, ImFontAtlasRect* out_r); // Get rectangle coordinates for current texture. Valid immediately, never store this (read above)! +// [Obsolete] +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self, int w, int h); // RENAMED in 1.92.X +CIMGUI_API const ImFontAtlasRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self, ImFontAtlasRectId id); // OBSOLETED in 1.92.X +CIMGUI_API void ImFontAtlas_CalcCustomRectUV(const ImFontAtlas* self, const ImFontAtlasRect* r, ImVec2* out_uv_min, ImVec2* out_uv_max); // OBSOLETED in 1.92.X +CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self, ImFont* font, ImWchar codepoint, int w, int h, float advance_x, ImVec2 offset /* = ImVec2(0, 0) */); // OBSOLETED in 1.92.X: Use custom ImFontLoader in ImFontConfig +CIMGUI_API ImFontAtlasRectId ImFontAtlas_AddCustomRectFontGlyphForSize(ImFontAtlas* self, ImFont* font, float font_size, ImWchar codepoint, int w, int h, float advance_x, ImVec2 offset /* = ImVec2(0, 0) */); // ADDED AND OBSOLETED in 1.92.X +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + +// Font runtime data for a given size +// Important: pointers to ImFontBaked are only valid for the current frame. +struct ImFontBaked_t +{ + // [Internal] Members: Hot ~20/24 bytes (for CalcTextSize) + ImVector_float IndexAdvanceX; // 12-16 // out // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this info, and are often bottleneck in large UI). + float FallbackAdvanceX; // 4 // out // FindGlyph(FallbackChar)->AdvanceX + float Size; // 4 // in // Height of characters/line, set during loading (doesn't change after loading) + float RasterizerDensity; // 4 // in // Density this is baked at + + // [Internal] Members: Hot ~28/36 bytes (for RenderText loop) + ImVector_ImU16 IndexLookup; // 12-16 // out // Sparse. Index glyphs by Unicode code-point. + ImVector_ImFontGlyph Glyphs; // 12-16 // out // All glyphs. + int FallbackGlyphIndex; // 4 // out // Index of FontFallbackChar + + // [Internal] Members: Cold + float Ascent, Descent; // 4+4 // out // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled) + unsigned int MetricsTotalSurface : 26; // 3 // out // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs) + unsigned int WantDestroy : 1; // 0 // // Queued for destroy + unsigned int LoadNoFallback : 1; // 0 // // Disable loading fallback in lower-level calls. + unsigned int LoadNoRenderOnLayout : 1; // 0 // // Enable a two-steps mode where CalcTextSize() calls will load AdvanceX *without* rendering/packing glyphs. Only advantagous if you know that the glyph is unlikely to actually be rendered, otherwise it is slower because we'd do one query on the first CalcTextSize and one query on the first Draw. + int LastUsedFrame; // 4 // // Record of that time this was bounds + ImGuiID BakedId; // 4 // // Unique ID for this baked storage + ImFont* ContainerFont; // 4-8 // in // Parent font + void* FontLoaderDatas; // 4-8 // // Font loader opaque storage (per baked font * sources): single contiguous buffer allocated by imgui, passed to loader. +}; +CIMGUI_API void ImFontBaked_ClearOutputData(ImFontBaked* self); +CIMGUI_API ImFontGlyph* ImFontBaked_FindGlyph(ImFontBaked* self, ImWchar c); // Return U+FFFD glyph if requested glyph doesn't exists. +CIMGUI_API ImFontGlyph* ImFontBaked_FindGlyphNoFallback(ImFontBaked* self, ImWchar c); // Return NULL if glyph doesn't exist +CIMGUI_API float ImFontBaked_GetCharAdvance(ImFontBaked* self, ImWchar c); +CIMGUI_API bool ImFontBaked_IsGlyphLoaded(ImFontBaked* self, ImWchar c); + +// Font flags +// (in future versions as we redesign font loading API, this will become more important and better documented. for now please consider this as internal/advanced use) +typedef enum +{ + ImFontFlags_None = 0, + ImFontFlags_NoLoadError = 1<<1, // Disable throwing an error/assert when calling AddFontXXX() with missing file/data. Calling code is expected to check AddFontXXX() return value. + ImFontFlags_NoLoadGlyphs = 1<<2, // [Internal] Disable loading new glyphs. + ImFontFlags_LockBakedSizes = 1<<3, // [Internal] Disable loading new baked sizes, disable garbage collecting current ones. e.g. if you want to lock a font to a single size. Important: if you use this to preload given sizes, consider the possibility of multiple font density used on Retina display. +} ImFontFlags_; // Font runtime data and rendering -// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32(). -typedef struct ImFont_t +// - ImFontAtlas automatically loads a default embedded font for you if you didn't load one manually. +// - Since 1.92.X a font may be rendered as any size! Therefore a font doesn't have one specific size. +// - Use 'font->GetFontBaked(size)' to retrieve the ImFontBaked* corresponding to a given size. +// - If you used g.Font + g.FontSize (which is frequent from the ImGui layer), you can use g.FontBaked as a shortcut, as g.FontBaked == g.Font->GetFontBaked(g.FontSize). +struct ImFont_t { - // Members: Hot ~20/24 bytes (for CalcTextSize) - ImVector_float IndexAdvanceX; // 12-16 // out // // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this this info, and are often bottleneck in large UI). - float FallbackAdvanceX; // 4 // out // = FallbackGlyph->AdvanceX - float FontSize; // 4 // in // // Height of characters/line, set during loading (don't change after loading) + // [Internal] Members: Hot ~12-20 bytes + ImFontBaked* LastBaked; // 4-8 // Cache last bound baked. NEVER USE DIRECTLY. Use GetFontBaked(). + ImFontAtlas* ContainerAtlas; // 4-8 // What we have been loaded into. + ImFontFlags Flags; // 4 // Font flags. + float CurrentRasterizerDensity; // Current rasterizer density. This is a varying state of the font. - // Members: Hot ~28/40 bytes (for CalcTextSize + render loop) - ImVector_ImWchar IndexLookup; // 12-16 // out // // Sparse. Index glyphs by Unicode code-point. - ImVector_ImFontGlyph Glyphs; // 12-16 // out // // All glyphs. - const ImFontGlyph* FallbackGlyph; // 4-8 // out // = FindGlyph(FontFallbackChar) - - // Members: Cold ~32/40 bytes - ImFontAtlas* ContainerAtlas; // 4-8 // out // // What we has been loaded into - const ImFontConfig* ConfigData; // 4-8 // in // // Pointer within ContainerAtlas->ConfigData - short ConfigDataCount; // 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont. - ImWchar FallbackChar; // 2 // out // = FFFD/'?' // Character used if a glyph isn't found. - ImWchar EllipsisChar; // 2 // out // = '...'/'.'// Character used for ellipsis rendering. - short EllipsisCharCount; // 1 // out // 1 or 3 - float EllipsisWidth; // 4 // out // Width - float EllipsisCharStep; // 4 // out // Step between characters when EllipsisCount > 0 - bool DirtyLookupTables; // 1 // out // - float Scale; // 4 // in // = 1.f // Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale() - float Ascent, Descent; // 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled) - int MetricsTotalSurface; // 4 // out // // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs) - ImU8 Used4kPagesMap[(IM_UNICODE_CODEPOINT_MAX +1)/4096/8]; // 2 bytes if ImWchar=ImWchar16, 34 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints. -} ImFont; -CIMGUI_API const ImFontGlyph* ImFont_FindGlyph(const ImFont* self, ImWchar c); -CIMGUI_API const ImFontGlyph* ImFont_FindGlyphNoFallback(const ImFont* self, ImWchar c); -CIMGUI_API float ImFont_GetCharAdvance(const ImFont* self, ImWchar c); -CIMGUI_API bool ImFont_IsLoaded(const ImFont* self); -CIMGUI_API const char* ImFont_GetDebugName(const ImFont* self); + // [Internal] Members: Cold ~24-52 bytes + // Conceptually Sources[] is the list of font sources merged to create this font. + ImGuiID FontId; // Unique identifier for the font + float LegacySize; // 4 // in // Font size passed to AddFont(). Use for old code calling PushFont() expecting to use that size. (use ImGui::GetFontBaked() to get font baked at current bound size). + ImVector_ImFontConfigPtr Sources; // 16 // in // List of sources. Pointers within ContainerAtlas->Sources[] + ImWchar EllipsisChar; // 2-4 // out // Character used for ellipsis rendering ('...'). + ImWchar FallbackChar; // 2-4 // out // Character used if a glyph isn't found (U+FFFD, '?') + ImU8 Used8kPagesMap[(IM_UNICODE_CODEPOINT_MAX +1)/8192/8]; // 1 bytes if ImWchar=ImWchar16, 16 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints. + bool EllipsisAutoBake; // 1 // // Mark when the "..." glyph needs to be generated. + ImGuiStorage RemapPairs; // 16 // // Remapping pairs when using AddRemapChar(), otherwise empty. +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS + float Scale; // 4 // in // Legacy base font scale (~1.0f), multiplied by the per-window font scale which you can adjust with SetWindowFontScale() +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +}; +CIMGUI_API bool ImFont_IsGlyphInFont(ImFont* self, ImWchar c); +CIMGUI_API bool ImFont_IsLoaded(const ImFont* self); +CIMGUI_API const char* ImFont_GetDebugName(const ImFont* self); // Fill ImFontConfig::Name. +// [Internal] Don't use! // 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable. // 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable. -CIMGUI_API ImVec2 ImFont_CalcTextSizeA(const ImFont* self, float size, float max_width, float wrap_width, const char* text_begin); // Implied text_end = NULL, remaining = NULL -CIMGUI_API ImVec2 ImFont_CalcTextSizeAEx(const ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end /* = NULL */, const char** remaining /* = NULL */); // utf8 -CIMGUI_API const char* ImFont_CalcWordWrapPositionA(const ImFont* self, float scale, const char* text, const char* text_end, float wrap_width); -CIMGUI_API void ImFont_RenderChar(const ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c); -CIMGUI_API void ImFont_RenderText(const ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width /* = 0.0f */, bool cpu_fine_clip /* = false */); +CIMGUI_API ImFontBaked* ImFont_GetFontBaked(ImFont* self, float font_size); // Implied density = -1.0f +CIMGUI_API ImFontBaked* ImFont_GetFontBakedEx(ImFont* self, float font_size, float density /* = -1.0f */); // Get or create baked data for given size +CIMGUI_API ImVec2 ImFont_CalcTextSizeA(ImFont* self, float size, float max_width, float wrap_width, const char* text_begin); // Implied text_end = NULL, remaining = NULL +CIMGUI_API ImVec2 ImFont_CalcTextSizeAEx(ImFont* self, float size, float max_width, float wrap_width, const char* text_begin, const char* text_end /* = NULL */, const char** remaining /* = NULL */); // utf8 +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, ImVec2 pos, ImU32 col, ImWchar c); // Implied cpu_fine_clip = NULL +CIMGUI_API void ImFont_RenderCharEx(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImWchar c, const ImVec4* cpu_fine_clip /* = NULL */); +CIMGUI_API void ImFont_RenderText(ImFont* self, ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, ImVec4 clip_rect, const char* text_begin, const char* text_end, float wrap_width /* = 0.0f */, bool cpu_fine_clip /* = false */); +#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +CIMGUI_API const char* ImFont_CalcWordWrapPositionA(ImFont* self, float scale, const char* text, const char* text_end, float wrap_width); +#endif // #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS // [Internal] Don't use! -CIMGUI_API void ImFont_BuildLookupTable(ImFont* self); -CIMGUI_API void ImFont_ClearOutputData(ImFont* self); -CIMGUI_API void ImFont_GrowIndex(ImFont* self, int new_size); -CIMGUI_API void ImFont_AddGlyph(ImFont* self, const ImFontConfig* src_cfg, ImWchar c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); -CIMGUI_API void ImFont_AddRemapChar(ImFont* self, ImWchar dst, ImWchar src, bool overwrite_dst /* = true */); // Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built. -CIMGUI_API void ImFont_SetGlyphVisible(ImFont* self, ImWchar c, bool visible); -CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self, unsigned int c_begin, unsigned int c_last); +CIMGUI_API void ImFont_ClearOutputData(ImFont* self); +CIMGUI_API void ImFont_AddRemapChar(ImFont* self, ImWchar from_codepoint, ImWchar to_codepoint); // Makes 'from_codepoint' character points to 'to_codepoint' glyph. +CIMGUI_API bool ImFont_IsGlyphRangeUnused(ImFont* self, unsigned int c_begin, unsigned int c_last); //----------------------------------------------------------------------------- // [SECTION] Viewports @@ -3753,7 +3974,7 @@ typedef enum ImGuiViewportFlags_None = 0, ImGuiViewportFlags_IsPlatformWindow = 1<<0, // Represent a Platform Window ImGuiViewportFlags_IsPlatformMonitor = 1<<1, // Represent a Platform Monitor (unused yet) - ImGuiViewportFlags_OwnedByApp = 1<<2, // Platform Window: Was created/managed by the user application? (rather than our backend) + ImGuiViewportFlags_OwnedByApp = 1<<2, // Platform Window: Is created/managed by the user application? (rather than our backend) ImGuiViewportFlags_NoDecoration = 1<<3, // Platform Window: Disable platform decorations: title bar, borders, etc. (generally set all windows, but if ImGuiConfigFlags_ViewportsDecoration is set we only set this on popups/tooltips) ImGuiViewportFlags_NoTaskBarIcon = 1<<4, // Platform Window: Disable platform task bar icon (generally set on popups/tooltips, or all windows if ImGuiConfigFlags_ViewportsNoTaskBarIcon is set) ImGuiViewportFlags_NoFocusOnAppearing = 1<<5, // Platform Window: Don't take focus when created. @@ -3776,12 +3997,13 @@ typedef enum // - Main Area = entire viewport. // - Work Area = entire viewport minus sections used by main menu bars (for platform windows), or by task bar (for platform monitor). // - Windows are generally trying to stay within the Work Area of their host viewport. -typedef struct ImGuiViewport_t +struct ImGuiViewport_t { ImGuiID ID; // Unique identifier for the viewport ImGuiViewportFlags Flags; // See ImGuiViewportFlags_ ImVec2 Pos; // Main Area: Position of the viewport (Dear ImGui coordinates are the same as OS desktop/native coordinates) ImVec2 Size; // Main Area: Size of the viewport. + ImVec2 FramebufferScale; // Density of the viewport for Retina display (always 1,1 on Windows, may be 2,2 etc on macOS/iOS). This will affect font rasterizer density. ImVec2 WorkPos; // Work Area: Position of the viewport minus task bars, menus bars, status bars (>= Pos) ImVec2 WorkSize; // Work Area: Size of the viewport minus task bars, menu bars, status bars (<= Size) float DpiScale; // 1.0f = 96 DPI = No extra scale. @@ -3795,29 +4017,30 @@ typedef struct ImGuiViewport_t // The library never uses those fields, they are merely storage to facilitate backend implementation. void* RendererUserData; // void* to hold custom data structure for the renderer (e.g. swap chain, framebuffers etc.). generally set by your Renderer_CreateWindow function. void* PlatformUserData; // void* to hold custom data structure for the OS / platform (e.g. windowing info, render context). generally set by your Platform_CreateWindow function. - void* PlatformHandle; // void* to hold higher-level, platform window handle (e.g. HWND, GLFWWindow*, SDL_Window*), for FindViewportByPlatformHandle(). - void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (under Win32 this is expected to be a HWND, unused for other platforms), when using an abstraction layer like GLFW or SDL (where PlatformHandle would be a SDL_Window*) + void* PlatformHandle; // void* to hold higher-level, platform window handle (e.g. HWND for Win32 backend, Uint32 WindowID for SDL, GLFWWindow* for GLFW), for FindViewportByPlatformHandle(). + void* PlatformHandleRaw; // void* to hold lower-level, platform-native window handle (always HWND on Win32 platform, unused for other platforms). bool PlatformWindowCreated; // Platform window has been created (Platform_CreateWindow() has been called). This is false during the first frame where a viewport is being created. bool PlatformRequestMove; // Platform window requested move (e.g. window was moved by the OS / host window manager, authoritative position will be OS window position) bool PlatformRequestResize; // Platform window requested resize (e.g. window was resized by the OS / host window manager, authoritative size will be OS window size) bool PlatformRequestClose; // Platform window requested closure (e.g. window was moved by the OS / host window manager, e.g. pressing ALT-F4) -} ImGuiViewport; +}; // Helpers CIMGUI_API ImVec2 ImGuiViewport_GetCenter(const ImGuiViewport* self); CIMGUI_API ImVec2 ImGuiViewport_GetWorkCenter(const ImGuiViewport* self); //----------------------------------------------------------------------------- -// [SECTION] Platform Dependent Interfaces (for e.g. multi-viewport support) +// [SECTION] ImGuiPlatformIO + other Platform Dependent Interfaces (ImGuiPlatformMonitor, ImGuiPlatformImeData) //----------------------------------------------------------------------------- -// [BETA] (Optional) This is completely optional, for advanced users! + +// [BETA] (Optional) Multi-Viewport Support! // If you are new to Dear ImGui and trying to integrate it into your engine, you can probably ignore this for now. // // This feature allows you to seamlessly drag Dear ImGui windows outside of your application viewport. // This is achieved by creating new Platform/OS windows on the fly, and rendering into them. // Dear ImGui manages the viewport structures, and the backend create and maintain one Platform/OS window for each of those viewports. // +// See Recap: https://github.com/ocornut/imgui/wiki/Multi-Viewports // See Glossary https://github.com/ocornut/imgui/wiki/Glossary for details about some of the terminology. -// See Thread https://github.com/ocornut/imgui/issues/1542 for gifs, news and questions about this evolving feature. // // About the coordinates system: // - When multi-viewports are enabled, all Dear ImGui coordinates become absolute coordinates (same as OS coordinates!) @@ -3855,14 +4078,49 @@ CIMGUI_API ImVec2 ImGuiViewport_GetWorkCenter(const ImGuiViewport* self); // or you may decide to never setup those pointers and call your code directly. They are a convenience, not an obligatory interface. //----------------------------------------------------------------------------- -// (Optional) Access via ImGui::GetPlatformIO() -typedef struct ImGuiPlatformIO_t +// Access via ImGui::GetPlatformIO() +struct ImGuiPlatformIO_t { //------------------------------------------------------------------ - // Input - Backend interface/functions + Monitor List + // Input - Interface with OS and Platform backend (most common stuff) + //------------------------------------------------------------------ + + // Optional: Access OS clipboard + // (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures) + const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx); + void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text); + void* Platform_ClipboardUserData; + + // Optional: Open link/folder/file in OS Shell + // (default to use ShellExecuteW() on Windows, system() on Linux/Mac) + bool (*Platform_OpenInShellFn)(ImGuiContext* ctx, const char* path); + void* Platform_OpenInShellUserData; + + // Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows) + // (default to use native imm32 api on Windows) + void (*Platform_SetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data); + void* Platform_ImeUserData; + //void (*SetPlatformImeDataFn)(ImGuiViewport* viewport, ImGuiPlatformImeData* data); // [Renamed to platform_io.PlatformSetImeDataFn in 1.91.1] + + // Optional: Platform locale + // [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point + ImWchar Platform_LocaleDecimalPoint; // '.' + + //------------------------------------------------------------------ + // Input - Interface with Renderer Backend + //------------------------------------------------------------------ + + // Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not known. + int Renderer_TextureMaxWidth; + int Renderer_TextureMaxHeight; + + // Written by some backends during ImGui_ImplXXXX_RenderDrawData() call to point backend_specific ImGui_ImplXXXX_RenderState* structure. + void* Renderer_RenderState; + + //------------------------------------------------------------------ + // Input - Interface with Platform & Renderer backends for Multi-Viewport support //------------------------------------------------------------------ - // (Optional) Platform functions (e.g. Win32, GLFW, SDL2) // For reference, the second column shows which function are generally calling the Platform Functions: // N = ImGui::NewFrame() ~ beginning of the dear imgui frame: read info from platform/OS windows (latest size/position) // F = ImGui::Begin(), ImGui::EndFrame() ~ during the dear imgui frame @@ -3870,37 +4128,39 @@ typedef struct ImGuiPlatformIO_t // R = ImGui::RenderPlatformWindowsDefault() ~ render // D = ImGui::DestroyPlatformWindows() ~ shutdown // The general idea is that NewFrame() we will read the current Platform/OS state, and UpdatePlatformWindows() will write to it. - // - // The functions are designed so we can mix and match 2 imgui_impl_xxxx files, one for the Platform (~window/input handling), one for Renderer. - // Custom engine backends will often provide both Platform and Renderer interfaces and so may not need to use all functions. - // Platform functions are typically called before their Renderer counterpart, apart from Destroy which are called the other way. - // Platform function --------------------------------------------------- Called by ----- - void (*Platform_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create a new platform window for the given viewport - void (*Platform_DestroyWindow)(ImGuiViewport* vp); // N . U . D // - void (*Platform_ShowWindow)(ImGuiViewport* vp); // . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on them before showing the window - void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); // . . U . . // Set platform window position (given the upper-left corner of client area) - ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp); // N . . . . // - void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.) - ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp); // N . . . . // Get platform window client area size - void (*Platform_SetWindowFocus)(ImGuiViewport* vp); // N . . . . // Move window to front and set input focus - bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); // . . U . . // - bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); // N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set size and contents will be culled more easily - void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); // . . U . . // Set platform window title (given an UTF-8 string) - void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); // . . U . . // (Optional) Setup global transparency (not per-pixel transparency) - void (*Platform_UpdateWindow)(ImGuiViewport* vp); // . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend from doing general book-keeping every frame. - void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Main rendering (platform side! This is often unused, or just setting a "current" context for OpenGL bindings). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). - void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). - float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); // N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96 DPI. - void (*Platform_OnChangedViewport)(ImGuiViewport* vp); // . F . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Called during Begin() every time the viewport we are outputting into changes, so backend has a chance to swap fonts to adjust style. + // The handlers are designed so we can mix and match two imgui_impl_xxxx files, one Platform backend and one Renderer backend. + // Custom engine backends will often provide both Platform and Renderer interfaces together and so may not need to use all functions. + // Platform functions are typically called _before_ their Renderer counterpart, apart from Destroy which are called the other way. + + // Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by ----- + void (*Platform_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create a new platform window for the given viewport + void (*Platform_DestroyWindow)(ImGuiViewport* vp); // N . U . D // + void (*Platform_ShowWindow)(ImGuiViewport* vp); // . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on them before showing the window + void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos); // . . U . . // Set platform window position (given the upper-left corner of client area) + ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp); // N . . . . // (Use ImGuiPlatformIO_SetPlatform_GetWindowPos() to set this from C, otherwise you will likely encounter stack corruption) + void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.) + ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp); // N . . . . // Get platform window client area size (Use ImGuiPlatformIO_SetPlatform_GetWindowSize() to set this from C, otherwise you will likely encounter stack corruption) + ImVec2 (*Platform_GetWindowFramebufferScale)(ImGuiViewport* vp); // N . . . . // Return viewport density. Always 1,1 on Windows, often 2,2 on Retina display on macOS/iOS. MUST BE INTEGER VALUES. (Use ImGuiPlatformIO_SetPlatform_GetWindowFramebufferScale() to set this from C, otherwise you will likely encounter stack corruption) + void (*Platform_SetWindowFocus)(ImGuiViewport* vp); // N . . . . // Move window to front and set input focus + bool (*Platform_GetWindowFocus)(ImGuiViewport* vp); // . . U . . // + bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp); // N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set size and contents will be culled more easily + void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str); // . . U . . // Set platform window title (given an UTF-8 string) + void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha); // . . U . . // (Optional) Setup global transparency (not per-pixel transparency) + void (*Platform_UpdateWindow)(ImGuiViewport* vp); // . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend from doing general book-keeping every frame. + void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Main rendering (platform side! This is often unused, or just setting a "current" context for OpenGL bindings). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp); // N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96 DPI. + void (*Platform_OnChangedViewport)(ImGuiViewport* vp); // . F . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Called during Begin() every time the viewport we are outputting into changes, so backend has a chance to swap fonts to adjust style. + ImVec4 (*Platform_GetWindowWorkAreaInsets)(ImGuiViewport* vp); // N . . . . // (Optional) [BETA] Get initial work area inset for the viewport (won't be covered by main menu bar, dockspace over viewport etc.). Default to (0,0),(0,0). 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land. (Use ImGuiPlatformIO_SetPlatform_GetWindowWorkAreaInsets() to set this from C, otherwise you will likely encounter stack corruption) int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface); // (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie them both). - // (Optional) Renderer functions (e.g. DirectX, OpenGL, Vulkan) - void (*Renderer_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow) - void (*Renderer_DestroyWindow)(ImGuiViewport* vp); // N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow) - void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize) - void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). - void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + // Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by ----- + void (*Renderer_CreateWindow)(ImGuiViewport* vp); // . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow) + void (*Renderer_DestroyWindow)(ImGuiViewport* vp); // N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow) + void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size); // . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize) + void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). + void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg); // . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to RenderPlatformWindowsDefault(). // (Optional) Monitor list // - Updated by: app/backend. Update every frame to dynamically support changing monitor or DPI configuration. @@ -3908,31 +4168,37 @@ typedef struct ImGuiPlatformIO_t ImVector_ImGuiPlatformMonitor Monitors; //------------------------------------------------------------------ - // Output - List of viewports to render into platform windows + // Output //------------------------------------------------------------------ + // Textures list (the list is updated by calling ImGui::EndFrame or ImGui::Render) + // The ImGui_ImplXXXX_RenderDrawData() function of each backend generally access this via ImDrawData::Textures which points to this. The array is available here mostly because backends will want to destroy textures on shutdown. + ImVector_ImTextureDataPtr Textures; // List of textures used by Dear ImGui (most often 1) + contents of external texture list is automatically appended into this. + // Viewports list (the list is updated by calling ImGui::EndFrame or ImGui::Render) // (in the future we will attempt to organize this feature to remove the need for a "main viewport") - ImVector_ImGuiViewportPtr Viewports; // Main viewports, followed by all secondary viewports. -} ImGuiPlatformIO; + ImVector_ImGuiViewportPtr Viewports; // Main viewports, followed by all secondary viewports. +}; // (Optional) This is required when enabling multi-viewport. Represent the bounds of each connected monitor/display and their DPI. // We use this information for multiple DPI support + clamping the position of popups and tooltips so they don't straddle multiple monitors. -typedef struct ImGuiPlatformMonitor_t +struct ImGuiPlatformMonitor_t { ImVec2 MainPos, MainSize; // Coordinates of the area displayed on this monitor (Min = upper left, Max = bottom right) ImVec2 WorkPos, WorkSize; // Coordinates without task bars / side bars / menu bars. Used to avoid positioning popups/tooltips inside this region. If you don't have this info, please copy the value for MainPos/MainSize. float DpiScale; // 1.0f = 96 DPI void* PlatformHandle; // Backend dependant data (e.g. HMONITOR, GLFWmonitor*, SDL Display Index, NSScreen*) -} ImGuiPlatformMonitor; +}; -// (Optional) Support for IME (Input Method Editor) via the io.PlatformSetImeDataFn() function. -typedef struct ImGuiPlatformImeData_t +// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function. Handler is called during EndFrame(). +struct ImGuiPlatformImeData_t { - bool WantVisible; // A widget wants the IME to be visible - ImVec2 InputPos; // Position of the input cursor - float InputLineHeight; // Line height -} ImGuiPlatformImeData; + bool WantVisible; // A widget wants the IME to be visible. + bool WantTextInput; // A widget wants text input, not necessarily IME to be visible. This is automatically set to the upcoming value of io.WantTextInput. + ImVec2 InputPos; // Position of input cursor (for IME). + float InputLineHeight; // Line height (for IME). + ImGuiID ViewportId; // ID of platform window/viewport. +}; //----------------------------------------------------------------------------- // [SECTION] Obsolete functions and types @@ -3941,40 +4207,45 @@ typedef struct ImGuiPlatformImeData_t //----------------------------------------------------------------------------- #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS +// OBSOLETED in 1.92.0 (from June 2025) +CIMGUI_API void ImGui_PushFont(ImFont* font); +CIMGUI_API void ImGui_SetWindowFontScale(float scale); // Set font scale factor for current window. Prefer using PushFont(NULL, style.FontSizeBase * factor) or use style.FontScaleMain to scale all windows. +// OBSOLETED in 1.91.9 (from February 2025) +CIMGUI_API void ImGui_ImageImVec4(ImTextureRef tex_ref, ImVec2 image_size, ImVec2 uv0, ImVec2 uv1, ImVec4 tint_col, ImVec4 border_col); // <-- 'border_col' was removed in favor of ImGuiCol_ImageBorder. If you use 'tint_col', use ImageWithBg() instead. // OBSOLETED in 1.91.0 (from July 2024) -CIMGUI_API void ImGui_PushButtonRepeat(bool repeat); -CIMGUI_API void ImGui_PopButtonRepeat(void); -CIMGUI_API void ImGui_PushTabStop(bool tab_stop); -CIMGUI_API void ImGui_PopTabStop(void); -CIMGUI_API ImVec2 ImGui_GetContentRegionMax(void); // Content boundaries max (e.g. window boundaries including scrolling, or current column boundaries). You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()! -CIMGUI_API ImVec2 ImGui_GetWindowContentRegionMin(void); // Content boundaries min for the window (roughly (0,0)-Scroll), in window-local coordinates. You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()! -CIMGUI_API ImVec2 ImGui_GetWindowContentRegionMax(void); // Content boundaries max for the window (roughly (0,0)+Size-Scroll), in window-local coordinates. You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()! +CIMGUI_API void ImGui_PushButtonRepeat(bool repeat); +CIMGUI_API void ImGui_PopButtonRepeat(void); +CIMGUI_API void ImGui_PushTabStop(bool tab_stop); +CIMGUI_API void ImGui_PopTabStop(void); +CIMGUI_API ImVec2 ImGui_GetContentRegionMax(void); // Content boundaries max (e.g. window boundaries including scrolling, or current column boundaries). You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()! +CIMGUI_API ImVec2 ImGui_GetWindowContentRegionMin(void); // Content boundaries min for the window (roughly (0,0)-Scroll), in window-local coordinates. You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()! +CIMGUI_API ImVec2 ImGui_GetWindowContentRegionMax(void); // Content boundaries max for the window (roughly (0,0)+Size-Scroll), in window-local coordinates. You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()! // OBSOLETED in 1.90.0 (from September 2023) -CIMGUI_API bool ImGui_BeginChildFrame(ImGuiID id, ImVec2 size); // Implied window_flags = 0 -CIMGUI_API bool ImGui_BeginChildFrameEx(ImGuiID id, ImVec2 size, ImGuiWindowFlags window_flags /* = 0 */); -CIMGUI_API void ImGui_EndChildFrame(void); -//static inline bool BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags window_flags){ return BeginChild(str_id, size_arg, border ? ImGuiChildFlags_Border : ImGuiChildFlags_None, window_flags); } // Unnecessary as true == ImGuiChildFlags_Border -//static inline bool BeginChild(ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags window_flags) { return BeginChild(id, size_arg, border ? ImGuiChildFlags_Border : ImGuiChildFlags_None, window_flags); } // Unnecessary as true == ImGuiChildFlags_Border -CIMGUI_API void ImGui_ShowStackToolWindow(bool* p_open /* = NULL */); -CIMGUI_API bool ImGui_ComboObsolete(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count); // Implied popup_max_height_in_items = -1 -CIMGUI_API bool ImGui_ComboObsoleteEx(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int popup_max_height_in_items /* = -1 */); -CIMGUI_API bool ImGui_ListBoxObsolete(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count); // Implied height_in_items = -1 -CIMGUI_API bool ImGui_ListBoxObsoleteEx(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int height_in_items /* = -1 */); +CIMGUI_API bool ImGui_BeginChildFrame(ImGuiID id, ImVec2 size); // Implied window_flags = 0 +CIMGUI_API bool ImGui_BeginChildFrameEx(ImGuiID id, ImVec2 size, ImGuiWindowFlags window_flags /* = 0 */); +CIMGUI_API void ImGui_EndChildFrame(void); +//inline bool BeginChild(const char* str_id, const ImVec2& size_arg, bool borders, ImGuiWindowFlags window_flags){ return BeginChild(str_id, size_arg, borders ? ImGuiChildFlags_Borders : ImGuiChildFlags_None, window_flags); } // Unnecessary as true == ImGuiChildFlags_Borders +//inline bool BeginChild(ImGuiID id, const ImVec2& size_arg, bool borders, ImGuiWindowFlags window_flags) { return BeginChild(id, size_arg, borders ? ImGuiChildFlags_Borders : ImGuiChildFlags_None, window_flags); } // Unnecessary as true == ImGuiChildFlags_Borders +CIMGUI_API void ImGui_ShowStackToolWindow(bool* p_open /* = NULL */); +CIMGUI_API bool ImGui_ComboObsolete(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count); // Implied popup_max_height_in_items = -1 +CIMGUI_API bool ImGui_ComboObsoleteEx(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int popup_max_height_in_items /* = -1 */); +CIMGUI_API bool ImGui_ListBoxObsolete(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count); // Implied height_in_items = -1 +CIMGUI_API bool ImGui_ListBoxObsoleteEx(const char* label, int* current_item, bool (*old_callback)(void* user_data, int idx, const char** out_text), void* user_data, int items_count, int height_in_items /* = -1 */); // OBSOLETED in 1.89.7 (from June 2023) -CIMGUI_API void ImGui_SetItemAllowOverlap(void); // Use SetNextItemAllowOverlap() before item. -// OBSOLETED in 1.89.4 (from March 2023) -CIMGUI_API void ImGui_PushAllowKeyboardFocus(bool tab_stop); -CIMGUI_API void ImGui_PopAllowKeyboardFocus(void); -// OBSOLETED in 1.89 (from August 2022) -CIMGUI_API bool ImGui_ImageButtonImTextureID(ImTextureID user_texture_id, ImVec2 size, ImVec2 uv0 /* = ImVec2(0, 0) */, ImVec2 uv1 /* = ImVec2(1, 1) */, int frame_padding /* = -1 */, ImVec4 bg_col /* = ImVec4(0, 0, 0, 0) */, ImVec4 tint_col /* = ImVec4(1, 1, 1, 1) */); // Use new ImageButton() signature (explicit item id, regular FramePadding) -// OBSOLETED in 1.87 (from February 2022 but more formally obsoleted April 2024) -CIMGUI_API ImGuiKey ImGui_GetKeyIndex(ImGuiKey key); // Map ImGuiKey_* values into legacy native key index. == io.KeyMap[key]. When using a 1.87+ backend using io.AddKeyEvent(), calling GetKeyIndex() with ANY ImGuiKey_XXXX values will return the same value! -//static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END); return key; } +CIMGUI_API void ImGui_SetItemAllowOverlap(void); // Use SetNextItemAllowOverlap() before item. // Some of the older obsolete names along with their replacement (commented out so they are not reported in IDE) +//-- OBSOLETED in 1.89.4 (from March 2023) +//static inline void PushAllowKeyboardFocus(bool tab_stop) { PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop); } +//static inline void PopAllowKeyboardFocus() { PopItemFlag(); } +//-- OBSOLETED in 1.89 (from August 2022) +//IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 = ImVec2(0, 0), const ImVec2& uv1 = ImVec2(1, 1), int frame_padding = -1, const ImVec4& bg_col = ImVec4(0, 0, 0, 0), const ImVec4& tint_col = ImVec4(1, 1, 1, 1)); // --> Use new ImageButton() signature (explicit item id, regular FramePadding). Refer to code in 1.91 if you want to grab a copy of this version. //-- OBSOLETED in 1.88 (from May 2022) -//static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } // Renamed as name was misleading + removed default value. -//static inline void CaptureMouseFromApp(bool want_capture_mouse = true) { SetNextFrameWantCaptureMouse(want_capture_mouse); } // Renamed as name was misleading + removed default value. +//static inline void CaptureKeyboardFromApp(bool want_capture_keyboard = true) { SetNextFrameWantCaptureKeyboard(want_capture_keyboard); } // Renamed as name was misleading + removed default value. +//static inline void CaptureMouseFromApp(bool want_capture_mouse = true) { SetNextFrameWantCaptureMouse(want_capture_mouse); } // Renamed as name was misleading + removed default value. +//-- OBSOLETED in 1.87 (from February 2022, more formally obsoleted April 2024) +//IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END); const ImGuiKeyData* key_data = GetKeyData(key); return (ImGuiKey)(key_data - g.IO.KeysData); } // Map ImGuiKey_* values into legacy native key index. == io.KeyMap[key]. When using a 1.87+ backend using io.AddKeyEvent(), calling GetKeyIndex() with ANY ImGuiKey_XXXX values will return the same value! +//static inline ImGuiKey GetKeyIndex(ImGuiKey key) { IM_ASSERT(key >= ImGuiKey_NamedKey_BEGIN && key < ImGuiKey_NamedKey_END); return key; } //-- OBSOLETED in 1.86 (from November 2021) //IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // Code removed, see 1.90 for last version of the code. Calculate range of visible items for large list of evenly sized items. Prefer using ImGuiListClipper. //-- OBSOLETED in 1.85 (from August 2021) @@ -4028,6 +4299,25 @@ CIMGUI_API ImGuiKey ImGui_GetKeyIndex(ImGuiKey key); //static inline float GetWindowFontSize() { return GetFontSize(); } // OBSOLETED in 1.48 //static inline void SetScrollPosHere() { SetScrollHere(); } // OBSOLETED in 1.42 +//-- OBSOLETED in 1.92.x: ImFontAtlasCustomRect becomes ImTextureRect +// - ImFontAtlasCustomRect::X,Y --> ImTextureRect::x,y +// - ImFontAtlasCustomRect::Width,Height --> ImTextureRect::w,h +// - ImFontAtlasCustomRect::GlyphColored --> if you need to write to this, instead you can write to 'font->Glyphs.back()->Colored' after calling AddCustomRectFontGlyph() +// We could make ImTextureRect an union to use old names, but 1) this would be confusing 2) the fix is easy 3) ImFontAtlasCustomRect was always a rather esoteric api. +typedef ImFontAtlasRect ImFontAtlasCustomRect; +/*struct ImFontAtlasCustomRect +{ + unsigned short X, Y; // Output // Packed position in Atlas + unsigned short Width, Height; // Input // [Internal] Desired rectangle dimension + unsigned int GlyphID:31; // Input // [Internal] For custom font glyphs only (ID < 0x110000) + unsigned int GlyphColored:1; // Input // [Internal] For custom font glyphs only: glyph is colored, removed tinting. + float GlyphAdvanceX; // Input // [Internal] For custom font glyphs only: glyph xadvance + ImVec2 GlyphOffset; // Input // [Internal] For custom font glyphs only: glyph display offset + ImFont* Font; // Input // [Internal] For custom font glyphs only: target font + ImFontAtlasCustomRect() { X = Y = 0xFFFF; Width = Height = 0; GlyphID = 0; GlyphColored = 0; GlyphAdvanceX = 0.0f; GlyphOffset = ImVec2(0, 0); Font = NULL; } + bool IsPacked() const { return X != 0xFFFF; } +};*/ + //-- OBSOLETED in 1.82 (from Mars 2021): flags for AddRect(), AddRectFilled(), AddImageRounded(), PathRect() //typedef ImDrawFlags ImDrawCornerFlags; //enum ImDrawCornerFlags_ @@ -4054,12 +4344,9 @@ CIMGUI_API ImGuiKey ImGui_GetKeyIndex(ImGuiKey key); #define IM_OFFSETOF(_TYPE,_MEMBER) offsetof(_TYPE, _MEMBER) // OBSOLETED IN 1.90 (now using C++11 standard version) #endif// #ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS // RENAMED IMGUI_DISABLE_METRICS_WINDOW > IMGUI_DISABLE_DEBUG_TOOLS in 1.88 (from June 2022) -#if defined(IMGUI_DISABLE_METRICS_WINDOW)&&!defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS)&&!defined(IMGUI_DISABLE_DEBUG_TOOLS) -#define IMGUI_DISABLE_DEBUG_TOOLS -#endif // #if defined(IMGUI_DISABLE_METRICS_WINDOW)&&!defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS)&&!defined(IMGUI_DISABLE_DEBUG_TOOLS) -#if defined(IMGUI_DISABLE_METRICS_WINDOW)&& defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) +#ifdef IMGUI_DISABLE_METRICS_WINDOW #error IMGUI_DISABLE_METRICS_WINDOW was renamed to IMGUI_DISABLE_DEBUG_TOOLS, please use new name. -#endif // #if defined(IMGUI_DISABLE_METRICS_WINDOW)&& defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS) +#endif // #ifdef IMGUI_DISABLE_METRICS_WINDOW //----------------------------------------------------------------------------- #if defined(__clang__) diff --git a/src/cached/cimgui.json b/src/cached/dcimgui.json similarity index 88% rename from src/cached/cimgui.json rename to src/cached/dcimgui.json index f25dab1..7c1edef 100644 --- a/src/cached/cimgui.json +++ b/src/cached/dcimgui.json @@ -2,16 +2,7 @@ "defines": [ { "name": "IMGUI_VERSION", - "content": "\"1.91.0\"", - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 30 - } - }, - { - "name": "IMGUI_VERSION_NUM", - "content": "19100", + "content": "\"1.92.2b\"", "is_internal": false, "source_location": { "filename": "imgui.h", @@ -19,7 +10,8 @@ } }, { - "name": "IMGUI_HAS_TABLE", + "name": "IMGUI_VERSION_NUM", + "content": "19222", "is_internal": false, "source_location": { "filename": "imgui.h", @@ -27,9 +19,9 @@ } }, { - "name": "IMGUI_HAS_VIEWPORT", + "name": "IMGUI_HAS_TABLE", "comments": { - "attached": "// Viewport WIP branch" + "attached": "// Added BeginTable() - from IMGUI_VERSION_NUM >= 18000" }, "is_internal": false, "source_location": { @@ -38,9 +30,9 @@ } }, { - "name": "IMGUI_HAS_DOCK", + "name": "IMGUI_HAS_TEXTURES", "comments": { - "attached": "// Docking WIP branch" + "attached": "// Added ImGuiBackendFlags_RendererHasTextures - from IMGUI_VERSION_NUM >= 19198" }, "is_internal": false, "source_location": { @@ -48,6 +40,44 @@ "line": 34 } }, + { + "name": "IMGUI_HAS_VIEWPORT", + "comments": { + "attached": "// In 'docking' WIP branch." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 35 + } + }, + { + "name": "IMGUI_HAS_DOCK", + "comments": { + "attached": "// In 'docking' WIP branch." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 36 + } + }, + { + "name": "IMGUI_DEAR_BINDINGS_HAS_GETWINDOWFRAMEBUFFERSCALE", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1 + } + }, + { + "name": "IMGUI_DEAR_BINDINGS_HAS_GETWINDOWWORKAREAINSETS", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1 + } + }, { "name": "IMGUI_API", "conditionals": [ @@ -59,7 +89,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 83 + "line": 87 } }, { @@ -74,7 +104,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 86 + "line": 90 } }, { @@ -89,7 +119,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 116 + "line": 120 } }, { @@ -104,7 +134,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 117 + "line": 121 } }, { @@ -118,7 +148,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 119 + "line": 123 } }, { @@ -132,7 +162,22 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 120 + "line": 124 + } + }, + { + "name": "ImTextureID_Invalid", + "content": "(ImTextureID)0", + "conditionals": [ + { + "condition": "ifndef", + "expression": "ImTextureID_Invalid" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 342 } }, { @@ -144,7 +189,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1426 + "line": 1538 } }, { @@ -156,21 +201,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1427 - } - }, - { - "name": "IMGUI_DISABLE_OBSOLETE_KEYIO", - "conditionals": [ - { - "condition": "if", - "expression": "defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS)&&!defined(IMGUI_DISABLE_OBSOLETE_KEYIO)" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1467 + "line": 1539 } }, { @@ -182,7 +213,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2607 + "line": 2785 } }, { @@ -200,7 +231,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2609 + "line": 2787 } }, { @@ -218,7 +249,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2611 + "line": 2789 } }, { @@ -232,7 +263,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2786 + "line": 2966 } }, { @@ -251,7 +282,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2815 + "line": 3002 } }, { @@ -270,7 +301,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2816 + "line": 3003 } }, { @@ -289,7 +320,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2817 + "line": 3004 } }, { @@ -308,7 +339,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2818 + "line": 3005 } }, { @@ -327,7 +358,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2819 + "line": 3006 } }, { @@ -346,7 +377,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2821 + "line": 3008 } }, { @@ -363,95 +394,90 @@ } ], "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2822 - } - }, - { - "name": "IM_COL32_B_SHIFT", - "content": "16", - "conditionals": [ - { - "condition": "ifndef", - "expression": "IM_COL32_R_SHIFT" - }, - { - "condition": "ifndef", - "expression": "IMGUI_USE_BGRA_PACKED_COLOR" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2823 - } - }, - { - "name": "IM_COL32_A_SHIFT", - "content": "24", - "conditionals": [ - { - "condition": "ifndef", - "expression": "IM_COL32_R_SHIFT" - }, - { - "condition": "ifndef", - "expression": "IMGUI_USE_BGRA_PACKED_COLOR" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2824 - } - }, - { - "name": "IM_COL32_A_MASK", - "content": "0xFF000000", - "conditionals": [ - { - "condition": "ifndef", - "expression": "IM_COL32_R_SHIFT" - }, - { - "condition": "ifndef", - "expression": "IMGUI_USE_BGRA_PACKED_COLOR" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2825 - } - }, - { - "name": "IM_DRAWLIST_TEX_LINES_WIDTH_MAX", - "content": "63", - "conditionals": [ - { - "condition": "ifndef", - "expression": "IM_DRAWLIST_TEX_LINES_WIDTH_MAX" - } - ], - "is_internal": false, "source_location": { "filename": "imgui.h", "line": 3009 } }, { - "name": "IMGUI_DISABLE_DEBUG_TOOLS", + "name": "IM_COL32_B_SHIFT", + "content": "16", "conditionals": [ { - "condition": "if", - "expression": "defined(IMGUI_DISABLE_METRICS_WINDOW)&&!defined(IMGUI_DISABLE_OBSOLETE_FUNCTIONS)&&!defined(IMGUI_DISABLE_DEBUG_TOOLS)" + "condition": "ifndef", + "expression": "IM_COL32_R_SHIFT" + }, + { + "condition": "ifndef", + "expression": "IMGUI_USE_BGRA_PACKED_COLOR" } ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3877 + "line": 3010 + } + }, + { + "name": "IM_COL32_A_SHIFT", + "content": "24", + "conditionals": [ + { + "condition": "ifndef", + "expression": "IM_COL32_R_SHIFT" + }, + { + "condition": "ifndef", + "expression": "IMGUI_USE_BGRA_PACKED_COLOR" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3011 + } + }, + { + "name": "IM_COL32_A_MASK", + "content": "0xFF000000", + "conditionals": [ + { + "condition": "ifndef", + "expression": "IM_COL32_R_SHIFT" + }, + { + "condition": "ifndef", + "expression": "IMGUI_USE_BGRA_PACKED_COLOR" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3012 + } + }, + { + "name": "IM_DRAWLIST_TEX_LINES_WIDTH_MAX", + "content": "32", + "conditionals": [ + { + "condition": "ifndef", + "expression": "IM_DRAWLIST_TEX_LINES_WIDTH_MAX" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3196 + } + }, + { + "name": "ImFontAtlasRectId_Invalid", + "content": "-1", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3673 } } ], @@ -469,7 +495,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1096 + "line": 1183 } }, { @@ -483,7 +509,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1097 + "line": 1184 } }, { @@ -497,7 +523,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1098 + "line": 1185 } }, { @@ -511,7 +537,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1099 + "line": 1186 } }, { @@ -525,7 +551,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1100 + "line": 1187 } }, { @@ -539,7 +565,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1101 + "line": 1188 } }, { @@ -553,7 +579,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1102 + "line": 1189 } }, { @@ -567,7 +593,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1103 + "line": 1190 } }, { @@ -581,7 +607,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1104 + "line": 1191 } }, { @@ -595,7 +621,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1105 + "line": 1192 } }, { @@ -609,7 +635,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1106 + "line": 1193 } }, { @@ -623,7 +649,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1107 + "line": 1194 } }, { @@ -637,7 +663,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1108 + "line": 1195 } }, { @@ -651,7 +677,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1109 + "line": 1196 } }, { @@ -665,7 +691,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1110 + "line": 1197 } }, { @@ -679,7 +705,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1111 + "line": 1198 } }, { @@ -693,7 +719,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1112 + "line": 1199 } }, { @@ -702,12 +728,12 @@ "value": 65536, "is_count": false, "comments": { - "attached": "// No gamepad/keyboard navigation within the window" + "attached": "// No keyboard/gamepad navigation within the window" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1113 + "line": 1200 } }, { @@ -716,12 +742,12 @@ "value": 131072, "is_count": false, "comments": { - "attached": "// No focusing toward this window with gamepad/keyboard navigation (e.g. skipped by CTRL+TAB)" + "attached": "// No focusing toward this window with keyboard/gamepad navigation (e.g. skipped by CTRL+TAB)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1114 + "line": 1201 } }, { @@ -735,7 +761,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1115 + "line": 1202 } }, { @@ -749,7 +775,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1116 + "line": 1203 } }, { @@ -760,7 +786,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1117 + "line": 1204 } }, { @@ -771,7 +797,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1118 + "line": 1205 } }, { @@ -782,7 +808,24 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1119 + "line": 1206 + } + }, + { + "name": "ImGuiWindowFlags_DockNodeHost", + "value_expression": "1<<23", + "value": 8388608, + "is_count": false, + "comments": { + "preceding": [ + "// [Internal]" + ], + "attached": "// Don't use! For internal use by Begin()/NewFrame()" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 1209 } }, { @@ -791,15 +834,12 @@ "value": 16777216, "is_count": false, "comments": { - "preceding": [ - "// [Internal]" - ], "attached": "// Don't use! For internal use by BeginChild()" }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1122 + "line": 1210 } }, { @@ -813,7 +853,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1123 + "line": 1211 } }, { @@ -827,7 +867,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1124 + "line": 1212 } }, { @@ -841,7 +881,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1125 + "line": 1213 } }, { @@ -855,21 +895,27 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1126 + "line": 1214 } }, { - "name": "ImGuiWindowFlags_DockNodeHost", + "name": "ImGuiWindowFlags_NavFlattened", "value_expression": "1<<29", "value": 536870912, "is_count": false, "comments": { - "attached": "// Don't use! For internal use by Begin()/NewFrame()" + "attached": "// Obsoleted in 1.90.9: Use ImGuiChildFlags_NavFlattened in BeginChild() call." }, - "is_internal": true, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1127 + "line": 1218 } }, { @@ -889,27 +935,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1131 - } - }, - { - "name": "ImGuiWindowFlags_NavFlattened", - "value_expression": "1<<31", - "value": 2147483648, - "is_count": false, - "comments": { - "attached": "// Obsoleted in 1.90.9: Use ImGuiChildFlags_NavFlattened in BeginChild() call." - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1132 + "line": 1219 } } ], @@ -922,7 +948,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1094 + "line": 1181 } }, { @@ -938,11 +964,11 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1147 + "line": 1234 } }, { - "name": "ImGuiChildFlags_Border", + "name": "ImGuiChildFlags_Borders", "value_expression": "1<<0", "value": 1, "is_count": false, @@ -952,7 +978,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1148 + "line": 1235 } }, { @@ -966,7 +992,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1149 + "line": 1236 } }, { @@ -980,7 +1006,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1150 + "line": 1237 } }, { @@ -994,7 +1020,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1151 + "line": 1238 } }, { @@ -1008,7 +1034,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1152 + "line": 1239 } }, { @@ -1022,7 +1048,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1153 + "line": 1240 } }, { @@ -1036,7 +1062,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1154 + "line": 1241 } }, { @@ -1050,7 +1076,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1155 + "line": 1242 } }, { @@ -1059,19 +1085,39 @@ "value": 256, "is_count": false, "comments": { - "attached": "// [BETA] Share focus scope, allow gamepad/keyboard navigation to cross over parent border to this child or between sibling child windows." + "attached": "// [BETA] Share focus scope, allow keyboard/gamepad navigation to cross over parent border to this child or between sibling child windows." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1156 + "line": 1243 + } + }, + { + "name": "ImGuiChildFlags_Border", + "value_expression": "ImGuiChildFlags_Borders", + "value": 1, + "is_count": false, + "comments": { + "attached": "// Renamed in 1.91.1 (August 2024) for consistency." + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1247 } } ], "comments": { "preceding": [ "// Flags for ImGui::BeginChild()", - "// (Legacy: bit 0 must always correspond to ImGuiChildFlags_Border to be backward compatible with old API using 'bool border = false'.", + "// (Legacy: bit 0 must always correspond to ImGuiChildFlags_Borders to be backward compatible with old API using 'bool border = false'.", "// About using AutoResizeX/AutoResizeY flags:", "// - May be combined with SetNextWindowSizeConstraints() to set a min/max size for each axis (see \"Demo->Child->Auto-resize with Constraints\").", "// - Size measurement for a given axis is only performed when the child window is within visible boundaries, or is just appearing.", @@ -1084,7 +1130,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1145 + "line": 1232 } }, { @@ -1103,7 +1149,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1163 + "line": 1255 } }, { @@ -1117,7 +1163,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1164 + "line": 1256 } }, { @@ -1131,7 +1177,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1165 + "line": 1257 } }, { @@ -1145,7 +1191,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1166 + "line": 1258 } }, { @@ -1159,7 +1205,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1167 + "line": 1259 } }, { @@ -1173,7 +1219,21 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1168 + "line": 1260 + } + }, + { + "name": "ImGuiItemFlags_AllowDuplicateId", + "value_expression": "1<<5", + "value": 32, + "is_count": false, + "comments": { + "attached": "// false // Allow submitting an item with the same identifier as an item already submitted this frame without triggering a warning tooltip if io.ConfigDebugHighlightIdConflicts is set." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1261 } } ], @@ -1186,7 +1246,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1161 + "line": 1253 } }, { @@ -1207,7 +1267,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1176 + "line": 1269 } }, { @@ -1221,7 +1281,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1177 + "line": 1270 } }, { @@ -1235,7 +1295,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1178 + "line": 1271 } }, { @@ -1249,7 +1309,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1179 + "line": 1272 } }, { @@ -1263,7 +1323,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1180 + "line": 1273 } }, { @@ -1277,7 +1337,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1181 + "line": 1274 } }, { @@ -1294,7 +1354,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1184 + "line": 1277 } }, { @@ -1303,12 +1363,12 @@ "value": 64, "is_count": false, "comments": { - "attached": "// Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider looking at the IsItemDeactivatedAfterEdit() function." + "attached": "// Return 'true' when Enter is pressed (as opposed to every time the value was modified). Consider using IsItemDeactivatedAfterEdit() instead!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1185 + "line": 1278 } }, { @@ -1322,7 +1382,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1186 + "line": 1279 } }, { @@ -1336,7 +1396,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1187 + "line": 1280 } }, { @@ -1353,7 +1413,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1190 + "line": 1283 } }, { @@ -1367,7 +1427,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1191 + "line": 1284 } }, { @@ -1381,7 +1441,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1192 + "line": 1285 } }, { @@ -1395,7 +1455,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1193 + "line": 1286 } }, { @@ -1409,7 +1469,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1194 + "line": 1287 } }, { @@ -1423,7 +1483,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1195 + "line": 1288 } }, { @@ -1437,7 +1497,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1196 + "line": 1289 } }, { @@ -1451,13 +1511,30 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1197 + "line": 1290 + } + }, + { + "name": "ImGuiInputTextFlags_ElideLeft", + "value_expression": "1<<17", + "value": 131072, + "is_count": false, + "comments": { + "preceding": [ + "// Elide display / Alignment" + ], + "attached": "// When text doesn't fit, elide left side to ensure right side stays visible. Useful for path/filenames. Single-line only!" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1293 } }, { "name": "ImGuiInputTextFlags_CallbackCompletion", - "value_expression": "1<<17", - "value": 131072, + "value_expression": "1<<18", + "value": 262144, "is_count": false, "comments": { "preceding": [ @@ -1468,13 +1545,13 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1200 + "line": 1296 } }, { "name": "ImGuiInputTextFlags_CallbackHistory", - "value_expression": "1<<18", - "value": 262144, + "value_expression": "1<<19", + "value": 524288, "is_count": false, "comments": { "attached": "// Callback on pressing Up/Down arrows (for history handling)" @@ -1482,13 +1559,13 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1201 + "line": 1297 } }, { "name": "ImGuiInputTextFlags_CallbackAlways", - "value_expression": "1<<19", - "value": 524288, + "value_expression": "1<<20", + "value": 1048576, "is_count": false, "comments": { "attached": "// Callback on each iteration. User code may query cursor position, modify text buffer." @@ -1496,13 +1573,13 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1202 + "line": 1298 } }, { "name": "ImGuiInputTextFlags_CallbackCharFilter", - "value_expression": "1<<20", - "value": 1048576, + "value_expression": "1<<21", + "value": 2097152, "is_count": false, "comments": { "attached": "// Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard." @@ -1510,13 +1587,13 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1203 + "line": 1299 } }, { "name": "ImGuiInputTextFlags_CallbackResize", - "value_expression": "1<<21", - "value": 2097152, + "value_expression": "1<<22", + "value": 4194304, "is_count": false, "comments": { "attached": "// Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow. Notify when the string wants to be resized (for string types which hold a cache of their Size). You will be provided a new BufSize in the callback and NEED to honor it. (see misc/cpp/imgui_stdlib.h for an example of using this)" @@ -1524,21 +1601,21 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1204 + "line": 1300 } }, { "name": "ImGuiInputTextFlags_CallbackEdit", - "value_expression": "1<<22", - "value": 4194304, + "value_expression": "1<<23", + "value": 8388608, "is_count": false, "comments": { - "attached": "// Callback on any edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active)" + "attached": "// Callback on any edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1205 + "line": 1301 } } ], @@ -1551,7 +1628,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1173 + "line": 1266 } }, { @@ -1567,7 +1644,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1214 + "line": 1310 } }, { @@ -1581,7 +1658,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1215 + "line": 1311 } }, { @@ -1595,7 +1672,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1216 + "line": 1312 } }, { @@ -1609,7 +1686,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1217 + "line": 1313 } }, { @@ -1623,7 +1700,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1218 + "line": 1314 } }, { @@ -1637,7 +1714,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1219 + "line": 1315 } }, { @@ -1651,7 +1728,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1220 + "line": 1316 } }, { @@ -1660,12 +1737,12 @@ "value": 64, "is_count": false, "comments": { - "attached": "// Need double-click to open node" + "attached": "// Open on double-click instead of simple click (default for multi-select unless any _OpenOnXXX behavior is set explicitly). Both behaviors may be combined." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1221 + "line": 1317 } }, { @@ -1674,12 +1751,12 @@ "value": 128, "is_count": false, "comments": { - "attached": "// Only open when clicking on the arrow part. If ImGuiTreeNodeFlags_OpenOnDoubleClick is also set, single-click arrow or double-click all box to open." + "attached": "// Open when clicking on the arrow part (default for multi-select unless any _OpenOnXXX behavior is set explicitly). Both behaviors may be combined." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1222 + "line": 1318 } }, { @@ -1693,7 +1770,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1223 + "line": 1319 } }, { @@ -1707,7 +1784,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1224 + "line": 1320 } }, { @@ -1721,7 +1798,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1225 + "line": 1321 } }, { @@ -1735,7 +1812,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1226 + "line": 1322 } }, { @@ -1749,11 +1826,11 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1227 + "line": 1323 } }, { - "name": "ImGuiTreeNodeFlags_SpanTextWidth", + "name": "ImGuiTreeNodeFlags_SpanLabelWidth", "value_expression": "1<<13", "value": 8192, "is_count": false, @@ -1763,7 +1840,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1228 + "line": 1324 } }, { @@ -1772,26 +1849,43 @@ "value": 16384, "is_count": false, "comments": { - "attached": "// Frame will span all columns of its container table (text will still fit in current column)" + "attached": "// Frame will span all columns of its container table (label will still fit in current column)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1229 + "line": 1325 } }, { - "name": "ImGuiTreeNodeFlags_NavLeftJumpsBackHere", + "name": "ImGuiTreeNodeFlags_LabelSpanAllColumns", "value_expression": "1<<15", "value": 32768, "is_count": false, "comments": { - "attached": "// (WIP) Nav: left direction may move to this TreeNode() from any of its child (items submitted between TreeNode and TreePop)" + "attached": "// Label will span all columns of its container table" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1230 + "line": 1326 + } + }, + { + "name": "ImGuiTreeNodeFlags_NavLeftJumpsToParent", + "value_expression": "1<<17", + "value": 131072, + "is_count": false, + "comments": { + "preceding": [ + "//ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 16, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible" + ], + "attached": "// Nav: left arrow moves back to parent. This is processed in TreePop() when there's an unfullfilled Left nav request remaining." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1328 } }, { @@ -1799,15 +1893,96 @@ "value_expression": "ImGuiTreeNodeFlags_Framed | ImGuiTreeNodeFlags_NoTreePushOnOpen | ImGuiTreeNodeFlags_NoAutoOpenOnLog", "value": 26, "is_count": false, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1329 + } + }, + { + "name": "ImGuiTreeNodeFlags_DrawLinesNone", + "value_expression": "1<<18", + "value": 262144, + "is_count": false, "comments": { "preceding": [ - "//ImGuiTreeNodeFlags_NoScrollOnOpen = 1 << 16, // FIXME: TODO: Disable automatic scroll on TreePop() if node got just open and contents is not visible" - ] + "// [EXPERIMENTAL] Draw lines connecting TreeNode hierarchy. Discuss in GitHub issue #2920.", + "// Default value is pulled from style.TreeLinesFlags. May be overridden in TreeNode calls." + ], + "attached": "// No lines drawn" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1232 + "line": 1333 + } + }, + { + "name": "ImGuiTreeNodeFlags_DrawLinesFull", + "value_expression": "1<<19", + "value": 524288, + "is_count": false, + "comments": { + "attached": "// Horizontal lines to child nodes. Vertical line drawn down to TreePop() position: cover full contents. Faster (for large trees)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1334 + } + }, + { + "name": "ImGuiTreeNodeFlags_DrawLinesToNodes", + "value_expression": "1<<20", + "value": 1048576, + "is_count": false, + "comments": { + "attached": "// Horizontal lines to child nodes. Vertical line drawn down to bottom-most child node. Slower (for large trees)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1335 + } + }, + { + "name": "ImGuiTreeNodeFlags_NavLeftJumpsBackHere", + "value_expression": "ImGuiTreeNodeFlags_NavLeftJumpsToParent", + "value": 131072, + "is_count": false, + "comments": { + "attached": "// Renamed in 1.92.0" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1338 + } + }, + { + "name": "ImGuiTreeNodeFlags_SpanTextWidth", + "value_expression": "ImGuiTreeNodeFlags_SpanLabelWidth", + "value": 8192, + "is_count": false, + "comments": { + "attached": "// Renamed in 1.90.7" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1339 } }, { @@ -1827,7 +2002,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1235 + "line": 1340 } } ], @@ -1839,7 +2014,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1212 + "line": 1308 } }, { @@ -1855,7 +2030,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1249 + "line": 1354 } }, { @@ -1869,7 +2044,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1250 + "line": 1355 } }, { @@ -1883,7 +2058,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1251 + "line": 1356 } }, { @@ -1897,7 +2072,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1252 + "line": 1357 } }, { @@ -1908,7 +2083,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1253 + "line": 1358 } }, { @@ -1919,7 +2094,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1254 + "line": 1359 } }, { @@ -1933,7 +2108,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1255 + "line": 1360 } }, { @@ -1950,7 +2125,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1257 + "line": 1362 } }, { @@ -1964,7 +2139,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1258 + "line": 1363 } }, { @@ -1978,7 +2153,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1259 + "line": 1364 } }, { @@ -1992,7 +2167,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1260 + "line": 1365 } }, { @@ -2003,7 +2178,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1261 + "line": 1366 } } ], @@ -2022,7 +2197,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1247 + "line": 1352 } }, { @@ -2038,7 +2213,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1267 + "line": 1372 } }, { @@ -2052,7 +2227,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1268 + "line": 1373 } }, { @@ -2066,7 +2241,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1269 + "line": 1374 } }, { @@ -2080,7 +2255,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1270 + "line": 1375 } }, { @@ -2094,7 +2269,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1271 + "line": 1376 } }, { @@ -2108,7 +2283,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1272 + "line": 1377 } }, { @@ -2122,7 +2297,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1273 + "line": 1378 } }, { @@ -2142,7 +2317,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1276 + "line": 1381 } }, { @@ -2162,7 +2337,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1277 + "line": 1382 } } ], @@ -2174,7 +2349,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1265 + "line": 1370 } }, { @@ -2190,7 +2365,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1284 + "line": 1389 } }, { @@ -2204,7 +2379,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1285 + "line": 1390 } }, { @@ -2218,7 +2393,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1286 + "line": 1391 } }, { @@ -2232,7 +2407,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1287 + "line": 1392 } }, { @@ -2246,7 +2421,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1288 + "line": 1393 } }, { @@ -2260,7 +2435,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1289 + "line": 1394 } }, { @@ -2274,7 +2449,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1290 + "line": 1395 } }, { @@ -2288,7 +2463,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1291 + "line": 1396 } }, { @@ -2302,7 +2477,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1292 + "line": 1397 } }, { @@ -2313,7 +2488,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1293 + "line": 1398 } } ], @@ -2325,7 +2500,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1282 + "line": 1387 } }, { @@ -2341,7 +2516,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1299 + "line": 1404 } }, { @@ -2355,7 +2530,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1300 + "line": 1405 } }, { @@ -2369,7 +2544,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1301 + "line": 1406 } }, { @@ -2383,7 +2558,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1302 + "line": 1407 } }, { @@ -2397,7 +2572,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1303 + "line": 1408 } }, { @@ -2411,7 +2586,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1304 + "line": 1409 } }, { @@ -2425,7 +2600,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1305 + "line": 1410 } }, { @@ -2439,57 +2614,94 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1306 + "line": 1411 } }, { - "name": "ImGuiTabBarFlags_FittingPolicyResizeDown", + "name": "ImGuiTabBarFlags_FittingPolicyMixed", "value_expression": "1<<7", "value": 128, "is_count": false, "comments": { - "attached": "// Resize tabs when they don't fit" + "preceding": [ + "// Fitting/Resize policy" + ], + "attached": "// Shrink down tabs when they don't fit, until width is style.TabMinWidthShrink, then enable scrolling buttons." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1307 + "line": 1414 } }, { - "name": "ImGuiTabBarFlags_FittingPolicyScroll", + "name": "ImGuiTabBarFlags_FittingPolicyShrink", "value_expression": "1<<8", "value": 256, "is_count": false, "comments": { - "attached": "// Add scroll buttons when tabs don't fit" + "attached": "// Shrink down tabs when they don't fit" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1308 + "line": 1415 + } + }, + { + "name": "ImGuiTabBarFlags_FittingPolicyScroll", + "value_expression": "1<<9", + "value": 512, + "is_count": false, + "comments": { + "attached": "// Enable scrolling buttons when tabs don't fit" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1416 } }, { "name": "ImGuiTabBarFlags_FittingPolicyMask_", - "value_expression": "ImGuiTabBarFlags_FittingPolicyResizeDown | ImGuiTabBarFlags_FittingPolicyScroll", - "value": 384, + "value_expression": "ImGuiTabBarFlags_FittingPolicyMixed | ImGuiTabBarFlags_FittingPolicyShrink | ImGuiTabBarFlags_FittingPolicyScroll", + "value": 896, "is_count": false, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1309 + "line": 1417 } }, { "name": "ImGuiTabBarFlags_FittingPolicyDefault_", - "value_expression": "ImGuiTabBarFlags_FittingPolicyResizeDown", + "value_expression": "ImGuiTabBarFlags_FittingPolicyMixed", "value": 128, "is_count": false, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1310 + "line": 1418 + } + }, + { + "name": "ImGuiTabBarFlags_FittingPolicyResizeDown", + "value_expression": "ImGuiTabBarFlags_FittingPolicyShrink", + "value": 256, + "is_count": false, + "comments": { + "attached": "// Renamed in 1.92.2" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1421 } } ], @@ -2501,7 +2713,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1297 + "line": 1402 } }, { @@ -2517,7 +2729,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1316 + "line": 1428 } }, { @@ -2531,7 +2743,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1317 + "line": 1429 } }, { @@ -2545,7 +2757,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1318 + "line": 1430 } }, { @@ -2559,7 +2771,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1319 + "line": 1431 } }, { @@ -2573,7 +2785,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1320 + "line": 1432 } }, { @@ -2587,7 +2799,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1321 + "line": 1433 } }, { @@ -2601,7 +2813,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1322 + "line": 1434 } }, { @@ -2615,7 +2827,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1323 + "line": 1435 } }, { @@ -2629,7 +2841,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1324 + "line": 1436 } }, { @@ -2643,7 +2855,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1325 + "line": 1437 } } ], @@ -2655,7 +2867,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1314 + "line": 1426 } }, { @@ -2671,7 +2883,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1331 + "line": 1443 } }, { @@ -2685,7 +2897,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1332 + "line": 1444 } }, { @@ -2699,7 +2911,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1333 + "line": 1445 } }, { @@ -2713,7 +2925,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1334 + "line": 1446 } }, { @@ -2727,7 +2939,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1335 + "line": 1447 } }, { @@ -2741,7 +2953,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1336 + "line": 1448 } }, { @@ -2752,7 +2964,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1337 + "line": 1449 } } ], @@ -2764,7 +2976,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1329 + "line": 1441 } }, { @@ -2783,7 +2995,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1345 + "line": 1457 } }, { @@ -2797,7 +3009,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1346 + "line": 1458 } }, { @@ -2811,7 +3023,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1347 + "line": 1459 } }, { @@ -2825,7 +3037,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1348 + "line": 1460 } }, { @@ -2839,7 +3051,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1349 + "line": 1461 } }, { @@ -2853,7 +3065,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1350 + "line": 1462 } }, { @@ -2867,7 +3079,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1351 + "line": 1463 } }, { @@ -2884,7 +3096,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1353 + "line": 1465 } }, { @@ -2898,7 +3110,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1354 + "line": 1466 } }, { @@ -2912,7 +3124,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1355 + "line": 1467 } }, { @@ -2926,7 +3138,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1356 + "line": 1468 } }, { @@ -2935,12 +3147,12 @@ "value": 2048, "is_count": false, "comments": { - "attached": "// IsItemHovered() only: Disable using gamepad/keyboard navigation state when active, always query mouse" + "attached": "// IsItemHovered() only: Disable using keyboard/gamepad navigation state when active, always query mouse" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1357 + "line": 1469 } }, { @@ -2951,7 +3163,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1358 + "line": 1470 } }, { @@ -2962,7 +3174,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1359 + "line": 1471 } }, { @@ -2973,7 +3185,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1360 + "line": 1472 } }, { @@ -2995,7 +3207,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1368 + "line": 1480 } }, { @@ -3014,7 +3226,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1373 + "line": 1485 } }, { @@ -3028,7 +3240,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1374 + "line": 1486 } }, { @@ -3042,7 +3254,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1375 + "line": 1487 } }, { @@ -3056,7 +3268,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1376 + "line": 1488 } }, { @@ -3070,7 +3282,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1377 + "line": 1489 } } ], @@ -3084,7 +3296,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1343 + "line": 1455 } }, { @@ -3100,7 +3312,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1385 + "line": 1497 } }, { @@ -3114,7 +3326,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1386 + "line": 1498 } }, { @@ -3131,7 +3343,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1388 + "line": 1500 } }, { @@ -3145,7 +3357,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1389 + "line": 1501 } }, { @@ -3159,7 +3371,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1390 + "line": 1502 } }, { @@ -3173,7 +3385,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1391 + "line": 1503 } }, { @@ -3187,7 +3399,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1392 + "line": 1504 } }, { @@ -3201,7 +3413,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1393 + "line": 1505 } }, { @@ -3221,7 +3433,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1396 + "line": 1508 } }, { @@ -3241,7 +3453,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1397 + "line": 1509 } } ], @@ -3255,7 +3467,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1383 + "line": 1495 } }, { @@ -3271,7 +3483,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1404 + "line": 1516 } }, { @@ -3288,7 +3500,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1406 + "line": 1518 } }, { @@ -3302,7 +3514,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1407 + "line": 1519 } }, { @@ -3316,7 +3528,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1408 + "line": 1520 } }, { @@ -3330,7 +3542,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1409 + "line": 1521 } }, { @@ -3344,7 +3556,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1410 + "line": 1522 } }, { @@ -3358,7 +3570,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1411 + "line": 1523 } }, { @@ -3372,7 +3584,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1412 + "line": 1524 } }, { @@ -3386,7 +3598,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1413 + "line": 1525 } }, { @@ -3403,7 +3615,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1415 + "line": 1527 } }, { @@ -3417,7 +3629,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1416 + "line": 1528 } }, { @@ -3431,7 +3643,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1417 + "line": 1529 } }, { @@ -3445,7 +3657,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1418 + "line": 1530 } }, { @@ -3465,7 +3677,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1421 + "line": 1533 } } ], @@ -3477,7 +3689,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1402 + "line": 1514 } }, { @@ -3495,7 +3707,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1432 + "line": 1544 } }, { @@ -3508,7 +3720,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1433 + "line": 1545 } }, { @@ -3521,7 +3733,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1434 + "line": 1546 } }, { @@ -3534,7 +3746,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1435 + "line": 1547 } }, { @@ -3547,7 +3759,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1436 + "line": 1548 } }, { @@ -3560,7 +3772,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1437 + "line": 1549 } }, { @@ -3573,7 +3785,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1438 + "line": 1550 } }, { @@ -3586,7 +3798,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1439 + "line": 1551 } }, { @@ -3599,7 +3811,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1440 + "line": 1552 } }, { @@ -3612,7 +3824,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1441 + "line": 1553 } }, { @@ -3625,17 +3837,30 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1442 + "line": 1554 + } + }, + { + "name": "ImGuiDataType_String", + "value": 11, + "is_count": false, + "comments": { + "attached": "// char* (provided for user convenience, not supported by scalar widgets)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1555 } }, { "name": "ImGuiDataType_COUNT", - "value": 11, + "value": 12, "is_count": true, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1443 + "line": 1556 } } ], @@ -3647,7 +3872,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1430 + "line": 1542 } }, { @@ -3670,7 +3895,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1449 + "line": 1562 } }, { @@ -3681,7 +3906,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1450 + "line": 1563 } }, { @@ -3692,7 +3917,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1451 + "line": 1564 } }, { @@ -3703,7 +3928,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1452 + "line": 1565 } }, { @@ -3714,7 +3939,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1453 + "line": 1566 } }, { @@ -3724,7 +3949,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1454 + "line": 1567 } } ], @@ -3737,7 +3962,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1447 + "line": 1560 } }, { @@ -3760,7 +3985,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1460 + "line": 1573 } }, { @@ -3774,7 +3999,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1461 + "line": 1574 } }, { @@ -3788,7 +4013,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1462 + "line": 1575 } } ], @@ -3801,7 +4026,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1458 + "line": 1571 } }, { @@ -3829,7 +4054,21 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1479 + "line": 1587 + } + }, + { + "name": "ImGuiKey_NamedKey_BEGIN", + "value_expression": "512", + "value": 512, + "is_count": false, + "comments": { + "attached": "// First valid key value (other than 0)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1588 } }, { @@ -3843,7 +4082,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1480 + "line": 1590 } }, { @@ -3853,7 +4092,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1481 + "line": 1591 } }, { @@ -3863,7 +4102,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1482 + "line": 1592 } }, { @@ -3873,7 +4112,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1483 + "line": 1593 } }, { @@ -3883,7 +4122,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1484 + "line": 1594 } }, { @@ -3893,7 +4132,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1485 + "line": 1595 } }, { @@ -3903,7 +4142,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1486 + "line": 1596 } }, { @@ -3913,7 +4152,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1487 + "line": 1597 } }, { @@ -3923,7 +4162,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1488 + "line": 1598 } }, { @@ -3933,7 +4172,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1489 + "line": 1599 } }, { @@ -3943,7 +4182,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1490 + "line": 1600 } }, { @@ -3953,7 +4192,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1491 + "line": 1601 } }, { @@ -3963,7 +4202,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1492 + "line": 1602 } }, { @@ -3973,7 +4212,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1493 + "line": 1603 } }, { @@ -3983,7 +4222,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1494 + "line": 1604 } }, { @@ -3993,7 +4232,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1495 + "line": 1605 } }, { @@ -4003,7 +4242,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1495 + "line": 1605 } }, { @@ -4013,17 +4252,20 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1495 + "line": 1605 } }, { "name": "ImGuiKey_LeftSuper", "value": 530, "is_count": false, + "comments": { + "attached": "// Also see ImGuiMod_Ctrl, ImGuiMod_Shift, ImGuiMod_Alt, ImGuiMod_Super below!" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1495 + "line": 1605 } }, { @@ -4033,7 +4275,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1496 + "line": 1606 } }, { @@ -4043,7 +4285,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1496 + "line": 1606 } }, { @@ -4053,7 +4295,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1496 + "line": 1606 } }, { @@ -4063,7 +4305,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1496 + "line": 1606 } }, { @@ -4073,7 +4315,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1497 + "line": 1607 } }, { @@ -4083,7 +4325,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4093,7 +4335,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4103,7 +4345,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4113,7 +4355,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4123,7 +4365,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4133,7 +4375,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4143,7 +4385,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4153,7 +4395,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4163,7 +4405,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4173,7 +4415,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1498 + "line": 1608 } }, { @@ -4183,7 +4425,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4193,7 +4435,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4203,7 +4445,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4213,7 +4455,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4223,7 +4465,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4233,7 +4475,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4243,7 +4485,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4253,7 +4495,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4263,7 +4505,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4273,7 +4515,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1499 + "line": 1609 } }, { @@ -4283,7 +4525,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4293,7 +4535,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4303,7 +4545,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4313,7 +4555,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4323,7 +4565,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4333,7 +4575,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4343,7 +4585,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4353,7 +4595,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4363,7 +4605,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4373,7 +4615,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1500 + "line": 1610 } }, { @@ -4383,7 +4625,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1501 + "line": 1611 } }, { @@ -4393,7 +4635,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1501 + "line": 1611 } }, { @@ -4403,7 +4645,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1501 + "line": 1611 } }, { @@ -4413,7 +4655,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1501 + "line": 1611 } }, { @@ -4423,7 +4665,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1501 + "line": 1611 } }, { @@ -4433,7 +4675,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1501 + "line": 1611 } }, { @@ -4443,7 +4685,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1502 + "line": 1612 } }, { @@ -4453,7 +4695,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1502 + "line": 1612 } }, { @@ -4463,7 +4705,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1502 + "line": 1612 } }, { @@ -4473,7 +4715,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1502 + "line": 1612 } }, { @@ -4483,7 +4725,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1502 + "line": 1612 } }, { @@ -4493,7 +4735,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1502 + "line": 1612 } }, { @@ -4503,7 +4745,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1503 + "line": 1613 } }, { @@ -4513,7 +4755,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1503 + "line": 1613 } }, { @@ -4523,7 +4765,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1503 + "line": 1613 } }, { @@ -4533,7 +4775,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1503 + "line": 1613 } }, { @@ -4543,7 +4785,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1503 + "line": 1613 } }, { @@ -4553,7 +4795,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1503 + "line": 1613 } }, { @@ -4563,7 +4805,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1504 + "line": 1614 } }, { @@ -4573,7 +4815,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1504 + "line": 1614 } }, { @@ -4583,7 +4825,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1504 + "line": 1614 } }, { @@ -4593,7 +4835,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1504 + "line": 1614 } }, { @@ -4603,7 +4845,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1504 + "line": 1614 } }, { @@ -4613,7 +4855,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1504 + "line": 1614 } }, { @@ -4623,7 +4865,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1505 + "line": 1615 } }, { @@ -4633,7 +4875,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1505 + "line": 1615 } }, { @@ -4643,7 +4885,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1505 + "line": 1615 } }, { @@ -4653,7 +4895,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1505 + "line": 1615 } }, { @@ -4663,7 +4905,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1505 + "line": 1615 } }, { @@ -4673,7 +4915,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1505 + "line": 1615 } }, { @@ -4686,7 +4928,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1506 + "line": 1616 } }, { @@ -4699,7 +4941,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1507 + "line": 1617 } }, { @@ -4712,7 +4954,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1508 + "line": 1618 } }, { @@ -4725,7 +4967,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1509 + "line": 1619 } }, { @@ -4738,7 +4980,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1510 + "line": 1620 } }, { @@ -4751,7 +4993,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1511 + "line": 1621 } }, { @@ -4764,7 +5006,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1512 + "line": 1622 } }, { @@ -4777,7 +5019,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1513 + "line": 1623 } }, { @@ -4790,7 +5032,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1514 + "line": 1624 } }, { @@ -4803,7 +5045,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1515 + "line": 1625 } }, { @@ -4816,7 +5058,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1516 + "line": 1626 } }, { @@ -4826,7 +5068,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1517 + "line": 1627 } }, { @@ -4836,7 +5078,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1518 + "line": 1628 } }, { @@ -4846,7 +5088,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1519 + "line": 1629 } }, { @@ -4856,7 +5098,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1520 + "line": 1630 } }, { @@ -4866,7 +5108,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1521 + "line": 1631 } }, { @@ -4876,7 +5118,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1522 + "line": 1632 } }, { @@ -4886,7 +5128,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1522 + "line": 1632 } }, { @@ -4896,7 +5138,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1522 + "line": 1632 } }, { @@ -4906,7 +5148,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1522 + "line": 1632 } }, { @@ -4916,7 +5158,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1522 + "line": 1632 } }, { @@ -4926,7 +5168,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1523 + "line": 1633 } }, { @@ -4936,7 +5178,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1523 + "line": 1633 } }, { @@ -4946,7 +5188,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1523 + "line": 1633 } }, { @@ -4956,7 +5198,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1523 + "line": 1633 } }, { @@ -4966,7 +5208,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1523 + "line": 1633 } }, { @@ -4976,7 +5218,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1524 + "line": 1634 } }, { @@ -4986,7 +5228,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1525 + "line": 1635 } }, { @@ -4996,7 +5238,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1526 + "line": 1636 } }, { @@ -5006,7 +5248,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1527 + "line": 1637 } }, { @@ -5016,7 +5258,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1528 + "line": 1638 } }, { @@ -5026,7 +5268,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1529 + "line": 1639 } }, { @@ -5036,7 +5278,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1530 + "line": 1640 } }, { @@ -5049,7 +5291,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1531 + "line": 1641 } }, { @@ -5059,328 +5301,343 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1532 + "line": 1642 + } + }, + { + "name": "ImGuiKey_Oem102", + "value": 631, + "is_count": false, + "comments": { + "attached": "// Non-US backslash." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1643 } }, { "name": "ImGuiKey_GamepadStart", - "value": 631, + "value": 632, "is_count": false, "comments": { "preceding": [ - "// Gamepad (some of those are analog values, 0.0f to 1.0f) // NAVIGATION ACTION", - "// (download controller mapping PNG/PSD at http://dearimgui.com/controls_sheets)" + "// Gamepad", + "// (analog values are 0.0f to 1.0f)", + "// (download controller mapping PNG/PSD at http://dearimgui.com/controls_sheets)", + "// // XBOX | SWITCH | PLAYSTA. | -> ACTION" ], - "attached": "// Menu (Xbox) + (Switch) Start/Options (PS)" + "attached": "// Menu | + | Options |" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1536 + "line": 1649 } }, { "name": "ImGuiKey_GamepadBack", - "value": 632, + "value": 633, "is_count": false, "comments": { - "attached": "// View (Xbox) - (Switch) Share (PS)" + "attached": "// View | - | Share |" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1537 + "line": 1650 } }, { "name": "ImGuiKey_GamepadFaceLeft", - "value": 633, + "value": 634, "is_count": false, "comments": { - "attached": "// X (Xbox) Y (Switch) Square (PS) // Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows)" + "attached": "// X | Y | Square | Tap: Toggle Menu. Hold: Windowing mode (Focus/Move/Resize windows)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1538 + "line": 1651 } }, { "name": "ImGuiKey_GamepadFaceRight", - "value": 634, + "value": 635, "is_count": false, "comments": { - "attached": "// B (Xbox) A (Switch) Circle (PS) // Cancel / Close / Exit" + "attached": "// B | A | Circle | Cancel / Close / Exit" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1539 + "line": 1652 } }, { "name": "ImGuiKey_GamepadFaceUp", - "value": 635, + "value": 636, "is_count": false, "comments": { - "attached": "// Y (Xbox) X (Switch) Triangle (PS) // Text Input / On-screen Keyboard" + "attached": "// Y | X | Triangle | Text Input / On-screen Keyboard" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1540 + "line": 1653 } }, { "name": "ImGuiKey_GamepadFaceDown", - "value": 636, + "value": 637, "is_count": false, "comments": { - "attached": "// A (Xbox) B (Switch) Cross (PS) // Activate / Open / Toggle / Tweak" + "attached": "// A | B | Cross | Activate / Open / Toggle / Tweak" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1541 + "line": 1654 } }, { "name": "ImGuiKey_GamepadDpadLeft", - "value": 637, + "value": 638, "is_count": false, "comments": { - "attached": "// D-pad Left // Move / Tweak / Resize Window (in Windowing mode)" + "attached": "// D-pad Left | \" | \" | Move / Tweak / Resize Window (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1542 + "line": 1655 } }, { "name": "ImGuiKey_GamepadDpadRight", - "value": 638, + "value": 639, "is_count": false, "comments": { - "attached": "// D-pad Right // Move / Tweak / Resize Window (in Windowing mode)" + "attached": "// D-pad Right | \" | \" | Move / Tweak / Resize Window (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1543 + "line": 1656 } }, { "name": "ImGuiKey_GamepadDpadUp", - "value": 639, + "value": 640, "is_count": false, "comments": { - "attached": "// D-pad Up // Move / Tweak / Resize Window (in Windowing mode)" + "attached": "// D-pad Up | \" | \" | Move / Tweak / Resize Window (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1544 + "line": 1657 } }, { "name": "ImGuiKey_GamepadDpadDown", - "value": 640, + "value": 641, "is_count": false, "comments": { - "attached": "// D-pad Down // Move / Tweak / Resize Window (in Windowing mode)" + "attached": "// D-pad Down | \" | \" | Move / Tweak / Resize Window (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1545 + "line": 1658 } }, { "name": "ImGuiKey_GamepadL1", - "value": 641, + "value": 642, "is_count": false, "comments": { - "attached": "// L Bumper (Xbox) L (Switch) L1 (PS) // Tweak Slower / Focus Previous (in Windowing mode)" + "attached": "// L Bumper | L | L1 | Tweak Slower / Focus Previous (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1546 + "line": 1659 } }, { "name": "ImGuiKey_GamepadR1", - "value": 642, + "value": 643, "is_count": false, "comments": { - "attached": "// R Bumper (Xbox) R (Switch) R1 (PS) // Tweak Faster / Focus Next (in Windowing mode)" + "attached": "// R Bumper | R | R1 | Tweak Faster / Focus Next (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1547 + "line": 1660 } }, { "name": "ImGuiKey_GamepadL2", - "value": 643, + "value": 644, "is_count": false, "comments": { - "attached": "// L Trig. (Xbox) ZL (Switch) L2 (PS) [Analog]" + "attached": "// L Trigger | ZL | L2 | [Analog]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1548 + "line": 1661 } }, { "name": "ImGuiKey_GamepadR2", - "value": 644, + "value": 645, "is_count": false, "comments": { - "attached": "// R Trig. (Xbox) ZR (Switch) R2 (PS) [Analog]" + "attached": "// R Trigger | ZR | R2 | [Analog]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1549 + "line": 1662 } }, { "name": "ImGuiKey_GamepadL3", - "value": 645, + "value": 646, "is_count": false, "comments": { - "attached": "// L Stick (Xbox) L3 (Switch) L3 (PS)" + "attached": "// L Stick | L3 | L3 |" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1550 + "line": 1663 } }, { "name": "ImGuiKey_GamepadR3", - "value": 646, + "value": 647, "is_count": false, "comments": { - "attached": "// R Stick (Xbox) R3 (Switch) R3 (PS)" + "attached": "// R Stick | R3 | R3 |" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1551 + "line": 1664 } }, { "name": "ImGuiKey_GamepadLStickLeft", - "value": 647, + "value": 648, "is_count": false, "comments": { - "attached": "// [Analog] // Move Window (in Windowing mode)" + "attached": "// | | | [Analog] Move Window (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1552 + "line": 1665 } }, { "name": "ImGuiKey_GamepadLStickRight", - "value": 648, + "value": 649, "is_count": false, "comments": { - "attached": "// [Analog] // Move Window (in Windowing mode)" + "attached": "// | | | [Analog] Move Window (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1553 + "line": 1666 } }, { "name": "ImGuiKey_GamepadLStickUp", - "value": 649, + "value": 650, "is_count": false, "comments": { - "attached": "// [Analog] // Move Window (in Windowing mode)" + "attached": "// | | | [Analog] Move Window (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1554 + "line": 1667 } }, { "name": "ImGuiKey_GamepadLStickDown", - "value": 650, + "value": 651, "is_count": false, "comments": { - "attached": "// [Analog] // Move Window (in Windowing mode)" + "attached": "// | | | [Analog] Move Window (in Windowing mode)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1555 + "line": 1668 } }, { "name": "ImGuiKey_GamepadRStickLeft", - "value": 651, + "value": 652, "is_count": false, "comments": { - "attached": "// [Analog]" + "attached": "// | | | [Analog]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1556 + "line": 1669 } }, { "name": "ImGuiKey_GamepadRStickRight", - "value": 652, + "value": 653, "is_count": false, "comments": { - "attached": "// [Analog]" + "attached": "// | | | [Analog]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1557 + "line": 1670 } }, { "name": "ImGuiKey_GamepadRStickUp", - "value": 653, + "value": 654, "is_count": false, "comments": { - "attached": "// [Analog]" + "attached": "// | | | [Analog]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1558 + "line": 1671 } }, { "name": "ImGuiKey_GamepadRStickDown", - "value": 654, + "value": 655, "is_count": false, "comments": { - "attached": "// [Analog]" + "attached": "// | | | [Analog]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1559 + "line": 1672 } }, { "name": "ImGuiKey_MouseLeft", - "value": 655, + "value": 656, "is_count": false, "comments": { "preceding": [ @@ -5391,72 +5648,72 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1563 + "line": 1676 } }, { "name": "ImGuiKey_MouseRight", - "value": 656, - "is_count": false, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1563 - } - }, - { - "name": "ImGuiKey_MouseMiddle", "value": 657, "is_count": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1563 + "line": 1676 } }, { - "name": "ImGuiKey_MouseX1", + "name": "ImGuiKey_MouseMiddle", "value": 658, "is_count": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1563 + "line": 1676 } }, { - "name": "ImGuiKey_MouseX2", + "name": "ImGuiKey_MouseX1", "value": 659, "is_count": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1563 + "line": 1676 } }, { - "name": "ImGuiKey_MouseWheelX", + "name": "ImGuiKey_MouseX2", "value": 660, "is_count": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1563 + "line": 1676 } }, { - "name": "ImGuiKey_MouseWheelY", + "name": "ImGuiKey_MouseWheelX", "value": 661, "is_count": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1563 + "line": 1676 + } + }, + { + "name": "ImGuiKey_MouseWheelY", + "value": 662, + "is_count": false, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1676 } }, { "name": "ImGuiKey_ReservedForModCtrl", - "value": 662, + "value": 663, "is_count": false, "comments": { "preceding": [ @@ -5466,47 +5723,63 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1566 + "line": 1679 } }, { "name": "ImGuiKey_ReservedForModShift", - "value": 663, - "is_count": false, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 1566 - } - }, - { - "name": "ImGuiKey_ReservedForModAlt", "value": 664, "is_count": false, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1566 + "line": 1679 } }, { - "name": "ImGuiKey_ReservedForModSuper", + "name": "ImGuiKey_ReservedForModAlt", "value": 665, "is_count": false, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1566 + "line": 1679 } }, { - "name": "ImGuiKey_COUNT", + "name": "ImGuiKey_ReservedForModSuper", "value": 666, + "is_count": false, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 1679 + } + }, + { + "name": "ImGuiKey_NamedKey_END", + "value": 667, + "is_count": false, + "comments": { + "preceding": [ + "// [Internal] If you need to iterate all keys (for e.g. an input mapper) you may use ImGuiKey_NamedKey_BEGIN..ImGuiKey_NamedKey_END." + ] + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 1682 + } + }, + { + "name": "ImGuiKey_NamedKey_COUNT", + "value_expression": "ImGuiKey_NamedKey_END-ImGuiKey_NamedKey_BEGIN", + "value": 155, "is_count": true, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1567 + "line": 1683 } }, { @@ -5517,8 +5790,9 @@ "comments": { "preceding": [ "// Keyboard Modifiers (explicitly submitted by backend via AddKeyEvent() calls)", - "// - This is mirroring the data also written to io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper, in a format allowing", - "// them to be accessed via standard key API, allowing calls such as IsKeyPressed(), IsKeyReleased(), querying duration etc.", + "// - Any functions taking a ImGuiKeyChord parameter can binary-or those with regular keys, e.g. Shortcut(ImGuiMod_Ctrl | ImGuiKey_S).", + "// - Those are written back into io.KeyCtrl, io.KeyShift, io.KeyAlt, io.KeySuper for convenience,", + "// but may be accessed via standard key API such as IsKeyPressed(), IsKeyReleased(), querying duration etc.", "// - Code polling every key (e.g. an interface to detect a key press for input mapping) might want to ignore those", "// and prefer using the real keys (e.g. ImGuiKey_LeftCtrl, ImGuiKey_RightCtrl instead of ImGuiMod_Ctrl).", "// - In theory the value of keyboard modifiers should be roughly equivalent to a logical or of the equivalent left/right keys.", @@ -5530,7 +5804,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1578 + "line": 1695 } }, { @@ -5544,7 +5818,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1579 + "line": 1696 } }, { @@ -5558,7 +5832,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1580 + "line": 1697 } }, { @@ -5572,7 +5846,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1581 + "line": 1698 } }, { @@ -5586,7 +5860,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1582 + "line": 1699 } }, { @@ -5600,127 +5874,27 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1583 + "line": 1700 } }, { - "name": "ImGuiKey_NamedKey_BEGIN", - "value_expression": "512", - "value": 512, - "is_count": false, - "comments": { - "preceding": [ - "// [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array.", - "// We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE)", - "// If you need to iterate all keys (for e.g. an input mapper) you may use ImGuiKey_NamedKey_BEGIN..ImGuiKey_NamedKey_END." - ] - }, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 1588 - } - }, - { - "name": "ImGuiKey_NamedKey_END", - "value_expression": "ImGuiKey_COUNT", - "value": 666, - "is_count": false, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 1589 - } - }, - { - "name": "ImGuiKey_NamedKey_COUNT", - "value_expression": "ImGuiKey_NamedKey_END-ImGuiKey_NamedKey_BEGIN", - "value": 154, + "name": "ImGuiKey_COUNT", + "value_expression": "ImGuiKey_NamedKey_END", + "value": 667, "is_count": true, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 1590 - } - }, - { - "name": "ImGuiKey_KeysData_SIZE", - "value_expression": "ImGuiKey_NamedKey_COUNT", - "value": 154, - "is_count": false, "comments": { - "attached": "// Size of KeysData[]: only hold named keys" - }, - "conditionals": [ - { - "condition": "ifdef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1592 - } - }, - { - "name": "ImGuiKey_KeysData_OFFSET", - "value_expression": "ImGuiKey_NamedKey_BEGIN", - "value": 512, - "is_count": false, - "comments": { - "attached": "// Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index." - }, - "conditionals": [ - { - "condition": "ifdef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1593 - } - }, - { - "name": "ImGuiKey_KeysData_SIZE", - "value_expression": "ImGuiKey_COUNT", - "value": 666, - "is_count": false, - "comments": { - "attached": "// Size of KeysData[]: hold legacy 0..512 keycodes + named keys" + "attached": "// Obsoleted in 1.91.5 because it was extremely misleading (since named keys don't start at 0 anymore)" }, "conditionals": [ { "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" } ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1595 - } - }, - { - "name": "ImGuiKey_KeysData_OFFSET", - "value_expression": "0", - "value": 0, - "is_count": false, - "comments": { - "attached": "// Accesses to io.KeysData[] must use (key - ImGuiKey_KeysData_OFFSET) index." - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1596 + "line": 1703 } }, { @@ -5740,7 +5914,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1600 + "line": 1704 } }, { @@ -5757,7 +5931,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1601 + "line": 1705 } }, { @@ -5774,7 +5948,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1601 + "line": 1705 } }, { @@ -5791,7 +5965,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1601 + "line": 1705 } }, { @@ -5811,16 +5985,16 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1601 + "line": 1705 } } ], "comments": { "preceding": [ "// A key identifier (ImGuiKey_XXX or ImGuiMod_XXX value): can represent Keyboard, Mouse and Gamepad values.", - "// All our named keys are >= 512. Keys value 0 to 511 are left unused as legacy native/opaque key values (< 1.87).", - "// Since >= 1.89 we increased typing (went from int to enum), some legacy code may need a cast to ImGuiKey.", - "// Read details about the 1.87 and 1.89 transition : https://github.com/ocornut/imgui/issues/4921", + "// All our named keys are >= 512. Keys value 0 to 511 are left unused and were legacy native/opaque key values (< 1.87).", + "// Support for legacy keys was completely removed in 1.91.5.", + "// Read details about the 1.87+ transition : https://github.com/ocornut/imgui/issues/4921", "// Note that \"Keys\" related to physical keys and are not the same concept as input \"Characters\", the later are submitted via io.AddInputCharacter().", "// The keyboard key enum values are named after the keys on a standard US keyboard, and on other keyboard types the keys reported may not match the keycaps." ], @@ -5829,7 +6003,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1476 + "line": 1584 } }, { @@ -5845,7 +6019,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1611 + "line": 1715 } }, { @@ -5859,7 +6033,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1612 + "line": 1716 } }, { @@ -5878,7 +6052,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1617 + "line": 1721 } }, { @@ -5892,7 +6066,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1618 + "line": 1722 } }, { @@ -5906,7 +6080,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1619 + "line": 1723 } }, { @@ -5920,7 +6094,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1620 + "line": 1724 } }, { @@ -5937,7 +6111,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1622 + "line": 1726 } }, { @@ -5951,7 +6125,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1623 + "line": 1727 } }, { @@ -5965,7 +6139,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1624 + "line": 1728 } }, { @@ -5979,7 +6153,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1625 + "line": 1729 } }, { @@ -5996,7 +6170,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1628 + "line": 1732 } } ], @@ -6010,304 +6184,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1609 - } - }, - { - "name": "ImGuiNavInput", - "original_fully_qualified_name": "ImGuiNavInput", - "is_flags_enum": false, - "elements": [ - { - "name": "ImGuiNavInput_Activate", - "value": 0, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1637 - } - }, - { - "name": "ImGuiNavInput_Cancel", - "value": 1, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1637 - } - }, - { - "name": "ImGuiNavInput_Input", - "value": 2, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1637 - } - }, - { - "name": "ImGuiNavInput_Menu", - "value": 3, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1637 - } - }, - { - "name": "ImGuiNavInput_DpadLeft", - "value": 4, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1637 - } - }, - { - "name": "ImGuiNavInput_DpadRight", - "value": 5, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1637 - } - }, - { - "name": "ImGuiNavInput_DpadUp", - "value": 6, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1637 - } - }, - { - "name": "ImGuiNavInput_DpadDown", - "value": 7, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1637 - } - }, - { - "name": "ImGuiNavInput_LStickLeft", - "value": 8, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1638 - } - }, - { - "name": "ImGuiNavInput_LStickRight", - "value": 9, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1638 - } - }, - { - "name": "ImGuiNavInput_LStickUp", - "value": 10, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1638 - } - }, - { - "name": "ImGuiNavInput_LStickDown", - "value": 11, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1638 - } - }, - { - "name": "ImGuiNavInput_FocusPrev", - "value": 12, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1638 - } - }, - { - "name": "ImGuiNavInput_FocusNext", - "value": 13, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1638 - } - }, - { - "name": "ImGuiNavInput_TweakSlow", - "value": 14, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1638 - } - }, - { - "name": "ImGuiNavInput_TweakFast", - "value": 15, - "is_count": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1638 - } - }, - { - "name": "ImGuiNavInput_COUNT", - "value": 16, - "is_count": true, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1639 - } - } - ], - "comments": { - "preceding": [ - "// OBSOLETED in 1.88 (from July 2022): ImGuiNavInput and io.NavInputs[].", - "// Official backends between 1.60 and 1.86: will keep working and feed gamepad inputs as long as IMGUI_DISABLE_OBSOLETE_KEYIO is not set.", - "// Custom backends: feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums." - ] - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1635 + "line": 1713 } }, { @@ -6323,7 +6200,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1646 + "line": 1738 } }, { @@ -6337,7 +6214,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1647 + "line": 1739 } }, { @@ -6351,35 +6228,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1648 - } - }, - { - "name": "ImGuiConfigFlags_NavEnableSetMousePos", - "value_expression": "1<<2", - "value": 4, - "is_count": false, - "comments": { - "attached": "// Instruct navigation to move the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is awkward. Will update io.MousePos and set io.WantSetMousePos=true. If enabled you MUST honor io.WantSetMousePos requests in your backend, otherwise ImGui will react as if the mouse is jumping around back and forth." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1649 - } - }, - { - "name": "ImGuiConfigFlags_NavNoCaptureKeyboard", - "value_expression": "1<<3", - "value": 8, - "is_count": false, - "comments": { - "attached": "// Instruct navigation to not set the io.WantCaptureKeyboard flag when io.NavActive is set." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1650 + "line": 1740 } }, { @@ -6393,7 +6242,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1651 + "line": 1741 } }, { @@ -6407,7 +6256,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1652 + "line": 1742 } }, { @@ -6421,7 +6270,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1653 + "line": 1743 } }, { @@ -6438,7 +6287,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1656 + "line": 1746 } }, { @@ -6456,35 +6305,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1660 - } - }, - { - "name": "ImGuiConfigFlags_DpiEnableScaleViewports", - "value_expression": "1<<14", - "value": 16384, - "is_count": false, - "comments": { - "attached": "// [BETA: Don't use] FIXME-DPI: Reposition and resize imgui windows when the DpiScale of a viewport changed (mostly useful for the main viewport hosting other window). Note that resizing the main window itself is up to your application." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1661 - } - }, - { - "name": "ImGuiConfigFlags_DpiEnableScaleFonts", - "value_expression": "1<<15", - "value": 32768, - "is_count": false, - "comments": { - "attached": "// [BETA: Don't use] FIXME-DPI: Request bitmap-scaled fonts to match DpiScale. This is a very low-quality workaround. The correct way to handle DPI is _currently_ to replace the atlas and/or fonts in the Platform_OnChangedViewport callback, but this is all early work in progress." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1662 + "line": 1750 } }, { @@ -6501,7 +6322,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1665 + "line": 1753 } }, { @@ -6515,7 +6336,87 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1666 + "line": 1754 + } + }, + { + "name": "ImGuiConfigFlags_NavEnableSetMousePos", + "value_expression": "1<<2", + "value": 4, + "is_count": false, + "comments": { + "attached": "// [moved/renamed in 1.91.4] -> use bool io.ConfigNavMoveSetMousePos" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1757 + } + }, + { + "name": "ImGuiConfigFlags_NavNoCaptureKeyboard", + "value_expression": "1<<3", + "value": 8, + "is_count": false, + "comments": { + "attached": "// [moved/renamed in 1.91.4] -> use bool io.ConfigNavCaptureKeyboard" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1758 + } + }, + { + "name": "ImGuiConfigFlags_DpiEnableScaleFonts", + "value_expression": "1<<14", + "value": 16384, + "is_count": false, + "comments": { + "attached": "// [moved/renamed in 1.92.0] -> use bool io.ConfigDpiScaleFonts" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1759 + } + }, + { + "name": "ImGuiConfigFlags_DpiEnableScaleViewports", + "value_expression": "1<<15", + "value": 32768, + "is_count": false, + "comments": { + "attached": "// [moved/renamed in 1.92.0] -> use bool io.ConfigDpiScaleViewports" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1760 } } ], @@ -6527,7 +6428,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1644 + "line": 1736 } }, { @@ -6543,7 +6444,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1672 + "line": 1767 } }, { @@ -6557,7 +6458,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1673 + "line": 1768 } }, { @@ -6571,7 +6472,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1674 + "line": 1769 } }, { @@ -6580,12 +6481,12 @@ "value": 4, "is_count": false, "comments": { - "attached": "// Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if ImGuiConfigFlags_NavEnableSetMousePos is set)." + "attached": "// Backend Platform supports io.WantSetMousePos requests to reposition the OS mouse position (only used if io.ConfigNavMoveSetMousePos is set)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1675 + "line": 1770 } }, { @@ -6599,7 +6500,21 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1676 + "line": 1771 + } + }, + { + "name": "ImGuiBackendFlags_RendererHasTextures", + "value_expression": "1<<4", + "value": 16, + "is_count": false, + "comments": { + "attached": "// Backend Renderer supports ImTextureData requests to create/update/destroy textures. This enables incremental texture updates and texture reloads. See https://github.com/ocornut/imgui/blob/master/docs/BACKENDS.md for instructions on how to upgrade your custom backend." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1772 } }, { @@ -6616,7 +6531,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1679 + "line": 1775 } }, { @@ -6630,7 +6545,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1680 + "line": 1776 } }, { @@ -6644,7 +6559,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1681 + "line": 1777 } } ], @@ -6656,7 +6571,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1670 + "line": 1765 } }, { @@ -6671,7 +6586,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1687 + "line": 1783 } }, { @@ -6681,7 +6596,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1688 + "line": 1784 } }, { @@ -6694,7 +6609,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1689 + "line": 1785 } }, { @@ -6707,7 +6622,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1690 + "line": 1786 } }, { @@ -6720,7 +6635,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1691 + "line": 1787 } }, { @@ -6730,7 +6645,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1692 + "line": 1788 } }, { @@ -6740,7 +6655,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1693 + "line": 1789 } }, { @@ -6753,7 +6668,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1694 + "line": 1790 } }, { @@ -6763,7 +6678,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1695 + "line": 1791 } }, { @@ -6773,7 +6688,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1696 + "line": 1792 } }, { @@ -6786,7 +6701,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1697 + "line": 1793 } }, { @@ -6799,7 +6714,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1698 + "line": 1794 } }, { @@ -6812,7 +6727,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1699 + "line": 1795 } }, { @@ -6822,7 +6737,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1700 + "line": 1796 } }, { @@ -6832,7 +6747,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1701 + "line": 1797 } }, { @@ -6842,7 +6757,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1702 + "line": 1798 } }, { @@ -6852,7 +6767,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1703 + "line": 1799 } }, { @@ -6862,7 +6777,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1704 + "line": 1800 } }, { @@ -6875,7 +6790,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1705 + "line": 1801 } }, { @@ -6885,7 +6800,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1706 + "line": 1802 } }, { @@ -6895,7 +6810,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1707 + "line": 1803 } }, { @@ -6905,7 +6820,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1708 + "line": 1804 } }, { @@ -6915,7 +6830,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1709 + "line": 1805 } }, { @@ -6925,7 +6840,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1710 + "line": 1806 } }, { @@ -6938,7 +6853,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1711 + "line": 1807 } }, { @@ -6948,7 +6863,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1712 + "line": 1808 } }, { @@ -6958,7 +6873,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1713 + "line": 1809 } }, { @@ -6968,7 +6883,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1714 + "line": 1810 } }, { @@ -6978,7 +6893,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1715 + "line": 1811 } }, { @@ -6988,7 +6903,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1716 + "line": 1812 } }, { @@ -7001,7 +6916,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1717 + "line": 1813 } }, { @@ -7011,7 +6926,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1718 + "line": 1814 } }, { @@ -7021,12 +6936,25 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1719 + "line": 1815 + } + }, + { + "name": "ImGuiCol_InputTextCursor", + "value": 33, + "is_count": false, + "comments": { + "attached": "// InputText cursor/caret" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1816 } }, { "name": "ImGuiCol_TabHovered", - "value": 33, + "value": 34, "is_count": false, "comments": { "attached": "// Tab background, when hovered" @@ -7034,12 +6962,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1720 + "line": 1817 } }, { "name": "ImGuiCol_Tab", - "value": 34, + "value": 35, "is_count": false, "comments": { "attached": "// Tab background, when tab-bar is focused & tab is unselected" @@ -7047,12 +6975,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1721 + "line": 1818 } }, { "name": "ImGuiCol_TabSelected", - "value": 35, + "value": 36, "is_count": false, "comments": { "attached": "// Tab background, when tab-bar is focused & tab is selected" @@ -7060,12 +6988,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1722 + "line": 1819 } }, { "name": "ImGuiCol_TabSelectedOverline", - "value": 36, + "value": 37, "is_count": false, "comments": { "attached": "// Tab horizontal overline, when tab-bar is focused & tab is selected" @@ -7073,12 +7001,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1723 + "line": 1820 } }, { "name": "ImGuiCol_TabDimmed", - "value": 37, + "value": 38, "is_count": false, "comments": { "attached": "// Tab background, when tab-bar is unfocused & tab is unselected" @@ -7086,12 +7014,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1724 + "line": 1821 } }, { "name": "ImGuiCol_TabDimmedSelected", - "value": 38, + "value": 39, "is_count": false, "comments": { "attached": "// Tab background, when tab-bar is unfocused & tab is selected" @@ -7099,12 +7027,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1725 + "line": 1822 } }, { "name": "ImGuiCol_TabDimmedSelectedOverline", - "value": 39, + "value": 40, "is_count": false, "comments": { "attached": "//..horizontal overline, when tab-bar is unfocused & tab is selected" @@ -7112,12 +7040,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1726 + "line": 1823 } }, { "name": "ImGuiCol_DockingPreview", - "value": 40, + "value": 41, "is_count": false, "comments": { "attached": "// Preview overlay color when about to docking something" @@ -7125,12 +7053,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1727 + "line": 1824 } }, { "name": "ImGuiCol_DockingEmptyBg", - "value": 41, + "value": 42, "is_count": false, "comments": { "attached": "// Background color for empty node (e.g. CentralNode with no window docked into it)" @@ -7138,52 +7066,52 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1728 + "line": 1825 } }, { "name": "ImGuiCol_PlotLines", - "value": 42, - "is_count": false, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1729 - } - }, - { - "name": "ImGuiCol_PlotLinesHovered", "value": 43, "is_count": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1730 + "line": 1826 } }, { - "name": "ImGuiCol_PlotHistogram", + "name": "ImGuiCol_PlotLinesHovered", "value": 44, "is_count": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1731 + "line": 1827 } }, { - "name": "ImGuiCol_PlotHistogramHovered", + "name": "ImGuiCol_PlotHistogram", "value": 45, "is_count": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1732 + "line": 1828 + } + }, + { + "name": "ImGuiCol_PlotHistogramHovered", + "value": 46, + "is_count": false, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1829 } }, { "name": "ImGuiCol_TableHeaderBg", - "value": 46, + "value": 47, "is_count": false, "comments": { "attached": "// Table header background" @@ -7191,12 +7119,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1733 + "line": 1830 } }, { "name": "ImGuiCol_TableBorderStrong", - "value": 47, + "value": 48, "is_count": false, "comments": { "attached": "// Table outer and header borders (prefer using Alpha=1.0 here)" @@ -7204,12 +7132,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1734 + "line": 1831 } }, { "name": "ImGuiCol_TableBorderLight", - "value": 48, + "value": 49, "is_count": false, "comments": { "attached": "// Table inner borders (prefer using Alpha=1.0 here)" @@ -7217,12 +7145,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1735 + "line": 1832 } }, { "name": "ImGuiCol_TableRowBg", - "value": 49, + "value": 50, "is_count": false, "comments": { "attached": "// Table row background (even rows)" @@ -7230,12 +7158,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1736 + "line": 1833 } }, { "name": "ImGuiCol_TableRowBgAlt", - "value": 50, + "value": 51, "is_count": false, "comments": { "attached": "// Table row background (odd rows)" @@ -7243,12 +7171,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1737 + "line": 1834 } }, { "name": "ImGuiCol_TextLink", - "value": 51, + "value": 52, "is_count": false, "comments": { "attached": "// Hyperlink color" @@ -7256,22 +7184,38 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1738 + "line": 1835 } }, { "name": "ImGuiCol_TextSelectedBg", - "value": 52, + "value": 53, "is_count": false, + "comments": { + "attached": "// Selected text inside an InputText" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1739 + "line": 1836 + } + }, + { + "name": "ImGuiCol_TreeLines", + "value": 54, + "is_count": false, + "comments": { + "attached": "// Tree node hierarchy outlines when using ImGuiTreeNodeFlags_DrawLines" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1837 } }, { "name": "ImGuiCol_DragDropTarget", - "value": 53, + "value": 55, "is_count": false, "comments": { "attached": "// Rectangle highlighting a drop target" @@ -7279,25 +7223,25 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1740 + "line": 1838 } }, { - "name": "ImGuiCol_NavHighlight", - "value": 54, + "name": "ImGuiCol_NavCursor", + "value": 56, "is_count": false, "comments": { - "attached": "// Gamepad/keyboard: current highlighted item" + "attached": "// Color of keyboard/gamepad navigation cursor/rectangle, when visible" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1741 + "line": 1839 } }, { "name": "ImGuiCol_NavWindowingHighlight", - "value": 55, + "value": 57, "is_count": false, "comments": { "attached": "// Highlight window when using CTRL+TAB" @@ -7305,12 +7249,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1742 + "line": 1840 } }, { "name": "ImGuiCol_NavWindowingDimBg", - "value": 56, + "value": 58, "is_count": false, "comments": { "attached": "// Darken/colorize entire screen behind the CTRL+TAB window list, when active" @@ -7318,12 +7262,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1743 + "line": 1841 } }, { "name": "ImGuiCol_ModalWindowDimBg", - "value": 57, + "value": 59, "is_count": false, "comments": { "attached": "// Darken/colorize entire screen behind a modal window, when one is active" @@ -7331,23 +7275,23 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1744 + "line": 1842 } }, { "name": "ImGuiCol_COUNT", - "value": 58, + "value": 60, "is_count": true, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1745 + "line": 1843 } }, { "name": "ImGuiCol_TabActive", "value_expression": "ImGuiCol_TabSelected", - "value": 35, + "value": 36, "is_count": false, "comments": { "attached": "// [renamed in 1.90.9]" @@ -7361,32 +7305,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1748 + "line": 1846 } }, { "name": "ImGuiCol_TabUnfocused", "value_expression": "ImGuiCol_TabDimmed", - "value": 37, - "is_count": false, - "comments": { - "attached": "// [renamed in 1.90.9]" - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1749 - } - }, - { - "name": "ImGuiCol_TabUnfocusedActive", - "value_expression": "ImGuiCol_TabDimmedSelected", "value": 38, "is_count": false, "comments": { @@ -7401,7 +7325,47 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1750 + "line": 1847 + } + }, + { + "name": "ImGuiCol_TabUnfocusedActive", + "value_expression": "ImGuiCol_TabDimmedSelected", + "value": 39, + "is_count": false, + "comments": { + "attached": "// [renamed in 1.90.9]" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1848 + } + }, + { + "name": "ImGuiCol_NavHighlight", + "value_expression": "ImGuiCol_NavCursor", + "value": 56, + "is_count": false, + "comments": { + "attached": "// [renamed in 1.91.4]" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1849 } } ], @@ -7413,7 +7377,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1685 + "line": 1781 } }, { @@ -7434,7 +7398,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1765 + "line": 1864 } }, { @@ -7447,7 +7411,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1766 + "line": 1865 } }, { @@ -7460,7 +7424,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1767 + "line": 1866 } }, { @@ -7473,7 +7437,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1768 + "line": 1867 } }, { @@ -7486,7 +7450,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1769 + "line": 1868 } }, { @@ -7499,7 +7463,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1770 + "line": 1869 } }, { @@ -7512,7 +7476,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1771 + "line": 1870 } }, { @@ -7525,7 +7489,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1772 + "line": 1871 } }, { @@ -7538,7 +7502,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1773 + "line": 1872 } }, { @@ -7551,7 +7515,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1774 + "line": 1873 } }, { @@ -7564,7 +7528,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1775 + "line": 1874 } }, { @@ -7577,7 +7541,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1776 + "line": 1875 } }, { @@ -7590,7 +7554,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1777 + "line": 1876 } }, { @@ -7603,7 +7567,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1778 + "line": 1877 } }, { @@ -7616,7 +7580,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1779 + "line": 1878 } }, { @@ -7629,7 +7593,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1780 + "line": 1879 } }, { @@ -7642,7 +7606,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1781 + "line": 1880 } }, { @@ -7655,7 +7619,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1782 + "line": 1881 } }, { @@ -7668,7 +7632,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1783 + "line": 1882 } }, { @@ -7681,7 +7645,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1784 + "line": 1883 } }, { @@ -7694,7 +7658,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1785 + "line": 1884 } }, { @@ -7707,12 +7671,25 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1786 + "line": 1885 + } + }, + { + "name": "ImGuiStyleVar_ImageBorderSize", + "value": 22, + "is_count": false, + "comments": { + "attached": "// float ImageBorderSize" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1886 } }, { "name": "ImGuiStyleVar_TabRounding", - "value": 22, + "value": 23, "is_count": false, "comments": { "attached": "// float TabRounding" @@ -7720,12 +7697,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1787 + "line": 1887 } }, { "name": "ImGuiStyleVar_TabBorderSize", - "value": 23, + "value": 24, "is_count": false, "comments": { "attached": "// float TabBorderSize" @@ -7733,12 +7710,38 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1788 + "line": 1888 + } + }, + { + "name": "ImGuiStyleVar_TabMinWidthBase", + "value": 25, + "is_count": false, + "comments": { + "attached": "// float TabMinWidthBase" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1889 + } + }, + { + "name": "ImGuiStyleVar_TabMinWidthShrink", + "value": 26, + "is_count": false, + "comments": { + "attached": "// float TabMinWidthShrink" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1890 } }, { "name": "ImGuiStyleVar_TabBarBorderSize", - "value": 24, + "value": 27, "is_count": false, "comments": { "attached": "// float TabBarBorderSize" @@ -7746,12 +7749,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1789 + "line": 1891 } }, { "name": "ImGuiStyleVar_TabBarOverlineSize", - "value": 25, + "value": 28, "is_count": false, "comments": { "attached": "// float TabBarOverlineSize" @@ -7759,12 +7762,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1790 + "line": 1892 } }, { "name": "ImGuiStyleVar_TableAngledHeadersAngle", - "value": 26, + "value": 29, "is_count": false, "comments": { "attached": "// float TableAngledHeadersAngle" @@ -7772,12 +7775,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1791 + "line": 1893 } }, { "name": "ImGuiStyleVar_TableAngledHeadersTextAlign", - "value": 27, + "value": 30, "is_count": false, "comments": { "attached": "// ImVec2 TableAngledHeadersTextAlign" @@ -7785,12 +7788,38 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1792 + "line": 1894 + } + }, + { + "name": "ImGuiStyleVar_TreeLinesSize", + "value": 31, + "is_count": false, + "comments": { + "attached": "// float TreeLinesSize" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1895 + } + }, + { + "name": "ImGuiStyleVar_TreeLinesRounding", + "value": 32, + "is_count": false, + "comments": { + "attached": "// float TreeLinesRounding" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1896 } }, { "name": "ImGuiStyleVar_ButtonTextAlign", - "value": 28, + "value": 33, "is_count": false, "comments": { "attached": "// ImVec2 ButtonTextAlign" @@ -7798,12 +7827,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1793 + "line": 1897 } }, { "name": "ImGuiStyleVar_SelectableTextAlign", - "value": 29, + "value": 34, "is_count": false, "comments": { "attached": "// ImVec2 SelectableTextAlign" @@ -7811,12 +7840,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1794 + "line": 1898 } }, { "name": "ImGuiStyleVar_SeparatorTextBorderSize", - "value": 30, + "value": 35, "is_count": false, "comments": { "attached": "// float SeparatorTextBorderSize" @@ -7824,12 +7853,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1795 + "line": 1899 } }, { "name": "ImGuiStyleVar_SeparatorTextAlign", - "value": 31, + "value": 36, "is_count": false, "comments": { "attached": "// ImVec2 SeparatorTextAlign" @@ -7837,12 +7866,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1796 + "line": 1900 } }, { "name": "ImGuiStyleVar_SeparatorTextPadding", - "value": 32, + "value": 37, "is_count": false, "comments": { "attached": "// ImVec2 SeparatorTextPadding" @@ -7850,12 +7879,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1797 + "line": 1901 } }, { "name": "ImGuiStyleVar_DockingSeparatorSize", - "value": 33, + "value": 38, "is_count": false, "comments": { "attached": "// float DockingSeparatorSize" @@ -7863,17 +7892,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1798 + "line": 1902 } }, { "name": "ImGuiStyleVar_COUNT", - "value": 34, + "value": 39, "is_count": true, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1799 + "line": 1903 } } ], @@ -7892,7 +7921,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1762 + "line": 1861 } }, { @@ -7908,7 +7937,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1805 + "line": 1909 } }, { @@ -7922,7 +7951,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1806 + "line": 1910 } }, { @@ -7936,7 +7965,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1807 + "line": 1911 } }, { @@ -7950,7 +7979,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1808 + "line": 1912 } }, { @@ -7964,7 +7993,21 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1809 + "line": 1913 + } + }, + { + "name": "ImGuiButtonFlags_EnableNav", + "value_expression": "1<<3", + "value": 8, + "is_count": false, + "comments": { + "attached": "// InvisibleButton(): do not disable navigation/tabbing. Otherwise disabled by default." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1914 } } ], @@ -7976,7 +8019,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1803 + "line": 1907 } }, { @@ -7992,7 +8035,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1816 + "line": 1920 } }, { @@ -8006,7 +8049,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1817 + "line": 1921 } }, { @@ -8020,7 +8063,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1818 + "line": 1922 } }, { @@ -8034,7 +8077,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1819 + "line": 1923 } }, { @@ -8048,7 +8091,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1820 + "line": 1924 } }, { @@ -8062,7 +8105,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1821 + "line": 1925 } }, { @@ -8076,7 +8119,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1822 + "line": 1926 } }, { @@ -8090,7 +8133,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1823 + "line": 1927 } }, { @@ -8104,7 +8147,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1824 + "line": 1928 } }, { @@ -8118,7 +8161,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1825 + "line": 1929 } }, { @@ -8132,7 +8175,55 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1826 + "line": 1930 + } + }, + { + "name": "ImGuiColorEditFlags_AlphaOpaque", + "value_expression": "1<<11", + "value": 2048, + "is_count": false, + "comments": { + "preceding": [ + "// Alpha preview", + "// - Prior to 1.91.8 (2025/01/21): alpha was made opaque in the preview by default using old name ImGuiColorEditFlags_AlphaPreview.", + "// - We now display the preview as transparent by default. You can use ImGuiColorEditFlags_AlphaOpaque to use old behavior.", + "// - The new flags may be combined better and allow finer controls." + ], + "attached": "// // ColorEdit, ColorPicker, ColorButton: disable alpha in the preview,. Contrary to _NoAlpha it may still be edited when calling ColorEdit4()/ColorPicker4(). For ColorButton() this does the same as _NoAlpha." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1936 + } + }, + { + "name": "ImGuiColorEditFlags_AlphaNoBg", + "value_expression": "1<<12", + "value": 4096, + "is_count": false, + "comments": { + "attached": "// // ColorEdit, ColorPicker, ColorButton: disable rendering a checkerboard background behind transparent color." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1937 + } + }, + { + "name": "ImGuiColorEditFlags_AlphaPreviewHalf", + "value_expression": "1<<13", + "value": 8192, + "is_count": false, + "comments": { + "attached": "// // ColorEdit, ColorPicker, ColorButton: display half opaque / half transparent preview." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1938 } }, { @@ -8149,35 +8240,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1829 - } - }, - { - "name": "ImGuiColorEditFlags_AlphaPreview", - "value_expression": "1<<17", - "value": 131072, - "is_count": false, - "comments": { - "attached": "// // ColorEdit, ColorPicker, ColorButton: display preview as a transparent color over a checkerboard, instead of opaque." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1830 - } - }, - { - "name": "ImGuiColorEditFlags_AlphaPreviewHalf", - "value_expression": "1<<18", - "value": 262144, - "is_count": false, - "comments": { - "attached": "// // ColorEdit, ColorPicker, ColorButton: display half opaque / half checkerboard, instead of opaque." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1831 + "line": 1941 } }, { @@ -8191,7 +8254,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1832 + "line": 1942 } }, { @@ -8205,7 +8268,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1833 + "line": 1943 } }, { @@ -8219,7 +8282,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1834 + "line": 1944 } }, { @@ -8233,7 +8296,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1835 + "line": 1945 } }, { @@ -8247,7 +8310,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1836 + "line": 1946 } }, { @@ -8261,7 +8324,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1837 + "line": 1947 } }, { @@ -8275,7 +8338,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1838 + "line": 1948 } }, { @@ -8289,7 +8352,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1839 + "line": 1949 } }, { @@ -8303,7 +8366,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1840 + "line": 1950 } }, { @@ -8317,7 +8380,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1841 + "line": 1951 } }, { @@ -8334,13 +8397,13 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1845 + "line": 1955 } }, { - "name": "ImGuiColorEditFlags_DisplayMask_", - "value_expression": "ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex", - "value": 7340032, + "name": "ImGuiColorEditFlags_AlphaMask_", + "value_expression": "ImGuiColorEditFlags_NoAlpha | ImGuiColorEditFlags_AlphaOpaque | ImGuiColorEditFlags_AlphaNoBg | ImGuiColorEditFlags_AlphaPreviewHalf", + "value": 14338, "is_count": false, "comments": { "preceding": [ @@ -8350,7 +8413,18 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1848 + "line": 1958 + } + }, + { + "name": "ImGuiColorEditFlags_DisplayMask_", + "value_expression": "ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHSV | ImGuiColorEditFlags_DisplayHex", + "value": 7340032, + "is_count": false, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 1959 } }, { @@ -8361,7 +8435,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1849 + "line": 1960 } }, { @@ -8372,7 +8446,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1850 + "line": 1961 } }, { @@ -8383,7 +8457,27 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1851 + "line": 1962 + } + }, + { + "name": "ImGuiColorEditFlags_AlphaPreview", + "value_expression": "0", + "value": 0, + "is_count": false, + "comments": { + "attached": "// [Removed in 1.91.8] This is the default now. Will display a checkerboard unless ImGuiColorEditFlags_AlphaNoBg is set." + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1966 } } ], @@ -8395,7 +8489,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1814 + "line": 1918 } }, { @@ -8411,21 +8505,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1862 - } - }, - { - "name": "ImGuiSliderFlags_AlwaysClamp", - "value_expression": "1<<4", - "value": 16, - "is_count": false, - "comments": { - "attached": "// Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1863 + "line": 1976 } }, { @@ -8439,7 +8519,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1864 + "line": 1977 } }, { @@ -8453,7 +8533,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1865 + "line": 1978 } }, { @@ -8467,7 +8547,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1866 + "line": 1979 } }, { @@ -8476,12 +8556,65 @@ "value": 256, "is_count": false, "comments": { - "attached": "// Enable wrapping around from max to min and from min to max (only supported by DragXXX() functions for now." + "attached": "// Enable wrapping around from max to min and from min to max. Only supported by DragXXX() functions for now." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1867 + "line": 1980 + } + }, + { + "name": "ImGuiSliderFlags_ClampOnInput", + "value_expression": "1<<9", + "value": 512, + "is_count": false, + "comments": { + "attached": "// Clamp value to min/max bounds when input manually with CTRL+Click. By default CTRL+Click allows going out of bounds." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1981 + } + }, + { + "name": "ImGuiSliderFlags_ClampZeroRange", + "value_expression": "1<<10", + "value": 1024, + "is_count": false, + "comments": { + "attached": "// Clamp even if min==max==0.0f. Otherwise due to legacy reason DragXXX functions don't clamp with those values. When your clamping limits are dynamic you almost always want to use it." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1982 + } + }, + { + "name": "ImGuiSliderFlags_NoSpeedTweaks", + "value_expression": "1<<11", + "value": 2048, + "is_count": false, + "comments": { + "attached": "// Disable keyboard modifiers altering tweak speed. Useful if you want to alter tweak speed yourself based on your own logic." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1983 + } + }, + { + "name": "ImGuiSliderFlags_AlwaysClamp", + "value_expression": "ImGuiSliderFlags_ClampOnInput | ImGuiSliderFlags_ClampZeroRange", + "value": 1536, + "is_count": false, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1984 } }, { @@ -8495,7 +8628,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 1868 + "line": 1985 } } ], @@ -8503,13 +8636,13 @@ "preceding": [ "// Flags for DragFloat(), DragInt(), SliderFloat(), SliderInt() etc.", "// We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them.", - "// (Those are per-item flags. There are shared flags in ImGuiIO: io.ConfigDragClickToInputText)" + "// (Those are per-item flags. There is shared behavior flag too: ImGuiIO: io.ConfigDragClickToInputText)" ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1860 + "line": 1974 } }, { @@ -8525,7 +8658,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1878 + "line": 1992 } }, { @@ -8536,7 +8669,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1879 + "line": 1993 } }, { @@ -8547,7 +8680,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1880 + "line": 1994 } }, { @@ -8558,7 +8691,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1881 + "line": 1995 } } ], @@ -8571,7 +8704,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1876 + "line": 1990 } }, { @@ -8587,7 +8720,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1888 + "line": 2002 } }, { @@ -8598,7 +8731,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1889 + "line": 2003 } }, { @@ -8611,7 +8744,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1890 + "line": 2004 } }, { @@ -8624,7 +8757,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1891 + "line": 2005 } }, { @@ -8637,7 +8770,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1892 + "line": 2006 } }, { @@ -8650,7 +8783,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1893 + "line": 2007 } }, { @@ -8663,7 +8796,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1894 + "line": 2008 } }, { @@ -8676,7 +8809,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1895 + "line": 2009 } }, { @@ -8689,12 +8822,38 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1896 + "line": 2010 + } + }, + { + "name": "ImGuiMouseCursor_Wait", + "value": 8, + "is_count": false, + "comments": { + "attached": "// When waiting for something to process/load." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2011 + } + }, + { + "name": "ImGuiMouseCursor_Progress", + "value": 9, + "is_count": false, + "comments": { + "attached": "// When waiting for something to process/load, but application is still interactive." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2012 } }, { "name": "ImGuiMouseCursor_NotAllowed", - "value": 8, + "value": 10, "is_count": false, "comments": { "attached": "// When hovering something with disallowed interaction. Usually a crossed circle." @@ -8702,17 +8861,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1897 + "line": 2013 } }, { "name": "ImGuiMouseCursor_COUNT", - "value": 9, + "value": 11, "is_count": true, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1898 + "line": 2014 } } ], @@ -8725,7 +8884,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1886 + "line": 2000 } }, { @@ -8751,7 +8910,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1907 + "line": 2023 } }, { @@ -8764,7 +8923,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1908 + "line": 2024 } }, { @@ -8777,7 +8936,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1909 + "line": 2025 } }, { @@ -8787,7 +8946,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1910 + "line": 2026 } } ], @@ -8803,7 +8962,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1905 + "line": 2021 } }, { @@ -8822,7 +8981,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1918 + "line": 2034 } }, { @@ -8836,7 +8995,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1919 + "line": 2035 } }, { @@ -8850,7 +9009,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1920 + "line": 2036 } }, { @@ -8864,7 +9023,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1921 + "line": 2037 } }, { @@ -8878,7 +9037,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1922 + "line": 2038 } } ], @@ -8892,7 +9051,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1916 + "line": 2032 } }, { @@ -8913,7 +9072,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1954 + "line": 2070 } }, { @@ -8927,7 +9086,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1955 + "line": 2071 } }, { @@ -8941,7 +9100,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1956 + "line": 2072 } }, { @@ -8955,7 +9114,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1957 + "line": 2073 } }, { @@ -8969,7 +9128,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1958 + "line": 2074 } }, { @@ -8983,7 +9142,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1959 + "line": 2075 } }, { @@ -8997,7 +9156,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1960 + "line": 2076 } }, { @@ -9014,7 +9173,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1962 + "line": 2078 } }, { @@ -9028,7 +9187,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1963 + "line": 2079 } }, { @@ -9042,7 +9201,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1964 + "line": 2080 } }, { @@ -9056,7 +9215,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1965 + "line": 2081 } }, { @@ -9070,7 +9229,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1966 + "line": 2082 } }, { @@ -9084,7 +9243,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1967 + "line": 2083 } }, { @@ -9098,7 +9257,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1968 + "line": 2084 } }, { @@ -9112,7 +9271,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1969 + "line": 2085 } }, { @@ -9126,7 +9285,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1970 + "line": 2086 } }, { @@ -9140,7 +9299,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1971 + "line": 2087 } }, { @@ -9154,7 +9313,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1972 + "line": 2088 } }, { @@ -9168,7 +9327,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1973 + "line": 2089 } }, { @@ -9185,7 +9344,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1975 + "line": 2091 } }, { @@ -9199,7 +9358,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1976 + "line": 2092 } }, { @@ -9213,7 +9372,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1977 + "line": 2093 } }, { @@ -9227,7 +9386,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1978 + "line": 2094 } }, { @@ -9244,7 +9403,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1980 + "line": 2096 } }, { @@ -9258,7 +9417,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1981 + "line": 2097 } }, { @@ -9272,7 +9431,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1982 + "line": 2098 } }, { @@ -9286,7 +9445,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1983 + "line": 2099 } }, { @@ -9303,7 +9462,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1985 + "line": 2101 } }, { @@ -9320,7 +9479,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1987 + "line": 2103 } }, { @@ -9334,7 +9493,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1988 + "line": 2104 } }, { @@ -9348,7 +9507,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1989 + "line": 2105 } }, { @@ -9365,7 +9524,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1991 + "line": 2107 } }, { @@ -9379,7 +9538,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1992 + "line": 2108 } }, { @@ -9396,7 +9555,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1994 + "line": 2110 } }, { @@ -9410,7 +9569,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1995 + "line": 2111 } }, { @@ -9427,7 +9586,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1997 + "line": 2113 } }, { @@ -9443,7 +9602,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2000 + "line": 2116 } } ], @@ -9476,7 +9635,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1951 + "line": 2067 } }, { @@ -9497,7 +9656,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2007 + "line": 2123 } }, { @@ -9511,7 +9670,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2008 + "line": 2124 } }, { @@ -9525,7 +9684,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2009 + "line": 2125 } }, { @@ -9539,7 +9698,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2010 + "line": 2126 } }, { @@ -9553,7 +9712,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2011 + "line": 2127 } }, { @@ -9567,7 +9726,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2012 + "line": 2128 } }, { @@ -9581,7 +9740,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2013 + "line": 2129 } }, { @@ -9595,7 +9754,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2014 + "line": 2130 } }, { @@ -9609,7 +9768,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2015 + "line": 2131 } }, { @@ -9623,7 +9782,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2016 + "line": 2132 } }, { @@ -9637,7 +9796,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2017 + "line": 2133 } }, { @@ -9651,7 +9810,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2018 + "line": 2134 } }, { @@ -9665,7 +9824,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2019 + "line": 2135 } }, { @@ -9674,12 +9833,12 @@ "value": 4096, "is_count": false, "comments": { - "attached": "// TableHeadersRow() will not submit horizontal label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers." + "attached": "// TableHeadersRow() will submit an empty label for this column. Convenient for some small columns. Name will still appear in context menu or in angled headers. You may append into this cell by calling TableSetColumnIndex() right after the TableHeadersRow() call." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2020 + "line": 2136 } }, { @@ -9693,7 +9852,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2021 + "line": 2137 } }, { @@ -9707,7 +9866,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2022 + "line": 2138 } }, { @@ -9721,7 +9880,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2023 + "line": 2139 } }, { @@ -9735,7 +9894,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2024 + "line": 2140 } }, { @@ -9749,7 +9908,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2025 + "line": 2141 } }, { @@ -9763,7 +9922,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2026 + "line": 2142 } }, { @@ -9780,7 +9939,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2029 + "line": 2145 } }, { @@ -9794,7 +9953,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2030 + "line": 2146 } }, { @@ -9808,7 +9967,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2031 + "line": 2147 } }, { @@ -9822,7 +9981,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2032 + "line": 2148 } }, { @@ -9838,7 +9997,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2035 + "line": 2151 } }, { @@ -9849,7 +10008,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2036 + "line": 2152 } }, { @@ -9860,7 +10019,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2037 + "line": 2153 } }, { @@ -9874,7 +10033,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2038 + "line": 2154 } } ], @@ -9886,7 +10045,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2004 + "line": 2120 } }, { @@ -9902,7 +10061,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2044 + "line": 2160 } }, { @@ -9916,7 +10075,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2045 + "line": 2161 } } ], @@ -9928,7 +10087,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2042 + "line": 2158 } }, { @@ -9944,7 +10103,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2059 + "line": 2175 } }, { @@ -9958,7 +10117,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2060 + "line": 2176 } }, { @@ -9972,7 +10131,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2061 + "line": 2177 } }, { @@ -9986,7 +10145,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2062 + "line": 2178 } } ], @@ -10006,7 +10165,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2057 + "line": 2173 } }, { @@ -10022,7 +10181,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2897 + "line": 3084 } }, { @@ -10036,7 +10195,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2898 + "line": 3085 } }, { @@ -10050,7 +10209,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2899 + "line": 3086 } }, { @@ -10064,7 +10223,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2900 + "line": 3087 } }, { @@ -10078,7 +10237,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2901 + "line": 3088 } }, { @@ -10092,7 +10251,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2902 + "line": 3089 } }, { @@ -10106,7 +10265,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2903 + "line": 3090 } }, { @@ -10120,7 +10279,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2904 + "line": 3091 } }, { @@ -10134,7 +10293,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2905 + "line": 3092 } }, { @@ -10148,7 +10307,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2906 + "line": 3093 } }, { @@ -10162,7 +10321,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2907 + "line": 3094 } }, { @@ -10176,7 +10335,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2908 + "line": 3095 } }, { @@ -10190,7 +10349,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2909 + "line": 3096 } }, { @@ -10204,7 +10363,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2910 + "line": 3097 } }, { @@ -10218,7 +10377,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2911 + "line": 3098 } }, { @@ -10232,7 +10391,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2912 + "line": 3099 } }, { @@ -10249,7 +10408,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2914 + "line": 3101 } } ], @@ -10261,7 +10420,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2895 + "line": 3082 } }, { @@ -10277,7 +10436,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2936 + "line": 3123 } }, { @@ -10290,7 +10449,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2937 + "line": 3124 } }, { @@ -10303,7 +10462,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2938 + "line": 3125 } } ], @@ -10315,7 +10474,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2934 + "line": 3121 } }, { @@ -10331,7 +10490,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3103 + "line": 3299 } }, { @@ -10345,7 +10504,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3104 + "line": 3300 } }, { @@ -10359,7 +10518,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3105 + "line": 3301 } }, { @@ -10373,7 +10532,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3106 + "line": 3302 } }, { @@ -10387,7 +10546,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3107 + "line": 3303 } }, { @@ -10401,7 +10560,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3108 + "line": 3304 } }, { @@ -10415,7 +10574,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3109 + "line": 3305 } }, { @@ -10426,7 +10585,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3110 + "line": 3306 } }, { @@ -10437,7 +10596,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3111 + "line": 3307 } }, { @@ -10448,7 +10607,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3112 + "line": 3308 } }, { @@ -10459,7 +10618,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3113 + "line": 3309 } }, { @@ -10470,7 +10629,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3114 + "line": 3310 } }, { @@ -10484,7 +10643,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3115 + "line": 3311 } }, { @@ -10495,7 +10654,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3116 + "line": 3312 } } ], @@ -10508,7 +10667,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3101 + "line": 3297 } }, { @@ -10524,7 +10683,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3123 + "line": 3319 } }, { @@ -10538,7 +10697,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3124 + "line": 3320 } }, { @@ -10552,7 +10711,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3125 + "line": 3321 } }, { @@ -10566,7 +10725,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3126 + "line": 3322 } }, { @@ -10580,7 +10739,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3127 + "line": 3323 } } ], @@ -10593,7 +10752,129 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3121 + "line": 3317 + } + }, + { + "name": "ImTextureFormat", + "original_fully_qualified_name": "ImTextureFormat", + "is_flags_enum": false, + "elements": [ + { + "name": "ImTextureFormat_RGBA32", + "value": 0, + "is_count": false, + "comments": { + "attached": "// 4 components per pixel, each is unsigned 8-bit. Total size = TexWidth * TexHeight * 4" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3528 + } + }, + { + "name": "ImTextureFormat_Alpha8", + "value": 1, + "is_count": false, + "comments": { + "attached": "// 1 component per pixel, each is unsigned 8-bit. Total size = TexWidth * TexHeight" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3529 + } + } + ], + "comments": { + "preceding": [ + "// Most standard backends only support RGBA32 but we provide a single channel option for low-resource/embedded systems." + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3526 + } + }, + { + "name": "ImTextureStatus", + "original_fully_qualified_name": "ImTextureStatus", + "is_flags_enum": false, + "elements": [ + { + "name": "ImTextureStatus_OK", + "value": 0, + "is_count": false, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3535 + } + }, + { + "name": "ImTextureStatus_Destroyed", + "value": 1, + "is_count": false, + "comments": { + "attached": "// Backend destroyed the texture." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3536 + } + }, + { + "name": "ImTextureStatus_WantCreate", + "value": 2, + "is_count": false, + "comments": { + "attached": "// Requesting backend to create the texture. Set status OK when done." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3537 + } + }, + { + "name": "ImTextureStatus_WantUpdates", + "value": 3, + "is_count": false, + "comments": { + "attached": "// Requesting backend to update specific blocks of pixels (write to texture portions which have never been used before). Set status OK when done." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3538 + } + }, + { + "name": "ImTextureStatus_WantDestroy", + "value": 4, + "is_count": false, + "comments": { + "attached": "// Requesting backend to destroy the texture. Set status to Destroyed when done." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3539 + } + } + ], + "comments": { + "preceding": [ + "// Status of a texture to communicate with Renderer Backend." + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3533 } }, { @@ -10609,7 +10890,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3375 + "line": 3690 } }, { @@ -10623,7 +10904,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3376 + "line": 3691 } }, { @@ -10637,7 +10918,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3377 + "line": 3692 } }, { @@ -10651,7 +10932,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3378 + "line": 3693 } } ], @@ -10663,7 +10944,78 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3373 + "line": 3688 + } + }, + { + "name": "ImFontFlags_", + "original_fully_qualified_name": "ImFontFlags_", + "is_flags_enum": true, + "elements": [ + { + "name": "ImFontFlags_None", + "value_expression": "0", + "value": 0, + "is_count": false, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3901 + } + }, + { + "name": "ImFontFlags_NoLoadError", + "value_expression": "1<<1", + "value": 2, + "is_count": false, + "comments": { + "attached": "// Disable throwing an error/assert when calling AddFontXXX() with missing file/data. Calling code is expected to check AddFontXXX() return value." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3902 + } + }, + { + "name": "ImFontFlags_NoLoadGlyphs", + "value_expression": "1<<2", + "value": 4, + "is_count": false, + "comments": { + "attached": "// [Internal] Disable loading new glyphs." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3903 + } + }, + { + "name": "ImFontFlags_LockBakedSizes", + "value_expression": "1<<3", + "value": 8, + "is_count": false, + "comments": { + "attached": "// [Internal] Disable loading new baked sizes, disable garbage collecting current ones. e.g. if you want to lock a font to a single size. Important: if you use this to preload given sizes, consider the possibility of multiple font density used on Retina display." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3904 + } + } + ], + "comments": { + "preceding": [ + "// Font flags", + "// (in future versions as we redesign font loading API, this will become more important and better documented. for now please consider this as internal/advanced use)" + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3899 } }, { @@ -10679,7 +11031,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3562 + "line": 3984 } }, { @@ -10693,7 +11045,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3563 + "line": 3985 } }, { @@ -10707,7 +11059,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3564 + "line": 3986 } }, { @@ -10716,12 +11068,12 @@ "value": 4, "is_count": false, "comments": { - "attached": "// Platform Window: Was created/managed by the user application? (rather than our backend)" + "attached": "// Platform Window: Is created/managed by the user application? (rather than our backend)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3565 + "line": 3987 } }, { @@ -10735,7 +11087,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3566 + "line": 3988 } }, { @@ -10749,7 +11101,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3567 + "line": 3989 } }, { @@ -10763,7 +11115,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3568 + "line": 3990 } }, { @@ -10777,7 +11129,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3569 + "line": 3991 } }, { @@ -10791,7 +11143,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3570 + "line": 3992 } }, { @@ -10805,7 +11157,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3571 + "line": 3993 } }, { @@ -10819,7 +11171,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3572 + "line": 3994 } }, { @@ -10833,7 +11185,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3573 + "line": 3995 } }, { @@ -10847,7 +11199,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3574 + "line": 3996 } }, { @@ -10864,7 +11216,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3577 + "line": 3999 } }, { @@ -10878,7 +11230,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3578 + "line": 4000 } } ], @@ -10890,11 +11242,34 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3560 + "line": 3982 } } ], "typedefs": [ + { + "name": "ImDrawIdx", + "type": { + "declaration": "unsigned short", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_short" + } + }, + "comments": { + "attached": "// Default: 16-bit (for maximum compatibility with renderer backends)" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "ImDrawIdx" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, { "name": "ImGuiID", "type": { @@ -11287,6 +11662,23 @@ "filename": "imgui.h" } }, + { + "name": "ImFontFlags", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// -> enum ImFontFlags_ // Flags: for ImFont" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, { "name": "ImFontAtlasFlags", "type": { @@ -11297,7 +11689,7 @@ } }, "comments": { - "attached": "// -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas build" + "attached": "// -> enum ImFontAtlasFlags_ // Flags: for ImFontAtlas" }, "is_internal": false, "source_location": { @@ -11746,55 +12138,6 @@ "filename": "imgui.h" } }, - { - "name": "ImTextureID", - "type": { - "declaration": "void*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "Builtin", - "builtin_type": "void" - } - } - }, - "comments": { - "attached": "// Default: store a pointer or an integer fitting in a pointer (most renderer backends are ok with that)" - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "ImTextureID" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h" - } - }, - { - "name": "ImDrawIdx", - "type": { - "declaration": "unsigned short", - "description": { - "kind": "Builtin", - "builtin_type": "unsigned_short" - } - }, - "comments": { - "attached": "// Default: 16-bit (for maximum compatibility with renderer backends)" - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "ImDrawIdx" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h" - } - }, { "name": "ImWchar32", "type": { @@ -12223,6 +12566,29 @@ "filename": "imgui.h" } }, + { + "name": "ImTextureID", + "type": { + "declaration": "ImU64", + "description": { + "kind": "User", + "name": "ImU64" + } + }, + "comments": { + "attached": "// Default: store up to 64-bits (any pointer or integer). A majority of backends are ok with that." + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "ImTextureID" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, { "name": "ImDrawCallback", "type": { @@ -12332,6 +12698,55 @@ "source_location": { "filename": "imgui.h" } + }, + { + "name": "ImFontAtlasRectId", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "preceding": [ + "// An opaque identifier to a rectangle in the atlas. -1 when invalid.", + "// The rectangle may move and UV may be invalidated, use GetCustomRect() to retrieve it." + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, + { + "name": "ImFontAtlasCustomRect", + "type": { + "declaration": "ImFontAtlasRect", + "description": { + "kind": "User", + "name": "ImFontAtlasRect" + } + }, + "comments": { + "preceding": [ + "//-- OBSOLETED in 1.92.x: ImFontAtlasCustomRect becomes ImTextureRect", + "// - ImFontAtlasCustomRect::X,Y --> ImTextureRect::x,y", + "// - ImFontAtlasCustomRect::Width,Height --> ImTextureRect::w,h", + "// - ImFontAtlasCustomRect::GlyphColored --> if you need to write to this, instead you can write to 'font->Glyphs.back()->Colored' after calling AddCustomRectFontGlyph()", + "// We could make ImTextureRect an union to use old names, but 1) this would be confusing 2) the fix is easy 3) ImFontAtlasCustomRect was always a rather esoteric api." + ] + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } } ], "structs": [ @@ -12349,24 +12764,41 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 165 + "line": 171 } }, { - "name": "ImFontBuilderIO", - "original_fully_qualified_name": "ImFontBuilderIO", + "name": "ImFontAtlasBuilder", + "original_fully_qualified_name": "ImFontAtlasBuilder", "kind": "struct", "by_value": false, "forward_declaration": true, "is_anonymous": false, "fields": [], "comments": { - "attached": "// Opaque interface to a font builder (stb_truetype or FreeType)." + "attached": "// Opaque storage for building a ImFontAtlas" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 170 + "line": 176 + } + }, + { + "name": "ImFontLoader", + "original_fully_qualified_name": "ImFontLoader", + "kind": "struct", + "by_value": false, + "forward_declaration": true, + "is_anonymous": false, + "fields": [], + "comments": { + "attached": "// Opaque interface to a font loading backend (stb_truetype, FreeType etc.)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 182 } }, { @@ -12378,12 +12810,15 @@ "is_anonymous": false, "fields": [], "comments": { + "preceding": [ + "// Forward declarations: ImGui layer" + ], "attached": "// Dear ImGui context (opaque structure, unless including imgui_internal.h)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 175 + "line": 188 } }, { @@ -12523,6 +12958,67 @@ "line": 305 } }, + { + "name": "ImTextureRef", + "original_fully_qualified_name": "ImTextureRef", + "kind": "struct", + "by_value": true, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "_TexData", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "comments": { + "preceding": [ + "// Members (either are set, never both!)" + ], + "attached": "// A texture, generally owned by a ImFontAtlas. Will convert to ImTextureID during render loop, after texture has been uploaded." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 373 + } + }, + { + "name": "_TexID", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureID", + "description": { + "kind": "User", + "name": "ImTextureID" + } + }, + "comments": { + "attached": "// _OR_ Low-level backend texture identifier, if already uploaded or created by user/app. Generally provided to e.g. ImGui::Image() calls." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 374 + } + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 362 + } + }, { "name": "ImGuiTableSortSpecs", "original_fully_qualified_name": "ImGuiTableSortSpecs", @@ -12554,7 +13050,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2071 + "line": 2187 } }, { @@ -12574,7 +13070,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2072 + "line": 2188 } }, { @@ -12594,7 +13090,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2073 + "line": 2189 } } ], @@ -12609,7 +13105,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2069 + "line": 2185 } }, { @@ -12637,7 +13133,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2081 + "line": 2197 } }, { @@ -12657,7 +13153,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2082 + "line": 2198 } }, { @@ -12677,7 +13173,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2083 + "line": 2199 } }, { @@ -12697,7 +13193,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2084 + "line": 2200 } } ], @@ -12709,80 +13205,11 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2079 + "line": 2195 } }, { - "name": "ImVector_ImWchar", - "original_fully_qualified_name": "ImVector", - "kind": "struct", - "by_value": false, - "forward_declaration": false, - "is_anonymous": false, - "fields": [ - { - "name": "Size", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2133 - } - }, - { - "name": "Capacity", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2134 - } - }, - { - "name": "Data", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImWchar*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImWchar" - } - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2135 - } - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2131 - } - }, - { - "name": "ImVector_ImGuiTextFilter_ImGuiTextRange", + "name": "ImVector_ImGuiTextRange", "original_fully_qualified_name": "ImVector", "kind": "struct", "by_value": false, @@ -12803,7 +13230,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -12820,7 +13247,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -12840,14 +13267,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { @@ -12872,7 +13302,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -12889,7 +13319,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -12909,14 +13339,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { @@ -12941,7 +13374,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -12958,7 +13391,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -12978,14 +13411,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { @@ -13010,7 +13446,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13027,7 +13463,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13047,152 +13483,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 - } - }, - { - "name": "ImVector_ImDrawCmd", - "original_fully_qualified_name": "ImVector", - "kind": "struct", - "by_value": false, - "forward_declaration": false, - "is_anonymous": false, - "fields": [ - { - "name": "Size", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2133 - } - }, - { - "name": "Capacity", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2134 - } - }, - { - "name": "Data", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImDrawCmd*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImDrawCmd" - } - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2135 - } - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2131 - } - }, - { - "name": "ImVector_ImDrawIdx", - "original_fully_qualified_name": "ImVector", - "kind": "struct", - "by_value": false, - "forward_declaration": false, - "is_anonymous": false, - "fields": [ - { - "name": "Size", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2133 - } - }, - { - "name": "Capacity", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2134 - } - }, - { - "name": "Data", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImDrawIdx*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImDrawIdx" - } - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2135 - } - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { @@ -13217,7 +13518,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13234,7 +13535,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13254,14 +13555,161 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 + } + }, + { + "name": "ImVector_ImDrawCmd", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImDrawCmd*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImDrawCmd" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 + } + }, + { + "name": "ImVector_ImDrawIdx", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImDrawIdx*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImDrawIdx" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 } }, { @@ -13286,7 +13734,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13303,7 +13751,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13323,14 +13771,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { @@ -13355,7 +13806,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13372,7 +13823,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13392,14 +13843,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { @@ -13424,7 +13878,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13441,7 +13895,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13461,19 +13915,22 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { - "name": "ImVector_ImTextureID", - "original_fully_qualified_name": "ImVector", + "name": "ImVector_ImTextureRef", + "original_fully_qualified_name": "ImVector", "kind": "struct", "by_value": false, "forward_declaration": false, @@ -13493,7 +13950,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13510,7 +13967,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13518,26 +13975,101 @@ "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImTextureID*", + "declaration": "ImTextureRef*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } } }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 + } + }, + { + "name": "ImVector_ImU8", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImU8*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImU8" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 } }, { @@ -13562,7 +14094,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13579,7 +14111,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13602,14 +14134,89 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 + } + }, + { + "name": "ImVector_ImTextureRect", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureRect*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImTextureRect" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 } }, { @@ -13634,7 +14241,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13651,7 +14258,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13671,14 +14278,89 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 + } + }, + { + "name": "ImVector_ImWchar", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImWchar*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImWchar" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 } }, { @@ -13703,7 +14385,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13720,7 +14402,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13743,83 +14425,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 - } - }, - { - "name": "ImVector_ImFontAtlasCustomRect", - "original_fully_qualified_name": "ImVector", - "kind": "struct", - "by_value": false, - "forward_declaration": false, - "is_anonymous": false, - "fields": [ - { - "name": "Size", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2133 - } - }, - { - "name": "Capacity", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2134 - } - }, - { - "name": "Data", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImFontAtlasCustomRect*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImFontAtlasCustomRect" - } - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2135 - } - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { @@ -13844,7 +14460,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13861,7 +14477,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13881,14 +14497,92 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 + } + }, + { + "name": "ImVector_ImDrawListSharedDataPtr", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImDrawListSharedData**", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImDrawListSharedData" + } + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 } }, { @@ -13913,7 +14607,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13930,7 +14624,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -13950,14 +14644,89 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 + } + }, + { + "name": "ImVector_ImU16", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImU16*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImU16" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 } }, { @@ -13982,7 +14751,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -13999,7 +14768,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -14019,14 +14788,92 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 + } + }, + { + "name": "ImVector_ImFontConfigPtr", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImFontConfig**", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontConfig" + } + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 } }, { @@ -14051,7 +14898,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -14068,7 +14915,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -14088,14 +14935,92 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 + } + }, + { + "name": "ImVector_ImTextureDataPtr", + "original_fully_qualified_name": "ImVector", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "Size", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2249 + } + }, + { + "name": "Capacity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2250 + } + }, + { + "name": "Data", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureData**", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2251 + } + } + ], + "comments": { + "attached": "// Instantiation of ImVector" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2247 } }, { @@ -14120,7 +15045,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2133 + "line": 2249 } }, { @@ -14137,7 +15062,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2134 + "line": 2250 } }, { @@ -14160,14 +15085,17 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2135 + "line": 2251 } } ], + "comments": { + "attached": "// Instantiation of ImVector" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2131 + "line": 2247 } }, { @@ -14178,6 +15106,70 @@ "forward_declaration": false, "is_anonymous": false, "fields": [ + { + "name": "FontSizeBase", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "preceding": [ + "// Font scaling", + "// - recap: ImGui::GetFontSize() == FontSizeBase * (FontScaleMain * FontScaleDpi * other_scaling_factors)" + ], + "attached": "// Current base font size before external global factors are applied. Use PushFont(NULL, size) to modify. Use ImGui::GetFontSize() to obtain scaled value." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2323 + } + }, + { + "name": "FontScaleMain", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Main global scale factor. May be set by application once, or exposed to end-user." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2324 + } + }, + { + "name": "FontScaleDpi", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Additional global scale factor from viewport/monitor contents scale. When io.ConfigDpiScaleFonts is enabled, this is automatically overwritten when changing monitor DPI." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2325 + } + }, { "name": "Alpha", "is_array": false, @@ -14195,7 +15187,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2205 + "line": 2327 } }, { @@ -14215,7 +15207,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2206 + "line": 2328 } }, { @@ -14235,7 +15227,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2207 + "line": 2329 } }, { @@ -14255,7 +15247,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2208 + "line": 2330 } }, { @@ -14275,7 +15267,27 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2209 + "line": 2331 + } + }, + { + "name": "WindowBorderHoverPadding", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Hit-testing extent outside/inside resizing border. Also extend determination of hovered window. Generally meaningfully larger than WindowBorderSize to make it easy to reach borders." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2332 } }, { @@ -14295,7 +15307,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2210 + "line": 2333 } }, { @@ -14315,7 +15327,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2211 + "line": 2334 } }, { @@ -14335,7 +15347,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2212 + "line": 2335 } }, { @@ -14355,7 +15367,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2213 + "line": 2336 } }, { @@ -14375,7 +15387,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2214 + "line": 2337 } }, { @@ -14395,7 +15407,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2215 + "line": 2338 } }, { @@ -14415,7 +15427,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2216 + "line": 2339 } }, { @@ -14435,7 +15447,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2217 + "line": 2340 } }, { @@ -14455,7 +15467,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2218 + "line": 2341 } }, { @@ -14475,7 +15487,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2219 + "line": 2342 } }, { @@ -14495,7 +15507,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2220 + "line": 2343 } }, { @@ -14515,7 +15527,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2221 + "line": 2344 } }, { @@ -14535,7 +15547,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2222 + "line": 2345 } }, { @@ -14555,7 +15567,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2223 + "line": 2346 } }, { @@ -14575,7 +15587,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2224 + "line": 2347 } }, { @@ -14595,7 +15607,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2225 + "line": 2348 } }, { @@ -14615,7 +15627,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2226 + "line": 2349 } }, { @@ -14635,7 +15647,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2227 + "line": 2350 } }, { @@ -14655,7 +15667,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2228 + "line": 2351 } }, { @@ -14675,7 +15687,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2229 + "line": 2352 } }, { @@ -14695,7 +15707,27 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2230 + "line": 2353 + } + }, + { + "name": "ImageBorderSize", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Thickness of border around Image() calls." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2354 } }, { @@ -14715,7 +15747,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2231 + "line": 2355 } }, { @@ -14735,11 +15767,11 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2232 + "line": 2356 } }, { - "name": "TabMinWidthForCloseButton", + "name": "TabMinWidthBase", "is_array": false, "is_anonymous": false, "type": { @@ -14750,12 +15782,72 @@ } }, "comments": { - "attached": "// Minimum width for close button to appear on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected." + "attached": "// Minimum tab width, to make tabs larger than their contents. TabBar buttons are not affected." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2233 + "line": 2357 + } + }, + { + "name": "TabMinWidthShrink", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Minimum tab width after shrinking, when using ImGuiTabBarFlags_FittingPolicyMixed policy." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2358 + } + }, + { + "name": "TabCloseButtonMinWidthSelected", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// -1: always visible. 0.0f: visible when hovered. >0.0f: visible when hovered if minimum width." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2359 + } + }, + { + "name": "TabCloseButtonMinWidthUnselected", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// -1: always visible. 0.0f: visible when hovered. >0.0f: visible when hovered if minimum width. FLT_MAX: never show close button when unselected." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2360 } }, { @@ -14775,7 +15867,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2234 + "line": 2361 } }, { @@ -14795,7 +15887,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2235 + "line": 2362 } }, { @@ -14815,7 +15907,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2236 + "line": 2363 } }, { @@ -14835,7 +15927,67 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2237 + "line": 2364 + } + }, + { + "name": "TreeLinesFlags", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiTreeNodeFlags", + "description": { + "kind": "User", + "name": "ImGuiTreeNodeFlags" + } + }, + "comments": { + "attached": "// Default way to draw lines connecting TreeNode hierarchy. ImGuiTreeNodeFlags_DrawLinesNone or ImGuiTreeNodeFlags_DrawLinesFull or ImGuiTreeNodeFlags_DrawLinesToNodes." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2365 + } + }, + { + "name": "TreeLinesSize", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Thickness of outlines when using ImGuiTreeNodeFlags_DrawLines." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2366 + } + }, + { + "name": "TreeLinesRounding", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Radius of lines connecting child nodes to the vertical line." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2367 } }, { @@ -14855,7 +16007,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2238 + "line": 2368 } }, { @@ -14875,7 +16027,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2239 + "line": 2369 } }, { @@ -14895,7 +16047,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2240 + "line": 2370 } }, { @@ -14915,7 +16067,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2241 + "line": 2371 } }, { @@ -14935,7 +16087,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2242 + "line": 2372 } }, { @@ -14955,7 +16107,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2243 + "line": 2373 } }, { @@ -14975,7 +16127,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2244 + "line": 2374 } }, { @@ -14995,7 +16147,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2245 + "line": 2375 } }, { @@ -15015,7 +16167,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2246 + "line": 2376 } }, { @@ -15035,7 +16187,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2247 + "line": 2377 } }, { @@ -15055,7 +16207,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2248 + "line": 2378 } }, { @@ -15075,7 +16227,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2249 + "line": 2379 } }, { @@ -15095,7 +16247,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2250 + "line": 2380 } }, { @@ -15115,7 +16267,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2251 + "line": 2381 } }, { @@ -15135,7 +16287,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2252 + "line": 2382 } }, { @@ -15154,10 +16306,15 @@ } } }, + "comments": { + "preceding": [ + "// Colors" + ] + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2253 + "line": 2385 } }, { @@ -15181,7 +16338,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2257 + "line": 2389 } }, { @@ -15201,7 +16358,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2258 + "line": 2390 } }, { @@ -15221,7 +16378,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2259 + "line": 2391 } }, { @@ -15241,7 +16398,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2260 + "line": 2392 } }, { @@ -15261,14 +16418,57 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2261 + "line": 2393 + } + }, + { + "name": "_MainScale", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "preceding": [ + "// [Internal]" + ], + "attached": "// FIXME-WIP: Reference scale, as applied by ScaleAllSizes()." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 2396 + } + }, + { + "name": "_NextFrameFontSizeBase", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// FIXME: Temporary hack until we finish remaining work." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 2397 } } ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2203 + "line": 2319 } }, { @@ -15296,7 +16496,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2281 + "line": 2425 } }, { @@ -15316,7 +16516,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2282 + "line": 2426 } }, { @@ -15336,7 +16536,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2283 + "line": 2427 } }, { @@ -15356,7 +16556,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2284 + "line": 2428 } } ], @@ -15369,7 +16569,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2279 + "line": 2423 } }, { @@ -15392,12 +16592,12 @@ } }, "comments": { - "attached": "// = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Gamepad/keyboard navigation options, etc." + "attached": "// = 0 // See ImGuiConfigFlags_ enum. Set by user/application. Keyboard/Gamepad navigation options, etc." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2293 + "line": 2437 } }, { @@ -15417,7 +16617,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2294 + "line": 2438 } }, { @@ -15432,12 +16632,32 @@ } }, "comments": { - "attached": "// // Main display size, in pixels (generally == GetMainViewport()->Size). May change every frame." + "attached": "// // Main display size, in pixels (== GetMainViewport()->Size). May change every frame." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2295 + "line": 2439 + } + }, + { + "name": "DisplayFramebufferScale", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "comments": { + "attached": "// = (1, 1) // Main display density. For retina display where window coordinates are different from framebuffer coordinates. This will affect font density + will end up in ImDrawData::FramebufferScale." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2440 } }, { @@ -15457,7 +16677,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2296 + "line": 2441 } }, { @@ -15477,7 +16697,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2297 + "line": 2442 } }, { @@ -15503,7 +16723,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2298 + "line": 2443 } }, { @@ -15529,7 +16749,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2299 + "line": 2444 } }, { @@ -15552,7 +16772,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2300 + "line": 2445 } }, { @@ -15570,52 +16790,15 @@ } }, "comments": { + "preceding": [ + "// Font system" + ], "attached": "// // Font atlas: load, rasterize and pack one or more fonts into a single texture." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2302 - } - }, - { - "name": "FontGlobalScale", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "comments": { - "attached": "// = 1.0f // Global scale all fonts" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2303 - } - }, - { - "name": "FontAllowUserScaling", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// = false // Allow user scaling text of individual window with CTRL+Wheel." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2304 + "line": 2448 } }, { @@ -15638,27 +16821,170 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2305 + "line": 2449 } }, { - "name": "DisplayFramebufferScale", + "name": "FontAllowUserScaling", "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImVec2", + "declaration": "bool", "description": { - "kind": "User", - "name": "ImVec2" + "kind": "Builtin", + "builtin_type": "bool" } }, "comments": { - "attached": "// = (1, 1) // For retina display or other situations where window coordinates are different from framebuffer coordinates. This generally ends up in ImDrawData::FramebufferScale." + "attached": "// = false // [OBSOLETE] Allow user scaling text of individual window with CTRL+Wheel." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2306 + "line": 2450 + } + }, + { + "name": "ConfigNavSwapGamepadButtons", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "preceding": [ + "// Keyboard/Gamepad Navigation options" + ], + "attached": "// = false // Swap Activate<>Cancel (A<>B) buttons, matching typical \"Nintendo/Japanese style\" gamepad layout." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2453 + } + }, + { + "name": "ConfigNavMoveSetMousePos", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = false // Directional/tabbing navigation teleports the mouse cursor. May be useful on TV/console systems where moving a virtual mouse is difficult. Will update io.MousePos and set io.WantSetMousePos=true." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2454 + } + }, + { + "name": "ConfigNavCaptureKeyboard", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = true // Sets io.WantCaptureKeyboard when io.NavActive is set." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2455 + } + }, + { + "name": "ConfigNavEscapeClearFocusItem", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = true // Pressing Escape can clear focused item + navigation id/highlight. Set to false if you want to always keep highlight on." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2456 + } + }, + { + "name": "ConfigNavEscapeClearFocusWindow", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = false // Pressing Escape can clear focused window as well (super set of io.ConfigNavEscapeClearFocusItem)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2457 + } + }, + { + "name": "ConfigNavCursorVisibleAuto", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = true // Using directional navigation key makes the cursor visible. Mouse click hides the cursor." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2458 + } + }, + { + "name": "ConfigNavCursorVisibleAlways", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = false // Navigation cursor is always visible." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2459 } }, { @@ -15681,7 +17007,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2309 + "line": 2462 } }, { @@ -15701,7 +17027,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2310 + "line": 2463 } }, { @@ -15721,7 +17047,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2311 + "line": 2464 } }, { @@ -15741,7 +17067,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2312 + "line": 2465 } }, { @@ -15764,7 +17090,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2315 + "line": 2468 } }, { @@ -15784,7 +17110,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2316 + "line": 2469 } }, { @@ -15804,7 +17130,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2317 + "line": 2470 } }, { @@ -15824,7 +17150,71 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2318 + "line": 2471 + } + }, + { + "name": "ConfigViewportPlatformFocusSetsImGuiFocus", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "//= true // When a platform window is focused (e.g. using Alt+Tab, clicking Platform Title Bar), apply corresponding focus on imgui windows (may clear focus/active id from imgui windows location in other platform windows). In principle this is better enabled but we provide an opt-out, because some Linux window managers tend to eagerly focus windows (e.g. on mouse hover, or even a simple window pos/size change)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2472 + } + }, + { + "name": "ConfigDpiScaleFonts", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "preceding": [ + "// DPI/Scaling options", + "// This may keep evolving during 1.92.x releases. Expect some turbulence." + ], + "attached": "// = false // [EXPERIMENTAL] Automatically overwrite style.FontScaleDpi when Monitor DPI changes. This will scale fonts but _NOT_ scale sizes/padding for now." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2476 + } + }, + { + "name": "ConfigDpiScaleViewports", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = false // [EXPERIMENTAL] Scale Dear ImGui and Platform Windows when Monitor DPI changes." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2477 } }, { @@ -15840,14 +17230,15 @@ }, "comments": { "preceding": [ - "// Miscellaneous options" + "// Miscellaneous options", + "// (you can visualize and interact with all options in 'Demo->Configuration')" ], "attached": "// = false // Request ImGui to draw a mouse cursor for you (if you are on a platform without a mouse cursor). Cannot be easily renamed to 'io.ConfigXXX' because this is frequently used by backend implementations." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2321 + "line": 2481 } }, { @@ -15867,27 +17258,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2322 - } - }, - { - "name": "ConfigNavSwapGamepadButtons", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// = false // Swap Activate<>Cancel (A<>B) buttons, matching typical \"Nintendo/Japanese style\" gamepad layout." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2323 + "line": 2482 } }, { @@ -15907,7 +17278,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2324 + "line": 2483 } }, { @@ -15927,7 +17298,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2325 + "line": 2484 } }, { @@ -15947,7 +17318,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2326 + "line": 2485 } }, { @@ -15967,7 +17338,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2327 + "line": 2486 } }, { @@ -15982,12 +17353,12 @@ } }, "comments": { - "attached": "// = true // Enable resizing of windows from their edges and from the lower-left corner. This requires (io.BackendFlags & ImGuiBackendFlags_HasMouseCursors) because it needs mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag)" + "attached": "// = true // Enable resizing of windows from their edges and from the lower-left corner. This requires ImGuiBackendFlags_HasMouseCursors for better mouse cursor feedback. (This used to be a per-window ImGuiWindowFlags_ResizeFromAnySide flag)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2328 + "line": 2487 } }, { @@ -16002,12 +17373,52 @@ } }, "comments": { - "attached": "// = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar." + "attached": "// = false // Enable allowing to move windows only when clicking on their title bar. Does not apply to windows without a title bar." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2329 + "line": 2488 + } + }, + { + "name": "ConfigWindowsCopyContentsWithCtrlC", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = false // [EXPERIMENTAL] CTRL+C copy the contents of focused window into the clipboard. Experimental because: (1) has known issues with nested Begin/End pairs (2) text output quality varies (3) text output is in submission order rather than spatial order." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2489 + } + }, + { + "name": "ConfigScrollbarScrollByPage", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = true // Enable scrolling page by page when clicking outside the scrollbar grab. When disabled, always scroll to clicked location. When enabled, Shift+Click scrolls to clicked location." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2490 } }, { @@ -16027,7 +17438,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2330 + "line": 2491 } }, { @@ -16051,7 +17462,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2334 + "line": 2495 } }, { @@ -16071,7 +17482,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2335 + "line": 2496 } }, { @@ -16091,7 +17502,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2336 + "line": 2497 } }, { @@ -16111,7 +17522,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2337 + "line": 2498 } }, { @@ -16131,7 +17542,103 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2338 + "line": 2499 + } + }, + { + "name": "ConfigErrorRecovery", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "preceding": [ + "// Options to configure Error Handling and how we handle recoverable errors [EXPERIMENTAL]", + "// - Error recovery is provided as a way to facilitate:", + "// - Recovery after a programming error (native code or scripting language - the later tends to facilitate iterating on code while running).", + "// - Recovery after running an exception handler or any error processing which may skip code after an error has been detected.", + "// - Error recovery is not perfect nor guaranteed! It is a feature to ease development.", + "// You not are not supposed to rely on it in the course of a normal application run.", + "// - Functions that support error recovery are using IM_ASSERT_USER_ERROR() instead of IM_ASSERT().", + "// - By design, we do NOT allow error recovery to be 100% silent. One of the three options needs to be checked!", + "// - Always ensure that on programmers seats you have at minimum Asserts or Tooltips enabled when making direct imgui API calls!", + "// Otherwise it would severely hinder your ability to catch and correct mistakes!", + "// Read https://github.com/ocornut/imgui/wiki/Error-Handling for details.", + "// - Programmer seats: keep asserts (default), or disable asserts and keep error tooltips (new and nice!)", + "// - Non-programmer seats: maybe disable asserts, but make sure errors are resurfaced (tooltips, visible log entries, use callback etc.)", + "// - Recovery after error/exception: record stack sizes with ErrorRecoveryStoreState(), disable assert, set log callback (to e.g. trigger high-level breakpoint), recover with ErrorRecoveryTryToRecoverState(), restore settings." + ], + "attached": "// = true // Enable error recovery support. Some errors won't be detected and lead to direct crashes if recovery is disabled." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2519 + } + }, + { + "name": "ConfigErrorRecoveryEnableAssert", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = true // Enable asserts on recoverable error. By default call IM_ASSERT() when returning from a failing IM_ASSERT_USER_ERROR()" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2520 + } + }, + { + "name": "ConfigErrorRecoveryEnableDebugLog", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = true // Enable debug log output on recoverable errors." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2521 + } + }, + { + "name": "ConfigErrorRecoveryEnableTooltip", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// = true // Enable tooltip on recoverable errors. The tooltip include a way to enable asserts if they were disabled." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2522 } }, { @@ -16157,7 +17664,53 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2348 + "line": 2528 + } + }, + { + "name": "ConfigDebugHighlightIdConflicts", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "preceding": [ + "// Tools to detect code submitting items with conflicting/duplicate IDs", + "// - Code should use PushID()/PopID() in loops, or append \"##xx\" to same-label identifiers.", + "// - Empty label e.g. Button(\"\") == same ID as parent widget/node. Use Button(\"##xx\") instead!", + "// - See FAQ https://github.com/ocornut/imgui/blob/master/docs/FAQ.md#q-about-the-id-stack-system" + ], + "attached": "// = true // Highlight and show an error message popup when multiple items have conflicting identifiers." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2534 + } + }, + { + "name": "ConfigDebugHighlightIdConflictsShowItemPicker", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "//=true // Show \"Item Picker\" button in aforementioned popup." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2535 } }, { @@ -16183,7 +17736,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2354 + "line": 2541 } }, { @@ -16203,7 +17756,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2355 + "line": 2542 } }, { @@ -16228,7 +17781,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2360 + "line": 2547 } }, { @@ -16251,7 +17804,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2363 + "line": 2550 } }, { @@ -16273,6 +17826,7 @@ }, "comments": { "preceding": [ + "// Nowadays those would be stored in ImGuiPlatformIO but we are leaving them here for legacy reasons.", "// Optional: Platform/Renderer backend name (informational only! will be displayed in About Window) + User data for backend/wrappers to store their own stuff." ], "attached": "// = NULL" @@ -16280,7 +17834,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2371 + "line": 2559 } }, { @@ -16306,7 +17860,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2372 + "line": 2560 } }, { @@ -16329,7 +17883,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2373 + "line": 2561 } }, { @@ -16352,7 +17906,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2374 + "line": 2562 } }, { @@ -16375,7 +17929,1104 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2375 + "line": 2563 + } + }, + { + "name": "WantCaptureMouse", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2597 + } + }, + { + "name": "WantCaptureKeyboard", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2598 + } + }, + { + "name": "WantTextInput", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2599 + } + }, + { + "name": "WantSetMousePos", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when io.ConfigNavMoveSetMousePos is enabled." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2600 + } + }, + { + "name": "WantSaveIniSettings", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving!" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2601 + } + }, + { + "name": "NavActive", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2602 + } + }, + { + "name": "NavVisible", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Keyboard/Gamepad navigation highlight is visible and allowed (will handle ImGuiKey_NavXXX events)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2603 + } + }, + { + "name": "Framerate", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2604 + } + }, + { + "name": "MetricsRenderVertices", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Vertices output during last call to Render()" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2605 + } + }, + { + "name": "MetricsRenderIndices", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Indices output during last call to Render() = number of triangles * 3" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2606 + } + }, + { + "name": "MetricsRenderWindows", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Number of visible windows" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2607 + } + }, + { + "name": "MetricsActiveWindows", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Number of active windows" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2608 + } + }, + { + "name": "MouseDelta", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "comments": { + "attached": "// Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2609 + } + }, + { + "name": "Ctx", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiContext*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + "comments": { + "attached": "// Parent UI context (needs to be set explicitly by parent)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2615 + } + }, + { + "name": "MousePos", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "comments": { + "preceding": [ + "// Main Input State", + "// (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead)", + "// (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere)" + ], + "attached": "// Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2620 + } + }, + { + "name": "MouseDown", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "bool[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "bool" + } + } + }, + "comments": { + "attached": "// Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2621 + } + }, + { + "name": "MouseWheel", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold SHIFT to turn vertical scroll into horizontal scroll." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2622 + } + }, + { + "name": "MouseWheelH", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2623 + } + }, + { + "name": "MouseSource", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiMouseSource", + "description": { + "kind": "User", + "name": "ImGuiMouseSource" + } + }, + "comments": { + "attached": "// Mouse actual input peripheral (Mouse/TouchScreen/Pen)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2624 + } + }, + { + "name": "MouseHoveredViewport", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiID", + "description": { + "kind": "User", + "name": "ImGuiID" + } + }, + "comments": { + "attached": "// (Optional) Modify using io.AddMouseViewportEvent(). With multi-viewports: viewport the OS mouse is hovering. If possible _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag is much better (few backends can handle that). Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2625 + } + }, + { + "name": "KeyCtrl", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Keyboard modifier down: Ctrl (non-macOS), Cmd (macOS)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2626 + } + }, + { + "name": "KeyShift", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Keyboard modifier down: Shift" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2627 + } + }, + { + "name": "KeyAlt", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Keyboard modifier down: Alt" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2628 + } + }, + { + "name": "KeySuper", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Keyboard modifier down: Windows/Super (non-macOS), Ctrl (macOS)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2629 + } + }, + { + "name": "KeyMods", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiKeyChord", + "description": { + "kind": "User", + "name": "ImGuiKeyChord" + } + }, + "comments": { + "preceding": [ + "// Other state maintained from data above + IO function calls" + ], + "attached": "// Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags. Read-only, updated by NewFrame()" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2632 + } + }, + { + "name": "KeysData", + "is_array": true, + "array_bounds": "ImGuiKey_NamedKey_COUNT", + "is_anonymous": false, + "type": { + "declaration": "ImGuiKeyData[ImGuiKey_NamedKey_COUNT]", + "description": { + "kind": "Array", + "bounds": "ImGuiKey_NamedKey_COUNT", + "inner_type": { + "kind": "User", + "name": "ImGuiKeyData" + } + } + }, + "comments": { + "attached": "// Key state for all known keys. MUST use 'key - ImGuiKey_NamedKey_BEGIN' as index. Use IsKeyXXX() functions to access this." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2633 + } + }, + { + "name": "WantCaptureMouseUnlessPopupClose", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2634 + } + }, + { + "name": "MousePosPrev", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "comments": { + "attached": "// Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2635 + } + }, + { + "name": "MouseClickedPos", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "ImVec2[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "User", + "name": "ImVec2" + } + } + }, + "comments": { + "attached": "// Position at time of clicking" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2636 + } + }, + { + "name": "MouseClickedTime", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "double[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "double" + } + } + }, + "comments": { + "attached": "// Time of last click (used to figure out double-click)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2637 + } + }, + { + "name": "MouseClicked", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "bool[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "bool" + } + } + }, + "comments": { + "attached": "// Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2638 + } + }, + { + "name": "MouseDoubleClicked", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "bool[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "bool" + } + } + }, + "comments": { + "attached": "// Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2639 + } + }, + { + "name": "MouseClickedCount", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "ImU16[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "User", + "name": "ImU16" + } + } + }, + "comments": { + "attached": "// == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2640 + } + }, + { + "name": "MouseClickedLastCount", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "ImU16[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "User", + "name": "ImU16" + } + } + }, + "comments": { + "attached": "// Count successive number of clicks. Stays valid after mouse release. Reset after another click is done." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2641 + } + }, + { + "name": "MouseReleased", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "bool[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "bool" + } + } + }, + "comments": { + "attached": "// Mouse button went from Down to !Down" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2642 + } + }, + { + "name": "MouseReleasedTime", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "double[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "double" + } + } + }, + "comments": { + "attached": "// Time of last released (rarely used! but useful to handle delayed single-click when trying to disambiguate them from double-click)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2643 + } + }, + { + "name": "MouseDownOwned", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "bool[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "bool" + } + } + }, + "comments": { + "attached": "// Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2644 + } + }, + { + "name": "MouseDownOwnedUnlessPopupClose", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "bool[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "bool" + } + } + }, + "comments": { + "attached": "// Track if button was clicked inside a dear imgui window." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2645 + } + }, + { + "name": "MouseWheelRequestAxisSwap", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac system this is already enforced by the system." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2646 + } + }, + { + "name": "MouseCtrlLeftAsRightClick", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// (OSX) Set to true when the current click was a Ctrl+click that spawned a simulated right click" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2647 + } + }, + { + "name": "MouseDownDuration", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "float[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "float" + } + } + }, + "comments": { + "attached": "// Duration the mouse button has been down (0.0f == just clicked)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2648 + } + }, + { + "name": "MouseDownDurationPrev", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "float[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "float" + } + } + }, + "comments": { + "attached": "// Previous time the mouse button has been down" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2649 + } + }, + { + "name": "MouseDragMaxDistanceAbs", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "ImVec2[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "User", + "name": "ImVec2" + } + } + }, + "comments": { + "attached": "// Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2650 + } + }, + { + "name": "MouseDragMaxDistanceSqr", + "is_array": true, + "array_bounds": "5", + "is_anonymous": false, + "type": { + "declaration": "float[5]", + "description": { + "kind": "Array", + "bounds": "5", + "inner_type": { + "kind": "Builtin", + "builtin_type": "float" + } + } + }, + "comments": { + "attached": "// Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2651 + } + }, + { + "name": "PenPressure", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2652 + } + }, + { + "name": "AppFocusLost", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Only modify via AddFocusEvent()" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2653 + } + }, + { + "name": "AppAcceptingEvents", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Only modify via SetAppAcceptingEvents()" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2654 + } + }, + { + "name": "InputQueueSurrogate", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImWchar16", + "description": { + "kind": "User", + "name": "ImWchar16" + } + }, + "comments": { + "attached": "// For AddInputCharacterUTF16()" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2655 + } + }, + { + "name": "InputQueueCharacters", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVector_ImWchar", + "description": { + "kind": "User", + "name": "ImVector_ImWchar" + } + }, + "comments": { + "attached": "// Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2656 + } + }, + { + "name": "FontGlobalScale", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Moved io.FontGlobalScale to style.FontScaleMain in 1.92 (June 2025)" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2669 } }, { @@ -16454,10 +19105,16 @@ }, "comments": { "preceding": [ - "// Optional: Access OS clipboard", - "// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)" + "// Legacy: before 1.91.1, clipboard functions were stored in ImGuiIO instead of ImGuiPlatformIO.", + "// As this is will affect all users of custom engines/backends, we are providing proper legacy redirection (will obsolete)." ] }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h" @@ -16558,6 +19215,12 @@ } } }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h" @@ -16577,1472 +19240,23 @@ } } }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2381 - } - }, - { - "name": "PlatformOpenInShellFn", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool (*PlatformOpenInShellFn)(ImGuiContext* ctx, const char* path)", - "type_details": { - "flavour": "function_pointer", - "return_type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "arguments": [ - { - "name": "ctx", - "type": { - "declaration": "ImGuiContext*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiContext" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "path", - "type": { - "declaration": "const char*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "Builtin", - "builtin_type": "char", - "storage_classes": [ - "const" - ] - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ] - }, - "description": { - "kind": "Type", - "name": "PlatformOpenInShellFn", - "inner_type": { - "kind": "Pointer", - "inner_type": { - "kind": "Function", - "return_type": { - "kind": "Builtin", - "builtin_type": "bool" - }, - "parameters": [ - { - "kind": "Type", - "name": "ctx", - "inner_type": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiContext" - } - } - }, - { - "kind": "Type", - "name": "path", - "inner_type": { - "kind": "Pointer", - "inner_type": { - "kind": "Builtin", - "builtin_type": "char", - "storage_classes": [ - "const" - ] - } - } - } - ] - } - } - } - }, - "comments": { - "preceding": [ - "// Optional: Open link/folder/file in OS Shell", - "// (default to use ShellExecuteA() on Windows, system() on Linux/Mac)" - ] - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h" - } - }, - { - "name": "PlatformOpenInShellUserData", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "void*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "Builtin", - "builtin_type": "void" - } - } - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2386 - } - }, - { - "name": "PlatformSetImeDataFn", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "void (*PlatformSetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data)", - "type_details": { - "flavour": "function_pointer", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [ - { - "name": "ctx", - "type": { - "declaration": "ImGuiContext*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiContext" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "viewport", - "type": { - "declaration": "ImGuiViewport*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiViewport" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "data", - "type": { - "declaration": "ImGuiPlatformImeData*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiPlatformImeData" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ] - }, - "description": { - "kind": "Type", - "name": "PlatformSetImeDataFn", - "inner_type": { - "kind": "Pointer", - "inner_type": { - "kind": "Function", - "return_type": { - "kind": "Builtin", - "builtin_type": "void" - }, - "parameters": [ - { - "kind": "Type", - "name": "ctx", - "inner_type": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiContext" - } - } - }, - { - "kind": "Type", - "name": "viewport", - "inner_type": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiViewport" - } - } - }, - { - "kind": "Type", - "name": "data", - "inner_type": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiPlatformImeData" - } - } - } - ] - } - } - } - }, - "comments": { - "preceding": [ - "// Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows)", - "// (default to use native imm32 api on Windows)" - ] - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h" - } - }, - { - "name": "PlatformLocaleDecimalPoint", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImWchar", - "description": { - "kind": "User", - "name": "ImWchar" - } - }, - "comments": { - "preceding": [ - "// Optional: Platform locale" - ], - "attached": "// '.' // [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2394 - } - }, - { - "name": "WantCaptureMouse", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Set when Dear ImGui will use mouse inputs, in this case do not dispatch them to your main game/application (either way, always pass on mouse inputs to imgui). (e.g. unclicked mouse is hovering over an imgui window, widget is active, mouse was clicked over an imgui window, etc.)." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2428 - } - }, - { - "name": "WantCaptureKeyboard", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Set when Dear ImGui will use keyboard inputs, in this case do not dispatch them to your main game/application (either way, always pass keyboard inputs to imgui). (e.g. InputText active, or an imgui window is focused and navigation is enabled, etc.)." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2429 - } - }, - { - "name": "WantTextInput", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Mobile/console: when set, you may display an on-screen keyboard. This is set by Dear ImGui when it wants textual keyboard input to happen (e.g. when a InputText widget is active)." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2430 - } - }, - { - "name": "WantSetMousePos", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// MousePos has been altered, backend should reposition mouse on next frame. Rarely used! Set only when ImGuiConfigFlags_NavEnableSetMousePos flag is enabled." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2431 - } - }, - { - "name": "WantSaveIniSettings", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// When manual .ini load/save is active (io.IniFilename == NULL), this will be set to notify your application that you can call SaveIniSettingsToMemory() and save yourself. Important: clear io.WantSaveIniSettings yourself after saving!" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2432 - } - }, - { - "name": "NavActive", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Keyboard/Gamepad navigation is currently allowed (will handle ImGuiKey_NavXXX events) = a window is focused and it doesn't use the ImGuiWindowFlags_NoNavInputs flag." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2433 - } - }, - { - "name": "NavVisible", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Keyboard/Gamepad navigation is visible and allowed (will handle ImGuiKey_NavXXX events)." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2434 - } - }, - { - "name": "Framerate", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "comments": { - "attached": "// Estimate of application framerate (rolling average over 60 frames, based on io.DeltaTime), in frame per second. Solely for convenience. Slow applications may not want to use a moving average or may want to reset underlying buffers occasionally." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2435 - } - }, - { - "name": "MetricsRenderVertices", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// Vertices output during last call to Render()" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2436 - } - }, - { - "name": "MetricsRenderIndices", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// Indices output during last call to Render() = number of triangles * 3" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2437 - } - }, - { - "name": "MetricsRenderWindows", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// Number of visible windows" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2438 - } - }, - { - "name": "MetricsActiveWindows", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// Number of active windows" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2439 - } - }, - { - "name": "MouseDelta", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "comments": { - "attached": "// Mouse delta. Note that this is zero if either current or previous position are invalid (-FLT_MAX,-FLT_MAX), so a disappearing/reappearing mouse won't have a huge delta." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2440 - } - }, - { - "name": "Ctx", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImGuiContext*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGuiContext" - } - } - }, - "comments": { - "attached": "// Parent UI context (needs to be set explicitly by parent)." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2446 - } - }, - { - "name": "MousePos", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "comments": { - "preceding": [ - "// Main Input State", - "// (this block used to be written by backend, since 1.87 it is best to NOT write to those directly, call the AddXXX functions above instead)", - "// (reading from those variables is fair game, as they are extremely unlikely to be moving anywhere)" - ], - "attached": "// Mouse position, in pixels. Set to ImVec2(-FLT_MAX, -FLT_MAX) if mouse is unavailable (on another screen, etc.)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2451 - } - }, - { - "name": "MouseDown", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "bool[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "bool" - } - } - }, - "comments": { - "attached": "// Mouse buttons: 0=left, 1=right, 2=middle + extras (ImGuiMouseButton_COUNT == 5). Dear ImGui mostly uses left and right buttons. Other buttons allow us to track if the mouse is being used by your application + available to user as a convenience via IsMouse** API." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2452 - } - }, - { - "name": "MouseWheel", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "comments": { - "attached": "// Mouse wheel Vertical: 1 unit scrolls about 5 lines text. >0 scrolls Up, <0 scrolls Down. Hold SHIFT to turn vertical scroll into horizontal scroll." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2453 - } - }, - { - "name": "MouseWheelH", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "comments": { - "attached": "// Mouse wheel Horizontal. >0 scrolls Left, <0 scrolls Right. Most users don't have a mouse with a horizontal wheel, may not be filled by all backends." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2454 - } - }, - { - "name": "MouseSource", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImGuiMouseSource", - "description": { - "kind": "User", - "name": "ImGuiMouseSource" - } - }, - "comments": { - "attached": "// Mouse actual input peripheral (Mouse/TouchScreen/Pen)." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2455 - } - }, - { - "name": "MouseHoveredViewport", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImGuiID", - "description": { - "kind": "User", - "name": "ImGuiID" - } - }, - "comments": { - "attached": "// (Optional) Modify using io.AddMouseViewportEvent(). With multi-viewports: viewport the OS mouse is hovering. If possible _IGNORING_ viewports with the ImGuiViewportFlags_NoInputs flag is much better (few backends can handle that). Set io.BackendFlags |= ImGuiBackendFlags_HasMouseHoveredViewport if you can provide this info. If you don't imgui will infer the value using the rectangles and last focused time of the viewports it knows about (ignoring other OS windows)." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2456 - } - }, - { - "name": "KeyCtrl", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Keyboard modifier down: Control" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2457 - } - }, - { - "name": "KeyShift", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Keyboard modifier down: Shift" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2458 - } - }, - { - "name": "KeyAlt", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Keyboard modifier down: Alt" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2459 - } - }, - { - "name": "KeySuper", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Keyboard modifier down: Cmd/Super/Windows" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2460 - } - }, - { - "name": "KeyMods", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImGuiKeyChord", - "description": { - "kind": "User", - "name": "ImGuiKeyChord" - } - }, - "comments": { - "preceding": [ - "// Other state maintained from data above + IO function calls" - ], - "attached": "// Key mods flags (any of ImGuiMod_Ctrl/ImGuiMod_Shift/ImGuiMod_Alt/ImGuiMod_Super flags, same as io.KeyCtrl/KeyShift/KeyAlt/KeySuper but merged into flags. Read-only, updated by NewFrame()" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2463 - } - }, - { - "name": "KeysData", - "is_array": true, - "array_bounds": "ImGuiKey_KeysData_SIZE", - "is_anonymous": false, - "type": { - "declaration": "ImGuiKeyData[ImGuiKey_KeysData_SIZE]", - "description": { - "kind": "Array", - "bounds": "ImGuiKey_KeysData_SIZE", - "inner_type": { - "kind": "User", - "name": "ImGuiKeyData" - } - } - }, - "comments": { - "attached": "// Key state for all known keys. Use IsKeyXXX() functions to access this." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2464 - } - }, - { - "name": "WantCaptureMouseUnlessPopupClose", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Alternative to WantCaptureMouse: (WantCaptureMouse == true && WantCaptureMouseUnlessPopupClose == false) when a click over void is expected to close a popup." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2465 - } - }, - { - "name": "MousePosPrev", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "comments": { - "attached": "// Previous mouse position (note that MouseDelta is not necessary == MousePos-MousePosPrev, in case either position is invalid)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2466 - } - }, - { - "name": "MouseClickedPos", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "ImVec2[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "User", - "name": "ImVec2" - } - } - }, - "comments": { - "attached": "// Position at time of clicking" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2467 - } - }, - { - "name": "MouseClickedTime", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "double[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "double" - } - } - }, - "comments": { - "attached": "// Time of last click (used to figure out double-click)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2468 - } - }, - { - "name": "MouseClicked", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "bool[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "bool" - } - } - }, - "comments": { - "attached": "// Mouse button went from !Down to Down (same as MouseClickedCount[x] != 0)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2469 - } - }, - { - "name": "MouseDoubleClicked", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "bool[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "bool" - } - } - }, - "comments": { - "attached": "// Has mouse button been double-clicked? (same as MouseClickedCount[x] == 2)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2470 - } - }, - { - "name": "MouseClickedCount", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "ImU16[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "User", - "name": "ImU16" - } - } - }, - "comments": { - "attached": "// == 0 (not clicked), == 1 (same as MouseClicked[]), == 2 (double-clicked), == 3 (triple-clicked) etc. when going from !Down to Down" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2471 - } - }, - { - "name": "MouseClickedLastCount", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "ImU16[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "User", - "name": "ImU16" - } - } - }, - "comments": { - "attached": "// Count successive number of clicks. Stays valid after mouse release. Reset after another click is done." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2472 - } - }, - { - "name": "MouseReleased", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "bool[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "bool" - } - } - }, - "comments": { - "attached": "// Mouse button went from Down to !Down" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2473 - } - }, - { - "name": "MouseDownOwned", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "bool[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "bool" - } - } - }, - "comments": { - "attached": "// Track if button was clicked inside a dear imgui window or over void blocked by a popup. We don't request mouse capture from the application if click started outside ImGui bounds." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2474 - } - }, - { - "name": "MouseDownOwnedUnlessPopupClose", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "bool[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "bool" - } - } - }, - "comments": { - "attached": "// Track if button was clicked inside a dear imgui window." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2475 - } - }, - { - "name": "MouseWheelRequestAxisSwap", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// On a non-Mac system, holding SHIFT requests WheelY to perform the equivalent of a WheelX event. On a Mac system this is already enforced by the system." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2476 - } - }, - { - "name": "MouseCtrlLeftAsRightClick", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// (OSX) Set to true when the current click was a ctrl-click that spawned a simulated right click" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2477 - } - }, - { - "name": "MouseDownDuration", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "float[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "float" - } - } - }, - "comments": { - "attached": "// Duration the mouse button has been down (0.0f == just clicked)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2478 - } - }, - { - "name": "MouseDownDurationPrev", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "float[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "float" - } - } - }, - "comments": { - "attached": "// Previous time the mouse button has been down" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2479 - } - }, - { - "name": "MouseDragMaxDistanceAbs", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "ImVec2[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "User", - "name": "ImVec2" - } - } - }, - "comments": { - "attached": "// Maximum distance, absolute, on each axis, of how much mouse has traveled from the clicking point" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2480 - } - }, - { - "name": "MouseDragMaxDistanceSqr", - "is_array": true, - "array_bounds": "5", - "is_anonymous": false, - "type": { - "declaration": "float[5]", - "description": { - "kind": "Array", - "bounds": "5", - "inner_type": { - "kind": "Builtin", - "builtin_type": "float" - } - } - }, - "comments": { - "attached": "// Squared maximum distance of how much mouse has traveled from the clicking point (used for moving thresholds)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2481 - } - }, - { - "name": "PenPressure", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "comments": { - "attached": "// Touch/Pen pressure (0.0f to 1.0f, should be >0.0f only when MouseDown[0] == true). Helper storage currently unused by Dear ImGui." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2482 - } - }, - { - "name": "AppFocusLost", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Only modify via AddFocusEvent()" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2483 - } - }, - { - "name": "AppAcceptingEvents", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// Only modify via SetAppAcceptingEvents()" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2484 - } - }, - { - "name": "BackendUsingLegacyKeyArrays", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImS8", - "description": { - "kind": "User", - "name": "ImS8" - } - }, - "comments": { - "attached": "// -1: unknown, 0: using AddKeyEvent(), 1: using legacy io.KeysDown[]" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2485 - } - }, - { - "name": "BackendUsingLegacyNavInputArray", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// 0: using AddKeyAnalogEvent(), 1: writing to legacy io.NavInputs[] directly" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2486 - } - }, - { - "name": "InputQueueSurrogate", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImWchar16", - "description": { - "kind": "User", - "name": "ImWchar16" - } - }, - "comments": { - "attached": "// For AddInputCharacterUTF16()" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2487 - } - }, - { - "name": "InputQueueCharacters", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImVector_ImWchar", - "description": { - "kind": "User", - "name": "ImVector_ImWchar" - } - }, - "comments": { - "attached": "// Queue of _characters_ input (obtained by platform backend). Fill using AddInputCharacter() helper." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2488 - } - }, - { - "name": "KeyMap", - "is_array": true, - "array_bounds": "ImGuiKey_COUNT", - "is_anonymous": false, - "type": { - "declaration": "int[ImGuiKey_COUNT]", - "description": { - "kind": "Array", - "bounds": "ImGuiKey_COUNT", - "inner_type": { - "kind": "Builtin", - "builtin_type": "int" - } - } - }, - "comments": { - "attached": "// [LEGACY] Input: map of indices into the KeysDown[512] entries array which represent your \"native\" keyboard state. The first 512 are now unused and should be kept zero. Legacy backend will write into KeyMap[] using ImGuiKey_ indices which are always >512." - }, "conditionals": [ { "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" } ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2494 - } - }, - { - "name": "KeysDown", - "is_array": true, - "array_bounds": "ImGuiKey_COUNT", - "is_anonymous": false, - "type": { - "declaration": "bool[ImGuiKey_COUNT]", - "description": { - "kind": "Array", - "bounds": "ImGuiKey_COUNT", - "inner_type": { - "kind": "Builtin", - "builtin_type": "bool" - } - } - }, - "comments": { - "attached": "// [LEGACY] Input: Keyboard keys that are pressed (ideally left in the \"native\" order your engine has access to keyboard keys, so you can use your own defines/enums for keys). This used to be [512] sized. It is now ImGuiKey_COUNT to allow legacy io.KeysDown[GetKeyIndex(...)] to work without an overflow." - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2495 - } - }, - { - "name": "NavInputs", - "is_array": true, - "array_bounds": "ImGuiNavInput_COUNT", - "is_anonymous": false, - "type": { - "declaration": "float[ImGuiNavInput_COUNT]", - "description": { - "kind": "Array", - "bounds": "ImGuiNavInput_COUNT", - "inner_type": { - "kind": "Builtin", - "builtin_type": "float" - } - } - }, - "comments": { - "attached": "// [LEGACY] Since 1.88, NavInputs[] was removed. Backends from 1.60 to 1.86 won't build. Feed gamepad inputs via io.AddKeyEvent() and ImGuiKey_GamepadXXX enums." - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_KEYIO" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2496 + "line": 2675 } } ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2287 + "line": 2431 } }, { @@ -18073,7 +19287,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2518 + "line": 2696 } }, { @@ -18093,7 +19307,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2519 + "line": 2697 } }, { @@ -18113,7 +19327,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2520 + "line": 2698 } }, { @@ -18136,7 +19350,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2521 + "line": 2699 } }, { @@ -18163,7 +19377,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2528 + "line": 2706 } }, { @@ -18183,7 +19397,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2529 + "line": 2707 } }, { @@ -18206,7 +19420,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2530 + "line": 2708 } }, { @@ -18226,7 +19440,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2531 + "line": 2709 } }, { @@ -18246,7 +19460,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2532 + "line": 2710 } }, { @@ -18266,7 +19480,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2533 + "line": 2711 } }, { @@ -18286,7 +19500,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2534 + "line": 2712 } }, { @@ -18306,7 +19520,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2535 + "line": 2713 } }, { @@ -18326,7 +19540,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2536 + "line": 2714 } } ], @@ -18335,7 +19549,7 @@ "// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.", "// The callback function should return 0 by default.", "// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)", - "// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit (note that InputText() already returns true on edit, the callback is useful mainly to manipulate the underlying buffer while focus is active)", + "// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.", "// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration", "// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB", "// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows", @@ -18346,7 +19560,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2516 + "line": 2694 } }, { @@ -18377,7 +19591,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2552 + "line": 2730 } }, { @@ -18397,7 +19611,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2553 + "line": 2731 } }, { @@ -18417,7 +19631,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2554 + "line": 2732 } }, { @@ -18437,7 +19651,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2555 + "line": 2733 } } ], @@ -18450,7 +19664,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2550 + "line": 2728 } }, { @@ -18478,7 +19692,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2567 + "line": 2745 } }, { @@ -18498,7 +19712,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2568 + "line": 2746 } }, { @@ -18518,7 +19732,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2569 + "line": 2747 } }, { @@ -18538,7 +19752,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2570 + "line": 2748 } }, { @@ -18558,7 +19772,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2571 + "line": 2749 } }, { @@ -18578,7 +19792,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2572 + "line": 2750 } }, { @@ -18598,7 +19812,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2573 + "line": 2751 } }, { @@ -18618,7 +19832,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2574 + "line": 2752 } }, { @@ -18638,7 +19852,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2575 + "line": 2753 } } ], @@ -18656,7 +19870,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2565 + "line": 2743 } }, { @@ -18690,7 +19904,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2584 + "line": 2762 } }, { @@ -18710,7 +19924,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2585 + "line": 2763 } }, { @@ -18733,7 +19947,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2588 + "line": 2766 } }, { @@ -18753,7 +19967,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2589 + "line": 2767 } }, { @@ -18773,7 +19987,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2590 + "line": 2768 } }, { @@ -18798,7 +20012,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2591 + "line": 2769 } }, { @@ -18818,7 +20032,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2592 + "line": 2770 } }, { @@ -18838,7 +20052,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2593 + "line": 2771 } } ], @@ -18850,7 +20064,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2581 + "line": 2759 } }, { @@ -18881,7 +20095,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2636 + "line": 2814 } }, { @@ -18904,7 +20118,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2637 + "line": 2815 } } ], @@ -18916,7 +20130,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2634 + "line": 2812 } }, { @@ -18946,7 +20160,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2644 + "line": 2822 } }, { @@ -18954,16 +20168,16 @@ "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImVector_ImGuiTextFilter_ImGuiTextRange", + "declaration": "ImVector_ImGuiTextRange", "description": { "kind": "User", - "name": "ImVector_ImGuiTextFilter_ImGuiTextRange" + "name": "ImVector_ImGuiTextRange" } }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2645 + "line": 2823 } }, { @@ -18980,7 +20194,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2646 + "line": 2824 } } ], @@ -18992,7 +20206,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2624 + "line": 2802 } }, { @@ -19017,7 +20231,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2653 + "line": 2831 } } ], @@ -19030,7 +20244,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2651 + "line": 2829 } }, { @@ -19055,7 +20269,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2673 + "line": 2852 } }, { @@ -19069,7 +20283,10 @@ "name": "__anonymous_type0" } }, - "is_internal": false + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } } ], "comments": { @@ -19080,7 +20297,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2671 + "line": 2850 } }, { @@ -19105,7 +20322,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2674 + "line": 2853 } }, { @@ -19122,7 +20339,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2674 + "line": 2853 } }, { @@ -19142,14 +20359,14 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2674 + "line": 2853 } } ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2674 + "line": 2853 } }, { @@ -19179,7 +20396,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 2691 + "line": 2870 } } ], @@ -19198,7 +20415,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2688 + "line": 2867 } }, { @@ -19229,7 +20446,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2747 + "line": 2926 } }, { @@ -19249,7 +20466,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2748 + "line": 2927 } }, { @@ -19269,7 +20486,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2749 + "line": 2928 } }, { @@ -19289,7 +20506,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2750 + "line": 2929 } }, { @@ -19309,7 +20526,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2751 + "line": 2930 } }, { @@ -19317,10 +20534,10 @@ "is_array": false, "is_anonymous": false, "type": { - "declaration": "float", + "declaration": "double", "description": { "kind": "Builtin", - "builtin_type": "float" + "builtin_type": "double" } }, "comments": { @@ -19329,7 +20546,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2752 + "line": 2931 } }, { @@ -19349,7 +20566,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2753 + "line": 2932 } }, { @@ -19372,7 +20589,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2754 + "line": 2933 } } ], @@ -19403,7 +20620,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2745 + "line": 2924 } }, { @@ -19428,7 +20645,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2839 + "line": 3026 } } ], @@ -19443,7 +20660,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2837 + "line": 3024 } }, { @@ -19474,7 +20691,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2925 + "line": 3112 } }, { @@ -19494,7 +20711,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2926 + "line": 3113 } }, { @@ -19514,7 +20731,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2927 + "line": 3114 } }, { @@ -19534,7 +20751,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2928 + "line": 3115 } }, { @@ -19554,7 +20771,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2929 + "line": 3116 } }, { @@ -19574,7 +20791,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2930 + "line": 3117 } } ], @@ -19590,7 +20807,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2922 + "line": 3109 } }, { @@ -19621,7 +20838,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2945 + "line": 3132 } }, { @@ -19641,7 +20858,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2946 + "line": 3133 } }, { @@ -19661,7 +20878,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2947 + "line": 3134 } }, { @@ -19681,7 +20898,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2948 + "line": 3135 } }, { @@ -19701,7 +20918,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2949 + "line": 3136 } } ], @@ -19713,7 +20930,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2942 + "line": 3129 } }, { @@ -19744,7 +20961,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2971 + "line": 3158 } }, { @@ -19764,7 +20981,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2972 + "line": 3159 } }, { @@ -19787,7 +21004,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2973 + "line": 3160 } }, { @@ -19898,7 +21115,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2975 + "line": 3162 } }, { @@ -19918,7 +21135,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2976 + "line": 3163 } } ], @@ -19945,7 +21162,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2968 + "line": 3155 } }, { @@ -19979,7 +21196,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2994 + "line": 3181 } }, { @@ -20104,7 +21321,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2991 + "line": 3178 } }, { @@ -20132,27 +21349,27 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3036 + "line": 3230 } }, { - "name": "TextureId", + "name": "TexRef", "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "comments": { - "attached": "// 4-8 // User-provided texture ID. Set by user in ImfontAtlas::SetTexID() for fonts or passed to Image*() functions. Ignore if never using images or multiple fonts atlas." + "attached": "// 16 // Reference to a font/texture atlas (where backend called ImTextureData::SetTexID()) or to a user-provided texture ID (via e.g. ImGui::Image() calls). Both will lead to a ImTextureID value." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3037 + "line": 3231 } }, { @@ -20172,7 +21389,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3038 + "line": 3232 } }, { @@ -20192,7 +21409,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3039 + "line": 3233 } }, { @@ -20212,7 +21429,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3040 + "line": 3234 } }, { @@ -20232,7 +21449,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3041 + "line": 3235 } }, { @@ -20250,12 +21467,52 @@ } }, "comments": { - "attached": "// 4-8 // The draw callback code can access this." + "attached": "// 4-8 // Callback user data (when UserCallback != NULL). If called AddCallback() with size == 0, this is a copy of the AddCallback() argument. If called AddCallback() with size > 0, this is pointing to a buffer where data is stored." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3042 + "line": 3236 + } + }, + { + "name": "UserCallbackDataSize", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// 4 // Size of callback user data when using storage, otherwise 0." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3237 + } + }, + { + "name": "UserCallbackDataOffset", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// 4 // [Internal] Offset of callback user data when using storage, otherwise -1." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3238 } } ], @@ -20265,13 +21522,13 @@ "// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,", "// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.", "// Backends made for <1.71. will typically ignore the VtxOffset fields.", - "// - The ClipRect/TextureId/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for)." + "// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for)." ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3034 + "line": 3228 } }, { @@ -20302,7 +21559,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3054 + "line": 3251 } }, { @@ -20325,7 +21582,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3055 + "line": 3252 } }, { @@ -20348,7 +21605,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3056 + "line": 3253 } } ], @@ -20361,7 +21618,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3052 + "line": 3249 } }, { @@ -20386,24 +21643,24 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3069 + "line": 3266 } }, { - "name": "TextureId", + "name": "TexRef", "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3070 + "line": 3267 } }, { @@ -20420,7 +21677,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3071 + "line": 3268 } } ], @@ -20432,7 +21689,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3067 + "line": 3264 } }, { @@ -20457,7 +21714,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3077 + "line": 3274 } }, { @@ -20474,7 +21731,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3078 + "line": 3275 } } ], @@ -20486,7 +21743,7 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3075 + "line": 3272 } }, { @@ -20514,7 +21771,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3086 + "line": 3282 } }, { @@ -20534,7 +21791,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3087 + "line": 3283 } }, { @@ -20554,7 +21811,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3088 + "line": 3284 } } ], @@ -20567,7 +21824,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3084 + "line": 3280 } }, { @@ -20598,7 +21855,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3142 + "line": 3338 } }, { @@ -20618,7 +21875,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3143 + "line": 3339 } }, { @@ -20638,7 +21895,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3144 + "line": 3340 } }, { @@ -20658,7 +21915,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3145 + "line": 3341 } }, { @@ -20681,7 +21938,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3148 + "line": 3344 } }, { @@ -20704,7 +21961,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3149 + "line": 3345 } }, { @@ -20727,7 +21984,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3150 + "line": 3346 } }, { @@ -20750,7 +22007,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3151 + "line": 3347 } }, { @@ -20770,7 +22027,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3152 + "line": 3348 } }, { @@ -20790,7 +22047,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3153 + "line": 3349 } }, { @@ -20810,7 +22067,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3154 + "line": 3350 } }, { @@ -20830,18 +22087,18 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3155 + "line": 3351 } }, { - "name": "_TextureIdStack", + "name": "_TextureStack", "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImVector_ImTextureID", + "declaration": "ImVector_ImTextureRef", "description": { "kind": "User", - "name": "ImVector_ImTextureID" + "name": "ImVector_ImTextureRef" } }, "comments": { @@ -20850,7 +22107,27 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3156 + "line": 3352 + } + }, + { + "name": "_CallbacksDataBuf", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVector_ImU8", + "description": { + "kind": "User", + "name": "ImVector_ImU8" + } + }, + "comments": { + "attached": "// [Internal]" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3353 } }, { @@ -20870,7 +22147,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3157 + "line": 3354 } }, { @@ -20896,7 +22173,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3158 + "line": 3355 } } ], @@ -20909,14 +22186,14 @@ "// access the current window draw list and draw custom primitives.", "// You can interleave normal ImGui:: calls and adding primitives to the current draw list.", "// In single viewport mode, top-left is == GetMainViewport()->Pos (generally 0,0), bottom-right is == GetMainViewport()->Pos+Size (generally io.DisplaySize).", - "// You are totally free to apply whatever transformation matrix to want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!)", + "// You are totally free to apply whatever transformation matrix you want to the data (depending on the use of the transformation you may want to apply it to ClipRect as well!)", "// Important: Primitives are always added to the list and not culled (culling is done at higher-level by ImGui:: functions), if you use this API a lot consider coarse culling your drawn objects." ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3139 + "line": 3335 } }, { @@ -20944,7 +22221,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3281 + "line": 3495 } }, { @@ -20959,12 +22236,12 @@ } }, "comments": { - "attached": "// Number of ImDrawList* to render" + "attached": "// == CmdLists.Size. (OBSOLETE: exists for legacy reasons). Number of ImDrawList* to render." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3282 + "line": 3496 } }, { @@ -20984,7 +22261,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3283 + "line": 3497 } }, { @@ -21004,7 +22281,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3284 + "line": 3498 } }, { @@ -21024,7 +22301,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3285 + "line": 3499 } }, { @@ -21044,7 +22321,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3286 + "line": 3500 } }, { @@ -21064,7 +22341,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3287 + "line": 3501 } }, { @@ -21079,12 +22356,12 @@ } }, "comments": { - "attached": "// Amount of pixels for each unit of DisplaySize. Based on io.DisplayFramebufferScale. Generally (1,1) on normal display, (2,2) on OSX with Retina display." + "attached": "// Amount of pixels for each unit of DisplaySize. Copied from viewport->FramebufferScale (== io.DisplayFramebufferScale for main viewport). Generally (1,1) on normal display, (2,2) on OSX with Retina display." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3288 + "line": 3502 } }, { @@ -21107,7 +22384,30 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3289 + "line": 3503 + } + }, + { + "name": "Textures", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVector_ImTextureDataPtr*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVector_ImTextureDataPtr" + } + } + }, + "comments": { + "attached": "// List of textures to update. Most of the times the list is shared by all ImDrawData, has only 1 texture and it doesn't need any update. This almost always points to ImGui::GetPlatformIO().Textures[]. May be overriden or set to NULL if you want to manually update textures." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3504 } } ], @@ -21121,7 +22421,464 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3279 + "line": 3493 + } + }, + { + "name": "ImTextureRect", + "original_fully_qualified_name": "ImTextureRect", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "x", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "unsigned short", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_short" + } + }, + "comments": { + "attached": "// Upper-left coordinates of rectangle to update" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3547 + } + }, + { + "name": "y", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "unsigned short", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_short" + } + }, + "comments": { + "attached": "// Upper-left coordinates of rectangle to update" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3547 + } + }, + { + "name": "w", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "unsigned short", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_short" + } + }, + "comments": { + "attached": "// Size of rectangle to update (in pixels)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3548 + } + }, + { + "name": "h", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "unsigned short", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_short" + } + }, + "comments": { + "attached": "// Size of rectangle to update (in pixels)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3548 + } + } + ], + "comments": { + "preceding": [ + "// Coordinates of a rectangle within a texture.", + "// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.", + "// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box." + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3545 + } + }, + { + "name": "ImTextureData", + "original_fully_qualified_name": "ImTextureData", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "UniqueID", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "preceding": [ + "//------------------------------------------ core / backend ---------------------------------------" + ], + "attached": "// w - // [DEBUG] Sequential index to facilitate identifying a texture when debugging/printing. Unique per atlas." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3561 + } + }, + { + "name": "Status", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureStatus", + "description": { + "kind": "User", + "name": "ImTextureStatus" + } + }, + "comments": { + "attached": "// rw rw // ImTextureStatus_OK/_WantCreate/_WantUpdates/_WantDestroy. Always use SetStatus() to modify!" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3562 + } + }, + { + "name": "BackendUserData", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "comments": { + "attached": "// - rw // Convenience storage for backend. Some backends may have enough with TexID." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3563 + } + }, + { + "name": "TexID", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureID", + "description": { + "kind": "User", + "name": "ImTextureID" + } + }, + "comments": { + "attached": "// r w // Backend-specific texture identifier. Always use SetTexID() to modify! The identifier will stored in ImDrawCmd::GetTexID() and passed to backend's RenderDrawData function." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3564 + } + }, + { + "name": "Format", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureFormat", + "description": { + "kind": "User", + "name": "ImTextureFormat" + } + }, + "comments": { + "attached": "// w r // ImTextureFormat_RGBA32 (default) or ImTextureFormat_Alpha8" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3565 + } + }, + { + "name": "Width", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// w r // Texture width" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3566 + } + }, + { + "name": "Height", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// w r // Texture height" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3567 + } + }, + { + "name": "BytesPerPixel", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// w r // 4 or 1" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3568 + } + }, + { + "name": "Pixels", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "unsigned char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "unsigned_char" + } + } + }, + "comments": { + "attached": "// w r // Pointer to buffer holding 'Width*Height' pixels and 'Width*Height*BytesPerPixels' bytes." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3569 + } + }, + { + "name": "UsedRect", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureRect", + "description": { + "kind": "User", + "name": "ImTextureRect" + } + }, + "comments": { + "attached": "// w r // Bounding box encompassing all past and queued Updates[]." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3570 + } + }, + { + "name": "UpdateRect", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureRect", + "description": { + "kind": "User", + "name": "ImTextureRect" + } + }, + "comments": { + "attached": "// w r // Bounding box encompassing all queued Updates[]." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3571 + } + }, + { + "name": "Updates", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVector_ImTextureRect", + "description": { + "kind": "User", + "name": "ImVector_ImTextureRect" + } + }, + "comments": { + "attached": "// w r // Array of individual updates." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3572 + } + }, + { + "name": "UnusedFrames", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// w r // In order to facilitate handling Status==WantDestroy in some backend: this is a count successive frames where the texture was not used. Always >0 when Status==WantDestroy." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3573 + } + }, + { + "name": "RefCount", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "unsigned short", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_short" + } + }, + "comments": { + "attached": "// w r // Number of contexts using this texture. Used during backend shutdown." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3574 + } + }, + { + "name": "UseColors", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// w r // Tell whether our texture data is known to use colors (rather than just white + alpha)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3575 + } + }, + { + "name": "WantDestroyNextFrame", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// rw - // [Internal] Queued to set ImTextureStatus_WantDestroy next frame. May still be used in the current frame." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3576 + } + } + ], + "comments": { + "preceding": [ + "// Specs and pixel storage for a texture used by Dear ImGui.", + "// This is only useful for (1) core library and (2) backends. End-user/applications do not need to care about this.", + "// Renderer Backends will create a GPU-side version of this.", + "// Why does we store two identifiers: TexID and BackendUserData?", + "// - ImTextureID TexID = lower-level identifier stored in ImDrawCmd. ImDrawCmd can refer to textures not created by the backend, and for which there's no ImTextureData.", + "// - void* BackendUserData = higher-level opaque storage for backend own book-keeping. Some backends may have enough with TexID and not need both.", + "// In columns below: who reads/writes each fields? 'r'=read, 'w'=write, 'core'=main library, 'backend'=renderer backend" + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3558 } }, { @@ -21132,6 +22889,34 @@ "forward_declaration": false, "is_anonymous": false, "fields": [ + { + "name": "Name", + "is_array": true, + "array_bounds": "40", + "is_anonymous": false, + "type": { + "declaration": "char[40]", + "description": { + "kind": "Array", + "bounds": "40", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char" + } + } + }, + "comments": { + "preceding": [ + "// Data Source" + ], + "attached": "// // Name (strictly to ease debugging, hence limited size buffer)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3603 + } + }, { "name": "FontData", "is_array": false, @@ -21152,7 +22937,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3305 + "line": 3604 } }, { @@ -21172,7 +22957,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3306 + "line": 3605 } }, { @@ -21192,27 +22977,130 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3307 + "line": 3606 } }, { - "name": "FontNo", + "name": "MergeMode", "is_array": false, "is_anonymous": false, "type": { - "declaration": "int", + "declaration": "bool", "description": { "kind": "Builtin", - "builtin_type": "int" + "builtin_type": "bool" } }, "comments": { - "attached": "// 0 // Index of font within TTF/OTF file" + "preceding": [ + "// Options" + ], + "attached": "// false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3308 + "line": 3609 + } + }, + { + "name": "PixelSnapH", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// false // Align every glyph AdvanceX to pixel boundaries. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3610 + } + }, + { + "name": "PixelSnapV", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// true // Align Scaled GlyphOffset.y to pixel boundaries." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3611 + } + }, + { + "name": "OversampleH", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImS8", + "description": { + "kind": "User", + "name": "ImS8" + } + }, + "comments": { + "attached": "// 0 (2) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1 or 2 depending on size. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3612 + } + }, + { + "name": "OversampleV", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImS8", + "description": { + "kind": "User", + "name": "ImS8" + } + }, + "comments": { + "attached": "// 0 (1) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1. This is not really useful as we don't use sub-pixel positions on the Y axis." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3613 + } + }, + { + "name": "EllipsisChar", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImWchar", + "description": { + "kind": "User", + "name": "ImWchar" + } + }, + "comments": { + "attached": "// 0 // Explicitly specify Unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3614 } }, { @@ -21232,107 +23120,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3309 - } - }, - { - "name": "OversampleH", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// 2 // Rasterize at higher quality for sub-pixel positioning. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3310 - } - }, - { - "name": "OversampleV", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// 1 // Rasterize at higher quality for sub-pixel positioning. This is not really useful as we don't use sub-pixel positions on the Y axis." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3311 - } - }, - { - "name": "PixelSnapH", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "comments": { - "attached": "// false // Align every glyph to pixel boundary. Useful e.g. if you are merging a non-pixel aligned font with the default font. If enabled, you can set OversampleH/V to 1." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3312 - } - }, - { - "name": "GlyphExtraSpacing", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "comments": { - "attached": "// 0, 0 // Extra spacing (in pixels) between glyphs. Only X axis is supported for now." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3313 - } - }, - { - "name": "GlyphOffset", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "comments": { - "attached": "// 0, 0 // Offset all glyphs from this font input." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3314 + "line": 3615 } }, { @@ -21353,12 +23141,61 @@ } }, "comments": { - "attached": "// NULL // THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list)." + "attached": "// NULL // *LEGACY* THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3315 + "line": 3616 + } + }, + { + "name": "GlyphExcludeRanges", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "const ImWchar*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImWchar", + "storage_classes": [ + "const" + ] + } + } + }, + "comments": { + "attached": "// NULL // Pointer to a small user-provided list of Unicode ranges (2 value per range, values are inclusive, zero-terminated list). This is very close to GlyphRanges[] but designed to exclude ranges from a font source, when merging fonts with overlapping glyphs. Use \"Input Glyphs Overlap Detection Tool\" to find about your overlapping ranges." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3617 + } + }, + { + "name": "GlyphOffset", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "comments": { + "preceding": [ + "//ImVec2 GlyphExtraSpacing; // 0, 0 // (REMOVED AT IT SEEMS LARGELY OBSOLETE. PLEASE REPORT IF YOU WERE USING THIS). Extra spacing (in pixels) between glyphs when rendered: essentially add to glyph->AdvanceX. Only X axis is supported for now." + ], + "attached": "// 0, 0 // Offset (in pixels) all glyphs from this font input. Absolute value for default size, other sizes will scale this value." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3619 } }, { @@ -21373,12 +23210,12 @@ } }, "comments": { - "attached": "// 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font" + "attached": "// 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce mono-space font. Absolute value for default size, other sizes will scale this value." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3316 + "line": 3620 } }, { @@ -21398,31 +23235,51 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3317 + "line": 3621 } }, { - "name": "MergeMode", + "name": "GlyphExtraAdvanceX", "is_array": false, "is_anonymous": false, "type": { - "declaration": "bool", + "declaration": "float", "description": { "kind": "Builtin", - "builtin_type": "bool" + "builtin_type": "float" } }, "comments": { - "attached": "// false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g. ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different heights." + "attached": "// 0 // Extra spacing (in pixels) between glyphs. Please contact us if you are using this. // FIXME-NEWATLAS: Intentionally unscaled" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3318 + "line": 3622 } }, { - "name": "FontBuilderFlags", + "name": "FontNo", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImU32", + "description": { + "kind": "User", + "name": "ImU32" + } + }, + "comments": { + "attached": "// 0 // Index of font within TTF/OTF file" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3623 + } + }, + { + "name": "FontLoaderFlags", "is_array": false, "is_anonymous": false, "type": { @@ -21438,7 +23295,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3319 + "line": 3624 } }, { @@ -21453,12 +23310,15 @@ } }, "comments": { + "preceding": [ + "//unsigned int FontBuilderFlags; // -- // [Renamed in 1.92] Ue FontLoaderFlags." + ], "attached": "// 1.0f // Linearly brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may be a good workaround to make them more readable. This is a silly thing we may remove in the future." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3320 + "line": 3626 } }, { @@ -21473,60 +23333,35 @@ } }, "comments": { - "attached": "// 1.0f // DPI scale for rasterization, not altering other font metrics: make it easy to swap between e.g. a 100% and a 400% fonts for a zooming display. IMPORTANT: If you increase this it is expected that you increase font scale accordingly, otherwise quality may look lowered." + "attached": "// 1.0f // [LEGACY: this only makes sense when ImGuiBackendFlags_RendererHasTextures is not supported] DPI scale multiplier for rasterization. Not altering other font metrics: makes it easy to swap between e.g. a 100% and a 400% fonts for a zooming display, or handle Retina screen. IMPORTANT: If you change this it is expected that you increase/decrease font scale roughly to the inverse of this, otherwise quality may look lowered." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3321 + "line": 3627 } }, { - "name": "EllipsisChar", + "name": "Flags", "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImWchar", + "declaration": "ImFontFlags", "description": { "kind": "User", - "name": "ImWchar" - } - }, - "comments": { - "attached": "// -1 // Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3322 - } - }, - { - "name": "Name", - "is_array": true, - "array_bounds": "40", - "is_anonymous": false, - "type": { - "declaration": "char[40]", - "description": { - "kind": "Array", - "bounds": "40", - "inner_type": { - "kind": "Builtin", - "builtin_type": "char" - } + "name": "ImFontFlags" } }, "comments": { "preceding": [ "// [Internal]" ], - "attached": "// Name (strictly to ease debugging)" + "attached": "// Font flags (don't use just yet, will be exposed in upcoming 1.92.X updates)" }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3325 + "line": 3630 } }, { @@ -21543,17 +23378,74 @@ } } }, + "comments": { + "attached": "// Target font (as we merging fonts, multiple ImFontConfig may target the same font)" + }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3326 + "line": 3631 + } + }, + { + "name": "FontLoader", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "const ImFontLoader*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontLoader", + "storage_classes": [ + "const" + ] + } + } + }, + "comments": { + "attached": "// Custom font backend for this source (default source is the one stored in ImFontAtlas)" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3632 + } + }, + { + "name": "FontLoaderData", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "comments": { + "attached": "// Font loader opaque storage (per font config)" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3633 } } ], + "comments": { + "preceding": [ + "// A font input/source (we may rename this to ImFontSource in the future)" + ] + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3303 + "line": 3600 } }, { @@ -21567,7 +23459,7 @@ { "name": "Colored", "is_array": false, - "width": "1", + "width": 1, "is_anonymous": false, "type": { "declaration": "unsigned int", @@ -21582,13 +23474,13 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3335 + "line": 3642 } }, { "name": "Visible", "is_array": false, - "width": "1", + "width": 1, "is_anonymous": false, "type": { "declaration": "unsigned int", @@ -21603,13 +23495,34 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3336 + "line": 3643 + } + }, + { + "name": "SourceIdx", + "is_array": false, + "width": 4, + "is_anonymous": false, + "type": { + "declaration": "unsigned int", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_int" + } + }, + "comments": { + "attached": "// Index of source in parent font" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3644 } }, { "name": "Codepoint", "is_array": false, - "width": "30", + "width": 26, "is_anonymous": false, "type": { "declaration": "unsigned int", @@ -21624,7 +23537,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3337 + "line": 3645 } }, { @@ -21639,12 +23552,12 @@ } }, "comments": { - "attached": "// Distance to next character (= data from font + ImFontConfig::GlyphExtraSpacing.x baked in)" + "attached": "// Horizontal distance to advance cursor/layout position." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3338 + "line": 3646 } }, { @@ -21659,12 +23572,12 @@ } }, "comments": { - "attached": "// Glyph corners" + "attached": "// Glyph corners. Offsets from current cursor/layout position." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3339 + "line": 3647 } }, { @@ -21679,12 +23592,12 @@ } }, "comments": { - "attached": "// Glyph corners" + "attached": "// Glyph corners. Offsets from current cursor/layout position." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3339 + "line": 3647 } }, { @@ -21699,12 +23612,12 @@ } }, "comments": { - "attached": "// Glyph corners" + "attached": "// Glyph corners. Offsets from current cursor/layout position." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3339 + "line": 3647 } }, { @@ -21719,12 +23632,12 @@ } }, "comments": { - "attached": "// Glyph corners" + "attached": "// Glyph corners. Offsets from current cursor/layout position." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3339 + "line": 3647 } }, { @@ -21739,12 +23652,12 @@ } }, "comments": { - "attached": "// Texture coordinates" + "attached": "// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling GetCustomRect() with PackId." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3340 + "line": 3648 } }, { @@ -21759,12 +23672,12 @@ } }, "comments": { - "attached": "// Texture coordinates" + "attached": "// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling GetCustomRect() with PackId." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3340 + "line": 3648 } }, { @@ -21779,12 +23692,12 @@ } }, "comments": { - "attached": "// Texture coordinates" + "attached": "// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling GetCustomRect() with PackId." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3340 + "line": 3648 } }, { @@ -21799,25 +23712,45 @@ } }, "comments": { - "attached": "// Texture coordinates" + "attached": "// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling GetCustomRect() with PackId." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3340 + "line": 3648 + } + }, + { + "name": "PackId", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// [Internal] ImFontAtlasRectId value (FIXME: Cold data, could be moved elsewhere?)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3649 } } ], "comments": { "preceding": [ "// Hold rendering data for one glyph.", - "// (Note: some language parsers may fail to convert the 31+1 bitfield members, in this case maybe drop store a single u32 or we can rework this)" + "// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)" ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3333 + "line": 3640 } }, { @@ -21845,7 +23778,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3347 + "line": 3658 } } ], @@ -21858,19 +23791,19 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3345 + "line": 3656 } }, { - "name": "ImFontAtlasCustomRect", - "original_fully_qualified_name": "ImFontAtlasCustomRect", + "name": "ImFontAtlasRect", + "original_fully_qualified_name": "ImFontAtlasRect", "kind": "struct", "by_value": false, "forward_declaration": false, "is_anonymous": false, "fields": [ { - "name": "Width", + "name": "x", "is_array": false, "is_anonymous": false, "type": { @@ -21881,16 +23814,16 @@ } }, "comments": { - "attached": "// Input // Desired rectangle dimension" + "attached": "// Position (in current texture)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3362 + "line": 3680 } }, { - "name": "Height", + "name": "y", "is_array": false, "is_anonymous": false, "type": { @@ -21901,16 +23834,16 @@ } }, "comments": { - "attached": "// Input // Desired rectangle dimension" + "attached": "// Position (in current texture)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3362 + "line": 3680 } }, { - "name": "X", + "name": "w", "is_array": false, "is_anonymous": false, "type": { @@ -21921,16 +23854,16 @@ } }, "comments": { - "attached": "// Output // Packed position in Atlas" + "attached": "// Size" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3363 + "line": 3681 } }, { - "name": "Y", + "name": "h", "is_array": false, "is_anonymous": false, "type": { @@ -21941,56 +23874,16 @@ } }, "comments": { - "attached": "// Output // Packed position in Atlas" + "attached": "// Size" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3363 + "line": 3681 } }, { - "name": "GlyphID", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "unsigned int", - "description": { - "kind": "Builtin", - "builtin_type": "unsigned_int" - } - }, - "comments": { - "attached": "// Input // For custom font glyphs only (ID < 0x110000)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3364 - } - }, - { - "name": "GlyphAdvanceX", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "comments": { - "attached": "// Input // For custom font glyphs only: glyph xadvance" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3365 - } - }, - { - "name": "GlyphOffset", + "name": "uv0", "is_array": false, "is_anonymous": false, "type": { @@ -22001,47 +23894,46 @@ } }, "comments": { - "attached": "// Input // For custom font glyphs only: glyph display offset" + "attached": "// UV coordinates (in current texture)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3366 + "line": 3682 } }, { - "name": "Font", + "name": "uv1", "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImFont*", + "declaration": "ImVec2", "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImFont" - } + "kind": "User", + "name": "ImVec2" } }, "comments": { - "attached": "// Input // For custom font glyphs only: target font" + "attached": "// UV coordinates (in current texture)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3367 + "line": 3682 } } ], "comments": { "preceding": [ - "// See ImFontAtlas::AddCustomRectXXX functions." + "// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.", + "// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef", + "// (this is in theory derived from ImTextureRect but we use separate structures for reasons)" ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3360 + "line": 3678 } }, { @@ -22064,52 +23956,35 @@ } }, "comments": { + "preceding": [ + "// Input" + ], "attached": "// Build flags (see ImFontAtlasFlags_)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3465 + "line": 3804 } }, { - "name": "TexID", + "name": "TexDesiredFormat", "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureFormat", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureFormat" } }, "comments": { - "attached": "// User data to refer to the texture once it has been uploaded to user's graphic systems. It is passed back to you during rendering via the ImDrawCmd structure." + "attached": "// Desired texture format (default to ImTextureFormat_RGBA32 but may be changed to ImTextureFormat_Alpha8)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3466 - } - }, - { - "name": "TexDesiredWidth", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// Texture width desired by user before Build(). Must be a power-of-two. If have many glyphs your graphics API have texture size restrictions you may want to increase texture width to decrease height." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3467 + "line": 3805 } }, { @@ -22124,32 +23999,92 @@ } }, "comments": { - "attached": "// Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false)." + "attached": "// FIXME: Should be called \"TexPackPadding\". Padding between glyphs within texture in pixels. Defaults to 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to set AntiAliasedLinesUseTex = false)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3468 + "line": 3806 } }, { - "name": "Locked", + "name": "TexMinWidth", "is_array": false, "is_anonymous": false, "type": { - "declaration": "bool", + "declaration": "int", "description": { "kind": "Builtin", - "builtin_type": "bool" + "builtin_type": "int" } }, "comments": { - "attached": "// Marked as Locked by ImGui::NewFrame() so attempt to modify the atlas will assert." + "attached": "// Minimum desired texture width. Must be a power of two. Default to 512." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3469 + "line": 3807 + } + }, + { + "name": "TexMinHeight", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Minimum desired texture height. Must be a power of two. Default to 128." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3808 + } + }, + { + "name": "TexMaxWidth", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Maximum desired texture width. Must be a power of two. Default to 8192." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3809 + } + }, + { + "name": "TexMaxHeight", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Maximum desired texture height. Must be a power of two. Default to 8192." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3810 } }, { @@ -22172,11 +24107,108 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3470 + "line": 3811 } }, { - "name": "TexReady", + "name": "TexRef", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "comments": { + "attached": "// Latest texture identifier == TexData->GetTexRef()." + }, + "conditionals": [ + { + "condition": "ifdef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3817 + } + }, + { + "name": "__anonymous_type1", + "is_array": false, + "is_anonymous": true, + "type": { + "declaration": "__anonymous_type1", + "description": { + "kind": "User", + "name": "__anonymous_type1" + } + }, + "comments": { + "attached": "// Latest texture identifier == TexData->GetTexRef(). // RENAMED TexID to TexRef in 1.92.x" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, + { + "name": "TexData", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "comments": { + "attached": "// Latest texture." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3821 + } + }, + { + "name": "TexList", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVector_ImTextureDataPtr", + "description": { + "kind": "User", + "name": "ImVector_ImTextureDataPtr" + } + }, + "comments": { + "preceding": [ + "// [Internal]" + ], + "attached": "// Texture list (most often TexList.Size == 1). TexData is always == TexList.back(). DO NOT USE DIRECTLY, USE GetDrawData().Textures[]/GetPlatformIO().Textures[] instead!" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3824 + } + }, + { + "name": "Locked", "is_array": false, "is_anonymous": false, "type": { @@ -22187,16 +24219,52 @@ } }, "comments": { - "preceding": [ - "// [Internal]", - "// NB: Access texture data via GetTexData*() calls! Which will setup a default font for you." - ], - "attached": "// Set when texture was built matching current font input" + "attached": "// Marked as locked during ImGui::NewFrame()..EndFrame() scope if TexUpdates are not supported. Any attempt to modify the atlas will assert." }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3474 + "line": 3825 + } + }, + { + "name": "RendererHasTextures", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Copy of (BackendFlags & ImGuiBackendFlags_RendererHasTextures) from supporting context." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3826 + } + }, + { + "name": "TexIsBuilt", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// Set when texture was built matching current font input. Mostly useful for legacy IsBuilt() call." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3827 } }, { @@ -22211,98 +24279,12 @@ } }, "comments": { - "attached": "// Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format." + "attached": "// Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help backend select a format or conversion process." }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3475 - } - }, - { - "name": "TexPixelsAlpha8", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "unsigned char*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "Builtin", - "builtin_type": "unsigned_char" - } - } - }, - "comments": { - "attached": "// 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight" - }, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3476 - } - }, - { - "name": "TexPixelsRGBA32", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "unsigned int*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "Builtin", - "builtin_type": "unsigned_int" - } - } - }, - "comments": { - "attached": "// 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4" - }, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3477 - } - }, - { - "name": "TexWidth", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// Texture width calculated during Build()." - }, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3478 - } - }, - { - "name": "TexHeight", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// Texture height calculated during Build()." - }, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3479 + "line": 3828 } }, { @@ -22317,12 +24299,12 @@ } }, "comments": { - "attached": "// = (1.0f/TexWidth, 1.0f/TexHeight)" + "attached": "// = (1.0f/TexData->TexWidth, 1.0f/TexData->TexHeight). May change as new texture gets created." }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3480 + "line": 3829 } }, { @@ -22337,12 +24319,12 @@ } }, "comments": { - "attached": "// Texture coordinates to a white pixel" + "attached": "// Texture coordinates to a white pixel. May change as new texture gets created." }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3481 + "line": 3830 } }, { @@ -22362,31 +24344,11 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3482 + "line": 3831 } }, { - "name": "CustomRects", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImVector_ImFontAtlasCustomRect", - "description": { - "kind": "User", - "name": "ImVector_ImFontAtlasCustomRect" - } - }, - "comments": { - "attached": "// Rectangles for packing custom texture data into the atlas." - }, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3483 - } - }, - { - "name": "ConfigData", + "name": "Sources", "is_array": false, "is_anonymous": false, "type": { @@ -22397,12 +24359,12 @@ } }, "comments": { - "attached": "// Configuration data" + "attached": "// Source/configuration data" }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3484 + "line": 3832 } }, { @@ -22427,20 +24389,103 @@ "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3485 + "line": 3833 } }, { - "name": "FontBuilderIO", + "name": "TexNextUniqueID", "is_array": false, "is_anonymous": false, "type": { - "declaration": "const ImFontBuilderIO*", + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Next value to be stored in TexData->UniqueID" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3834 + } + }, + { + "name": "FontNextUniqueID", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// Next value to be stored in ImFont->FontID" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3835 + } + }, + { + "name": "DrawListSharedDatas", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVector_ImDrawListSharedDataPtr", + "description": { + "kind": "User", + "name": "ImVector_ImDrawListSharedDataPtr" + } + }, + "comments": { + "attached": "// List of users for this atlas. Typically one per Dear ImGui context." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3836 + } + }, + { + "name": "Builder", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImFontAtlasBuilder*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImFontBuilderIO", + "name": "ImFontAtlasBuilder" + } + } + }, + "comments": { + "attached": "// Opaque interface to our data that doesn't need to be public and may be discarded when rebuilding." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3837 + } + }, + { + "name": "FontLoader", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "const ImFontLoader*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontLoader", "storage_classes": [ "const" ] @@ -22448,19 +24493,65 @@ } }, "comments": { - "preceding": [ - "// [Internal] Font builder" - ], - "attached": "// Opaque interface to a font builder (default to stb_truetype, can be changed to use FreeType by defining IMGUI_ENABLE_FREETYPE)." + "attached": "// Font loader opaque interface (default to use FreeType when IMGUI_ENABLE_FREETYPE is defined, otherwise default to use stb_truetype). Use SetFontLoader() to change this at runtime." }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3488 + "line": 3838 } }, { - "name": "FontBuilderFlags", + "name": "FontLoaderName", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "const char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + }, + "comments": { + "attached": "// Font loader name (for display e.g. in About box) == FontLoader->Name" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3839 + } + }, + { + "name": "FontLoaderData", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "comments": { + "attached": "// Font backend opaque storage" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3840 + } + }, + { + "name": "FontLoaderFlags", "is_array": false, "is_anonymous": false, "type": { @@ -22471,16 +24562,16 @@ } }, "comments": { - "attached": "// Shared flags (for all fonts) for custom font builder. THIS IS BUILD IMPLEMENTATION DEPENDENT. Per-font override is also available in ImFontConfig." + "attached": "// Shared flags (for all fonts) for font loader. THIS IS BUILD IMPLEMENTATION DEPENDENT (e.g. Per-font override is also available in ImFontConfig)." }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3489 + "line": 3841 } }, { - "name": "PackIdMouseCursors", + "name": "RefCount", "is_array": false, "is_anonymous": false, "type": { @@ -22490,36 +24581,65 @@ "builtin_type": "int" } }, + "comments": { + "attached": "// Number of contexts using this atlas" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3842 + } + }, + { + "name": "OwnerContext", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiContext*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + "comments": { + "attached": "// Context which own the atlas will be in charge of updating and destroying it." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3843 + } + }, + { + "name": "TempRect", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImFontAtlasRect", + "description": { + "kind": "User", + "name": "ImFontAtlasRect" + } + }, "comments": { "preceding": [ - "// [Internal] Packing data" + "// Legacy: You can request your rectangles to be mapped as font glyph (given a font + Unicode point), so you can render e.g. custom colorful icons and use them as regular glyphs. --> Prefer using a custom ImFontLoader." ], - "attached": "// Custom texture rectangle ID for white pixel and mouse cursors" + "attached": "// For old GetCustomRectByIndex() API" }, - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3492 - } - }, - { - "name": "PackIdLines", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" } - }, - "comments": { - "attached": "// Custom texture rectangle ID for baked anti-aliased lines" - }, - "is_internal": true, + ], + "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3493 + "line": 3848 } } ], @@ -22529,12 +24649,14 @@ "// - One or more fonts.", "// - Custom graphics data needed to render the shapes needed by Dear ImGui.", "// - Mouse cursor shapes for software cursor rendering (unless setting 'Flags |= ImFontAtlasFlags_NoMouseCursors' in the font atlas).", - "// It is the user-code responsibility to setup/build the atlas, then upload the pixel data into a texture accessible by your graphics api.", - "// - Optionally, call any of the AddFont*** functions. If you don't call any, the default font embedded in the code will be loaded for you.", - "// - Call GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.", - "// - Upload the pixels data into a texture within your graphics system (see imgui_impl_xxxx.cpp examples)", + "// - If you don't call any AddFont*** functions, the default font embedded in the code will be loaded for you.", + "// It is the rendering backend responsibility to upload texture into your graphics API:", + "// - ImGui_ImplXXXX_RenderDrawData() functions generally iterate platform_io->Textures[] to create/update/destroy each ImTextureData instance.", + "// - Backend then set ImTextureData's TexID and BackendUserData.", + "// - Texture id are passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID/ImTextureRef for more details.", + "// Legacy path:", + "// - Call Build() + GetTexDataAsAlpha8() or GetTexDataAsRGBA32() to build and retrieve pixels data.", "// - Call SetTexID(my_tex_id); and pass the pointer/identifier to your texture in a format natural to your graphics API.", - "// This value will be passed back to you during rendering to identify the texture. Read FAQ entry about ImTextureID for more details.", "// Common pitfalls:", "// - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the", "// atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.", @@ -22547,12 +24669,82 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3398 + "line": 3715 } }, { - "name": "ImFont", - "original_fully_qualified_name": "ImFont", + "name": "__anonymous_type1", + "original_fully_qualified_name": "ImFontAtlas::", + "kind": "union", + "by_value": false, + "forward_declaration": false, + "is_anonymous": true, + "fields": [ + { + "name": "TexRef", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3819 + } + }, + { + "name": "TexID", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3819 + } + } + ], + "comments": { + "attached": "// Latest texture identifier == TexData->GetTexRef(). // RENAMED TexID to TexRef in 1.92.x" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3819 + } + }, + { + "name": "ImFontBaked", + "original_fully_qualified_name": "ImFontBaked", "kind": "struct", "by_value": false, "forward_declaration": false, @@ -22571,14 +24763,14 @@ }, "comments": { "preceding": [ - "// Members: Hot ~20/24 bytes (for CalcTextSize)" + "// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)" ], - "attached": "// 12-16 // out // // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this this info, and are often bottleneck in large UI)." + "attached": "// 12-16 // out // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize functions which only this info, and are often bottleneck in large UI)." }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3505 + "line": 3867 } }, { @@ -22593,16 +24785,16 @@ } }, "comments": { - "attached": "// 4 // out // = FallbackGlyph->AdvanceX" + "attached": "// 4 // out // FindGlyph(FallbackChar)->AdvanceX" }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3506 + "line": 3868 } }, { - "name": "FontSize", + "name": "Size", "is_array": false, "is_anonymous": false, "type": { @@ -22613,12 +24805,32 @@ } }, "comments": { - "attached": "// 4 // in // // Height of characters/line, set during loading (don't change after loading)" + "attached": "// 4 // in // Height of characters/line, set during loading (doesn't change after loading)" }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3507 + "line": 3869 + } + }, + { + "name": "RasterizerDensity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// 4 // in // Density this is baked at" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3870 } }, { @@ -22626,22 +24838,22 @@ "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImVector_ImWchar", + "declaration": "ImVector_ImU16", "description": { "kind": "User", - "name": "ImVector_ImWchar" + "name": "ImVector_ImU16" } }, "comments": { "preceding": [ - "// Members: Hot ~28/40 bytes (for CalcTextSize + render loop)" + "// [Internal] Members: Hot ~28/36 bytes (for RenderText loop)" ], - "attached": "// 12-16 // out // // Sparse. Index glyphs by Unicode code-point." + "attached": "// 12-16 // out // Sparse. Index glyphs by Unicode code-point." }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3510 + "line": 3873 } }, { @@ -22656,38 +24868,295 @@ } }, "comments": { - "attached": "// 12-16 // out // // All glyphs." + "attached": "// 12-16 // out // All glyphs." }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3511 + "line": 3874 } }, { - "name": "FallbackGlyph", + "name": "FallbackGlyphIndex", "is_array": false, "is_anonymous": false, "type": { - "declaration": "const ImFontGlyph*", + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// 4 // out // Index of FontFallbackChar" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3875 + } + }, + { + "name": "Ascent", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "preceding": [ + "// [Internal] Members: Cold" + ], + "attached": "// 4+4 // out // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled)" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3878 + } + }, + { + "name": "Descent", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "preceding": [ + "// [Internal] Members: Cold" + ], + "attached": "// 4+4 // out // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled)" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3878 + } + }, + { + "name": "MetricsTotalSurface", + "is_array": false, + "width": 26, + "is_anonymous": false, + "type": { + "declaration": "unsigned int", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_int" + } + }, + "comments": { + "attached": "// 3 // out // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs)" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3879 + } + }, + { + "name": "WantDestroy", + "is_array": false, + "width": 1, + "is_anonymous": false, + "type": { + "declaration": "unsigned int", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_int" + } + }, + "comments": { + "attached": "// 0 // // Queued for destroy" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3880 + } + }, + { + "name": "LoadNoFallback", + "is_array": false, + "width": 1, + "is_anonymous": false, + "type": { + "declaration": "unsigned int", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_int" + } + }, + "comments": { + "attached": "// 0 // // Disable loading fallback in lower-level calls." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3881 + } + }, + { + "name": "LoadNoRenderOnLayout", + "is_array": false, + "width": 1, + "is_anonymous": false, + "type": { + "declaration": "unsigned int", + "description": { + "kind": "Builtin", + "builtin_type": "unsigned_int" + } + }, + "comments": { + "attached": "// 0 // // Enable a two-steps mode where CalcTextSize() calls will load AdvanceX *without* rendering/packing glyphs. Only advantagous if you know that the glyph is unlikely to actually be rendered, otherwise it is slower because we'd do one query on the first CalcTextSize and one query on the first Draw." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3882 + } + }, + { + "name": "LastUsedFrame", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "attached": "// 4 // // Record of that time this was bounds" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3883 + } + }, + { + "name": "BakedId", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiID", + "description": { + "kind": "User", + "name": "ImGuiID" + } + }, + "comments": { + "attached": "// 4 // // Unique ID for this baked storage" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3884 + } + }, + { + "name": "ContainerFont", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImFont*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImFontGlyph", - "storage_classes": [ - "const" - ] + "name": "ImFont" } } }, "comments": { - "attached": "// 4-8 // out // = FindGlyph(FontFallbackChar)" + "attached": "// 4-8 // in // Parent font" }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3512 + "line": 3885 + } + }, + { + "name": "FontLoaderDatas", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "comments": { + "attached": "// 4-8 // // Font loader opaque storage (per baked font * sources): single contiguous buffer allocated by imgui, passed to loader." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3886 + } + } + ], + "comments": { + "preceding": [ + "// Font runtime data for a given size", + "// Important: pointers to ImFontBaked are only valid for the current frame." + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3864 + } + }, + { + "name": "ImFont", + "original_fully_qualified_name": "ImFont", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "LastBaked", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImFontBaked*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontBaked" + } + } + }, + "comments": { + "preceding": [ + "// [Internal] Members: Hot ~12-20 bytes" + ], + "attached": "// 4-8 // Cache last bound baked. NEVER USE DIRECTLY. Use GetFontBaked()." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3915 } }, { @@ -22705,81 +25174,116 @@ } }, "comments": { - "preceding": [ - "// Members: Cold ~32/40 bytes" - ], - "attached": "// 4-8 // out // // What we has been loaded into" + "attached": "// 4-8 // What we have been loaded into." }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3515 + "line": 3916 } }, { - "name": "ConfigData", + "name": "Flags", "is_array": false, "is_anonymous": false, "type": { - "declaration": "const ImFontConfig*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImFontConfig", - "storage_classes": [ - "const" - ] - } - } - }, - "comments": { - "attached": "// 4-8 // in // // Pointer within ContainerAtlas->ConfigData" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3516 - } - }, - { - "name": "ConfigDataCount", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "short", - "description": { - "kind": "Builtin", - "builtin_type": "short" - } - }, - "comments": { - "attached": "// 2 // in // ~ 1 // Number of ImFontConfig involved in creating this font. Bigger than 1 when merging multiple font sources into one ImFont." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3517 - } - }, - { - "name": "FallbackChar", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "ImWchar", + "declaration": "ImFontFlags", "description": { "kind": "User", - "name": "ImWchar" + "name": "ImFontFlags" } }, "comments": { - "attached": "// 2 // out // = FFFD/'?' // Character used if a glyph isn't found." + "attached": "// 4 // Font flags." }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3518 + "line": 3917 + } + }, + { + "name": "CurrentRasterizerDensity", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// Current rasterizer density. This is a varying state of the font." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3918 + } + }, + { + "name": "FontId", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiID", + "description": { + "kind": "User", + "name": "ImGuiID" + } + }, + "comments": { + "preceding": [ + "// [Internal] Members: Cold ~24-52 bytes", + "// Conceptually Sources[] is the list of font sources merged to create this font." + ], + "attached": "// Unique identifier for the font" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3922 + } + }, + { + "name": "LegacySize", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "comments": { + "attached": "// 4 // in // Font size passed to AddFont(). Use for old code calling PushFont() expecting to use that size. (use ImGui::GetFontBaked() to get font baked at current bound size)." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3923 + } + }, + { + "name": "Sources", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVector_ImFontConfigPtr", + "description": { + "kind": "User", + "name": "ImVector_ImFontConfigPtr" + } + }, + "comments": { + "attached": "// 16 // in // List of sources. Pointers within ContainerAtlas->Sources[]" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3924 } }, { @@ -22794,76 +25298,61 @@ } }, "comments": { - "attached": "// 2 // out // = '...'/'.'// Character used for ellipsis rendering." + "attached": "// 2-4 // out // Character used for ellipsis rendering ('...')." }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3519 + "line": 3925 } }, { - "name": "EllipsisCharCount", + "name": "FallbackChar", "is_array": false, "is_anonymous": false, "type": { - "declaration": "short", + "declaration": "ImWchar", "description": { - "kind": "Builtin", - "builtin_type": "short" + "kind": "User", + "name": "ImWchar" } }, "comments": { - "attached": "// 1 // out // 1 or 3" + "attached": "// 2-4 // out // Character used if a glyph isn't found (U+FFFD, '?')" }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3520 + "line": 3926 } }, { - "name": "EllipsisWidth", - "is_array": false, + "name": "Used8kPagesMap", + "is_array": true, + "array_bounds": "(IM_UNICODE_CODEPOINT_MAX +1)/8192/8", "is_anonymous": false, "type": { - "declaration": "float", + "declaration": "ImU8[(IM_UNICODE_CODEPOINT_MAX +1)/8192/8]", "description": { - "kind": "Builtin", - "builtin_type": "float" + "kind": "Array", + "bounds": "(IM_UNICODE_CODEPOINT_MAX +1)/8192/8", + "inner_type": { + "kind": "User", + "name": "ImU8" + } } }, "comments": { - "attached": "// 4 // out // Width" + "attached": "// 1 bytes if ImWchar=ImWchar16, 16 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints." }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3521 + "line": 3927 } }, { - "name": "EllipsisCharStep", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "comments": { - "attached": "// 4 // out // Step between characters when EllipsisCount > 0" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3522 - } - }, - { - "name": "DirtyLookupTables", + "name": "EllipsisAutoBake", "is_array": false, "is_anonymous": false, "type": { @@ -22874,12 +25363,32 @@ } }, "comments": { - "attached": "// 1 // out //" + "attached": "// 1 // // Mark when the \"...\" glyph needs to be generated." }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3523 + "line": 3928 + } + }, + { + "name": "RemapPairs", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiStorage", + "description": { + "kind": "User", + "name": "ImGuiStorage" + } + }, + "comments": { + "attached": "// 16 // // Remapping pairs when using AddRemapChar(), otherwise empty." + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3929 } }, { @@ -22894,110 +25403,34 @@ } }, "comments": { - "attached": "// 4 // in // = 1.f // Base font scale, multiplied by the per-window font scale which you can adjust with SetWindowFontScale()" + "attached": "// 4 // in // Legacy base font scale (~1.0f), multiplied by the per-window font scale which you can adjust with SetWindowFontScale()" }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3524 - } - }, - { - "name": "Ascent", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" } - }, - "comments": { - "attached": "// 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled)" - }, + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3525 - } - }, - { - "name": "Descent", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "comments": { - "attached": "// 4+4 // out // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3525 - } - }, - { - "name": "MetricsTotalSurface", - "is_array": false, - "is_anonymous": false, - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "comments": { - "attached": "// 4 // out // // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs)" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3526 - } - }, - { - "name": "Used4kPagesMap", - "is_array": true, - "array_bounds": "(IM_UNICODE_CODEPOINT_MAX +1)/4096/8", - "is_anonymous": false, - "type": { - "declaration": "ImU8[(IM_UNICODE_CODEPOINT_MAX +1)/4096/8]", - "description": { - "kind": "Array", - "bounds": "(IM_UNICODE_CODEPOINT_MAX +1)/4096/8", - "inner_type": { - "kind": "User", - "name": "ImU8" - } - } - }, - "comments": { - "attached": "// 2 bytes if ImWchar=ImWchar16, 34 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K codepoints that has one active glyph. This is mainly used to facilitate iterations across all used codepoints." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3527 + "line": 3931 } } ], "comments": { "preceding": [ "// Font runtime data and rendering", - "// ImFontAtlas automatically loads a default embedded font for you when you call GetTexDataAsAlpha8() or GetTexDataAsRGBA32()." + "// - ImFontAtlas automatically loads a default embedded font for you if you didn't load one manually.", + "// - Since 1.92.X a font may be rendered as any size! Therefore a font doesn't have one specific size.", + "// - Use 'font->GetFontBaked(size)' to retrieve the ImFontBaked* corresponding to a given size.", + "// - If you used g.Font + g.FontSize (which is frequent from the ImGui layer), you can use g.FontBaked as a shortcut, as g.FontBaked == g.Font->GetFontBaked(g.FontSize)." ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3502 + "line": 3912 } }, { @@ -23025,7 +25458,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3590 + "line": 4012 } }, { @@ -23045,7 +25478,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3591 + "line": 4013 } }, { @@ -23065,7 +25498,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3592 + "line": 4014 } }, { @@ -23085,7 +25518,27 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3593 + "line": 4015 + } + }, + { + "name": "FramebufferScale", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "comments": { + "attached": "// Density of the viewport for Retina display (always 1,1 on Windows, may be 2,2 etc on macOS/iOS). This will affect font rasterizer density." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4016 } }, { @@ -23105,7 +25558,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3594 + "line": 4017 } }, { @@ -23125,7 +25578,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3595 + "line": 4018 } }, { @@ -23145,7 +25598,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3596 + "line": 4019 } }, { @@ -23165,7 +25618,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3597 + "line": 4020 } }, { @@ -23188,7 +25641,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3598 + "line": 4021 } }, { @@ -23218,7 +25671,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3605 + "line": 4028 } }, { @@ -23241,7 +25694,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3606 + "line": 4029 } }, { @@ -23259,12 +25712,12 @@ } }, "comments": { - "attached": "// void* to hold higher-level, platform window handle (e.g. HWND, GLFWWindow*, SDL_Window*), for FindViewportByPlatformHandle()." + "attached": "// void* to hold higher-level, platform window handle (e.g. HWND for Win32 backend, Uint32 WindowID for SDL, GLFWWindow* for GLFW), for FindViewportByPlatformHandle()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3607 + "line": 4030 } }, { @@ -23282,12 +25735,12 @@ } }, "comments": { - "attached": "// void* to hold lower-level, platform-native window handle (under Win32 this is expected to be a HWND, unused for other platforms), when using an abstraction layer like GLFW or SDL (where PlatformHandle would be a SDL_Window*)" + "attached": "// void* to hold lower-level, platform-native window handle (always HWND on Win32 platform, unused for other platforms)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3608 + "line": 4031 } }, { @@ -23307,7 +25760,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3609 + "line": 4032 } }, { @@ -23327,7 +25780,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3610 + "line": 4033 } }, { @@ -23347,7 +25800,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3611 + "line": 4034 } }, { @@ -23367,7 +25820,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3612 + "line": 4035 } } ], @@ -23385,7 +25838,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3588 + "line": 4010 } }, { @@ -23396,6 +25849,572 @@ "forward_declaration": false, "is_anonymous": false, "fields": [ + { + "name": "Platform_GetClipboardTextFn", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "const char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + }, + "arguments": [ + { + "name": "ctx", + "type": { + "declaration": "ImGuiContext*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "Platform_GetClipboardTextFn", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + }, + "parameters": [ + { + "kind": "Type", + "name": "ctx", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + } + ] + } + } + } + }, + "comments": { + "preceding": [ + "// Optional: Access OS clipboard", + "// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)" + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, + { + "name": "Platform_SetClipboardTextFn", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "ctx", + "type": { + "declaration": "ImGuiContext*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "text", + "type": { + "declaration": "const char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "Platform_SetClipboardTextFn", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "Builtin", + "builtin_type": "void" + }, + "parameters": [ + { + "kind": "Type", + "name": "ctx", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + { + "kind": "Type", + "name": "text", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + } + ] + } + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, + { + "name": "Platform_ClipboardUserData", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4108 + } + }, + { + "name": "Platform_OpenInShellFn", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool (*Platform_OpenInShellFn)(ImGuiContext* ctx, const char* path)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "arguments": [ + { + "name": "ctx", + "type": { + "declaration": "ImGuiContext*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "path", + "type": { + "declaration": "const char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "Platform_OpenInShellFn", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "Builtin", + "builtin_type": "bool" + }, + "parameters": [ + { + "kind": "Type", + "name": "ctx", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + { + "kind": "Type", + "name": "path", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + } + ] + } + } + } + }, + "comments": { + "preceding": [ + "// Optional: Open link/folder/file in OS Shell", + "// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)" + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, + { + "name": "Platform_OpenInShellUserData", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4113 + } + }, + { + "name": "Platform_SetImeDataFn", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void (*Platform_SetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "ctx", + "type": { + "declaration": "ImGuiContext*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "viewport", + "type": { + "declaration": "ImGuiViewport*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "data", + "type": { + "declaration": "ImGuiPlatformImeData*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiPlatformImeData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "Platform_SetImeDataFn", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "Builtin", + "builtin_type": "void" + }, + "parameters": [ + { + "kind": "Type", + "name": "ctx", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiContext" + } + } + }, + { + "kind": "Type", + "name": "viewport", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + { + "kind": "Type", + "name": "data", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiPlatformImeData" + } + } + } + ] + } + } + } + }, + "comments": { + "preceding": [ + "// Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows)", + "// (default to use native imm32 api on Windows)" + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, + { + "name": "Platform_ImeUserData", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4118 + } + }, + { + "name": "Platform_LocaleDecimalPoint", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImWchar", + "description": { + "kind": "User", + "name": "ImWchar" + } + }, + "comments": { + "preceding": [ + "// Optional: Platform locale", + "// [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point" + ], + "attached": "// '.'" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4123 + } + }, + { + "name": "Renderer_TextureMaxWidth", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "comments": { + "preceding": [ + "// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not known." + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4130 + } + }, + { + "name": "Renderer_TextureMaxHeight", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4131 + } + }, + { + "name": "Renderer_RenderState", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "comments": { + "preceding": [ + "// Written by some backends during ImGui_ImplXXXX_RenderDrawData() call to point backend_specific ImGui_ImplXXXX_RenderState* structure." + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4134 + } + }, { "name": "Platform_CreateWindow", "is_array": false, @@ -23460,7 +26479,7 @@ }, "comments": { "preceding": [ - "// Platform function --------------------------------------------------- Called by -----" + "// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----" ], "attached": "// . . U . . // Create a new platform window for the given viewport" }, @@ -23763,7 +26782,7 @@ } }, "comments": { - "attached": "// N . . . . //" + "attached": "// N . . . . // (Use ImGuiPlatformIO_SetPlatform_GetWindowPos() to set this from C, otherwise you will likely encounter stack corruption)" }, "is_internal": false, "source_location": { @@ -23924,7 +26943,77 @@ } }, "comments": { - "attached": "// N . . . . // Get platform window client area size" + "attached": "// N . . . . // Get platform window client area size (Use ImGuiPlatformIO_SetPlatform_GetWindowSize() to set this from C, otherwise you will likely encounter stack corruption)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, + { + "name": "Platform_GetWindowFramebufferScale", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVec2 (*Platform_GetWindowFramebufferScale)(ImGuiViewport* vp)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "arguments": [ + { + "name": "vp", + "type": { + "declaration": "ImGuiViewport*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "Platform_GetWindowFramebufferScale", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "User", + "name": "ImVec2" + }, + "parameters": [ + { + "kind": "Type", + "name": "vp", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + } + ] + } + } + } + }, + "comments": { + "attached": "// N . . . . // Return viewport density. Always 1,1 on Windows, often 2,2 on Retina display on macOS/iOS. MUST BE INTEGER VALUES. (Use ImGuiPlatformIO_SetPlatform_GetWindowFramebufferScale() to set this from C, otherwise you will likely encounter stack corruption)" }, "is_internal": false, "source_location": { @@ -24739,6 +27828,76 @@ "filename": "imgui.h" } }, + { + "name": "Platform_GetWindowWorkAreaInsets", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVec4 (*Platform_GetWindowWorkAreaInsets)(ImGuiViewport* vp)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "ImVec4", + "description": { + "kind": "User", + "name": "ImVec4" + } + }, + "arguments": [ + { + "name": "vp", + "type": { + "declaration": "ImGuiViewport*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "Platform_GetWindowWorkAreaInsets", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "User", + "name": "ImVec4" + }, + "parameters": [ + { + "kind": "Type", + "name": "vp", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + } + ] + } + } + } + }, + "comments": { + "attached": "// N . . . . // (Optional) [BETA] Get initial work area inset for the viewport (won't be covered by main menu bar, dockspace over viewport etc.). Default to (0,0),(0,0). 'safeAreaInsets' in iOS land, 'DisplayCutout' in Android land. (Use ImGuiPlatformIO_SetPlatform_GetWindowWorkAreaInsets() to set this from C, otherwise you will likely encounter stack corruption)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h" + } + }, { "name": "Platform_CreateVkSurface", "is_array": false, @@ -24954,7 +28113,7 @@ }, "comments": { "preceding": [ - "// (Optional) Renderer functions (e.g. DirectX, OpenGL, Vulkan)" + "// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----" ], "attached": "// . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow)" }, @@ -25339,7 +28498,31 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3721 + "line": 4184 + } + }, + { + "name": "Textures", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImVector_ImTextureDataPtr", + "description": { + "kind": "User", + "name": "ImVector_ImTextureDataPtr" + } + }, + "comments": { + "preceding": [ + "// Textures list (the list is updated by calling ImGui::EndFrame or ImGui::Render)", + "// The ImGui_ImplXXXX_RenderDrawData() function of each backend generally access this via ImDrawData::Textures which points to this. The array is available here mostly because backends will want to destroy textures on shutdown." + ], + "attached": "// List of textures used by Dear ImGui (most often 1) + contents of external texture list is automatically appended into this." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4192 } }, { @@ -25363,19 +28546,19 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3729 + "line": 4196 } } ], "comments": { "preceding": [ - "// (Optional) Access via ImGui::GetPlatformIO()" + "// Access via ImGui::GetPlatformIO()" ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3672 + "line": 4096 } }, { @@ -25403,7 +28586,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3737 + "line": 4203 } }, { @@ -25423,7 +28606,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3737 + "line": 4203 } }, { @@ -25443,7 +28626,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3738 + "line": 4204 } }, { @@ -25463,7 +28646,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3738 + "line": 4204 } }, { @@ -25483,7 +28666,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3739 + "line": 4205 } }, { @@ -25506,7 +28689,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3740 + "line": 4206 } } ], @@ -25519,7 +28702,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3735 + "line": 4201 } }, { @@ -25542,12 +28725,32 @@ } }, "comments": { - "attached": "// A widget wants the IME to be visible" + "attached": "// A widget wants the IME to be visible." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3747 + "line": 4213 + } + }, + { + "name": "WantTextInput", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "comments": { + "attached": "// A widget wants text input, not necessarily IME to be visible. This is automatically set to the upcoming value of io.WantTextInput." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4214 } }, { @@ -25562,12 +28765,12 @@ } }, "comments": { - "attached": "// Position of the input cursor" + "attached": "// Position of input cursor (for IME)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3748 + "line": 4215 } }, { @@ -25582,28 +28785,96 @@ } }, "comments": { - "attached": "// Line height" + "attached": "// Line height (for IME)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3749 + "line": 4216 + } + }, + { + "name": "ViewportId", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "ImGuiID", + "description": { + "kind": "User", + "name": "ImGuiID" + } + }, + "comments": { + "attached": "// ID of platform window/viewport." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4217 } } ], "comments": { "preceding": [ - "// (Optional) Support for IME (Input Method Editor) via the io.PlatformSetImeDataFn() function." + "// (Optional) Support for IME (Input Method Editor) via the platform_io.Platform_SetImeDataFn() function. Handler is called during EndFrame()." ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3745 + "line": 4211 } } ], "functions": [ + { + "name": "ImTextureRef_GetTexID", + "original_fully_qualified_name": "GetTexID", + "return_type": { + "declaration": "ImTextureID", + "description": { + "kind": "User", + "name": "ImTextureID" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "const ImTextureRef*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureRef", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureRef", + "comments": { + "attached": "// == (_TexData ? _TexData->TexID : _TexID) // Implemented below in the file." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 370 + } + }, { "name": "ImGui_CreateContext", "original_fully_qualified_name": "ImGui::CreateContext", @@ -25641,6 +28912,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Context creation and access", @@ -25652,7 +28924,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 327 + "line": 389 } }, { @@ -25689,13 +28961,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// NULL = destroy current context" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 328 + "line": 390 } }, { @@ -25717,10 +28990,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 329 + "line": 391 } }, { @@ -25756,10 +29030,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 330 + "line": 392 } }, { @@ -25770,6 +29045,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "User", "name": "ImGuiIO" @@ -25782,16 +29058,48 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Main" ], - "attached": "// access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)" + "attached": "// access the ImGuiIO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 333 + "line": 395 + } + }, + { + "name": "ImGui_GetPlatformIO", + "original_fully_qualified_name": "ImGui::GetPlatformIO", + "return_type": { + "declaration": "ImGuiPlatformIO*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "is_reference": true, + "inner_type": { + "kind": "User", + "name": "ImGuiPlatformIO" + } + } + }, + "arguments": [], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// access the ImGuiPlatformIO structure (mostly hooks/functions to connect to platform/renderer and OS Clipboard, IME etc.)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 396 } }, { @@ -25802,6 +29110,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "User", "name": "ImGuiStyle" @@ -25814,13 +29123,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// access the Style structure (colors, sizes). Always use PushStyleColor(), PushStyleVar() to modify style mid-frame!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 334 + "line": 397 } }, { @@ -25839,13 +29149,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 335 + "line": 398 } }, { @@ -25864,13 +29175,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 336 + "line": 399 } }, { @@ -25889,13 +29201,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 337 + "line": 400 } }, { @@ -25917,13 +29230,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { - "attached": "// valid after Render() and until the next call to NewFrame(). this is what you have to render." + "attached": "// valid after Render() and until the next call to NewFrame(). Call ImGui_ImplXXXX_RenderDrawData() function in your Renderer Backend to render." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 338 + "line": 401 } }, { @@ -25960,6 +29274,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Demo, Debug, Information" @@ -25969,7 +29284,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 341 + "line": 404 } }, { @@ -26006,13 +29321,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// create Metrics/Debugger window. display Dear ImGui internals: windows, draw commands, various internal state, etc." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 342 + "line": 405 } }, { @@ -26049,13 +29365,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// create Debug Log window. display a simplified log of important dear imgui events." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 343 + "line": 406 } }, { @@ -26074,13 +29391,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied p_open = NULL" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 344 + "line": 407 } }, { @@ -26117,13 +29435,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// create Stack Tool window. hover items with mouse to query information about the source of their unique ID." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 344 + "line": 407 } }, { @@ -26160,13 +29479,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// create About window. display Dear ImGui version, credits and build/system information." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 345 + "line": 408 } }, { @@ -26203,13 +29523,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// add style editor block (not a window). you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 346 + "line": 409 } }, { @@ -26248,13 +29569,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// add style selector block (not a window), essentially a combo listing the default styles." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 347 + "line": 410 } }, { @@ -26293,13 +29615,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// add font selector block (not a window), essentially a combo listing the loaded fonts." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 348 + "line": 411 } }, { @@ -26318,13 +29641,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// add basic help/info block (not a window): how to manipulate ImGui as an end-user (mouse/keyboard controls)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 349 + "line": 412 } }, { @@ -26349,13 +29673,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get the compiled version string e.g. \"1.80 WIP\" (essentially the value for IMGUI_VERSION from the compiled version of imgui.cpp)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 350 + "line": 413 } }, { @@ -26392,6 +29717,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Styles" @@ -26401,7 +29727,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 353 + "line": 416 } }, { @@ -26438,13 +29764,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// best used with borders and a custom, thicker font" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 354 + "line": 417 } }, { @@ -26481,13 +29808,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// classic imgui style" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 355 + "line": 418 } }, { @@ -26557,6 +29885,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Windows", @@ -26576,7 +29905,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 369 + "line": 432 } }, { @@ -26595,10 +29924,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 370 + "line": 433 } }, { @@ -26679,15 +30009,16 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Child Windows", "// - Use child windows to begin into a self-contained independent scrolling/clipping regions within a host window. Child windows can embed their own child.", "// - Before 1.90 (November 2023), the \"ImGuiChildFlags child_flags = 0\" parameter was \"bool border = false\".", - "// This API is backward compatible with old code, as we guarantee that ImGuiChildFlags_Border == true.", + "// This API is backward compatible with old code, as we guarantee that ImGuiChildFlags_Borders == true.", "// Consider updating your old code:", "// BeginChild(\"Name\", size, false) -> Begin(\"Name\", size, 0); or Begin(\"Name\", size, ImGuiChildFlags_None);", - "// BeginChild(\"Name\", size, true) -> Begin(\"Name\", size, ImGuiChildFlags_Border);", + "// BeginChild(\"Name\", size, true) -> Begin(\"Name\", size, ImGuiChildFlags_Borders);", "// - Manual sizing (each axis can use a different setting e.g. ImVec2(0.0f, 400.0f)):", "// == 0.0f: use remaining parent window size for this axis.", "// > 0.0f: use specified size for this axis.", @@ -26704,7 +30035,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 390 + "line": 453 } }, { @@ -26779,10 +30110,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 391 + "line": 454 } }, { @@ -26801,10 +30133,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 392 + "line": 455 } }, { @@ -26823,6 +30156,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Windows Utilities", @@ -26832,7 +30166,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 396 + "line": 459 } }, { @@ -26851,10 +30185,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 397 + "line": 460 } }, { @@ -26888,13 +30223,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is current window focused? or its root/child, depending on flags. see flags for options." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 398 + "line": 461 } }, { @@ -26928,13 +30264,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is current window hovered and hoverable (e.g. not blocked by a popup/modal)? See ImGuiHoveredFlags_ for options. IMPORTANT: If you are trying to check whether your mouse should be dispatched to Dear ImGui or to your underlying app, you should not use this function! Use the 'io.WantCaptureMouse' boolean for that! Refer to FAQ entry \"How can I tell whether to dispatch mouse/keyboard to Dear ImGui or my application?\" for details." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 399 + "line": 462 } }, { @@ -26956,13 +30293,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get draw list associated to the current window, to append your own drawing primitives" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 400 + "line": 463 } }, { @@ -26981,13 +30319,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get DPI scale currently associated to the current window's viewport." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 401 + "line": 464 } }, { @@ -27006,13 +30345,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get current window position in screen space (IT IS UNLIKELY YOU EVER NEED TO USE THIS. Consider always using GetCursorScreenPos() and GetContentRegionAvail() instead)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 402 + "line": 465 } }, { @@ -27031,13 +30371,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get current window size (IT IS UNLIKELY YOU EVER NEED TO USE THIS. Consider always using GetCursorScreenPos() and GetContentRegionAvail() instead)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 403 + "line": 466 } }, { @@ -27056,13 +30397,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get current window width (IT IS UNLIKELY YOU EVER NEED TO USE THIS). Shortcut for GetWindowSize().x." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 404 + "line": 467 } }, { @@ -27081,13 +30423,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get current window height (IT IS UNLIKELY YOU EVER NEED TO USE THIS). Shortcut for GetWindowSize().y." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 405 + "line": 468 } }, { @@ -27109,13 +30452,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get viewport currently associated to the current window." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 406 + "line": 469 } }, { @@ -27162,6 +30506,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Window manipulation", @@ -27172,7 +30517,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 410 + "line": 473 } }, { @@ -27233,13 +30578,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window position. call before Begin(). use pivot=(0.5f,0.5f) to center on given point, etc." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 410 + "line": 473 } }, { @@ -27286,13 +30632,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window size. set axis to 0.0f to force an auto-fit on this axis. call before Begin()" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 411 + "line": 474 } }, { @@ -27369,13 +30716,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window size limits. use 0.0f or FLT_MAX if you don't want limits. Use -1 for both min and max of same axis to preserve current size (which itself is a constraint). Use callback to apply non-trivial programmatic constraints." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 412 + "line": 475 } }, { @@ -27408,13 +30756,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window content size (~ scrollable client area, which enforce the range of scrollbars). Not including window decorations (title bar, menu bar, etc.) nor WindowPadding. set an axis to 0.0f to leave it automatic. call before Begin()" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 413 + "line": 476 } }, { @@ -27461,13 +30810,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window collapsed state. call before Begin()" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 414 + "line": 477 } }, { @@ -27486,13 +30836,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window to be focused / top-most. call before Begin()" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 415 + "line": 478 } }, { @@ -27525,13 +30876,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window scrolling value (use < 0.0f to not affect a given axis)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 416 + "line": 479 } }, { @@ -27564,13 +30916,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window background color alpha. helper to easily override the Alpha component of ImGuiCol_WindowBg/ChildBg/PopupBg. you may also use ImGuiWindowFlags_NoBackground." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 417 + "line": 480 } }, { @@ -27603,13 +30956,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window viewport" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 418 + "line": 481 } }, { @@ -27656,13 +31010,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// (not recommended) set current window position - call within Begin()/End(). prefer using SetNextWindowPos(), as this may incur tearing and side-effects." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 419 + "line": 482 } }, { @@ -27709,13 +31064,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// (not recommended) set current window size - call within Begin()/End(). set to ImVec2(0, 0) to force an auto-fit. prefer using SetNextWindowSize(), as this may incur tearing and minor side-effects." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 420 + "line": 483 } }, { @@ -27762,13 +31118,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// (not recommended) set current window collapsed state. prefer using SetNextWindowCollapsed()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 421 + "line": 484 } }, { @@ -27787,52 +31144,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// (not recommended) set current window to be focused / top-most. prefer using SetNextWindowFocus()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 422 - } - }, - { - "name": "ImGui_SetWindowFontScale", - "original_fully_qualified_name": "ImGui::SetWindowFontScale", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [ - { - "name": "scale", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "comments": { - "attached": "// [OBSOLETE] set font scale. Adjust IO.FontGlobalScale if you want to scale all windows. This is an old API! For correct scaling, prefer to reload font + rebuild ImFontAtlas + call style.ScaleAllSizes()." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 423 + "line": 485 } }, { @@ -27898,13 +31217,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set named window position." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 424 + "line": 486 } }, { @@ -27970,13 +31290,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set named window size. set axis to 0.0f to force an auto-fit on this axis." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 425 + "line": 487 } }, { @@ -28042,13 +31363,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set named window collapsed state" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 426 + "line": 488 } }, { @@ -28087,13 +31409,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set named window to be focused / top-most. use NULL to remove focus." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 427 + "line": 489 } }, { @@ -28112,6 +31435,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Windows Scrolling", @@ -28123,7 +31447,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 432 + "line": 494 } }, { @@ -28142,13 +31466,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get scrolling amount [0 .. GetScrollMaxY()]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 433 + "line": 495 } }, { @@ -28181,13 +31506,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set scrolling amount [0 .. GetScrollMaxX()]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 434 + "line": 496 } }, { @@ -28220,13 +31546,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set scrolling amount [0 .. GetScrollMaxY()]" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 435 + "line": 497 } }, { @@ -28245,13 +31572,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get maximum scrolling amount ~~ ContentSize.x - WindowSize.x - DecorationsSize.x" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 436 + "line": 498 } }, { @@ -28270,13 +31598,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get maximum scrolling amount ~~ ContentSize.y - WindowSize.y - DecorationsSize.y" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 437 + "line": 499 } }, { @@ -28310,13 +31639,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// adjust scrolling amount to make current cursor position visible. center_x_ratio=0.0: left, 0.5: center, 1.0: right. When using to make a \"default/current item\" visible, consider using SetItemDefaultFocus() instead." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 438 + "line": 500 } }, { @@ -28350,13 +31680,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a \"default/current item\" visible, consider using SetItemDefaultFocus() instead." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 439 + "line": 501 } }, { @@ -28403,13 +31734,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 440 + "line": 502 } }, { @@ -28456,17 +31788,18 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 441 + "line": 503 } }, { - "name": "ImGui_PushFont", + "name": "ImGui_PushFontFloat", "original_fully_qualified_name": "ImGui::PushFont", "return_type": { "declaration": "void", @@ -28491,6 +31824,19 @@ "is_array": false, "is_varargs": false, "is_instance_pointer": false + }, + { + "name": "font_size_base_unscaled", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false } ], "is_default_argument_helper": false, @@ -28498,16 +31844,32 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ - "// Parameters stacks (shared)" + "// Parameters stacks (font)", + "// - PushFont(font, 0.0f) // Change font and keep current size", + "// - PushFont(NULL, 20.0f) // Keep font and change current size", + "// - PushFont(font, 20.0f) // Change font and set size to 20.0f", + "// - PushFont(font, style.FontSizeBase * 2.0f) // Change font and set size to be twice bigger than current size.", + "// - PushFont(font, font->LegacySize) // Change font and set size to size passed to AddFontXXX() function. Same as pre-1.92 behavior.", + "// *IMPORTANT* before 1.92, fonts had a single size. They can now be dynamically be adjusted.", + "// - In 1.92 we have REMOVED the single parameter version of PushFont() because it seems like the easiest way to provide an error-proof transition.", + "// - PushFont(font) before 1.92 = PushFont(font, font->LegacySize) after 1.92 // Use default font size as passed to AddFontXXX() function.", + "// *IMPORTANT* global scale factors are applied over the provided size.", + "// - Global scale factors are: 'style.FontScaleMain', 'style.FontScaleDpi' and maybe more.", + "// - If you want to apply a factor to the _current_ font size:", + "// - CORRECT: PushFont(NULL, style.FontSizeBase) // use current unscaled size == does nothing", + "// - CORRECT: PushFont(NULL, style.FontSizeBase * 2.0f) // use current unscaled size x2 == make text twice bigger", + "// - INCORRECT: PushFont(NULL, GetFontSize()) // INCORRECT! using size after global factors already applied == GLOBAL SCALING FACTORS WILL APPLY TWICE!", + "// - INCORRECT: PushFont(NULL, GetFontSize() * 2.0f) // INCORRECT! using size after global factors already applied == GLOBAL SCALING FACTORS WILL APPLY TWICE!" ], - "attached": "// use NULL as a shortcut to push default font" + "attached": "// Use NULL as a shortcut to keep current font. Use 0.0f to keep current size." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 444 + "line": 521 } }, { @@ -28526,10 +31888,95 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 445 + "line": 522 + } + }, + { + "name": "ImGui_GetFont", + "original_fully_qualified_name": "ImGui::GetFont", + "return_type": { + "declaration": "ImFont*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFont" + } + } + }, + "arguments": [], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// get current font" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 523 + } + }, + { + "name": "ImGui_GetFontSize", + "original_fully_qualified_name": "ImGui::GetFontSize", + "return_type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "arguments": [], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// get current scaled font size (= height in pixels). AFTER global scale factors applied. *IMPORTANT* DO NOT PASS THIS VALUE TO PushFont()! Use ImGui::GetStyle().FontSizeBase to get value before global scale factors." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 524 + } + }, + { + "name": "ImGui_GetFontBaked", + "original_fully_qualified_name": "ImGui::GetFontBaked", + "return_type": { + "declaration": "ImFontBaked*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontBaked" + } + } + }, + "arguments": [], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// get current font bound at current size // == GetFont()->GetFontBaked(GetFontSize())" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 525 } }, { @@ -28575,13 +32022,17 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { + "preceding": [ + "// Parameters stacks (shared)" + ], "attached": "// modify a style color. always use this if you modify the style after NewFrame()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 446 + "line": 528 } }, { @@ -28627,10 +32078,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 447 + "line": 529 } }, { @@ -28649,13 +32101,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied count = 1" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 448 + "line": 530 } }, { @@ -28689,10 +32142,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 448 + "line": 530 } }, { @@ -28738,13 +32192,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { - "attached": "// modify a style float variable. always use this if you modify the style after NewFrame()." + "attached": "// modify a style float variable. always use this if you modify the style after NewFrame()!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 449 + "line": 531 } }, { @@ -28790,13 +32245,120 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { - "attached": "// modify a style ImVec2 variable. always use this if you modify the style after NewFrame()." + "attached": "// modify a style ImVec2 variable. \"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 450 + "line": 532 + } + }, + { + "name": "ImGui_PushStyleVarX", + "original_fully_qualified_name": "ImGui::PushStyleVarX", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "idx", + "type": { + "declaration": "ImGuiStyleVar", + "description": { + "kind": "User", + "name": "ImGuiStyleVar" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "val_x", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// modify X component of a style ImVec2 variable. \"" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 533 + } + }, + { + "name": "ImGui_PushStyleVarY", + "original_fully_qualified_name": "ImGui::PushStyleVarY", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "idx", + "type": { + "declaration": "ImGuiStyleVar", + "description": { + "kind": "User", + "name": "ImGuiStyleVar" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "val_y", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// modify Y component of a style ImVec2 variable. \"" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 534 } }, { @@ -28815,13 +32377,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied count = 1" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 451 + "line": 535 } }, { @@ -28855,10 +32418,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 451 + "line": 535 } }, { @@ -28904,13 +32468,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// modify specified shared item flag, e.g. PushItemFlag(ImGuiItemFlags_NoTabStop, true)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 452 + "line": 536 } }, { @@ -28929,10 +32494,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 453 + "line": 537 } }, { @@ -28965,6 +32531,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Parameters stacks (current window)" @@ -28974,7 +32541,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 456 + "line": 540 } }, { @@ -28993,10 +32560,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 457 + "line": 541 } }, { @@ -29029,13 +32597,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set width of the _next_ common large \"item+label\" widget. >0.0f: width in pixels, <0.0f align xx pixels to the right of window (so -FLT_MIN always align width to the right side)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 458 + "line": 542 } }, { @@ -29054,13 +32623,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// width of item given pushed settings and current cursor position. NOT necessarily the width of last item unlike most 'Item' functions." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 459 + "line": 543 } }, { @@ -29094,13 +32664,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// push word-wrapping position for Text*() commands. < 0.0f: no wrapping; 0.0f: wrap to end of window (or column); > 0.0f: wrap at 'wrap_pos_x' position in window local space" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 460 + "line": 544 } }, { @@ -29119,67 +32690,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 461 - } - }, - { - "name": "ImGui_GetFont", - "original_fully_qualified_name": "ImGui::GetFont", - "return_type": { - "declaration": "ImFont*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImFont" - } - } - }, - "arguments": [], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "comments": { - "preceding": [ - "// Style read access", - "// - Use the ShowStyleEditor() function to interactively see/edit the colors." - ], - "attached": "// get current font" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 465 - } - }, - { - "name": "ImGui_GetFontSize", - "original_fully_qualified_name": "ImGui::GetFontSize", - "return_type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "arguments": [], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "comments": { - "attached": "// get current font size (= height in pixels) of current font with current scale applied" - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 466 + "line": 545 } }, { @@ -29198,13 +32713,18 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { - "attached": "// get UV coordinate for a while pixel, useful to draw custom shapes via the ImDrawList API" + "preceding": [ + "// Style read access", + "// - Use the ShowStyleEditor() function to interactively see/edit the colors." + ], + "attached": "// get UV coordinate for a white pixel, useful to draw custom shapes via the ImDrawList API" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 467 + "line": 549 } }, { @@ -29237,13 +32757,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied alpha_mul = 1.0f" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 468 + "line": 550 } }, { @@ -29290,13 +32811,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// retrieve given style color with style alpha applied and optional extra alpha multiplier, packed as a 32-bit value suitable for ImDrawList" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 468 + "line": 550 } }, { @@ -29329,13 +32851,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 469 + "line": 551 } }, { @@ -29368,13 +32891,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied alpha_mul = 1.0f" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 470 + "line": 552 } }, { @@ -29421,13 +32945,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// retrieve given color with style alpha applied, packed as a 32-bit value suitable for ImDrawList" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 470 + "line": 552 } }, { @@ -29438,6 +32963,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "User", "name": "ImVec4", @@ -29467,13 +32993,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// retrieve style color as stored in ImGuiStyle structure. use to feed back into PushStyleColor(), otherwise use GetColorU32() to get style color with style alpha baked in." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 471 + "line": 553 } }, { @@ -29492,6 +33019,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Layout cursor positioning", @@ -29510,7 +33038,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 483 + "line": 565 } }, { @@ -29543,13 +33071,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// cursor position, absolute coordinates. THIS IS YOUR BEST FRIEND." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 484 + "line": 566 } }, { @@ -29568,13 +33097,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// available space from current position. THIS IS YOUR BEST FRIEND." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 485 + "line": 567 } }, { @@ -29593,13 +33123,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// [window-local] cursor position in window-local coordinates. This is not your best friend." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 486 + "line": 568 } }, { @@ -29618,13 +33149,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// [window-local] \"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 487 + "line": 569 } }, { @@ -29643,13 +33175,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// [window-local] \"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 488 + "line": 570 } }, { @@ -29682,13 +33215,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// [window-local] \"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 489 + "line": 571 } }, { @@ -29721,13 +33255,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// [window-local] \"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 490 + "line": 572 } }, { @@ -29760,13 +33295,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// [window-local] \"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 491 + "line": 573 } }, { @@ -29785,13 +33321,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// [window-local] initial cursor position, in window-local coordinates. Call GetCursorScreenPos() after Begin() to get the absolute coordinates version." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 492 + "line": 574 } }, { @@ -29810,6 +33347,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Other layout functions" @@ -29819,7 +33357,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 495 + "line": 577 } }, { @@ -29838,13 +33376,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied offset_from_start_x = 0.0f, spacing = -1.0f" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 496 + "line": 578 } }, { @@ -29892,13 +33431,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// call between widgets or groups to layout them horizontally. X position given in window coordinates." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 496 + "line": 578 } }, { @@ -29917,13 +33457,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// undo a SameLine() or force a new line when in a horizontal-layout context." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 497 + "line": 579 } }, { @@ -29942,13 +33483,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// add vertical spacing." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 498 + "line": 580 } }, { @@ -29981,13 +33523,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// add a dummy item of given size. unlike InvisibleButton(), Dummy() won't take the mouse click or be navigable into." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 499 + "line": 581 } }, { @@ -30006,13 +33549,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied indent_w = 0.0f" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 500 + "line": 582 } }, { @@ -30046,13 +33590,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// move content position toward the right, by indent_w, or style.IndentSpacing if indent_w <= 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 500 + "line": 582 } }, { @@ -30071,13 +33616,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied indent_w = 0.0f" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 501 + "line": 583 } }, { @@ -30111,13 +33657,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// move content position back to the left, by indent_w, or style.IndentSpacing if indent_w <= 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 501 + "line": 583 } }, { @@ -30136,13 +33683,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// lock horizontal starting position" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 502 + "line": 584 } }, { @@ -30161,13 +33709,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// unlock horizontal starting position + capture the whole group bounding box into one \"item\" (so you can use IsItemHovered() or layout primitives such as SameLine() on whole group, etc.)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 503 + "line": 585 } }, { @@ -30186,13 +33735,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 504 + "line": 586 } }, { @@ -30211,13 +33761,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// ~ FontSize" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 505 + "line": 587 } }, { @@ -30236,13 +33787,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// ~ FontSize + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of text)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 506 + "line": 588 } }, { @@ -30261,13 +33813,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// ~ FontSize + style.FramePadding.y * 2" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 507 + "line": 589 } }, { @@ -30286,13 +33839,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 508 + "line": 590 } }, { @@ -30331,6 +33885,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// ID stack/scopes", @@ -30350,7 +33905,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 521 + "line": 603 } }, { @@ -30408,13 +33963,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// push string into the ID stack (will hash string)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 522 + "line": 604 } }, { @@ -30453,13 +34009,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// push pointer into the ID stack (will hash pointer)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 523 + "line": 605 } }, { @@ -30492,13 +34049,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// push integer into the ID stack (will hash integer)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 524 + "line": 606 } }, { @@ -30517,13 +34075,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// pop from the ID stack." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 525 + "line": 607 } }, { @@ -30562,13 +34121,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// calculate unique ID (hash of whole ID stack + given parameter). e.g. if you want to query into ImGuiStorage yourself" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 526 + "line": 608 } }, { @@ -30626,10 +34186,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 527 + "line": 609 } }, { @@ -30668,10 +34229,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 528 + "line": 610 } }, { @@ -30704,10 +34266,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 529 + "line": 611 } }, { @@ -30746,6 +34309,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Text" @@ -30755,7 +34319,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 532 + "line": 614 } }, { @@ -30814,13 +34378,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// raw text without formatting. Roughly equivalent to Text(\"%s\", text) but: A) doesn't require null terminated string if 'text_end' is specified, B) it's faster, no memory copy is done, no buffer size limits, recommended for long chunks of text." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 532 + "line": 614 } }, { @@ -30866,13 +34431,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// formatted text" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 533 + "line": 615 } }, { @@ -30925,10 +34491,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 534 + "line": 616 } }, { @@ -30987,13 +34554,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// shortcut for PushStyleColor(ImGuiCol_Text, col); Text(fmt, ...); PopStyleColor();" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 535 + "line": 617 } }, { @@ -31059,10 +34627,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 536 + "line": 618 } }, { @@ -31108,13 +34677,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// shortcut for PushStyleColor(ImGuiCol_Text, style.Colors[ImGuiCol_TextDisabled]); Text(fmt, ...); PopStyleColor();" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 537 + "line": 619 } }, { @@ -31167,10 +34737,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 538 + "line": 620 } }, { @@ -31216,13 +34787,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// shortcut for PushTextWrapPos(0.0f); Text(fmt, ...); PopTextWrapPos();. Note that this won't work on an auto-resizing window if there's no other widgets to extend the window width, yoy may need to set a size using SetNextWindowSize()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 539 + "line": 621 } }, { @@ -31275,10 +34847,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 540 + "line": 622 } }, { @@ -31343,13 +34916,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// display text+label aligned the same way as value+label widgets" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 541 + "line": 623 } }, { @@ -31421,10 +34995,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 542 + "line": 624 } }, { @@ -31470,13 +35045,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// shortcut for Bullet()+Text()" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 543 + "line": 625 } }, { @@ -31529,10 +35105,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 544 + "line": 626 } }, { @@ -31571,13 +35148,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { - "attached": "// currently: formatted text with an horizontal line" + "attached": "// currently: formatted text with a horizontal line" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 545 + "line": 627 } }, { @@ -31616,6 +35194,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Main", @@ -31627,7 +35206,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 550 + "line": 632 } }, { @@ -31680,13 +35259,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// button" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 550 + "line": 632 } }, { @@ -31725,13 +35305,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// button with (FramePadding.y == 0) to easily embed within text" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 551 + "line": 633 } }, { @@ -31797,13 +35378,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// flexible button behavior without the visuals, frequently useful to build custom behaviors using the public api (along with IsItemActive, IsItemHovered, etc.)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 552 + "line": 634 } }, { @@ -31855,13 +35437,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// square button with an arrow shape" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 553 + "line": 635 } }, { @@ -31916,10 +35499,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 554 + "line": 636 } }, { @@ -31987,10 +35571,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 555 + "line": 637 } }, { @@ -32058,10 +35643,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 556 + "line": 638 } }, { @@ -32113,13 +35699,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// use with e.g. if (RadioButton(\"one\", my_value==1)) { my_value = 1; }" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 557 + "line": 639 } }, { @@ -32187,13 +35774,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// shortcut to handle the above pattern when value is an integer" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 558 + "line": 640 } }, { @@ -32260,10 +35848,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 559 + "line": 641 } }, { @@ -32282,13 +35871,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// draw a small circle + keep the cursor on the same line. advance cursor x position by GetTreeNodeToLabelSpacing(), same distance that TreeNode() uses" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 560 + "line": 642 } }, { @@ -32327,23 +35917,24 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// hyperlink text button, return true when clicked" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 561 + "line": 643 } }, { "name": "ImGui_TextLinkOpenURL", "original_fully_qualified_name": "ImGui::TextLinkOpenURL", "return_type": { - "declaration": "void", + "declaration": "bool", "description": { "kind": "Builtin", - "builtin_type": "void" + "builtin_type": "bool" } }, "arguments": [ @@ -32372,23 +35963,24 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied url = NULL" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 562 + "line": 644 } }, { "name": "ImGui_TextLinkOpenURLEx", "original_fully_qualified_name": "ImGui::TextLinkOpenURL", "return_type": { - "declaration": "void", + "declaration": "bool", "description": { "kind": "Builtin", - "builtin_type": "void" + "builtin_type": "bool" } }, "arguments": [ @@ -32437,13 +36029,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// hyperlink text button, automatically open file/url when clicked" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 562 + "line": 644 } }, { @@ -32458,12 +36051,12 @@ }, "arguments": [ { - "name": "user_texture_id", + "name": "tex_ref", "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -32489,19 +36082,22 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Images", - "// - Read about ImTextureID here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples", + "// - Read about ImTextureID/ImTextureRef here: https://github.com/ocornut/imgui/wiki/Image-Loading-and-Displaying-Examples", "// - 'uv0' and 'uv1' are texture coordinates. Read about them from the same link above.", - "// - Note that Image() may add +2.0f to provided size if a border is visible, ImageButton() adds style.FramePadding*2.0f to provided size." + "// - Image() pads adds style.ImageBorderSize on each side, ImageButton() adds style.FramePadding on each side.", + "// - ImageButton() draws a background based on regular Button() color + optionally an inner background if specified.", + "// - An obsolete version of Image(), before 1.91.9 (March 2025), had a 'tint_col' parameter which is now supported by the ImageWithBg() function." ], - "attached": "// Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), tint_col = ImVec4(1, 1, 1, 1), border_col = ImVec4(0, 0, 0, 0)" + "attached": "// Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 568 + "line": 652 } }, { @@ -32516,12 +36112,12 @@ }, "arguments": [ { - "name": "user_texture_id", + "name": "tex_ref", "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -32568,34 +36164,6 @@ "is_varargs": false, "default_value": "ImVec2(1, 1)", "is_instance_pointer": false - }, - { - "name": "tint_col", - "type": { - "declaration": "ImVec4", - "description": { - "kind": "User", - "name": "ImVec4" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "ImVec4(1, 1, 1, 1)", - "is_instance_pointer": false - }, - { - "name": "border_col", - "type": { - "declaration": "ImVec4", - "description": { - "kind": "User", - "name": "ImVec4" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "ImVec4(0, 0, 0, 0)", - "is_instance_pointer": false } ], "is_default_argument_helper": false, @@ -32603,49 +36171,31 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 568 + "line": 652 } }, { - "name": "ImGui_ImageButton", - "original_fully_qualified_name": "ImGui::ImageButton", + "name": "ImGui_ImageWithBg", + "original_fully_qualified_name": "ImGui::ImageWithBg", "return_type": { - "declaration": "bool", + "declaration": "void", "description": { "kind": "Builtin", - "builtin_type": "bool" + "builtin_type": "void" } }, "arguments": [ { - "name": "str_id", + "name": "tex_ref", "type": { - "declaration": "const char*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "Builtin", - "builtin_type": "char", - "storage_classes": [ - "const" - ] - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "user_texture_id", - "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -32671,52 +36221,34 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), bg_col = ImVec4(0, 0, 0, 0), tint_col = ImVec4(1, 1, 1, 1)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 569 + "line": 653 } }, { - "name": "ImGui_ImageButtonEx", - "original_fully_qualified_name": "ImGui::ImageButton", + "name": "ImGui_ImageWithBgEx", + "original_fully_qualified_name": "ImGui::ImageWithBg", "return_type": { - "declaration": "bool", + "declaration": "void", "description": { "kind": "Builtin", - "builtin_type": "bool" + "builtin_type": "void" } }, "arguments": [ { - "name": "str_id", + "name": "tex_ref", "type": { - "declaration": "const char*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "Builtin", - "builtin_type": "char", - "storage_classes": [ - "const" - ] - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "user_texture_id", - "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -32798,10 +36330,208 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 569 + "line": 653 + } + }, + { + "name": "ImGui_ImageButton", + "original_fully_qualified_name": "ImGui::ImageButton", + "return_type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "arguments": [ + { + "name": "str_id", + "type": { + "declaration": "const char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "tex_ref", + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "image_size", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": true, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// Implied uv0 = ImVec2(0, 0), uv1 = ImVec2(1, 1), bg_col = ImVec4(0, 0, 0, 0), tint_col = ImVec4(1, 1, 1, 1)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 654 + } + }, + { + "name": "ImGui_ImageButtonEx", + "original_fully_qualified_name": "ImGui::ImageButton", + "return_type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "arguments": [ + { + "name": "str_id", + "type": { + "declaration": "const char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "tex_ref", + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "image_size", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "uv0", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "ImVec2(0, 0)", + "is_instance_pointer": false + }, + { + "name": "uv1", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "ImVec2(1, 1)", + "is_instance_pointer": false + }, + { + "name": "bg_col", + "type": { + "declaration": "ImVec4", + "description": { + "kind": "User", + "name": "ImVec4" + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "ImVec4(0, 0, 0, 0)", + "is_instance_pointer": false + }, + { + "name": "tint_col", + "type": { + "declaration": "ImVec4", + "description": { + "kind": "User", + "name": "ImVec4" + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "ImVec4(1, 1, 1, 1)", + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 654 } }, { @@ -32873,6 +36603,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Combo Box (Dropdown)", @@ -32883,7 +36614,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 574 + "line": 659 } }, { @@ -32902,13 +36633,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndCombo() if BeginCombo() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 575 + "line": 660 } }, { @@ -33002,13 +36734,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied popup_max_height_in_items = -1" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 576 + "line": 661 } }, { @@ -33116,10 +36849,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 576 + "line": 661 } }, { @@ -33193,13 +36927,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied popup_max_height_in_items = -1" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 577 + "line": 662 } }, { @@ -33287,13 +37022,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Separate items with \\0 within a string, end item-list with \\0\\0. e.g. \"One\\0Two\\0Three\\0\"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 577 + "line": 662 } }, { @@ -33474,13 +37210,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied popup_max_height_in_items = -1" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 578 + "line": 663 } }, { @@ -33675,10 +37412,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 578 + "line": 663 } }, { @@ -33733,6 +37471,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Drag Sliders", @@ -33741,7 +37480,7 @@ "// the array syntax is just a way to document the number of elements that are expected to be accessible. You can pass address of your first element out of a contiguous set, e.g. &myvector.x", "// - Adjust format string to decorate the value with a prefix, a suffix, or adapt the editing and display precision e.g. \"%.3f\" -> 1.234; \"%5.2f secs\" -> 01.23 secs; \"Biscuit: %.0f\" -> Biscuit: 1; etc.", "// - Format string may also be set to NULL or use the default format (\"%f\" or \"%d\").", - "// - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For gamepad/keyboard navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision).", + "// - Speed are per-pixel of mouse movement (v_speed=0.2f: mouse needs to move by 5 pixels to increase value by 1). For keyboard/gamepad navigation, minimum speed is Max(v_speed, minimum_step_at_given_precision).", "// - Use v_min < v_max to clamp edits to given limits. Note that CTRL+Click manual input can override those limits if ImGuiSliderFlags_AlwaysClamp is not used.", "// - Use v_max = FLT_MAX / INT_MAX etc to avoid clamping to a maximum, same with v_min = -FLT_MAX / INT_MIN to avoid clamping to a minimum.", "// - We use the same sets of flags for DragXXX() and SliderXXX() functions as the features are the same and it makes it easier to swap them.", @@ -33753,7 +37492,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 592 + "line": 677 } }, { @@ -33884,13 +37623,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// If v_min >= v_max we have no bound" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 592 + "line": 677 } }, { @@ -33947,13 +37687,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 593 + "line": 678 } }, { @@ -34086,10 +37827,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 593 + "line": 678 } }, { @@ -34146,13 +37888,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 594 + "line": 679 } }, { @@ -34285,10 +38028,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 594 + "line": 679 } }, { @@ -34345,13 +38089,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 595 + "line": 680 } }, { @@ -34484,10 +38229,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 595 + "line": 680 } }, { @@ -34558,13 +38304,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0.0f, v_max = 0.0f, format = \"%.3f\", format_max = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 596 + "line": 681 } }, { @@ -34731,10 +38478,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 596 + "line": 681 } }, { @@ -34789,13 +38537,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0, v_max = 0, format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 597 + "line": 682 } }, { @@ -34926,13 +38675,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// If v_min >= v_max we have no bound" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 597 + "line": 682 } }, { @@ -34989,13 +38739,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0, v_max = 0, format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 598 + "line": 683 } }, { @@ -35128,10 +38879,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 598 + "line": 683 } }, { @@ -35188,13 +38940,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0, v_max = 0, format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 599 + "line": 684 } }, { @@ -35327,10 +39080,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 599 + "line": 684 } }, { @@ -35387,13 +39141,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0, v_max = 0, format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 600 + "line": 685 } }, { @@ -35526,10 +39281,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 600 + "line": 685 } }, { @@ -35600,13 +39356,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, v_min = 0, v_max = 0, format = \"%d\", format_max = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 601 + "line": 686 } }, { @@ -35773,10 +39530,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 601 + "line": 686 } }, { @@ -35844,13 +39602,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, p_min = NULL, p_max = NULL, format = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 602 + "line": 687 } }, { @@ -36006,10 +39765,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 602 + "line": 687 } }, { @@ -36090,13 +39850,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_speed = 1.0f, p_min = NULL, p_max = NULL, format = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 603 + "line": 688 } }, { @@ -36265,10 +40026,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 603 + "line": 688 } }, { @@ -36349,6 +40111,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Regular Sliders", @@ -36363,7 +40126,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 611 + "line": 696 } }, { @@ -36478,13 +40241,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// adjust format to decorate the value with a prefix or a suffix for in-slider labels or unit display." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 611 + "line": 696 } }, { @@ -36567,13 +40331,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 612 + "line": 697 } }, { @@ -36690,10 +40455,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 612 + "line": 697 } }, { @@ -36776,13 +40542,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 613 + "line": 698 } }, { @@ -36899,10 +40666,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 613 + "line": 698 } }, { @@ -36985,13 +40753,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 614 + "line": 699 } }, { @@ -37108,10 +40877,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 614 + "line": 699 } }, { @@ -37166,13 +40936,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied v_degrees_min = -360.0f, v_degrees_max = +360.0f, format = \"%.0f deg\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 615 + "line": 700 } }, { @@ -37289,10 +41060,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 615 + "line": 700 } }, { @@ -37373,13 +41145,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 616 + "line": 701 } }, { @@ -37494,10 +41267,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 616 + "line": 701 } }, { @@ -37580,13 +41354,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 617 + "line": 702 } }, { @@ -37703,10 +41478,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 617 + "line": 702 } }, { @@ -37789,13 +41565,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 618 + "line": 703 } }, { @@ -37912,10 +41689,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 618 + "line": 703 } }, { @@ -37998,13 +41776,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 619 + "line": 704 } }, { @@ -38121,10 +41900,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 619 + "line": 704 } }, { @@ -38230,13 +42010,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 620 + "line": 705 } }, { @@ -38376,10 +42157,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 620 + "line": 705 } }, { @@ -38498,13 +42280,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 621 + "line": 706 } }, { @@ -38657,10 +42440,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 621 + "line": 706 } }, { @@ -38754,13 +42538,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 622 + "line": 707 } }, { @@ -38888,10 +42673,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 622 + "line": 707 } }, { @@ -38985,13 +42771,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%d\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 623 + "line": 708 } }, { @@ -39119,10 +42906,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 623 + "line": 708 } }, { @@ -39241,13 +43029,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 624 + "line": 709 } }, { @@ -39400,10 +43189,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 624 + "line": 709 } }, { @@ -39485,6 +43275,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Input with Keyboard", @@ -39496,7 +43287,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 629 + "line": 714 } }, { @@ -39609,10 +43400,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 629 + "line": 714 } }, { @@ -39680,13 +43472,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied size = ImVec2(0, 0), flags = 0, callback = NULL, user_data = NULL" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 630 + "line": 715 } }, { @@ -39813,10 +43606,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 630 + "line": 715 } }, { @@ -39917,13 +43711,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied callback = NULL, user_data = NULL" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 631 + "line": 716 } }, { @@ -40055,10 +43850,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 631 + "line": 716 } }, { @@ -40113,13 +43909,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied step = 0.0f, step_fast = 0.0f, format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 632 + "line": 717 } }, { @@ -40236,10 +44033,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 632 + "line": 717 } }, { @@ -40296,13 +44094,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 633 + "line": 718 } }, { @@ -40393,10 +44192,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 633 + "line": 718 } }, { @@ -40453,13 +44253,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 634 + "line": 719 } }, { @@ -40550,10 +44351,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 634 + "line": 719 } }, { @@ -40610,13 +44412,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied format = \"%.3f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 635 + "line": 720 } }, { @@ -40707,10 +44510,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 635 + "line": 720 } }, { @@ -40765,13 +44569,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied step = 1, step_fast = 100, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 636 + "line": 721 } }, { @@ -40868,10 +44673,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 636 + "line": 721 } }, { @@ -40942,10 +44748,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 637 + "line": 722 } }, { @@ -41016,10 +44823,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 638 + "line": 723 } }, { @@ -41090,10 +44898,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 639 + "line": 724 } }, { @@ -41148,13 +44957,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied step = 0.0, step_fast = 0.0, format = \"%.6f\", flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 640 + "line": 725 } }, { @@ -41271,10 +45081,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 640 + "line": 725 } }, { @@ -41342,13 +45153,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied p_step = NULL, p_step_fast = NULL, format = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 641 + "line": 726 } }, { @@ -41490,10 +45302,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 641 + "line": 726 } }, { @@ -41574,13 +45387,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied p_step = NULL, p_step_fast = NULL, format = NULL, flags = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 642 + "line": 727 } }, { @@ -41735,10 +45549,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 642 + "line": 727 } }, { @@ -41809,6 +45624,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Color Editor/Picker (tip: the ColorEdit* functions have a little color square that can be left-clicked to open a picker, and right-clicked to open an option menu.)", @@ -41819,7 +45635,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 647 + "line": 732 } }, { @@ -41890,10 +45706,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 648 + "line": 733 } }, { @@ -41964,10 +45781,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 649 + "line": 734 } }, { @@ -42058,10 +45876,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 650 + "line": 735 } }, { @@ -42127,13 +45946,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied size = ImVec2(0, 0)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 651 + "line": 736 } }, { @@ -42213,13 +46033,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// display a color square/button, hover for details, return true when pressed." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 651 + "line": 736 } }, { @@ -42252,13 +46073,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// initialize current options (generally on application startup) if you want to select a default format, picker type, etc. User will be able to change many settings, unless you pass the _NoOptions flag to your calls." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 652 + "line": 737 } }, { @@ -42297,6 +46119,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Trees", @@ -42306,7 +46129,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 656 + "line": 741 } }, { @@ -42371,13 +46194,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// helper variation to easily decorelate the id from the displayed string. Read the FAQ about why and how to use ID. to align arbitrary text at the same level as a TreeNode() you can use Bullet()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 657 + "line": 742 } }, { @@ -42442,13 +46266,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// \"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 658 + "line": 743 } }, { @@ -42520,10 +46345,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 659 + "line": 744 } }, { @@ -42595,10 +46421,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 660 + "line": 745 } }, { @@ -42651,10 +46478,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 661 + "line": 746 } }, { @@ -42732,10 +46560,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 662 + "line": 747 } }, { @@ -42813,10 +46642,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 663 + "line": 748 } }, { @@ -42901,10 +46731,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 664 + "line": 749 } }, { @@ -42989,10 +46820,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 665 + "line": 750 } }, { @@ -43031,13 +46863,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// ~ Indent()+PushID(). Already called by TreeNode() when returning true, but you can call TreePush/TreePop yourself if desired." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 666 + "line": 751 } }, { @@ -43076,13 +46909,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// \"" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 667 + "line": 752 } }, { @@ -43101,13 +46935,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// ~ Unindent()+PopID()" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 668 + "line": 753 } }, { @@ -43126,13 +46961,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 669 + "line": 754 } }, { @@ -43185,13 +47021,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// if returning 'true' the header is open. doesn't indent nor push on ID stack. user doesn't have to call TreePop()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 670 + "line": 755 } }, { @@ -43260,13 +47097,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// when 'p_visible != NULL': if '*p_visible==true' display an additional small close button on upper right of the header which will set the bool to false when clicked, if '*p_visible==false' don't display the header." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 671 + "line": 756 } }, { @@ -43313,13 +47151,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next TreeNode/CollapsingHeader open state." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 672 + "line": 757 } }, { @@ -43352,13 +47191,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set id to use for open/close storage (default to same as item id)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 673 + "line": 758 } }, { @@ -43397,6 +47237,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Selectables", @@ -43408,7 +47249,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 678 + "line": 763 } }, { @@ -43489,13 +47330,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// \"bool selected\" carry the selection state (read-only). Selectable() is clicked is returns true so you can modify your selection state. size.x==0.0: use remaining width, size.x>0.0: specify width. size.y==0.0: use label height, size.y>0.0: specify height" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 678 + "line": 763 } }, { @@ -43564,13 +47406,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied size = ImVec2(0, 0)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 679 + "line": 764 } }, { @@ -43653,13 +47496,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// \"bool* p_selected\" point to the selection state (read-write), as a convenient helper." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 679 + "line": 764 } }, { @@ -43695,6 +47539,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Multi-selection system for Selectable(), Checkbox(), TreeNode() functions [BETA]", @@ -43710,7 +47555,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 688 + "line": 773 } }, { @@ -43774,10 +47619,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 688 + "line": 773 } }, { @@ -43799,10 +47645,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 689 + "line": 774 } }, { @@ -43835,10 +47682,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 690 + "line": 775 } }, { @@ -43857,13 +47705,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Was the last item selection state toggled? Useful if you need the per-item information _before_ reaching EndMultiSelect(). We only returns toggle _event_ in order to handle clipping correctly." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 691 + "line": 776 } }, { @@ -43916,12 +47765,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: List Boxes", "// - This is essentially a thin wrapper to using BeginChild/EndChild with the ImGuiChildFlags_FrameStyle flag for stylistic changes + displaying a label.", + "// - If you don't need a label you can probably simply use BeginChild() with the ImGuiChildFlags_FrameStyle flag for the same result.", "// - You can submit contents and manage your selection state however you want it, by creating e.g. Selectable() or any other items.", - "// - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analoguous to how Combos are created.", + "// - The simplified/old ListBox() api are helpers over BeginListBox()/EndListBox() which are kept available for convenience purpose. This is analogous to how Combos are created.", "// - Choose frame width: size.x > 0.0f: custom / size.x < 0.0f or -FLT_MIN: right-align / size.x = 0.0f (default): use current ItemWidth", "// - Choose frame height: size.y > 0.0f: custom / size.y < 0.0f or -FLT_MIN: bottom-align / size.y = 0.0f (default): arbitrary default height which can fit ~7 items" ], @@ -43930,7 +47781,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 699 + "line": 785 } }, { @@ -43949,13 +47800,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndListBox() if BeginListBox() returned true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 700 + "line": 786 } }, { @@ -44063,10 +47915,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 701 + "line": 787 } }, { @@ -44247,13 +48100,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied height_in_items = -1" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 702 + "line": 788 } }, { @@ -44448,10 +48302,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 702 + "line": 788 } }, { @@ -44522,6 +48377,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Data Plotting", @@ -44532,7 +48388,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 706 + "line": 792 } }, { @@ -44693,10 +48549,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 706 + "line": 792 } }, { @@ -44849,13 +48706,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied values_offset = 0, overlay_text = NULL, scale_min = FLT_MAX, scale_max = FLT_MAX, graph_size = ImVec2(0, 0)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 707 + "line": 793 } }, { @@ -45084,10 +48942,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 707 + "line": 793 } }, { @@ -45158,13 +49017,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied values_offset = 0, overlay_text = NULL, scale_min = FLT_MAX, scale_max = FLT_MAX, graph_size = ImVec2(0, 0), stride = sizeof(float)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 708 + "line": 794 } }, { @@ -45325,10 +49185,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 708 + "line": 794 } }, { @@ -45481,13 +49342,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied values_offset = 0, overlay_text = NULL, scale_min = FLT_MAX, scale_max = FLT_MAX, graph_size = ImVec2(0, 0)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 709 + "line": 795 } }, { @@ -45716,10 +49578,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 709 + "line": 795 } }, { @@ -45738,6 +49601,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Widgets: Menus", @@ -45751,7 +49615,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 723 + "line": 809 } }, { @@ -45770,13 +49634,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndMenuBar() if BeginMenuBar() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 724 + "line": 810 } }, { @@ -45795,13 +49660,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// create and append to a full screen menu-bar." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 725 + "line": 811 } }, { @@ -45820,13 +49686,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndMainMenuBar() if BeginMainMenuBar() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 726 + "line": 812 } }, { @@ -45865,13 +49732,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied enabled = true" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 727 + "line": 813 } }, { @@ -45924,13 +49792,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// create a sub-menu entry. only call EndMenu() if this returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 727 + "line": 813 } }, { @@ -45949,13 +49818,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndMenu() if BeginMenu() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 728 + "line": 814 } }, { @@ -45994,13 +49864,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied shortcut = NULL, selected = false, enabled = true" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 729 + "line": 815 } }, { @@ -46087,13 +49958,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return true when activated." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 729 + "line": 815 } }, { @@ -46181,13 +50053,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return true when activated + toggle (*p_selected) if p_selected != NULL" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 730 + "line": 816 } }, { @@ -46206,6 +50079,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Tooltips", @@ -46218,7 +50092,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 736 + "line": 822 } }, { @@ -46237,13 +50111,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndTooltip() if BeginTooltip()/BeginItemTooltip() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 737 + "line": 823 } }, { @@ -46289,13 +50164,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set a text-only tooltip. Often used after a ImGui::IsItemHovered() check. Override any previous call to SetTooltip()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 738 + "line": 824 } }, { @@ -46348,10 +50224,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 739 + "line": 825 } }, { @@ -46370,6 +50247,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Tooltips: helpers for showing a tooltip when hovering an item", @@ -46382,7 +50260,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 745 + "line": 831 } }, { @@ -46428,13 +50306,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set a text-only tooltip if preceding item was hovered. override any previous call to SetTooltip()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 746 + "line": 832 } }, { @@ -46487,10 +50366,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 747 + "line": 833 } }, { @@ -46543,6 +50423,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Popups, Modals", @@ -46561,7 +50442,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 759 + "line": 845 } }, { @@ -46631,13 +50512,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return true if the modal is open, and you can start outputting to it." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 760 + "line": 846 } }, { @@ -46656,13 +50538,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndPopup() if BeginPopupXXX() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 761 + "line": 847 } }, { @@ -46715,6 +50598,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Popups: open/close functions", @@ -46731,7 +50615,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 771 + "line": 857 } }, { @@ -46778,13 +50662,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// id overload to facilitate calling from nested stacks" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 772 + "line": 858 } }, { @@ -46838,13 +50723,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 773 + "line": 859 } }, { @@ -46863,13 +50749,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// manually close the popup we have begin-ed into." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 774 + "line": 860 } }, { @@ -46888,6 +50775,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Popups: open+begin combined functions helpers", @@ -46901,7 +50789,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 781 + "line": 867 } }, { @@ -46955,13 +50843,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// open+begin popup when clicked on last item. Use str_id==NULL to associate the popup to previous item. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 781 + "line": 867 } }, { @@ -46980,13 +50869,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied str_id = NULL, popup_flags = 1" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 782 + "line": 868 } }, { @@ -47040,13 +50930,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// open+begin popup when clicked on current window." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 782 + "line": 868 } }, { @@ -47065,13 +50956,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied str_id = NULL, popup_flags = 1" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 783 + "line": 869 } }, { @@ -47125,13 +51017,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// open+begin popup when clicked in void (where there are no windows)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 783 + "line": 869 } }, { @@ -47184,6 +51077,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Popups: query functions", @@ -47196,7 +51090,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 789 + "line": 875 } }, { @@ -47262,6 +51156,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Tables", @@ -47291,7 +51186,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 812 + "line": 898 } }, { @@ -47385,10 +51280,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 812 + "line": 898 } }, { @@ -47407,13 +51303,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndTable() if BeginTable() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 813 + "line": 899 } }, { @@ -47432,13 +51329,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied row_flags = 0, min_row_height = 0.0f" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 814 + "line": 900 } }, { @@ -47486,13 +51384,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// append into the first cell of a new row." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 814 + "line": 900 } }, { @@ -47511,13 +51410,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// append into the next column (or first column of next row if currently in last column). Return true when column is visible." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 815 + "line": 901 } }, { @@ -47550,13 +51450,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// append into the specified column. Return true when column is visible." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 816 + "line": 902 } }, { @@ -47609,6 +51510,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Tables: Headers & Columns declaration", @@ -47625,7 +51527,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 826 + "line": 912 } }, { @@ -47706,10 +51608,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 826 + "line": 912 } }, { @@ -47755,13 +51658,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// lock columns/rows so they stay visible when scrolled." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 827 + "line": 913 } }, { @@ -47800,13 +51704,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// submit one header cell manually (rarely used)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 828 + "line": 914 } }, { @@ -47825,13 +51730,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// submit a row with headers cells based on data provided to TableSetupColumn() + submit context menu" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 829 + "line": 915 } }, { @@ -47850,13 +51756,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// submit a row with angled headers for every column with the ImGuiTableColumnFlags_AngledHeader flag. MUST BE FIRST ROW." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 830 + "line": 916 } }, { @@ -47878,6 +51785,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Tables: Sorting & Miscellaneous functions", @@ -47892,7 +51800,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 838 + "line": 924 } }, { @@ -47911,13 +51819,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return number of columns (value passed to BeginTable)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 839 + "line": 925 } }, { @@ -47936,13 +51845,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return current column index." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 840 + "line": 926 } }, { @@ -47961,13 +51871,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { - "attached": "// return current row index." + "attached": "// return current row index (header rows are accounted for)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 841 + "line": 927 } }, { @@ -48007,13 +51918,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return \"\" if column didn't have a name declared by TableSetupColumn(). Pass -1 to use current column." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 842 + "line": 928 } }, { @@ -48047,13 +51959,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return column flags so you can query their Enabled/Visible/Sorted/Hovered status flags. Pass -1 to use current column." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 843 + "line": 929 } }, { @@ -48099,13 +52012,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// change user accessible enabled/disabled state of a column. Set to false to hide the column. User can use the context menu to change this themselves (right-click in headers, or right-click in columns body with ImGuiTableFlags_ContextMenuInBody)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 844 + "line": 930 } }, { @@ -48124,13 +52038,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return hovered column. return -1 when table is not hovered. return columns_count if the unused space at the right of visible columns is hovered. Can also use (TableGetColumnFlags() & ImGuiTableColumnFlags_IsHovered) instead." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 845 + "line": 931 } }, { @@ -48190,13 +52105,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// change the color of a cell, row, or column. See ImGuiTableBgTarget_ flags for details." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 846 + "line": 932 } }, { @@ -48215,17 +52131,18 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Legacy Columns API (prefer using Tables!)", "// - You can also use SameLine(pos_x) to mimic simplified columns." ], - "attached": "// Implied count = 1, id = NULL, border = true" + "attached": "// Implied count = 1, id = NULL, borders = true" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 850 + "line": 936 } }, { @@ -48274,7 +52191,7 @@ "is_instance_pointer": false }, { - "name": "border", + "name": "borders", "type": { "declaration": "bool", "description": { @@ -48293,10 +52210,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 850 + "line": 936 } }, { @@ -48315,13 +52233,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// next column, defaults to current row or next row if the current row is finished" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 851 + "line": 937 } }, { @@ -48340,13 +52259,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get current column index" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 852 + "line": 938 } }, { @@ -48380,13 +52300,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get column width (in pixels). pass -1 to use current column" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 853 + "line": 939 } }, { @@ -48432,13 +52353,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set column width (in pixels). pass -1 to use current column" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 854 + "line": 940 } }, { @@ -48472,13 +52394,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get position of column line (in pixels, from the left side of the contents region). pass -1 to use current column, otherwise 0..GetColumnsCount() inclusive. column 0 is typically 0.0f" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 855 + "line": 941 } }, { @@ -48524,13 +52447,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set position of column line (in pixels, from the left side of the contents region). pass -1 to use current column" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 856 + "line": 942 } }, { @@ -48549,10 +52473,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 857 + "line": 943 } }, { @@ -48605,6 +52530,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Tab Bars, Tabs", @@ -48615,7 +52541,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 861 + "line": 947 } }, { @@ -48634,13 +52560,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndTabBar() if BeginTabBar() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 862 + "line": 948 } }, { @@ -48710,13 +52637,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// create a Tab. Returns true if the Tab is selected." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 863 + "line": 949 } }, { @@ -48735,13 +52663,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndTabItem() if BeginTabItem() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 864 + "line": 950 } }, { @@ -48794,13 +52723,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// create a Tab behaving like a button. return true when clicked. cannot be selected in the tab bar." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 865 + "line": 951 } }, { @@ -48839,13 +52769,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// notify TabBar or Docking system of a closed tab/window ahead (useful to reduce visual flicker on reorderable tab bars). For tab-bar: call after BeginTabBar() and before Tab submissions. Otherwise call with a window name." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 866 + "line": 952 } }, { @@ -48878,6 +52809,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Docking", @@ -48899,7 +52831,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 881 + "line": 967 } }, { @@ -48980,10 +52912,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 881 + "line": 967 } }, { @@ -49002,13 +52935,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied dockspace_id = 0, viewport = NULL, flags = 0, window_class = NULL" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 882 + "line": 968 } }, { @@ -49096,10 +53030,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 882 + "line": 968 } }, { @@ -49146,13 +53081,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window dock id" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 883 + "line": 969 } }, { @@ -49191,13 +53127,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set next window class (control docking compatibility + provide hints to platform backend via custom viewport flags and platform parent/child relationship)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 884 + "line": 970 } }, { @@ -49216,10 +53153,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 885 + "line": 971 } }, { @@ -49238,13 +53176,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is current window docked into another window?" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 886 + "line": 972 } }, { @@ -49278,6 +53217,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Logging/Capture", @@ -49288,7 +53228,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 890 + "line": 976 } }, { @@ -49342,13 +53282,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// start logging to file" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 891 + "line": 977 } }, { @@ -49382,13 +53323,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// start logging to OS clipboard" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 892 + "line": 978 } }, { @@ -49407,13 +53349,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// stop logging (close file, etc.)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 893 + "line": 979 } }, { @@ -49432,13 +53375,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// helper to display buttons for logging to tty/file/clipboard" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 894 + "line": 980 } }, { @@ -49484,13 +53428,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// pass text data straight to log (without being displayed)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 895 + "line": 981 } }, { @@ -49543,10 +53488,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 896 + "line": 982 } }, { @@ -49580,6 +53526,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Drag and Drop", @@ -49593,7 +53540,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 903 + "line": 989 } }, { @@ -49678,13 +53625,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// type is a user defined string of maximum 32 characters. Strings starting with '_' are reserved for dear imgui internal types. Data is copied and held by imgui. Return true when payload has been accepted." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 904 + "line": 990 } }, { @@ -49703,13 +53651,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndDragDropSource() if BeginDragDropSource() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 905 + "line": 991 } }, { @@ -49728,13 +53677,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// call after submitting an item that may receive a payload. If this returns true, you can call AcceptDragDropPayload() + EndDragDropTarget()" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 906 + "line": 992 } }, { @@ -49793,13 +53743,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// accept contents of a given type. If ImGuiDragDropFlags_AcceptBeforeDelivery is set you can peek into the payload before the mouse button is released." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 907 + "line": 993 } }, { @@ -49818,13 +53769,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// only call EndDragDropTarget() if BeginDragDropTarget() returns true!" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 908 + "line": 994 } }, { @@ -49849,13 +53801,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// peek directly into the current payload from anywhere. returns NULL when drag and drop is finished or inactive. use ImGuiPayload::IsDataType() to test for the payload type." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 909 + "line": 995 } }, { @@ -49889,19 +53842,20 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Disabling [BETA API]", "// - Disable all user interactions and dim items visuals (applying style.DisabledAlpha over current colors)", "// - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled)", "// - Tooltips windows by exception are opted out of disabling.", - "// - BeginDisabled(false) essentially does nothing useful but is provided to facilitate use of boolean expressions. If you can avoid calling BeginDisabled(False)/EndDisabled() best to avoid it." + "// - BeginDisabled(false)/EndDisabled() essentially does nothing but is provided to facilitate use of boolean expressions (as a micro-optimization: if you have tens of thousands of BeginDisabled(false)/EndDisabled() pairs, you might want to reformulate your code to avoid making those calls)" ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 916 + "line": 1002 } }, { @@ -49920,10 +53874,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 917 + "line": 1003 } }, { @@ -49982,6 +53937,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Clipping", @@ -49991,7 +53947,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 921 + "line": 1007 } }, { @@ -50010,10 +53966,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 922 + "line": 1008 } }, { @@ -50032,17 +53989,17 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ - "// Focus, Activation", - "// - Prefer using \"SetItemDefaultFocus()\" over \"if (IsWindowAppearing()) SetScrollHereY()\" when applicable to signify \"this is the default item\"" + "// Focus, Activation" ], - "attached": "// make last item the default focused item of a window." + "attached": "// make last item the default focused item of a newly appearing window." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 926 + "line": 1011 } }, { @@ -50061,13 +54018,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied offset = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 927 + "line": 1012 } }, { @@ -50101,13 +54059,57 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 927 + "line": 1012 + } + }, + { + "name": "ImGui_SetNavCursorVisible", + "original_fully_qualified_name": "ImGui::SetNavCursorVisible", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "visible", + "type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "preceding": [ + "// Keyboard/Gamepad Navigation" + ], + "attached": "// alter visibility of keyboard/gamepad cursor. by default: show when using an arrow key, hide when clicking with mouse." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1015 } }, { @@ -50126,6 +54128,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Overlapping mode" @@ -50135,7 +54138,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 930 + "line": 1018 } }, { @@ -50169,6 +54172,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Item/Widgets Utilities and Query Functions", @@ -50180,7 +54184,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 935 + "line": 1023 } }, { @@ -50199,13 +54203,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is the last item active? (e.g. button being held, text field being edited. This will continuously return true while holding mouse button on an item. Items that don't interact will always return false)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 936 + "line": 1024 } }, { @@ -50224,13 +54229,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is the last item focused for keyboard/gamepad navigation?" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 937 + "line": 1025 } }, { @@ -50249,13 +54255,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied mouse_button = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 938 + "line": 1026 } }, { @@ -50289,13 +54296,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this is NOT equivalent to the behavior of e.g. Button(). Read comments in function definition." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 938 + "line": 1026 } }, { @@ -50314,13 +54322,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is the last item visible? (items may be out of sight because of clipping/scrolling)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 939 + "line": 1027 } }, { @@ -50339,13 +54348,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// did the last item modify its underlying value this frame? or was pressed? This is generally the same as the \"bool\" return value of many widgets." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 940 + "line": 1028 } }, { @@ -50364,13 +54374,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// was the last item just made active (item was previously inactive)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 941 + "line": 1029 } }, { @@ -50389,13 +54400,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// was the last item just made inactive (item was previously active). Useful for Undo/Redo patterns with widgets that require continuous editing." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 942 + "line": 1030 } }, { @@ -50414,13 +54426,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// was the last item just made inactive and made a value change when it was active? (e.g. Slider/Drag moved). Useful for Undo/Redo patterns with widgets that require continuous editing. Note that you may get false positives (some widgets such as Combo()/ListBox()/Selectable() will return true even when clicking an already selected item)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 943 + "line": 1031 } }, { @@ -50439,13 +54452,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// was the last item open state toggled? set by TreeNode()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 944 + "line": 1032 } }, { @@ -50464,13 +54478,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is any item hovered?" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 945 + "line": 1033 } }, { @@ -50489,13 +54504,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is any item active?" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 946 + "line": 1034 } }, { @@ -50514,13 +54530,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is any item focused?" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 947 + "line": 1035 } }, { @@ -50539,13 +54556,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get ID of last item (~~ often same ImGui::GetID(label) beforehand)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 948 + "line": 1036 } }, { @@ -50564,13 +54582,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get upper-left bounding rectangle of the last item (screen space)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 949 + "line": 1037 } }, { @@ -50589,13 +54608,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get lower-right bounding rectangle of the last item (screen space)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 950 + "line": 1038 } }, { @@ -50614,13 +54634,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get size of last item" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 951 + "line": 1039 } }, { @@ -50642,6 +54663,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Viewports", @@ -50654,7 +54676,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 957 + "line": 1045 } }, { @@ -50676,6 +54698,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Background/Foreground Draw Lists" @@ -50685,7 +54708,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 960 + "line": 1048 } }, { @@ -50725,13 +54748,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get background draw list for the given viewport or viewport associated to the current window. this draw list will be the first rendering one. Useful to quickly draw shapes/text behind dear imgui contents." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 960 + "line": 1048 } }, { @@ -50753,13 +54777,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied viewport = NULL" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 961 + "line": 1049 } }, { @@ -50799,13 +54824,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get foreground draw list for the given viewport or viewport associated to the current window. this draw list will be the top-most rendered one. Useful to quickly draw shapes/text over dear imgui contents." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 961 + "line": 1049 } }, { @@ -50838,6 +54864,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Miscellaneous Utilities" @@ -50847,7 +54874,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 964 + "line": 1052 } }, { @@ -50893,13 +54920,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 965 + "line": 1053 } }, { @@ -50918,13 +54946,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get global imgui time. incremented by io.DeltaTime every frame." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 966 + "line": 1054 } }, { @@ -50943,13 +54972,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get global imgui frame count. incremented by 1 every frame." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 967 + "line": 1055 } }, { @@ -50971,13 +55001,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// you may use this when creating your own ImDrawList instances." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 968 + "line": 1056 } }, { @@ -51016,13 +55047,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get a string corresponding to the enum value (for display, saving, etc.)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 969 + "line": 1057 } }, { @@ -51058,13 +55090,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// replace current window storage with our own (if you want to manipulate it yourself, typically clear subsection of it)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 970 + "line": 1058 } }, { @@ -51086,10 +55119,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 971 + "line": 1059 } }, { @@ -51128,6 +55162,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Text Utilities" @@ -51137,7 +55172,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 974 + "line": 1062 } }, { @@ -51224,10 +55259,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 974 + "line": 1062 } }, { @@ -51260,6 +55296,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Color Utilities" @@ -51268,7 +55305,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 977 + "line": 1065 } }, { @@ -51301,10 +55338,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 978 + "line": 1066 } }, { @@ -51364,6 +55402,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "Builtin", "builtin_type": "float" @@ -51381,6 +55420,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "Builtin", "builtin_type": "float" @@ -51398,6 +55438,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "Builtin", "builtin_type": "float" @@ -51414,10 +55455,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 979 + "line": 1067 } }, { @@ -51477,6 +55519,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "Builtin", "builtin_type": "float" @@ -51494,6 +55537,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "Builtin", "builtin_type": "float" @@ -51511,6 +55555,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "Builtin", "builtin_type": "float" @@ -51527,10 +55572,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 980 + "line": 1068 } }, { @@ -51563,20 +55609,20 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Inputs Utilities: Keyboard/Mouse/Gamepad", "// - the ImGuiKey enum contains all possible keyboard, mouse and gamepad inputs (e.g. ImGuiKey_A, ImGuiKey_MouseLeft, ImGuiKey_GamepadDpadUp...).", - "// - before v1.87, we used ImGuiKey to carry native/user indices as defined by each backends. About use of those legacy ImGuiKey values:", - "// - without IMGUI_DISABLE_OBSOLETE_KEYIO (legacy support): you can still use your legacy native/user indices (< 512) according to how your backend/engine stored them in io.KeysDown[], but need to cast them to ImGuiKey.", - "// - with IMGUI_DISABLE_OBSOLETE_KEYIO (this is the way forward): any use of ImGuiKey will assert with key < 512. GetKeyIndex() is pass-through and therefore deprecated (gone if IMGUI_DISABLE_OBSOLETE_KEYIO is defined)." + "// - (legacy: before v1.87, we used ImGuiKey to carry native/user indices as defined by each backends. This was obsoleted in 1.87 (2022-02) and completely removed in 1.91.5 (2024-11). See https://github.com/ocornut/imgui/issues/4921)", + "// - (legacy: any use of ImGuiKey will assert when key < 512 to detect passing legacy native/user indices)" ], "attached": "// is key being held." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 987 + "line": 1074 } }, { @@ -51609,13 +55655,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied repeat = true" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 988 + "line": 1075 } }, { @@ -51662,13 +55709,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// was key pressed (went from !Down to Down)? if repeat=true, uses io.KeyRepeatDelay / KeyRepeatRate" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 988 + "line": 1075 } }, { @@ -51701,13 +55749,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// was key released (went from Down to !Down)?" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 989 + "line": 1076 } }, { @@ -51740,13 +55789,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// was key chord (mods + key) pressed, e.g. you can pass 'ImGuiMod_Ctrl | ImGuiKey_S' as a key-chord. This doesn't do any routing or focus check, please consider using Shortcut() function instead." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 990 + "line": 1077 } }, { @@ -51805,13 +55855,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// uses provided repeat rate/delay. return a count, most often 0 or 1 but might be >1 if RepeatRate is small enough that DeltaTime > RepeatRate" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 991 + "line": 1078 } }, { @@ -51850,13 +55901,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { - "attached": "// [DEBUG] returns English name of the key. Those names a provided for debugging purpose and are not meant to be saved persistently not compared." + "attached": "// [DEBUG] returns English name of the key. Those names are provided for debugging purpose and are not meant to be saved persistently nor compared." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 992 + "line": 1079 } }, { @@ -51889,13 +55941,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Override io.WantCaptureKeyboard flag next frame (said flag is left for your application to handle, typically when true it instructs your app to ignore inputs). e.g. force capture keyboard when your widget is being hovered. This is equivalent to setting \"io.WantCaptureKeyboard = want_capture_keyboard\"; after the next NewFrame() call." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 993 + "line": 1080 } }, { @@ -51942,6 +55995,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Inputs Utilities: Shortcut Testing & Routing [BETA]", @@ -51964,7 +56018,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1010 + "line": 1097 } }, { @@ -52011,10 +56065,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1011 + "line": 1098 } }, { @@ -52047,6 +56102,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Inputs Utilities: Key/Input Ownership [BETA]", @@ -52061,7 +56117,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1019 + "line": 1106 } }, { @@ -52094,9 +56150,10 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ - "// Inputs Utilities: Mouse specific", + "// Inputs Utilities: Mouse", "// - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right.", "// - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle.", "// - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold')" @@ -52106,7 +56163,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1025 + "line": 1112 } }, { @@ -52139,13 +56196,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied repeat = false" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1026 + "line": 1113 } }, { @@ -52192,13 +56250,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// did mouse button clicked? (went from !Down to Down). Same as GetMouseClickedCount() == 1." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1026 + "line": 1113 } }, { @@ -52231,13 +56290,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// did mouse button released? (went from Down to !Down)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1027 + "line": 1114 } }, { @@ -52270,13 +56330,67 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// did mouse button double-clicked? Same as GetMouseClickedCount() == 2. (note that a double-click will also report IsMouseClicked() == true)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1028 + "line": 1115 + } + }, + { + "name": "ImGui_IsMouseReleasedWithDelay", + "original_fully_qualified_name": "ImGui::IsMouseReleasedWithDelay", + "return_type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "arguments": [ + { + "name": "button", + "type": { + "declaration": "ImGuiMouseButton", + "description": { + "kind": "User", + "name": "ImGuiMouseButton" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "delay", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// delayed mouse release (use very sparingly!). Generally used with 'delay >= io.MouseDoubleClickTime' + combined with a 'io.MouseClickedLastCount==1' test. This is a very rarely used UI idiom, but some apps use this: e.g. MS Explorer single click on an icon to rename." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1116 } }, { @@ -52309,13 +56423,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return the number of successive mouse-clicks at the time where a click happen (otherwise 0)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1029 + "line": 1117 } }, { @@ -52361,13 +56476,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied clip = true" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1030 + "line": 1118 } }, { @@ -52427,13 +56543,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is mouse hovering given bounding rect (in screen space). clipped by current clipping settings, but disregarding of other consideration of focus/window ordering/popup-block." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1030 + "line": 1118 } }, { @@ -52473,13 +56590,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// by convention we use (-FLT_MAX,-FLT_MAX) to denote that there is no mouse available" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1031 + "line": 1119 } }, { @@ -52498,13 +56616,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// [WILL OBSOLETE] is any mouse button held? This was designed for backends, but prefer having backend maintain a mask of held mouse buttons, because upcoming input queue system will make this invalid." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1032 + "line": 1120 } }, { @@ -52523,13 +56642,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// shortcut to ImGui::GetIO().MousePos provided by user, to be consistent with other calls" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1033 + "line": 1121 } }, { @@ -52548,13 +56668,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// retrieve mouse position at the time of opening popup we have BeginPopup() into (helper to avoid user backing that value themselves)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1034 + "line": 1122 } }, { @@ -52601,13 +56722,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// is mouse dragging? (uses io.MouseDraggingThreshold if lock_threshold < 0.0f)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1035 + "line": 1123 } }, { @@ -52655,13 +56777,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return the delta from the initial clicking position while the mouse button is pressed or was just released. This is locked and return 0.0f until the mouse moves past a distance threshold at least once (uses io.MouseDraggingThreshold if lock_threshold < 0.0f)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1036 + "line": 1124 } }, { @@ -52680,13 +56803,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied button = 0" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1037 + "line": 1125 } }, { @@ -52720,13 +56844,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "//" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1037 + "line": 1125 } }, { @@ -52745,13 +56870,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// get desired mouse cursor shape. Important: reset in ImGui::NewFrame(), this is updated during the frame. valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1038 + "line": 1126 } }, { @@ -52784,13 +56910,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// set desired mouse cursor shape" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1039 + "line": 1127 } }, { @@ -52823,13 +56950,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { - "attached": "// Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instucts your app to ignore inputs). This is equivalent to setting \"io.WantCaptureMouse = want_capture_mouse;\" after the next NewFrame() call." + "attached": "// Override io.WantCaptureMouse flag next frame (said flag is left for your application to handle, typical when true it instructs your app to ignore inputs). This is equivalent to setting \"io.WantCaptureMouse = want_capture_mouse;\" after the next NewFrame() call." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1040 + "line": 1128 } }, { @@ -52854,6 +56982,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Clipboard Utilities", @@ -52863,7 +56992,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1044 + "line": 1132 } }, { @@ -52902,10 +57031,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1045 + "line": 1133 } }, { @@ -52944,6 +57074,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Settings/.Ini Utilities", @@ -52956,7 +57087,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1051 + "line": 1139 } }, { @@ -53009,13 +57140,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// call after CreateContext() and before the first call to NewFrame() to provide .ini data from your own data source." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1052 + "line": 1140 } }, { @@ -53054,13 +57186,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// this is automatically called (if io.IniFilename is not empty) a few seconds after any modification that should be reflected in the .ini file (and also by DestroyContext)." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1053 + "line": 1141 } }, { @@ -53103,13 +57236,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// return a zero-terminated string with the .ini data which you can save by your own mean. call when io.WantSaveIniSettings is set, then save data by your own mean and clear io.WantSaveIniSettings." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1054 + "line": 1142 } }, { @@ -53148,6 +57282,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Debug Utilities", @@ -53157,7 +57292,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1058 + "line": 1146 } }, { @@ -53190,10 +57325,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1059 + "line": 1147 } }, { @@ -53212,10 +57348,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1060 + "line": 1148 } }, { @@ -53332,13 +57469,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// This is called by IMGUI_CHECKVERSION() macro." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1061 + "line": 1149 } }, { @@ -53384,6 +57522,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Call via IMGUI_DEBUG_LOG() for maximum stripping in caller code!" }, @@ -53396,7 +57535,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1063 + "line": 1151 } }, { @@ -53449,6 +57588,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "conditionals": [ { "condition": "ifndef", @@ -53458,7 +57598,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1064 + "line": 1152 } }, { @@ -53521,6 +57661,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Memory Allocators", @@ -53532,7 +57673,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1071 + "line": 1159 } }, { @@ -53603,10 +57744,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1072 + "line": 1160 } }, { @@ -53642,10 +57784,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1073 + "line": 1161 } }, { @@ -53681,44 +57824,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1074 - } - }, - { - "name": "ImGui_GetPlatformIO", - "original_fully_qualified_name": "ImGui::GetPlatformIO", - "return_type": { - "declaration": "ImGuiPlatformIO*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImGuiPlatformIO" - } - } - }, - "arguments": [], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "comments": { - "preceding": [ - "// (Optional) Platform/OS interface for multi-viewport support", - "// Read comments around the ImGuiPlatformIO structure for more details.", - "// Note: You may use GetWindowViewport() to get the current viewport of the current window." - ], - "attached": "// platform/renderer functions, for backend to setup + viewports list." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 1079 + "line": 1162 } }, { @@ -53737,13 +57847,19 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { + "preceding": [ + "// (Optional) Platform/OS interface for multi-viewport support", + "// Read comments around the ImGuiPlatformIO structure for more details.", + "// Note: You may use GetWindowViewport() to get the current viewport of the current window." + ], "attached": "// call in main loop. will call CreateWindow/ResizeWindow/etc. platform functions for each secondary viewport, and DestroyWindow for each inactive viewport." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1080 + "line": 1167 } }, { @@ -53762,13 +57878,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied platform_render_arg = NULL, renderer_render_arg = NULL" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1081 + "line": 1168 } }, { @@ -53822,13 +57939,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// call in main loop. will call RenderWindow/SwapBuffers platform functions for each secondary viewport which doesn't have the ImGuiViewportFlags_Minimized flag set. May be reimplemented by user for custom rendering needs." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1081 + "line": 1168 } }, { @@ -53847,13 +57965,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// call DestroyWindow platform functions for all viewports. call from backend Shutdown() if you need to close platform windows before imgui shutdown. otherwise will be called by DestroyContext()." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1082 + "line": 1169 } }, { @@ -53889,13 +58008,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// this is a helper for backends." }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1083 + "line": 1170 } }, { @@ -53934,13 +58054,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// this is a helper for backends. the type platform_handle is decided by the backend (e.g. HWND, MyWindow*, GLFWwindow* etc.)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 1084 + "line": 1171 } }, { @@ -53976,6 +58097,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Construct a zero-size ImVector<> (of any type). This is primarily useful when calling ImFontGlyphRangesBuilder_BuildRanges()" }, @@ -54018,6 +58140,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Destruct an ImVector<> (of any type). Important: Frees the vector memory but does not call destructors on contained objects (if they have them)" }, @@ -54027,6 +58150,478 @@ "line": 1 } }, + { + "name": "ImGuiPlatformIO_SetPlatform_GetWindowWorkAreaInsets", + "original_fully_qualified_name": "ImGuiPlatformIO_SetPlatform_GetWindowWorkAreaInsets", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "getWindowWorkAreaInsetsFunc", + "type": { + "declaration": "void (*getWindowWorkAreaInsetsFunc)(ImGuiViewport* vp, ImVec4* result)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "vp", + "type": { + "declaration": "ImGuiViewport*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "result", + "type": { + "declaration": "ImVec4*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec4" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "getWindowWorkAreaInsetsFunc", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "Builtin", + "builtin_type": "void" + }, + "parameters": [ + { + "kind": "Type", + "name": "vp", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + { + "kind": "Type", + "name": "result", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec4" + } + } + } + ] + } + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": true, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// Set ImGuiPlatformIO::Platform_GetWindowWorkAreaInsets in a C-compatible mannner" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1 + } + }, + { + "name": "ImGuiPlatformIO_SetPlatform_GetWindowFramebufferScale", + "original_fully_qualified_name": "ImGuiPlatformIO_SetPlatform_GetWindowFramebufferScale", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "getWindowFramebufferScaleFunc", + "type": { + "declaration": "void (*getWindowFramebufferScaleFunc)(ImGuiViewport* vp, ImVec2* result)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "vp", + "type": { + "declaration": "ImGuiViewport*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "result", + "type": { + "declaration": "ImVec2*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec2" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "getWindowFramebufferScaleFunc", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "Builtin", + "builtin_type": "void" + }, + "parameters": [ + { + "kind": "Type", + "name": "vp", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + { + "kind": "Type", + "name": "result", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec2" + } + } + } + ] + } + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": true, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// Set ImGuiPlatformIO::Platform_GetWindowFramebufferScale in a C-compatible mannner" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1 + } + }, + { + "name": "ImGuiPlatformIO_SetPlatform_GetWindowPos", + "original_fully_qualified_name": "ImGuiPlatformIO_SetPlatform_GetWindowPos", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "getWindowPosFunc", + "type": { + "declaration": "void (*getWindowPosFunc)(ImGuiViewport* vp, ImVec2* result)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "vp", + "type": { + "declaration": "ImGuiViewport*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "result", + "type": { + "declaration": "ImVec2*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec2" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "getWindowPosFunc", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "Builtin", + "builtin_type": "void" + }, + "parameters": [ + { + "kind": "Type", + "name": "vp", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + { + "kind": "Type", + "name": "result", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec2" + } + } + } + ] + } + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": true, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// Set ImGuiPlatformIO::Platform_GetWindowPos in a C-compatible mannner" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1 + } + }, + { + "name": "ImGuiPlatformIO_SetPlatform_GetWindowSize", + "original_fully_qualified_name": "ImGuiPlatformIO_SetPlatform_GetWindowSize", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "getWindowSizeFunc", + "type": { + "declaration": "void (*getWindowSizeFunc)(ImGuiViewport* vp, ImVec2* result)", + "type_details": { + "flavour": "function_pointer", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "vp", + "type": { + "declaration": "ImGuiViewport*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "result", + "type": { + "declaration": "ImVec2*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec2" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ] + }, + "description": { + "kind": "Type", + "name": "getWindowSizeFunc", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "Function", + "return_type": { + "kind": "Builtin", + "builtin_type": "void" + }, + "parameters": [ + { + "kind": "Type", + "name": "vp", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImGuiViewport" + } + } + }, + { + "kind": "Type", + "name": "result", + "inner_type": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec2" + } + } + } + ] + } + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": true, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// Set ImGuiPlatformIO::Platform_GetWindowSize in a C-compatible mannner" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 1 + } + }, { "name": "ImStr_FromCharStr", "original_fully_qualified_name": "ImStr_FromCharStr", @@ -54063,6 +58658,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Build an ImStr from a regular const char* (no data is copied, so you need to make sure the original char* isn't altered as long as you are using the ImStr)." }, @@ -54129,11 +58725,15 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStyle", + "comments": { + "attached": "// Scale all spacing/padding/thickness values. Do not scale fonts." + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2264 + "line": 2401 } }, { @@ -54196,6 +58796,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "preceding": [ @@ -54206,7 +58807,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2401 + "line": 2570 } }, { @@ -54282,6 +58883,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a new key down/up event for analog values (e.g. ImGuiKey_Gamepad_ values). Dead-zones should be handled by the backend." @@ -54289,7 +58891,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2402 + "line": 2571 } }, { @@ -54352,6 +58954,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a mouse position update. Use -FLT_MAX,-FLT_MAX to signify no mouse (e.g. app not focused and not hovered)" @@ -54359,7 +58962,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2403 + "line": 2572 } }, { @@ -54422,6 +59025,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a mouse button change" @@ -54429,7 +59033,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2404 + "line": 2573 } }, { @@ -54492,6 +59096,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a mouse wheel update. wheel_y<0: scroll down, wheel_y>0: scroll up, wheel_x<0: scroll right, wheel_x>0: scroll left." @@ -54499,7 +59104,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2405 + "line": 2574 } }, { @@ -54549,6 +59154,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a mouse source change (Mouse/TouchScreen/Pen)" @@ -54556,7 +59162,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2406 + "line": 2575 } }, { @@ -54606,6 +59212,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a mouse hovered viewport. Requires backend to set ImGuiBackendFlags_HasMouseHoveredViewport to call this (for multi-viewport support)." @@ -54613,7 +59220,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2407 + "line": 2576 } }, { @@ -54663,6 +59270,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a gain/loss of focus for the application (generally based on OS/platform focus of your window)" @@ -54670,7 +59278,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2408 + "line": 2577 } }, { @@ -54720,6 +59328,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a new character input" @@ -54727,7 +59336,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2409 + "line": 2578 } }, { @@ -54777,6 +59386,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a new character input from a UTF-16 character, it can be a surrogate" @@ -54784,7 +59394,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2410 + "line": 2579 } }, { @@ -54840,6 +59450,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Queue a new characters input from a UTF-8 string" @@ -54847,7 +59458,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2411 + "line": 2580 } }, { @@ -54923,6 +59534,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Implied native_legacy_index = -1" @@ -54930,7 +59542,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2413 + "line": 2582 } }, { @@ -55020,6 +59632,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// [Optional] Specify index for legacy <1.87 IsKeyXXX() functions with native indices + specify native keycode, scancode." @@ -55027,7 +59640,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2413 + "line": 2582 } }, { @@ -55077,6 +59690,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Set master flag for accepting key/mouse/text events (default to true). Useful if you have native dialog boxes that are interrupting your application loop/refresh, and you want to disable events being queued while your app is frozen." @@ -55084,7 +59698,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2414 + "line": 2583 } }, { @@ -55121,6 +59735,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Clear all incoming events." @@ -55128,7 +59743,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2415 + "line": 2584 } }, { @@ -55165,6 +59780,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Clear current keyboard/gamepad state + current frame text input buffer. Equivalent to releasing all keys/buttons." @@ -55172,7 +59788,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2416 + "line": 2585 } }, { @@ -55209,6 +59825,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// Clear current mouse state." @@ -55216,7 +59833,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2417 + "line": 2586 } }, { @@ -55253,6 +59870,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiIO", "comments": { "attached": "// [Obsoleted in 1.89.8] Clear the current frame text input buffer. Now included within ClearInputKeys()." @@ -55266,7 +59884,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2419 + "line": 2588 } }, { @@ -55329,11 +59947,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiInputTextCallbackData", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2541 + "line": 2719 } }, { @@ -55422,11 +60041,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiInputTextCallbackData", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2542 + "line": 2720 } }, { @@ -55463,11 +60083,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiInputTextCallbackData", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2543 + "line": 2721 } }, { @@ -55504,11 +60125,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiInputTextCallbackData", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2544 + "line": 2722 } }, { @@ -55548,11 +60170,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiInputTextCallbackData", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2545 + "line": 2723 } }, { @@ -55589,11 +60212,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiPayload", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2596 + "line": 2774 } }, { @@ -55652,11 +60276,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiPayload", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2597 + "line": 2775 } }, { @@ -55696,11 +60321,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiPayload", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2598 + "line": 2776 } }, { @@ -55740,11 +60366,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiPayload", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2599 + "line": 2777 } }, { @@ -55784,11 +60411,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextFilter_ImGuiTextRange", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2641 + "line": 2819 } }, { @@ -55838,12 +60466,12 @@ { "name": "out", "type": { - "declaration": "ImVector_ImGuiTextFilter_ImGuiTextRange*", + "declaration": "ImVector_ImGuiTextRange*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImVector_ImGuiTextFilter_ImGuiTextRange" + "name": "ImVector_ImGuiTextRange" } } }, @@ -55857,11 +60485,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextFilter_ImGuiTextRange", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2642 + "line": 2820 } }, { @@ -55932,6 +60561,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextFilter", "comments": { "attached": "// Helper calling InputText+Build" @@ -55939,7 +60569,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2627 + "line": 2805 } }, { @@ -56018,11 +60648,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextFilter", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2628 + "line": 2806 } }, { @@ -56059,11 +60690,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextFilter", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2629 + "line": 2807 } }, { @@ -56100,11 +60732,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextFilter", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2630 + "line": 2808 } }, { @@ -56144,11 +60777,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextFilter", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2631 + "line": 2809 } }, { @@ -56194,11 +60828,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2658 + "line": 2836 } }, { @@ -56244,6 +60879,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "comments": { "attached": "// Buf is zero-terminated, so end() will point on the zero-terminator" @@ -56251,7 +60887,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2659 + "line": 2837 } }, { @@ -56291,11 +60927,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2660 + "line": 2838 } }, { @@ -56335,11 +60972,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2661 + "line": 2839 } }, { @@ -56376,11 +61014,70 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2662 + "line": 2840 + } + }, + { + "name": "ImGuiTextBuffer_resize", + "original_fully_qualified_name": "resize", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImGuiTextBuffer*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImGuiTextBuffer" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "size", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImGuiTextBuffer", + "comments": { + "attached": "// Similar to resize(0) on ImVector: empty string but don't free buffer." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 2841 } }, { @@ -56430,11 +61127,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2663 + "line": 2842 } }, { @@ -56480,11 +61178,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2664 + "line": 2843 } }, { @@ -56560,11 +61259,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2665 + "line": 2844 } }, { @@ -56627,11 +61327,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2666 + "line": 2845 } }, { @@ -56701,11 +61402,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiTextBuffer", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2667 + "line": 2846 } }, { @@ -56742,6 +61444,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "comments": { "preceding": [ @@ -56753,7 +61456,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2696 + "line": 2875 } }, { @@ -56820,11 +61523,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2697 + "line": 2876 } }, { @@ -56887,11 +61591,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2698 + "line": 2877 } }, { @@ -56958,11 +61663,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2699 + "line": 2878 } }, { @@ -57025,11 +61731,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2700 + "line": 2879 } }, { @@ -57096,11 +61803,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2701 + "line": 2880 } }, { @@ -57163,11 +61871,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2702 + "line": 2881 } }, { @@ -57223,6 +61932,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "comments": { "attached": "// default_val is NULL" @@ -57230,7 +61940,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2703 + "line": 2882 } }, { @@ -57296,11 +62006,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2704 + "line": 2883 } }, { @@ -57367,6 +62078,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "comments": { "preceding": [ @@ -57379,7 +62091,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2710 + "line": 2889 } }, { @@ -57446,11 +62158,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2711 + "line": 2890 } }, { @@ -57517,11 +62230,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2712 + "line": 2891 } }, { @@ -57594,11 +62308,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2713 + "line": 2892 } }, { @@ -57635,6 +62350,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "comments": { "preceding": [ @@ -57644,7 +62360,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2716 + "line": 2895 } }, { @@ -57694,6 +62410,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiStorage", "comments": { "preceding": [ @@ -57703,7 +62420,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2718 + "line": 2897 } }, { @@ -57767,11 +62484,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiListClipper", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2760 + "line": 2939 } }, { @@ -57808,6 +62526,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiListClipper", "comments": { "attached": "// Automatically called on the last call of Step() that returns false." @@ -57815,7 +62534,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2761 + "line": 2940 } }, { @@ -57852,6 +62571,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiListClipper", "comments": { "attached": "// Call until it returns false. The DisplayStart/DisplayEnd fields will be set and you can process/draw those items." @@ -57859,7 +62579,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2762 + "line": 2941 } }, { @@ -57909,6 +62629,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiListClipper", "comments": { "preceding": [ @@ -57919,7 +62640,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2766 + "line": 2945 } }, { @@ -57982,6 +62703,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiListClipper", "comments": { "attached": "// item_end is exclusive e.g. use (42, 42+1) to make item 42 never clipped." @@ -57989,7 +62711,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2767 + "line": 2946 } }, { @@ -58039,6 +62761,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiListClipper", "comments": { "preceding": [ @@ -58050,7 +62773,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2772 + "line": 2951 } }, { @@ -58113,6 +62836,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiListClipper", "comments": { "attached": "// [renamed in 1.89.9]" @@ -58126,83 +62850,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2775 - } - }, - { - "name": "ImGuiListClipper_ForceDisplayRangeByIndices", - "original_fully_qualified_name": "ForceDisplayRangeByIndices", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [ - { - "name": "self", - "type": { - "declaration": "ImGuiListClipper*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImGuiListClipper" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true - }, - { - "name": "item_begin", - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "item_end", - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImGuiListClipper", - "comments": { - "attached": "// [renamed in 1.89.6]" - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 2776 + "line": 2954 } }, { @@ -58292,6 +62940,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImColor", "comments": { "preceding": [ @@ -58301,7 +62950,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2850 + "line": 3037 } }, { @@ -58315,23 +62964,6 @@ } }, "arguments": [ - { - "name": "self", - "type": { - "declaration": "ImColor*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImColor" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true - }, { "name": "h", "type": { @@ -58391,11 +63023,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": true, "original_class": "ImColor", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2851 + "line": 3038 } }, { @@ -58448,6 +63081,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiSelectionBasicStorage", "comments": { "attached": "// Apply selection requests coming from BeginMultiSelect() and EndMultiSelect() functions. It uses 'items_count' passed to BeginMultiSelect()" @@ -58455,7 +63089,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2980 + "line": 3167 } }, { @@ -58508,6 +63142,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiSelectionBasicStorage", "comments": { "attached": "// Query if an item id is in selection." @@ -58515,7 +63150,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2981 + "line": 3168 } }, { @@ -58552,6 +63187,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiSelectionBasicStorage", "comments": { "attached": "// Clear selection" @@ -58559,7 +63195,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2982 + "line": 3169 } }, { @@ -58597,6 +63233,7 @@ "description": { "kind": "Pointer", "is_nullable": false, + "is_reference": true, "inner_type": { "kind": "User", "name": "ImGuiSelectionBasicStorage" @@ -58613,6 +63250,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiSelectionBasicStorage", "comments": { "attached": "// Swap two selections" @@ -58620,7 +63258,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2983 + "line": 3170 } }, { @@ -58683,6 +63321,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiSelectionBasicStorage", "comments": { "attached": "// Add/remove an item from selection (generally done by ApplyRequests() function)" @@ -58690,7 +63329,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2984 + "line": 3171 } }, { @@ -58762,14 +63401,15 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiSelectionBasicStorage", "comments": { - "attached": "// Iterate selection with 'void* it = NULL; ImGuiId id; while (selection.GetNextSelectedItem(&it, &id)) { ... }'" + "attached": "// Iterate selection with 'void* it = NULL; ImGuiID id; while (selection.GetNextSelectedItem(&it, &id)) { ... }'" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2985 + "line": 3172 } }, { @@ -58819,6 +63459,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiSelectionBasicStorage", "comments": { "attached": "// Convert index to item id based on provided adapter." @@ -58826,7 +63467,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2986 + "line": 3173 } }, { @@ -58879,6 +63520,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiSelectionExternalStorage", "comments": { "attached": "// Apply selection requests by using AdapterSetItemSelected() calls" @@ -58886,7 +63528,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 2999 + "line": 3186 } }, { @@ -58926,16 +63568,19 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawCmd", "comments": { "preceding": [ - "// Since 1.83: returns ImTextureID associated with this draw call. Warning: DO NOT assume this is always same as 'TextureId' (we will change this function for an upcoming feature)" - ] + "// Since 1.83: returns ImTextureID associated with this draw call. Warning: DO NOT assume this is always same as 'TextureId' (we will change this function for an upcoming feature)", + "// Since 1.92: removed ImDrawCmd::TextureId field, the getter function must be used!" + ], + "attached": "// == (TexRef._TexData ? TexRef._TexData->TexID : TexRef._TexID" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3047 + "line": 3244 } }, { @@ -58972,6 +63617,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawListSplitter", "comments": { "attached": "// Do not clear Channels[] so our allocations are reused next frame" @@ -58979,7 +63625,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3092 + "line": 3288 } }, { @@ -59016,11 +63662,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawListSplitter", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3093 + "line": 3289 } }, { @@ -59086,11 +63733,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawListSplitter", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3094 + "line": 3290 } }, { @@ -59143,11 +63791,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawListSplitter", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3095 + "line": 3291 } }, { @@ -59213,11 +63862,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawListSplitter", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3096 + "line": 3292 } }, { @@ -59294,6 +63944,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Render-level scissoring. This is passed down to your render function but not used for CPU-side coarse clipping. Prefer using higher-level ImGui::PushClipRect() to affect logic (hit-testing and widget culling)" @@ -59301,7 +63952,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3164 + "line": 3362 } }, { @@ -59338,11 +63989,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3165 + "line": 3363 } }, { @@ -59379,16 +64031,17 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3166 + "line": 3364 } }, { - "name": "ImDrawList_PushTextureID", - "original_fully_qualified_name": "PushTextureID", + "name": "ImDrawList_PushTexture", + "original_fully_qualified_name": "PushTexture", "return_type": { "declaration": "void", "description": { @@ -59415,12 +64068,12 @@ "is_instance_pointer": true }, { - "name": "texture_id", + "name": "tex_ref", "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -59433,16 +64086,17 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3167 + "line": 3365 } }, { - "name": "ImDrawList_PopTextureID", - "original_fully_qualified_name": "PopTextureID", + "name": "ImDrawList_PopTexture", + "original_fully_qualified_name": "PopTexture", "return_type": { "declaration": "void", "description": { @@ -59474,11 +64128,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3168 + "line": 3366 } }, { @@ -59518,11 +64173,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3169 + "line": 3367 } }, { @@ -59562,11 +64218,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3170 + "line": 3368 } }, { @@ -59642,6 +64299,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "preceding": [ @@ -59658,7 +64316,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3179 + "line": 3377 } }, { @@ -59748,11 +64406,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3179 + "line": 3377 } }, { @@ -59828,6 +64487,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied rounding = 0.0f, flags = 0, thickness = 1.0f" @@ -59835,7 +64495,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3180 + "line": 3378 } }, { @@ -59953,6 +64613,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// a: upper-left, b: lower-right (== upper-left + size)" @@ -59960,7 +64621,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3180 + "line": 3378 } }, { @@ -60036,6 +64697,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied rounding = 0.0f, flags = 0" @@ -60043,7 +64705,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3181 + "line": 3379 } }, { @@ -60147,6 +64809,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// a: upper-left, b: lower-right (== upper-left + size)" @@ -60154,7 +64817,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3181 + "line": 3379 } }, { @@ -60269,11 +64932,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3182 + "line": 3380 } }, { @@ -60375,6 +65039,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied thickness = 1.0f" @@ -60382,7 +65047,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3183 + "line": 3381 } }, { @@ -60498,11 +65163,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3183 + "line": 3381 } }, { @@ -60604,11 +65270,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3184 + "line": 3382 } }, { @@ -60697,6 +65364,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied thickness = 1.0f" @@ -60704,7 +65372,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3185 + "line": 3383 } }, { @@ -60807,11 +65475,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3185 + "line": 3383 } }, { @@ -60900,11 +65569,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3186 + "line": 3384 } }, { @@ -60980,6 +65650,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied num_segments = 0, thickness = 1.0f" @@ -60987,7 +65658,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3187 + "line": 3385 } }, { @@ -61091,11 +65762,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3187 + "line": 3385 } }, { @@ -61185,11 +65857,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3188 + "line": 3386 } }, { @@ -61278,6 +65951,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied thickness = 1.0f" @@ -61285,7 +65959,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3189 + "line": 3387 } }, { @@ -61388,11 +66062,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3189 + "line": 3387 } }, { @@ -61481,11 +66156,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3190 + "line": 3388 } }, { @@ -61561,6 +66237,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied rot = 0.0f, num_segments = 0, thickness = 1.0f" @@ -61568,7 +66245,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3191 + "line": 3389 } }, { @@ -61686,11 +66363,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3191 + "line": 3389 } }, { @@ -61766,6 +66444,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied rot = 0.0f, num_segments = 0" @@ -61773,7 +66452,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3192 + "line": 3390 } }, { @@ -61877,11 +66556,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3192 + "line": 3390 } }, { @@ -61963,6 +66643,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied text_end = NULL" @@ -61970,7 +66651,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3193 + "line": 3391 } }, { @@ -62072,11 +66753,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3193 + "line": 3391 } }, { @@ -62110,15 +66792,12 @@ { "name": "font", "type": { - "declaration": "const ImFont*", + "declaration": "ImFont*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFont" } } }, @@ -62190,6 +66869,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied text_end = NULL, wrap_width = 0.0f, cpu_fine_clip_rect = NULL" @@ -62197,7 +66877,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3194 + "line": 3392 } }, { @@ -62231,15 +66911,12 @@ { "name": "font", "type": { - "declaration": "const ImFont*", + "declaration": "ImFont*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFont" } } }, @@ -62365,11 +67042,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3194 + "line": 3392 } }, { @@ -62498,6 +67176,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Cubic Bezier (4 control points)" @@ -62505,7 +67184,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3195 + "line": 3393 } }, { @@ -62621,6 +67300,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Quadratic Bezier (3 control points)" @@ -62628,7 +67308,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3196 + "line": 3394 } }, { @@ -62736,18 +67416,19 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "preceding": [ "// General polygon", "// - Only simple polygons are supported by filling functions (no self-intersections, no holes).", - "// - Concave polygon fill is more expensive than convex one: it has O(N^2) complexity. Provided as a convenience fo user but not used by main library." + "// - Concave polygon fill is more expensive than convex one: it has O(N^2) complexity. Provided as a convenience for the user but not used by the main library." ] }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3201 + "line": 3399 } }, { @@ -62829,11 +67510,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3202 + "line": 3400 } }, { @@ -62915,11 +67597,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3203 + "line": 3401 } }, { @@ -62951,12 +67634,12 @@ "is_instance_pointer": true }, { - "name": "user_texture_id", + "name": "tex_ref", "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -62995,11 +67678,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "preceding": [ "// Image primitives", - "// - Read FAQ to understand what ImTextureID is.", + "// - Read FAQ to understand what ImTextureID/ImTextureRef are.", "// - \"p_min\" and \"p_max\" represent the upper-left and lower-right corners of the rectangle.", "// - \"uv_min\" and \"uv_max\" represent the normalized texture coordinates to use for those corners. Using (0,0)->(1,1) texture coordinates will generally display the entire texture." ], @@ -63008,7 +67692,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3209 + "line": 3407 } }, { @@ -63040,12 +67724,12 @@ "is_instance_pointer": true }, { - "name": "user_texture_id", + "name": "tex_ref", "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -63126,11 +67810,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3209 + "line": 3407 } }, { @@ -63162,12 +67847,12 @@ "is_instance_pointer": true }, { - "name": "user_texture_id", + "name": "tex_ref", "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -63232,6 +67917,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied uv1 = ImVec2(0, 0), uv2 = ImVec2(1, 0), uv3 = ImVec2(1, 1), uv4 = ImVec2(0, 1), col = IM_COL32_WHITE" @@ -63239,7 +67925,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3210 + "line": 3408 } }, { @@ -63271,12 +67957,12 @@ "is_instance_pointer": true }, { - "name": "user_texture_id", + "name": "tex_ref", "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -63411,11 +68097,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3210 + "line": 3408 } }, { @@ -63447,12 +68134,12 @@ "is_instance_pointer": true }, { - "name": "user_texture_id", + "name": "tex_ref", "type": { - "declaration": "ImTextureID", + "declaration": "ImTextureRef", "description": { "kind": "User", - "name": "ImTextureID" + "name": "ImTextureRef" } }, "is_array": false, @@ -63557,11 +68244,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3211 + "line": 3409 } }, { @@ -63598,6 +68286,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "preceding": [ @@ -63609,7 +68298,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3216 + "line": 3414 } }, { @@ -63659,11 +68348,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3217 + "line": 3415 } }, { @@ -63713,11 +68403,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3218 + "line": 3416 } }, { @@ -63767,11 +68458,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3219 + "line": 3417 } }, { @@ -63821,11 +68513,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3220 + "line": 3418 } }, { @@ -63903,11 +68596,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3221 + "line": 3419 } }, { @@ -64010,11 +68704,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3222 + "line": 3420 } }, { @@ -64103,6 +68798,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Use precomputed angles for a 12 steps circle" @@ -64110,7 +68806,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3223 + "line": 3421 } }, { @@ -64212,6 +68908,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Implied num_segments = 0" @@ -64219,7 +68916,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3224 + "line": 3422 } }, { @@ -64335,6 +69032,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Ellipse" @@ -64342,7 +69040,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3224 + "line": 3422 } }, { @@ -64432,6 +69130,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Cubic Bezier (4 control points)" @@ -64439,7 +69138,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3225 + "line": 3423 } }, { @@ -64516,6 +69215,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Quadratic Bezier (3 control points)" @@ -64523,7 +69223,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3226 + "line": 3424 } }, { @@ -64614,11 +69314,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3227 + "line": 3425 } }, { @@ -64663,7 +69364,7 @@ "is_instance_pointer": false }, { - "name": "callback_data", + "name": "userdata", "type": { "declaration": "void*", "description": { @@ -64679,22 +69380,116 @@ "is_instance_pointer": false } ], + "is_default_argument_helper": true, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImDrawList", + "comments": { + "preceding": [ + "// Advanced: Draw Callbacks", + "// - May be used to alter render state (change sampler, blending, current shader). May be used to emit custom rendering commands (difficult to do correctly, but possible).", + "// - Use special ImDrawCallback_ResetRenderState callback to instruct backend to reset its render state to the default.", + "// - Your rendering loop must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles. All standard backends are honoring this.", + "// - For some backends, the callback may access selected render-states exposed by the backend in a ImGui_ImplXXXX_RenderState structure pointed to by platform_io.Renderer_RenderState.", + "// - IMPORTANT: please be mindful of the different level of indirection between using size==0 (copying argument) and using size>0 (copying pointed data into a buffer).", + "// - If userdata_size == 0: we copy/store the 'userdata' argument as-is. It will be available unmodified in ImDrawCmd::UserCallbackData during render.", + "// - If userdata_size > 0, we copy/store 'userdata_size' bytes pointed to by 'userdata'. We store them in a buffer stored inside the drawlist. ImDrawCmd::UserCallbackData will point inside that buffer so you have to retrieve data from there. Your callback may need to use ImDrawCmd::UserCallbackDataSize if you expect dynamically-sized data.", + "// - Support for userdata_size > 0 was added in v1.91.4, October 2024. So earlier code always only allowed to copy/store a simple void*." + ], + "attached": "// Implied userdata_size = 0" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3436 + } + }, + { + "name": "ImDrawList_AddCallbackEx", + "original_fully_qualified_name": "AddCallback", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImDrawList*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImDrawList" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "callback", + "type": { + "declaration": "ImDrawCallback", + "description": { + "kind": "User", + "name": "ImDrawCallback" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "userdata", + "type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "userdata_size", + "type": { + "declaration": "size_t", + "description": { + "kind": "User", + "name": "size_t" + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "0", + "is_instance_pointer": false + } + ], "is_default_argument_helper": false, "is_manual_helper": false, "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", - "comments": { - "preceding": [ - "// Advanced" - ], - "attached": "// Your rendering function must check for 'UserCallback' in ImDrawCmd and call the function instead of rendering triangles." - }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3230 + "line": 3436 } }, { @@ -64731,14 +69526,18 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { + "preceding": [ + "// Advanced: Miscellaneous" + ], "attached": "// This is useful if you need to forcefully create a new draw call (to allow for dependent rendering / blending). Otherwise primitives are merged into the same draw-call as much as possible" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3231 + "line": 3439 } }, { @@ -64781,6 +69580,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Create a clone of the CmdBuffer/IdxBuffer/VtxBuffer." @@ -64788,7 +69588,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3232 + "line": 3440 } }, { @@ -64838,6 +69638,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "preceding": [ @@ -64852,7 +69653,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3240 + "line": 3448 } }, { @@ -64889,11 +69690,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3241 + "line": 3449 } }, { @@ -64943,11 +69745,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3242 + "line": 3450 } }, { @@ -65010,6 +69813,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "preceding": [ @@ -65021,7 +69825,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3247 + "line": 3455 } }, { @@ -65084,11 +69888,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3248 + "line": 3456 } }, { @@ -65164,6 +69969,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Axis aligned rectangle (composed of two triangles)" @@ -65171,7 +69977,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3249 + "line": 3457 } }, { @@ -65273,11 +70079,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3250 + "line": 3458 } }, { @@ -65431,11 +70238,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3251 + "line": 3459 } }, { @@ -65511,11 +70319,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3252 + "line": 3460 } }, { @@ -65565,11 +70374,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3253 + "line": 3461 } }, { @@ -65645,6 +70455,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "comments": { "attached": "// Write vertex with unique index" @@ -65652,7 +70463,185 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3254 + "line": 3462 + } + }, + { + "name": "ImDrawList_PushTextureID", + "original_fully_qualified_name": "PushTextureID", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImDrawList*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImDrawList" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "tex_ref", + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImDrawList", + "comments": { + "attached": "// RENAMED in 1.92.x" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3466 + } + }, + { + "name": "ImDrawList_PopTextureID", + "original_fully_qualified_name": "PopTextureID", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImDrawList*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImDrawList" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImDrawList", + "comments": { + "attached": "// RENAMED in 1.92.x" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3467 + } + }, + { + "name": "ImDrawList__SetDrawListSharedData", + "original_fully_qualified_name": "_SetDrawListSharedData", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImDrawList*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImDrawList" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "data", + "type": { + "declaration": "ImDrawListSharedData*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImDrawListSharedData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImDrawList", + "comments": { + "preceding": [ + "// [Internal helpers]" + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3476 } }, { @@ -65689,16 +70678,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", - "comments": { - "preceding": [ - "// [Internal helpers]" - ] - }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3264 + "line": 3477 } }, { @@ -65735,11 +70720,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3265 + "line": 3478 } }, { @@ -65776,11 +70762,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3266 + "line": 3479 } }, { @@ -65817,11 +70804,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3267 + "line": 3480 } }, { @@ -65858,16 +70846,17 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3268 + "line": 3481 } }, { - "name": "ImDrawList__OnChangedTextureID", - "original_fully_qualified_name": "_OnChangedTextureID", + "name": "ImDrawList__OnChangedTexture", + "original_fully_qualified_name": "_OnChangedTexture", "return_type": { "declaration": "void", "description": { @@ -65899,11 +70888,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3269 + "line": 3482 } }, { @@ -65940,11 +70930,67 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3270 + "line": 3483 + } + }, + { + "name": "ImDrawList__SetTexture", + "original_fully_qualified_name": "_SetTexture", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImDrawList*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImDrawList" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "tex_ref", + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImDrawList", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3484 } }, { @@ -65997,11 +71043,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3271 + "line": 3485 } }, { @@ -66103,11 +71150,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3272 + "line": 3486 } }, { @@ -66209,11 +71257,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawList", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3273 + "line": 3487 } }, { @@ -66250,11 +71299,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawData", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3293 + "line": 3508 } }, { @@ -66307,6 +71357,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawData", "comments": { "attached": "// Helper to add an external draw list into an existing ImDrawData." @@ -66314,7 +71365,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3294 + "line": 3509 } }, { @@ -66351,6 +71402,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawData", "comments": { "attached": "// Helper to convert all buffers from indexed to non-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!" @@ -66358,7 +71410,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3295 + "line": 3510 } }, { @@ -66408,6 +71460,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImDrawData", "comments": { "attached": "// Helper to scale the ClipRect field of each ImDrawCmd. Use if your final output buffer is at a different scale than Dear ImGui expects, or if there is a difference between your window resolution and framebuffer resolution." @@ -66415,7 +71468,542 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3296 + "line": 3511 + } + }, + { + "name": "ImTextureData_Create", + "original_fully_qualified_name": "Create", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "format", + "type": { + "declaration": "ImTextureFormat", + "description": { + "kind": "User", + "name": "ImTextureFormat" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "w", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "h", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3581 + } + }, + { + "name": "ImTextureData_DestroyPixels", + "original_fully_qualified_name": "DestroyPixels", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3582 + } + }, + { + "name": "ImTextureData_GetPixels", + "original_fully_qualified_name": "GetPixels", + "return_type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3583 + } + }, + { + "name": "ImTextureData_GetPixelsAt", + "original_fully_qualified_name": "GetPixelsAt", + "return_type": { + "declaration": "void*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "void" + } + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "x", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "y", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3584 + } + }, + { + "name": "ImTextureData_GetSizeInBytes", + "original_fully_qualified_name": "GetSizeInBytes", + "return_type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "const ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3585 + } + }, + { + "name": "ImTextureData_GetPitch", + "original_fully_qualified_name": "GetPitch", + "return_type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "const ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3586 + } + }, + { + "name": "ImTextureData_GetTexRef", + "original_fully_qualified_name": "GetTexRef", + "return_type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3587 + } + }, + { + "name": "ImTextureData_GetTexID", + "original_fully_qualified_name": "GetTexID", + "return_type": { + "declaration": "ImTextureID", + "description": { + "kind": "User", + "name": "ImTextureID" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "const ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3588 + } + }, + { + "name": "ImTextureData_SetTexID", + "original_fully_qualified_name": "SetTexID", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "tex_id", + "type": { + "declaration": "ImTextureID", + "description": { + "kind": "User", + "name": "ImTextureID" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "comments": { + "preceding": [ + "// Called by Renderer backend" + ], + "attached": "// Call after creating or destroying the texture. Never modify TexID directly!" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3591 + } + }, + { + "name": "ImTextureData_SetStatus", + "original_fully_qualified_name": "SetStatus", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "status", + "type": { + "declaration": "ImTextureStatus", + "description": { + "kind": "User", + "name": "ImTextureStatus" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImTextureData", + "comments": { + "attached": "// Call after honoring a request. Never modify Status directly!" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3592 } }, { @@ -66452,11 +72040,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontGlyphRangesBuilder", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3350 + "line": 3661 } }, { @@ -66509,6 +72098,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontGlyphRangesBuilder", "comments": { "attached": "// Get bit n in the array" @@ -66516,7 +72106,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3351 + "line": 3662 } }, { @@ -66566,6 +72156,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontGlyphRangesBuilder", "comments": { "attached": "// Set bit n in the array" @@ -66573,7 +72164,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3352 + "line": 3663 } }, { @@ -66623,6 +72214,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontGlyphRangesBuilder", "comments": { "attached": "// Add character" @@ -66630,7 +72222,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3353 + "line": 3664 } }, { @@ -66706,6 +72298,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontGlyphRangesBuilder", "comments": { "attached": "// Add string (each character of the UTF-8 string are added)" @@ -66713,7 +72306,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3354 + "line": 3665 } }, { @@ -66769,6 +72362,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontGlyphRangesBuilder", "comments": { "attached": "// Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext" @@ -66776,7 +72370,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3355 + "line": 3666 } }, { @@ -66829,6 +72423,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontGlyphRangesBuilder", "comments": { "attached": "// Output new ranges (ImVector_Construct()/ImVector_Destruct() can be used to safely construct out_ranges)" @@ -66836,51 +72431,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3356 - } - }, - { - "name": "ImFontAtlasCustomRect_IsPacked", - "original_fully_qualified_name": "IsPacked", - "return_type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "arguments": [ - { - "name": "self", - "type": { - "declaration": "const ImFontAtlasCustomRect*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImFontAtlasCustomRect", - "storage_classes": [ - "const" - ] - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImFontAtlasCustomRect", - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3369 + "line": 3667 } }, { @@ -66939,11 +72490,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3402 + "line": 3719 } }, { @@ -67003,11 +72555,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3403 + "line": 3720 } }, { @@ -67071,6 +72624,7 @@ }, "is_array": false, "is_varargs": false, + "default_value": "0.0f", "is_instance_pointer": false }, { @@ -67119,11 +72673,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3404 + "line": 3721 } }, { @@ -67197,6 +72752,7 @@ }, "is_array": false, "is_varargs": false, + "default_value": "0.0f", "is_instance_pointer": false }, { @@ -67245,6 +72801,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas. Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed." @@ -67252,7 +72809,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3405 + "line": 3722 } }, { @@ -67329,6 +72886,7 @@ }, "is_array": false, "is_varargs": false, + "default_value": "0.0f", "is_instance_pointer": false }, { @@ -67377,6 +72935,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// 'compressed_font_data' still owned by caller. Compress with binary_to_compressed_c.cpp." @@ -67384,7 +72943,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3406 + "line": 3723 } }, { @@ -67448,6 +73007,7 @@ }, "is_array": false, "is_varargs": false, + "default_value": "0.0f", "is_instance_pointer": false }, { @@ -67496,6 +73056,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// 'compressed_font_data_base85' still owned by caller. Compress with binary_to_compressed_c.cpp with -base85 parameter." @@ -67503,12 +73064,12 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3407 + "line": 3724 } }, { - "name": "ImFontAtlas_ClearInputData", - "original_fully_qualified_name": "ClearInputData", + "name": "ImFontAtlas_RemoveFont", + "original_fully_qualified_name": "RemoveFont", "return_type": { "declaration": "void", "description": { @@ -67533,50 +73094,22 @@ "is_array": false, "is_varargs": false, "is_instance_pointer": true - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImFontAtlas", - "comments": { - "attached": "// Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3408 - } - }, - { - "name": "ImFontAtlas_ClearTexData", - "original_fully_qualified_name": "ClearTexData", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [ + }, { - "name": "self", + "name": "font", "type": { - "declaration": "ImFontAtlas*", + "declaration": "ImFont*", "description": { "kind": "Pointer", - "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFontAtlas" + "name": "ImFont" } } }, "is_array": false, "is_varargs": false, - "is_instance_pointer": true + "is_instance_pointer": false } ], "is_default_argument_helper": false, @@ -67584,58 +73117,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", - "comments": { - "attached": "// Clear output texture data (CPU side). Saves RAM once the texture has been copied to graphics memory." - }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3409 - } - }, - { - "name": "ImFontAtlas_ClearFonts", - "original_fully_qualified_name": "ClearFonts", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [ - { - "name": "self", - "type": { - "declaration": "ImFontAtlas*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImFontAtlas" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImFontAtlas", - "comments": { - "attached": "// Clear output font data (glyphs storage, UV coordinates)." - }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3410 + "line": 3725 } }, { @@ -67672,14 +73159,262 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { - "attached": "// Clear all input and output." + "attached": "// Clear everything (input fonts, output glyphs/textures)" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3411 + "line": 3727 + } + }, + { + "name": "ImFontAtlas_CompactCache", + "original_fully_qualified_name": "CompactCache", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// Compact cached glyphs and texture." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3728 + } + }, + { + "name": "ImFontAtlas_SetFontLoader", + "original_fully_qualified_name": "SetFontLoader", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "font_loader", + "type": { + "declaration": "const ImFontLoader*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontLoader", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// Change font loader at runtime." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3729 + } + }, + { + "name": "ImFontAtlas_ClearInputData", + "original_fully_qualified_name": "ClearInputData", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "preceding": [ + "// As we are transitioning toward a new font system, we expect to obsolete those soon:" + ], + "attached": "// [OBSOLETE] Clear input data (all ImFontConfig structures including sizes, TTF data, glyph ranges, etc.) = all the data used to build the texture and fonts." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3732 + } + }, + { + "name": "ImFontAtlas_ClearFonts", + "original_fully_qualified_name": "ClearFonts", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// [OBSOLETE] Clear input+output font data (same as ClearInputData() + glyphs storage, UV coordinates)." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3733 + } + }, + { + "name": "ImFontAtlas_ClearTexData", + "original_fully_qualified_name": "ClearTexData", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// [OBSOLETE] Clear CPU-side copy of the texture data. Saves RAM once the texture has been copied to graphics memory." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3734 } }, { @@ -67716,21 +73451,31 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "preceding": [ - "// Build atlas, retrieve pixel data.", - "// User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID().", - "// The pitch is always = Width * BytesPerPixels (1 or 4)", - "// Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into", - "// the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste." + "// Legacy path for build atlas + retrieving pixel data.", + "// - User is in charge of copying the pixels into graphics memory (e.g. create a texture with your engine). Then store your texture handle with SetTexID().", + "// - The pitch is always = Width * BytesPerPixels (1 or 4)", + "// - Building in RGBA32 format is provided for convenience and compatibility, but note that unless you manually manipulate or copy color data into", + "// the texture (e.g. when using the AddCustomRect*** api), then the RGB pixels emitted will always be white (~75% of memory/bandwidth waste.", + "// - From 1.92 with backends supporting ImGuiBackendFlags_RendererHasTextures:", + "// - Calling Build(), GetTexDataAsAlpha8(), GetTexDataAsRGBA32() is not needed.", + "// - In backend: replace calls to ImFontAtlas::SetTexID() with calls to ImTextureData::SetTexID() after honoring texture creation." ], "attached": "// Build pixels data. This is called automatically for you by the GetTexData*** functions." }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3418 + "line": 3745 } }, { @@ -67835,14 +73580,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// 1 byte per-pixel" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3419 + "line": 3746 } }, { @@ -67947,61 +73699,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// 4 bytes-per-pixel" }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3420 - } - }, - { - "name": "ImFontAtlas_IsBuilt", - "original_fully_qualified_name": "IsBuilt", - "return_type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "arguments": [ + "conditionals": [ { - "name": "self", - "type": { - "declaration": "const ImFontAtlas*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImFontAtlas", - "storage_classes": [ - "const" - ] - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" } ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImFontAtlas", - "comments": { - "attached": "// Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent..." - }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3421 + "line": 3747 } }, { @@ -68051,11 +73763,139 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", + "comments": { + "attached": "// Called by legacy backends. May be called before texture creation." + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3422 + "line": 3748 + } + }, + { + "name": "ImFontAtlas_SetTexIDImTextureRef", + "original_fully_qualified_name": "SetTexID", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "id", + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// Called by legacy backends." + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3749 + } + }, + { + "name": "ImFontAtlas_IsBuilt", + "original_fully_qualified_name": "IsBuilt", + "return_type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "const ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// Bit ambiguous: used to detect when user didn't build texture but effectively we should check TexID != 0 except that would be backend dependent.." + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3750 } }, { @@ -68098,20 +73938,18 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "preceding": [ - "// Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list)", - "// NB: Make sure that your string are UTF-8 and NOT in your local code page.", - "// Read https://github.com/ocornut/imgui/blob/master/docs/FONTS.md/#about-utf-8-encoding for details.", - "// NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data." + "// Since 1.92: specifying glyph ranges is only useful/necessary if your backend doesn't support ImGuiBackendFlags_RendererHasTextures!" ], "attached": "// Basic Latin, Extended Latin" }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3432 + "line": 3758 } }, { @@ -68154,14 +73992,27 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { + "preceding": [ + "// Helpers to retrieve list of common Unicode ranges (2 value per range, values are inclusive, zero-terminated list)", + "// NB: Make sure that your string are UTF-8 and NOT in your local code page.", + "// Read https://github.com/ocornut/imgui/blob/master/docs/FONTS.md/#about-utf-8-encoding for details.", + "// NB: Consider using ImFontGlyphRangesBuilder to build glyph ranges from textual data." + ], "attached": "// Default + Greek and Coptic" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3433 + "line": 3764 } }, { @@ -68204,14 +74055,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// Default + Korean characters" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3434 + "line": 3765 } }, { @@ -68254,14 +74112,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// Default + Hiragana, Katakana, Half-Width, Selection of 2999 Ideographs" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3435 + "line": 3766 } }, { @@ -68304,14 +74169,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// Default + Half-Width + Japanese Hiragana/Katakana + full set of about 21000 CJK Unified Ideographs" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3436 + "line": 3767 } }, { @@ -68354,14 +74226,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// Default + Half-Width + Japanese Hiragana/Katakana + set of 2500 CJK Unified Ideographs for common simplified Chinese" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3437 + "line": 3768 } }, { @@ -68404,14 +74283,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// Default + about 400 Cyrillic characters" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3438 + "line": 3769 } }, { @@ -68454,14 +74340,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// Default + Thai characters" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3439 + "line": 3770 } }, { @@ -68504,24 +74397,273 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { "attached": "// Default + Vietnamese characters" }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3440 + "line": 3771 + } + }, + { + "name": "ImFontAtlas_AddCustomRect", + "original_fully_qualified_name": "AddCustomRect", + "return_type": { + "declaration": "ImFontAtlasRectId", + "description": { + "kind": "User", + "name": "ImFontAtlasRectId" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "width", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "height", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "out_r", + "type": { + "declaration": "ImFontAtlasRect*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontAtlasRect" + } + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "NULL", + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "preceding": [ + "// Register and retrieve custom rectangles", + "// - You can request arbitrary rectangles to be packed into the atlas, for your own purpose.", + "// - Since 1.92.X, packing is done immediately in the function call (previously packing was done during the Build call)", + "// - You can render your pixels into the texture right after calling the AddCustomRect() functions.", + "// - VERY IMPORTANT:", + "// - Texture may be created/resized at any time when calling ImGui or ImFontAtlas functions.", + "// - IT WILL INVALIDATE RECTANGLE DATA SUCH AS UV COORDINATES. Always use latest values from GetCustomRect().", + "// - UV coordinates are associated to the current texture identifier aka 'atlas->TexRef'. Both TexRef and UV coordinates are typically changed at the same time.", + "// - If you render colored output into your custom rectangles: set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.", + "// - Read docs/FONTS.md for more details about using colorful icons.", + "// - Note: this API may be reworked further in order to facilitate supporting e.g. multi-monitor, varying DPI settings.", + "// - (Pre-1.92 names) ------------> (1.92 names)", + "// - GetCustomRectByIndex() --> Use GetCustomRect()", + "// - CalcCustomRectUV() --> Use GetCustomRect() and read uv0, uv1 fields.", + "// - AddCustomRectRegular() --> Renamed to AddCustomRect()", + "// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig", + "// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect" + ], + "attached": "// Register a rectangle. Return -1 (ImFontAtlasRectId_Invalid) on error." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3795 + } + }, + { + "name": "ImFontAtlas_RemoveCustomRect", + "original_fully_qualified_name": "RemoveCustomRect", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "id", + "type": { + "declaration": "ImFontAtlasRectId", + "description": { + "kind": "User", + "name": "ImFontAtlasRectId" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// Unregister a rectangle. Existing pixels will stay in texture until resized / garbage collected." + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3796 + } + }, + { + "name": "ImFontAtlas_GetCustomRect", + "original_fully_qualified_name": "GetCustomRect", + "return_type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "const ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "id", + "type": { + "declaration": "ImFontAtlasRectId", + "description": { + "kind": "User", + "name": "ImFontAtlasRectId" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "out_r", + "type": { + "declaration": "ImFontAtlasRect*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontAtlasRect" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// Get rectangle coordinates for current texture. Valid immediately, never store this (read above)!" + }, + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3797 } }, { "name": "ImFontAtlas_AddCustomRectRegular", "original_fully_qualified_name": "AddCustomRectRegular", "return_type": { - "declaration": "int", + "declaration": "ImFontAtlasRectId", "description": { - "kind": "Builtin", - "builtin_type": "int" + "kind": "User", + "name": "ImFontAtlasRectId" } }, "arguments": [ @@ -68543,7 +74685,7 @@ "is_instance_pointer": true }, { - "name": "width", + "name": "w", "type": { "declaration": "int", "description": { @@ -68556,7 +74698,7 @@ "is_instance_pointer": false }, { - "name": "height", + "name": "h", "type": { "declaration": "int", "description": { @@ -68574,157 +74716,36 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { - "preceding": [ - "// You can request arbitrary rectangles to be packed into the atlas, for your own purposes.", - "// - After calling Build(), you can query the rectangle position and render your pixels.", - "// - If you render colored output, set 'atlas->TexPixelsUseColors = true' as this may help some backends decide of preferred texture format.", - "// - You can also request your rectangles to be mapped as font glyph (given a font + Unicode point),", - "// so you can render e.g. custom colorful icons and use them as regular glyphs.", - "// - Read docs/FONTS.md for more details about using colorful icons.", - "// - Note: this API may be redesigned later in order to support multi-monitor varying DPI settings." - ] + "attached": "// RENAMED in 1.92.X" }, - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3453 - } - }, - { - "name": "ImFontAtlas_AddCustomRectFontGlyph", - "original_fully_qualified_name": "AddCustomRectFontGlyph", - "return_type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "arguments": [ + "conditionals": [ { - "name": "self", - "type": { - "declaration": "ImFontAtlas*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImFontAtlas" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true - }, - { - "name": "font", - "type": { - "declaration": "ImFont*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImFont" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "id", - "type": { - "declaration": "ImWchar", - "description": { - "kind": "User", - "name": "ImWchar" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "width", - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "height", - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "advance_x", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "offset", - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "ImVec2(0, 0)", - "is_instance_pointer": false + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" } ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImFontAtlas", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3454 + "line": 3849 } }, { "name": "ImFontAtlas_GetCustomRectByIndex", "original_fully_qualified_name": "GetCustomRectByIndex", "return_type": { - "declaration": "ImFontAtlasCustomRect*", + "declaration": "const ImFontAtlasRect*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImFontAtlasCustomRect" + "name": "ImFontAtlasRect", + "storage_classes": [ + "const" + ] } } }, @@ -68747,12 +74768,12 @@ "is_instance_pointer": true }, { - "name": "index", + "name": "id", "type": { - "declaration": "int", + "declaration": "ImFontAtlasRectId", "description": { - "kind": "Builtin", - "builtin_type": "int" + "kind": "User", + "name": "ImFontAtlasRectId" } }, "is_array": false, @@ -68765,11 +74786,21 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", + "comments": { + "attached": "// OBSOLETED in 1.92.X" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3455 + "line": 3850 } }, { @@ -68804,14 +74835,14 @@ "is_instance_pointer": true }, { - "name": "rect", + "name": "r", "type": { - "declaration": "const ImFontAtlasCustomRect*", + "declaration": "const ImFontAtlasRect*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImFontAtlasCustomRect", + "name": "ImFontAtlasRect", "storage_classes": [ "const" ] @@ -68860,26 +74891,31 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", "comments": { - "preceding": [ - "// [Internal]" - ] + "attached": "// OBSOLETED in 1.92.X" }, - "is_internal": true, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3458 + "line": 3851 } }, { - "name": "ImFontAtlas_GetMouseCursorTexData", - "original_fully_qualified_name": "GetMouseCursorTexData", + "name": "ImFontAtlas_AddCustomRectFontGlyph", + "original_fully_qualified_name": "AddCustomRectFontGlyph", "return_type": { - "declaration": "bool", + "declaration": "ImFontAtlasRectId", "description": { - "kind": "Builtin", - "builtin_type": "bool" + "kind": "User", + "name": "ImFontAtlasRectId" } }, "arguments": [ @@ -68901,12 +74937,28 @@ "is_instance_pointer": true }, { - "name": "cursor", + "name": "font", "type": { - "declaration": "ImGuiMouseCursor", + "declaration": "ImFont*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFont" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "codepoint", + "type": { + "declaration": "ImWchar", "description": { "kind": "User", - "name": "ImGuiMouseCursor" + "name": "ImWchar" } }, "is_array": false, @@ -68914,15 +74966,12 @@ "is_instance_pointer": false }, { - "name": "out_offset", + "name": "w", "type": { - "declaration": "ImVec2*", + "declaration": "int", "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImVec2" - } + "kind": "Builtin", + "builtin_type": "int" } }, "is_array": false, @@ -68930,15 +74979,12 @@ "is_instance_pointer": false }, { - "name": "out_size", + "name": "h", "type": { - "declaration": "ImVec2*", + "declaration": "int", "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImVec2" - } + "kind": "Builtin", + "builtin_type": "int" } }, "is_array": false, @@ -68946,39 +74992,30 @@ "is_instance_pointer": false }, { - "name": "out_uv_border", + "name": "advance_x", "type": { - "declaration": "ImVec2[2]", + "declaration": "float", "description": { - "kind": "Array", - "bounds": "2", - "inner_type": { - "kind": "User", - "name": "ImVec2" - } + "kind": "Builtin", + "builtin_type": "float" } }, - "is_array": true, + "is_array": false, "is_varargs": false, - "array_bounds": "2", "is_instance_pointer": false }, { - "name": "out_uv_fill", + "name": "offset", "type": { - "declaration": "ImVec2[2]", + "declaration": "ImVec2", "description": { - "kind": "Array", - "bounds": "2", - "inner_type": { - "kind": "User", - "name": "ImVec2" - } + "kind": "User", + "name": "ImVec2" } }, - "is_array": true, + "is_array": false, "is_varargs": false, - "array_bounds": "2", + "default_value": "ImVec2(0, 0)", "is_instance_pointer": false } ], @@ -68987,26 +75024,221 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFontAtlas", - "is_internal": true, + "comments": { + "attached": "// OBSOLETED in 1.92.X: Use custom ImFontLoader in ImFontConfig" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3459 + "line": 3852 } }, { - "name": "ImFont_FindGlyph", + "name": "ImFontAtlas_AddCustomRectFontGlyphForSize", + "original_fully_qualified_name": "AddCustomRectFontGlyphForSize", + "return_type": { + "declaration": "ImFontAtlasRectId", + "description": { + "kind": "User", + "name": "ImFontAtlasRectId" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontAtlas*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontAtlas" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "font", + "type": { + "declaration": "ImFont*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFont" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "font_size", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "codepoint", + "type": { + "declaration": "ImWchar", + "description": { + "kind": "User", + "name": "ImWchar" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "w", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "h", + "type": { + "declaration": "int", + "description": { + "kind": "Builtin", + "builtin_type": "int" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "advance_x", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "offset", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "ImVec2(0, 0)", + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontAtlas", + "comments": { + "attached": "// ADDED AND OBSOLETED in 1.92.X" + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3853 + } + }, + { + "name": "ImFontBaked_ClearOutputData", + "original_fully_qualified_name": "ClearOutputData", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontBaked*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontBaked" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontBaked", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3890 + } + }, + { + "name": "ImFontBaked_FindGlyph", "original_fully_qualified_name": "FindGlyph", "return_type": { - "declaration": "const ImFontGlyph*", + "declaration": "ImFontGlyph*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImFontGlyph", - "storage_classes": [ - "const" - ] + "name": "ImFontGlyph" } } }, @@ -69014,16 +75246,13 @@ { "name": "self", "type": { - "declaration": "const ImFont*", + "declaration": "ImFontBaked*", "description": { "kind": "Pointer", "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFontBaked" } } }, @@ -69050,26 +75279,27 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, - "original_class": "ImFont", + "is_static": false, + "original_class": "ImFontBaked", + "comments": { + "attached": "// Return U+FFFD glyph if requested glyph doesn't exists." + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3532 + "line": 3891 } }, { - "name": "ImFont_FindGlyphNoFallback", + "name": "ImFontBaked_FindGlyphNoFallback", "original_fully_qualified_name": "FindGlyphNoFallback", "return_type": { - "declaration": "const ImFontGlyph*", + "declaration": "ImFontGlyph*", "description": { "kind": "Pointer", "inner_type": { "kind": "User", - "name": "ImFontGlyph", - "storage_classes": [ - "const" - ] + "name": "ImFontGlyph" } } }, @@ -69077,16 +75307,13 @@ { "name": "self", "type": { - "declaration": "const ImFont*", + "declaration": "ImFontBaked*", "description": { "kind": "Pointer", "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFontBaked" } } }, @@ -69113,15 +75340,19 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, - "original_class": "ImFont", + "is_static": false, + "original_class": "ImFontBaked", + "comments": { + "attached": "// Return NULL if glyph doesn't exist" + }, "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3533 + "line": 3892 } }, { - "name": "ImFont_GetCharAdvance", + "name": "ImFontBaked_GetCharAdvance", "original_fully_qualified_name": "GetCharAdvance", "return_type": { "declaration": "float", @@ -69134,16 +75365,13 @@ { "name": "self", "type": { - "declaration": "const ImFont*", + "declaration": "ImFontBaked*", "description": { "kind": "Pointer", "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFontBaked" } } }, @@ -69170,11 +75398,122 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, - "original_class": "ImFont", + "is_static": false, + "original_class": "ImFontBaked", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3534 + "line": 3893 + } + }, + { + "name": "ImFontBaked_IsGlyphLoaded", + "original_fully_qualified_name": "IsGlyphLoaded", + "return_type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFontBaked*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFontBaked" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "c", + "type": { + "declaration": "ImWchar", + "description": { + "kind": "User", + "name": "ImWchar" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFontBaked", + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 3894 + } + }, + { + "name": "ImFont_IsGlyphInFont", + "original_fully_qualified_name": "IsGlyphInFont", + "return_type": { + "declaration": "bool", + "description": { + "kind": "Builtin", + "builtin_type": "bool" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFont*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFont" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "c", + "type": { + "declaration": "ImWchar", + "description": { + "kind": "User", + "name": "ImWchar" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFont", + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3937 } }, { @@ -69214,11 +75553,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3535 + "line": 3938 } }, { @@ -69264,11 +75604,156 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", - "is_internal": false, + "comments": { + "attached": "// Fill ImFontConfig::Name." + }, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3536 + "line": 3939 + } + }, + { + "name": "ImFont_GetFontBaked", + "original_fully_qualified_name": "GetFontBaked", + "return_type": { + "declaration": "ImFontBaked*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontBaked" + } + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFont*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFont" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "font_size", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": true, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFont", + "comments": { + "preceding": [ + "// [Internal] Don't use!", + "// 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable.", + "// 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable." + ], + "attached": "// Implied density = -1.0f" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3944 + } + }, + { + "name": "ImFont_GetFontBakedEx", + "original_fully_qualified_name": "GetFontBaked", + "return_type": { + "declaration": "ImFontBaked*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFontBaked" + } + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFont*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFont" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "font_size", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "density", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "-1.0f", + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFont", + "comments": { + "attached": "// Get or create baked data for given size" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3944 } }, { @@ -69285,16 +75770,13 @@ { "name": "self", "type": { - "declaration": "const ImFont*", + "declaration": "ImFont*", "description": { "kind": "Pointer", "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFont" } } }, @@ -69366,18 +75848,15 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", "comments": { - "preceding": [ - "// 'max_width' stops rendering after a certain width (could be turned into a 2d size). FLT_MAX to disable.", - "// 'wrap_width' enable automatic word-wrapping across multiple lines to fit into given width. 0.0f to disable." - ], "attached": "// Implied text_end = NULL, remaining = NULL" }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3540 + "line": 3945 } }, { @@ -69394,16 +75873,13 @@ { "name": "self", "type": { - "declaration": "const ImFont*", + "declaration": "ImFont*", "description": { "kind": "Pointer", "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFont" } } }, @@ -69518,19 +75994,20 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", "comments": { "attached": "// utf8" }, - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3540 + "line": 3945 } }, { - "name": "ImFont_CalcWordWrapPositionA", - "original_fully_qualified_name": "CalcWordWrapPositionA", + "name": "ImFont_CalcWordWrapPosition", + "original_fully_qualified_name": "CalcWordWrapPosition", "return_type": { "declaration": "const char*", "description": { @@ -69548,16 +76025,13 @@ { "name": "self", "type": { - "declaration": "const ImFont*", + "declaration": "ImFont*", "description": { "kind": "Pointer", "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFont" } } }, @@ -69566,7 +76040,7 @@ "is_instance_pointer": true }, { - "name": "scale", + "name": "size", "type": { "declaration": "float", "description": { @@ -69635,11 +76109,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3541 + "line": 3946 } }, { @@ -69656,16 +76131,13 @@ { "name": "self", "type": { - "declaration": "const ImFont*", + "declaration": "ImFont*", "description": { "kind": "Pointer", "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFont" } } }, @@ -69742,16 +76214,150 @@ "is_instance_pointer": false } ], + "is_default_argument_helper": true, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "original_class": "ImFont", + "comments": { + "attached": "// Implied cpu_fine_clip = NULL" + }, + "is_internal": true, + "source_location": { + "filename": "imgui.h", + "line": 3947 + } + }, + { + "name": "ImFont_RenderCharEx", + "original_fully_qualified_name": "RenderChar", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "self", + "type": { + "declaration": "ImFont*", + "description": { + "kind": "Pointer", + "is_nullable": false, + "inner_type": { + "kind": "User", + "name": "ImFont" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": true + }, + { + "name": "draw_list", + "type": { + "declaration": "ImDrawList*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImDrawList" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "size", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "pos", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "col", + "type": { + "declaration": "ImU32", + "description": { + "kind": "User", + "name": "ImU32" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "c", + "type": { + "declaration": "ImWchar", + "description": { + "kind": "User", + "name": "ImWchar" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "cpu_fine_clip", + "type": { + "declaration": "const ImVec4*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImVec4", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "default_value": "NULL", + "is_instance_pointer": false + } + ], "is_default_argument_helper": false, "is_manual_helper": false, "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3542 + "line": 3947 } }, { @@ -69768,16 +76374,13 @@ { "name": "self", "type": { - "declaration": "const ImFont*", + "declaration": "ImFont*", "description": { "kind": "Pointer", "is_nullable": false, "inner_type": { "kind": "User", - "name": "ImFont", - "storage_classes": [ - "const" - ] + "name": "ImFont" } } }, @@ -69925,21 +76528,28 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", - "is_internal": false, + "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3543 + "line": 3948 } }, { - "name": "ImFont_BuildLookupTable", - "original_fully_qualified_name": "BuildLookupTable", + "name": "ImFont_CalcWordWrapPositionA", + "original_fully_qualified_name": "CalcWordWrapPositionA", "return_type": { - "declaration": "void", + "declaration": "const char*", "description": { - "kind": "Builtin", - "builtin_type": "void" + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } } }, "arguments": [ @@ -69959,6 +76569,70 @@ "is_array": false, "is_varargs": false, "is_instance_pointer": true + }, + { + "name": "scale", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "text", + "type": { + "declaration": "const char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "text_end", + "type": { + "declaration": "const char*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "Builtin", + "builtin_type": "char", + "storage_classes": [ + "const" + ] + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "wrap_width", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false } ], "is_default_argument_helper": false, @@ -69966,16 +76640,18 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", - "comments": { - "preceding": [ - "// [Internal] Don't use!" - ] - }, - "is_internal": true, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3546 + "line": 3950 } }, { @@ -70012,255 +76688,17 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3547 - } - }, - { - "name": "ImFont_GrowIndex", - "original_fully_qualified_name": "GrowIndex", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } + "comments": { + "preceding": [ + "// [Internal] Don't use!" + ] }, - "arguments": [ - { - "name": "self", - "type": { - "declaration": "ImFont*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImFont" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true - }, - { - "name": "new_size", - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImFont", "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3548 - } - }, - { - "name": "ImFont_AddGlyph", - "original_fully_qualified_name": "AddGlyph", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [ - { - "name": "self", - "type": { - "declaration": "ImFont*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImFont" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true - }, - { - "name": "src_cfg", - "type": { - "declaration": "const ImFontConfig*", - "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImFontConfig", - "storage_classes": [ - "const" - ] - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "c", - "type": { - "declaration": "ImWchar", - "description": { - "kind": "User", - "name": "ImWchar" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "x0", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "y0", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "x1", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "y1", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "u0", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "v0", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "u1", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "v1", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "advance_x", - "type": { - "declaration": "float", - "description": { - "kind": "Builtin", - "builtin_type": "float" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImFont", - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3549 + "line": 3954 } }, { @@ -70292,7 +76730,7 @@ "is_instance_pointer": true }, { - "name": "dst", + "name": "from_codepoint", "type": { "declaration": "ImWchar", "description": { @@ -70305,7 +76743,7 @@ "is_instance_pointer": false }, { - "name": "src", + "name": "to_codepoint", "type": { "declaration": "ImWchar", "description": { @@ -70316,20 +76754,6 @@ "is_array": false, "is_varargs": false, "is_instance_pointer": false - }, - { - "name": "overwrite_dst", - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "true", - "is_instance_pointer": false } ], "is_default_argument_helper": false, @@ -70337,81 +76761,15 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", "comments": { - "attached": "// Makes 'dst' character/glyph points to 'src' character/glyph. Currently needs to be called AFTER fonts have been built." + "attached": "// Makes 'from_codepoint' character points to 'to_codepoint' glyph." }, "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3550 - } - }, - { - "name": "ImFont_SetGlyphVisible", - "original_fully_qualified_name": "SetGlyphVisible", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [ - { - "name": "self", - "type": { - "declaration": "ImFont*", - "description": { - "kind": "Pointer", - "is_nullable": false, - "inner_type": { - "kind": "User", - "name": "ImFont" - } - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": true - }, - { - "name": "c", - "type": { - "declaration": "ImWchar", - "description": { - "kind": "User", - "name": "ImWchar" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "visible", - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "original_class": "ImFont", - "is_internal": true, - "source_location": { - "filename": "imgui.h", - "line": 3551 + "line": 3955 } }, { @@ -70474,11 +76832,12 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImFont", "is_internal": true, "source_location": { "filename": "imgui.h", - "line": 3552 + "line": 3956 } }, { @@ -70518,6 +76877,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiViewport", "comments": { "preceding": [ @@ -70527,7 +76887,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3618 + "line": 4041 } }, { @@ -70567,11 +76927,223 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "original_class": "ImGuiViewport", "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3619 + "line": 4042 + } + }, + { + "name": "ImGui_PushFont", + "original_fully_qualified_name": "ImGui::PushFont", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "font", + "type": { + "declaration": "ImFont*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImFont" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "preceding": [ + "// OBSOLETED in 1.92.0 (from June 2025)" + ] + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4232 + } + }, + { + "name": "ImGui_SetWindowFontScale", + "original_fully_qualified_name": "ImGui::SetWindowFontScale", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "scale", + "type": { + "declaration": "float", + "description": { + "kind": "Builtin", + "builtin_type": "float" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "attached": "// Set font scale factor for current window. Prefer using PushFont(NULL, style.FontSizeBase * factor) or use style.FontScaleMain to scale all windows." + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4233 + } + }, + { + "name": "ImGui_ImageImVec4", + "original_fully_qualified_name": "ImGui::Image", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "tex_ref", + "type": { + "declaration": "ImTextureRef", + "description": { + "kind": "User", + "name": "ImTextureRef" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "image_size", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "uv0", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "uv1", + "type": { + "declaration": "ImVec2", + "description": { + "kind": "User", + "name": "ImVec2" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "tint_col", + "type": { + "declaration": "ImVec4", + "description": { + "kind": "User", + "name": "ImVec4" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, + { + "name": "border_col", + "type": { + "declaration": "ImVec4", + "description": { + "kind": "User", + "name": "ImVec4" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "preceding": [ + "// OBSOLETED in 1.91.9 (from February 2025)" + ], + "attached": "// <-- 'border_col' was removed in favor of ImGuiCol_ImageBorder. If you use 'tint_col', use ImageWithBg() instead." + }, + "conditionals": [ + { + "condition": "ifndef", + "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" + } + ], + "is_internal": false, + "source_location": { + "filename": "imgui.h", + "line": 4235 } }, { @@ -70604,6 +77176,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// OBSOLETED in 1.91.0 (from July 2024)" @@ -70618,7 +77191,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3764 + "line": 4237 } }, { @@ -70637,6 +77210,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "conditionals": [ { "condition": "ifndef", @@ -70646,7 +77220,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3765 + "line": 4238 } }, { @@ -70679,6 +77253,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "conditionals": [ { "condition": "ifndef", @@ -70688,7 +77263,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3766 + "line": 4239 } }, { @@ -70707,6 +77282,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "conditionals": [ { "condition": "ifndef", @@ -70716,7 +77292,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3767 + "line": 4240 } }, { @@ -70735,6 +77311,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Content boundaries max (e.g. window boundaries including scrolling, or current column boundaries). You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()!" }, @@ -70747,7 +77324,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3768 + "line": 4241 } }, { @@ -70766,6 +77343,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Content boundaries min for the window (roughly (0,0)-Scroll), in window-local coordinates. You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()!" }, @@ -70778,7 +77356,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3769 + "line": 4242 } }, { @@ -70797,6 +77375,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Content boundaries max for the window (roughly (0,0)+Size-Scroll), in window-local coordinates. You should never need this. Always use GetCursorScreenPos() and GetContentRegionAvail()!" }, @@ -70809,7 +77388,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3770 + "line": 4243 } }, { @@ -70855,6 +77434,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// OBSOLETED in 1.90.0 (from September 2023)" @@ -70870,7 +77450,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3772 + "line": 4245 } }, { @@ -70930,6 +77510,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "conditionals": [ { "condition": "ifndef", @@ -70939,7 +77520,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3772 + "line": 4245 } }, { @@ -70958,6 +77539,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "conditionals": [ { "condition": "ifndef", @@ -70967,7 +77549,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3773 + "line": 4246 } }, { @@ -71004,10 +77586,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ - "//static inline bool BeginChild(const char* str_id, const ImVec2& size_arg, bool border, ImGuiWindowFlags window_flags){ return BeginChild(str_id, size_arg, border ? ImGuiChildFlags_Border : ImGuiChildFlags_None, window_flags); } // Unnecessary as true == ImGuiChildFlags_Border", - "//static inline bool BeginChild(ImGuiID id, const ImVec2& size_arg, bool border, ImGuiWindowFlags window_flags) { return BeginChild(id, size_arg, border ? ImGuiChildFlags_Border : ImGuiChildFlags_None, window_flags); } // Unnecessary as true == ImGuiChildFlags_Border" + "//inline bool BeginChild(const char* str_id, const ImVec2& size_arg, bool borders, ImGuiWindowFlags window_flags){ return BeginChild(str_id, size_arg, borders ? ImGuiChildFlags_Borders : ImGuiChildFlags_None, window_flags); } // Unnecessary as true == ImGuiChildFlags_Borders", + "//inline bool BeginChild(ImGuiID id, const ImVec2& size_arg, bool borders, ImGuiWindowFlags window_flags) { return BeginChild(id, size_arg, borders ? ImGuiChildFlags_Borders : ImGuiChildFlags_None, window_flags); } // Unnecessary as true == ImGuiChildFlags_Borders" ] }, "conditionals": [ @@ -71019,7 +77602,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3776 + "line": 4249 } }, { @@ -71227,6 +77810,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied popup_max_height_in_items = -1" }, @@ -71239,7 +77823,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3777 + "line": 4250 } }, { @@ -71461,6 +78045,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "conditionals": [ { "condition": "ifndef", @@ -71470,7 +78055,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3777 + "line": 4250 } }, { @@ -71678,6 +78263,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied height_in_items = -1" }, @@ -71690,7 +78276,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3778 + "line": 4251 } }, { @@ -71912,6 +78498,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "conditionals": [ { "condition": "ifndef", @@ -71921,7 +78508,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3778 + "line": 4251 } }, { @@ -71940,6 +78527,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// OBSOLETED in 1.89.7 (from June 2023)" @@ -71955,261 +78543,7 @@ "is_internal": false, "source_location": { "filename": "imgui.h", - "line": 3780 - } - }, - { - "name": "ImGui_PushAllowKeyboardFocus", - "original_fully_qualified_name": "ImGui::PushAllowKeyboardFocus", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [ - { - "name": "tab_stop", - "type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "comments": { - "preceding": [ - "// OBSOLETED in 1.89.4 (from March 2023)" - ] - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3782 - } - }, - { - "name": "ImGui_PopAllowKeyboardFocus", - "original_fully_qualified_name": "ImGui::PopAllowKeyboardFocus", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3783 - } - }, - { - "name": "ImGui_ImageButtonImTextureID", - "original_fully_qualified_name": "ImGui::ImageButton", - "return_type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "arguments": [ - { - "name": "user_texture_id", - "type": { - "declaration": "ImTextureID", - "description": { - "kind": "User", - "name": "ImTextureID" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "size", - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - }, - { - "name": "uv0", - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "ImVec2(0, 0)", - "is_instance_pointer": false - }, - { - "name": "uv1", - "type": { - "declaration": "ImVec2", - "description": { - "kind": "User", - "name": "ImVec2" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "ImVec2(1, 1)", - "is_instance_pointer": false - }, - { - "name": "frame_padding", - "type": { - "declaration": "int", - "description": { - "kind": "Builtin", - "builtin_type": "int" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "-1", - "is_instance_pointer": false - }, - { - "name": "bg_col", - "type": { - "declaration": "ImVec4", - "description": { - "kind": "User", - "name": "ImVec4" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "ImVec4(0, 0, 0, 0)", - "is_instance_pointer": false - }, - { - "name": "tint_col", - "type": { - "declaration": "ImVec4", - "description": { - "kind": "User", - "name": "ImVec4" - } - }, - "is_array": false, - "is_varargs": false, - "default_value": "ImVec4(1, 1, 1, 1)", - "is_instance_pointer": false - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "comments": { - "preceding": [ - "// OBSOLETED in 1.89 (from August 2022)" - ], - "attached": "// Use new ImageButton() signature (explicit item id, regular FramePadding)" - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3785 - } - }, - { - "name": "ImGui_GetKeyIndex", - "original_fully_qualified_name": "ImGui::GetKeyIndex", - "return_type": { - "declaration": "ImGuiKey", - "description": { - "kind": "User", - "name": "ImGuiKey" - } - }, - "arguments": [ - { - "name": "key", - "type": { - "declaration": "ImGuiKey", - "description": { - "kind": "User", - "name": "ImGuiKey" - } - }, - "is_array": false, - "is_varargs": false, - "is_instance_pointer": false - } - ], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "comments": { - "preceding": [ - "// OBSOLETED in 1.87 (from February 2022 but more formally obsoleted April 2024)" - ], - "attached": "// Map ImGuiKey_* values into legacy native key index. == io.KeyMap[key]. When using a 1.87+ backend using io.AddKeyEvent(), calling GetKeyIndex() with ANY ImGuiKey_XXXX values will return the same value!" - }, - "conditionals": [ - { - "condition": "ifndef", - "expression": "IMGUI_DISABLE_OBSOLETE_FUNCTIONS" - } - ], - "is_internal": false, - "source_location": { - "filename": "imgui.h", - "line": 3787 + "line": 4253 } } ] diff --git a/src/cached/dcimgui_imconfig.json b/src/cached/dcimgui_imconfig.json new file mode 100644 index 0000000..c284c5c --- /dev/null +++ b/src/cached/dcimgui_imconfig.json @@ -0,0 +1,7 @@ +{ + "defines": [], + "enums": [], + "typedefs": [], + "structs": [], + "functions": [] +} \ No newline at end of file diff --git a/src/cached/cimgui_impl_vulkan.cpp b/src/cached/dcimgui_impl_vulkan.cpp similarity index 77% rename from src/cached/cimgui_impl_vulkan.cpp rename to src/cached/dcimgui_impl_vulkan.cpp index 8c6141d..f5d736b 100644 --- a/src/cached/cimgui_impl_vulkan.cpp +++ b/src/cached/dcimgui_impl_vulkan.cpp @@ -10,7 +10,7 @@ // Wrap this in a namespace to keep it separate from the C++ API namespace cimgui { -#include "cimgui_impl_vulkan.h" +#include "dcimgui_impl_vulkan.h" } // By-value struct conversions @@ -44,21 +44,16 @@ CIMGUI_IMPL_API void cimgui::cImGui_ImplVulkan_RenderDrawDataEx(cimgui::ImDrawDa ::ImGui_ImplVulkan_RenderDrawData(reinterpret_cast<::ImDrawData*>(draw_data), command_buffer, pipeline); } -CIMGUI_IMPL_API bool cimgui::cImGui_ImplVulkan_CreateFontsTexture(void) -{ - return ::ImGui_ImplVulkan_CreateFontsTexture(); -} - -CIMGUI_IMPL_API void cimgui::cImGui_ImplVulkan_DestroyFontsTexture(void) -{ - ::ImGui_ImplVulkan_DestroyFontsTexture(); -} - CIMGUI_IMPL_API void cimgui::cImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count) { ::ImGui_ImplVulkan_SetMinImageCount(min_image_count); } +CIMGUI_IMPL_API void cimgui::cImGui_ImplVulkan_UpdateTexture(ImTextureData* tex) +{ + ::ImGui_ImplVulkan_UpdateTexture(tex); +} + CIMGUI_IMPL_API VkDescriptorSet cimgui::cImGui_ImplVulkan_AddTexture(VkSampler sampler, VkImageView image_view, VkImageLayout image_layout) { return ::ImGui_ImplVulkan_AddTexture(sampler, image_view, image_layout); @@ -69,14 +64,14 @@ CIMGUI_IMPL_API void cimgui::cImGui_ImplVulkan_RemoveTexture(VkDescriptorS ::ImGui_ImplVulkan_RemoveTexture(descriptor_set); } -CIMGUI_IMPL_API bool cimgui::cImGui_ImplVulkan_LoadFunctions(PFN_vkVoidFunction (*loader_func)(const char* function_name, void* user_data)) +CIMGUI_IMPL_API bool cimgui::cImGui_ImplVulkan_LoadFunctions(uint32_t api_version, PFN_vkVoidFunction (*loader_func)(const char* function_name, void* user_data)) { - return ::ImGui_ImplVulkan_LoadFunctions(loader_func); + return ::ImGui_ImplVulkan_LoadFunctions(api_version, loader_func); } -CIMGUI_IMPL_API bool cimgui::cImGui_ImplVulkan_LoadFunctionsEx(PFN_vkVoidFunction (*loader_func)(const char* function_name, void* user_data), void* user_data) +CIMGUI_IMPL_API bool cimgui::cImGui_ImplVulkan_LoadFunctionsEx(uint32_t api_version, PFN_vkVoidFunction (*loader_func)(const char* function_name, void* user_data), void* user_data) { - return ::ImGui_ImplVulkan_LoadFunctions(loader_func, user_data); + return ::ImGui_ImplVulkan_LoadFunctions(api_version, loader_func, user_data); } CIMGUI_IMPL_API void cimgui::cImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance instance, VkPhysicalDevice physical_device, VkDevice device, cimgui::ImGui_ImplVulkanH_Window* wd, uint32_t queue_family, const VkAllocationCallbacks* allocator, int w, int h, uint32_t min_image_count) @@ -99,6 +94,16 @@ CIMGUI_IMPL_API VkPresentModeKHR cimgui::cImGui_ImplVulkanH_SelectPresentMode(Vk return ::ImGui_ImplVulkanH_SelectPresentMode(physical_device, surface, request_modes, request_modes_count); } +CIMGUI_IMPL_API VkPhysicalDevice cimgui::cImGui_ImplVulkanH_SelectPhysicalDevice(VkInstance instance) +{ + return ::ImGui_ImplVulkanH_SelectPhysicalDevice(instance); +} + +CIMGUI_IMPL_API uint32_t cimgui::cImGui_ImplVulkanH_SelectQueueFamilyIndex(VkPhysicalDevice physical_device) +{ + return ::ImGui_ImplVulkanH_SelectQueueFamilyIndex(physical_device); +} + CIMGUI_IMPL_API int cimgui::cImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode) { return ::ImGui_ImplVulkanH_GetMinImageCountFromPresentMode(present_mode); diff --git a/src/cached/cimgui_impl_vulkan.h b/src/cached/dcimgui_impl_vulkan.h similarity index 62% rename from src/cached/cimgui_impl_vulkan.h rename to src/cached/dcimgui_impl_vulkan.h index 32dff04..a940823 100644 --- a/src/cached/cimgui_impl_vulkan.h +++ b/src/cached/dcimgui_impl_vulkan.h @@ -6,13 +6,12 @@ // This needs to be used along with a Platform Backend (e.g. GLFW, SDL, Win32, custom..) // Implemented features: -// [x] Renderer: User texture binding. Use 'VkDescriptorSet' as ImTextureID. Read the FAQ about ImTextureID! See https://github.com/ocornut/imgui/pull/914 for discussions. -// [X] Renderer: Large meshes support (64k+ vertices) with 16-bit indices. +// [!] Renderer: User texture binding. Use 'VkDescriptorSet' as texture identifier. Call ImGui_ImplVulkan_AddTexture() to register one. Read the FAQ about ImTextureID/ImTextureRef + https://github.com/ocornut/imgui/pull/914 for discussions. +// [X] Renderer: Large meshes support (64k+ vertices) even with 16-bit indices (ImGuiBackendFlags_RendererHasVtxOffset). +// [X] Renderer: Texture updates support for dynamic font atlas (ImGuiBackendFlags_RendererHasTextures). +// [X] Renderer: Expose selected render state for draw callbacks to use. Access in '(ImGui_ImplXXXX_RenderState*)GetPlatformIO().Renderer_RenderState'. // [x] Renderer: Multi-viewport / platform windows. With issues (flickering when creating a new viewport). -// Important: on 32-bit systems, user texture binding is only supported if your imconfig file has '#define ImTextureID ImU64'. -// See imgui_impl_vulkan.cpp file for details. - // The aim of imgui_impl_vulkan.h/.cpp is to be usable in your engine without any modification. // IF YOU FEEL YOU NEED TO MAKE ANY CHANGE TO THIS CODE, please share them and your feedback at https://github.com/ocornut/imgui/ @@ -31,6 +30,10 @@ // the backend itself (imgui_impl_vulkan.cpp), but should PROBABLY NOT be used by your own engine/app code. // Read comments in imgui_impl_vulkan.h. +// Auto-generated forward declarations for C header +typedef struct ImGui_ImplVulkan_InitInfo_t ImGui_ImplVulkan_InitInfo; +typedef struct ImGui_ImplVulkan_RenderState_t ImGui_ImplVulkan_RenderState; +typedef struct ImGui_ImplVulkanH_FrameSemaphores_t ImGui_ImplVulkanH_FrameSemaphores; #pragma once #ifdef __cplusplus @@ -38,7 +41,7 @@ extern "C" { #endif #ifndef IMGUI_DISABLE -#include "cimgui.h" +#include "dcimgui.h" // [Configuration] in order to use a custom Vulkan function loader: // (1) You'll need to disable default Vulkan function prototypes. // We provide a '#define IMGUI_IMPL_VULKAN_NO_PROTOTYPES' convenience configuration flag. @@ -70,19 +73,26 @@ extern "C" #if defined(VK_VERSION_1_3)|| defined(VK_KHR_dynamic_rendering) #define IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING #endif // #if defined(VK_VERSION_1_3)|| defined(VK_KHR_dynamic_rendering) +// Backend uses a small number of descriptors per font atlas + as many as additional calls done to ImGui_ImplVulkan_AddTexture(). +#define IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE (8) // Minimum per atlas + // Initialization data, for ImGui_ImplVulkan_Init() -// - VkDescriptorPool should be created with VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, -// and must contain a pool size large enough to hold an ImGui VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER descriptor. -// - When using dynamic rendering, set UseDynamicRendering=true and fill PipelineRenderingCreateInfo structure. // [Please zero-clear before use!] -typedef struct ImGui_ImplVulkan_InitInfo_t +// - About descriptor pool: +// - A VkDescriptorPool should be created with VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, +// and must contain a pool size large enough to hold a small number of VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER descriptors. +// - As an convenience, by setting DescriptorPoolSize > 0 the backend will create one for you. +// - About dynamic rendering: +// - When using dynamic rendering, set UseDynamicRendering=true and fill PipelineRenderingCreateInfo structure. +struct ImGui_ImplVulkan_InitInfo_t { + uint32_t ApiVersion; // Fill with API version of Instance, e.g. VK_API_VERSION_1_3 or your value of VkApplicationInfo::apiVersion. May be lower than header version (VK_HEADER_VERSION_COMPLETE) VkInstance Instance; VkPhysicalDevice PhysicalDevice; VkDevice Device; uint32_t QueueFamily; VkQueue Queue; - VkDescriptorPool DescriptorPool; // See requirements in note above + VkDescriptorPool DescriptorPool; // See requirements in note above; ignored if using DescriptorPoolSize > 0 VkRenderPass RenderPass; // Ignored if using dynamic rendering uint32_t MinImageCount; // >= 2 uint32_t ImageCount; // >= MinImageCount @@ -92,6 +102,9 @@ typedef struct ImGui_ImplVulkan_InitInfo_t VkPipelineCache PipelineCache; uint32_t Subpass; + // (Optional) Set to create internal descriptor pool instead of using DescriptorPool + uint32_t DescriptorPoolSize; + // (Optional) Dynamic Rendering // Need to explicitly enable VK_KHR_dynamic_rendering extension to use this, even for Vulkan 1.3. bool UseDynamicRendering; @@ -102,18 +115,19 @@ typedef struct ImGui_ImplVulkan_InitInfo_t const VkAllocationCallbacks* Allocator; void (*CheckVkResultFn)(VkResult err); VkDeviceSize MinAllocationSize; // Minimum allocation size. Set to 1024*1024 to satisfy zealous best practices validation layer and waste a little memory. -} ImGui_ImplVulkan_InitInfo; +}; typedef struct ImDrawData_t ImDrawData; // Follow "Getting Started" link and check examples/ folder to learn about using backends! CIMGUI_IMPL_API bool cImGui_ImplVulkan_Init(ImGui_ImplVulkan_InitInfo* info); CIMGUI_IMPL_API void cImGui_ImplVulkan_Shutdown(void); CIMGUI_IMPL_API void cImGui_ImplVulkan_NewFrame(void); -CIMGUI_IMPL_API void cImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer); // Implied pipeline = VK_NULL_HANDLE +CIMGUI_IMPL_API void cImGui_ImplVulkan_RenderDrawData(ImDrawData* draw_data, VkCommandBuffer command_buffer); // Implied pipeline = VK_NULL_HANDLE CIMGUI_IMPL_API void cImGui_ImplVulkan_RenderDrawDataEx(ImDrawData* draw_data, VkCommandBuffer command_buffer, VkPipeline pipeline /* = VK_NULL_HANDLE */); -CIMGUI_IMPL_API bool cImGui_ImplVulkan_CreateFontsTexture(void); -CIMGUI_IMPL_API void cImGui_ImplVulkan_DestroyFontsTexture(void); -CIMGUI_IMPL_API void cImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count); // To override MinImageCount after initialization (e.g. if swap chain is recreated) +CIMGUI_IMPL_API void cImGui_ImplVulkan_SetMinImageCount(uint32_t min_image_count); // To override MinImageCount after initialization (e.g. if swap chain is recreated) + +// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually. +CIMGUI_IMPL_API void cImGui_ImplVulkan_UpdateTexture(ImTextureData* tex); // Register a texture (VkDescriptorSet == ImTextureID) // FIXME: This is experimental in the sense that we are unsure how to best design/tackle this problem @@ -123,23 +137,39 @@ CIMGUI_IMPL_API void cImGui_ImplVulkan_RemoveTexture(VkDescriptorSet descr // Optional: load Vulkan functions with a custom function loader // This is only useful with IMGUI_IMPL_VULKAN_NO_PROTOTYPES / VK_NO_PROTOTYPES -CIMGUI_IMPL_API bool cImGui_ImplVulkan_LoadFunctions(PFN_vkVoidFunction (*loader_func)(const char* function_name, void* user_data)); // Implied user_data = nullptr -CIMGUI_IMPL_API bool cImGui_ImplVulkan_LoadFunctionsEx(PFN_vkVoidFunction (*loader_func)(const char* function_name, void* user_data), void* user_data /* = nullptr */); +CIMGUI_IMPL_API bool cImGui_ImplVulkan_LoadFunctions(uint32_t api_version, PFN_vkVoidFunction (*loader_func)(const char* function_name, void* user_data)); // Implied user_data = nullptr +CIMGUI_IMPL_API bool cImGui_ImplVulkan_LoadFunctionsEx(uint32_t api_version, PFN_vkVoidFunction (*loader_func)(const char* function_name, void* user_data), void* user_data /* = nullptr */); + +// [BETA] Selected render state data shared with callbacks. +// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplVulkan_RenderDrawData() call. +// (Please open an issue if you feel you need access to more data) +struct ImGui_ImplVulkan_RenderState_t +{ + VkCommandBuffer CommandBuffer; + VkPipeline Pipeline; + VkPipelineLayout PipelineLayout; +}; //------------------------------------------------------------------------- // Internal / Miscellaneous Vulkan Helpers -// (Used by example's main.cpp. Used by multi-viewport features. PROBABLY NOT used by your own engine/app.) //------------------------------------------------------------------------- +// Used by example's main.cpp. Used by multi-viewport features. PROBABLY NOT used by your own engine/app. +// // You probably do NOT need to use or care about those functions. // Those functions only exist because: // 1) they facilitate the readability and maintenance of the multiple main.cpp examples files. // 2) the multi-viewport / platform window implementation needs them internally. -// Generally we avoid exposing any kind of superfluous high-level helpers in the bindings, +// Generally we avoid exposing any kind of superfluous high-level helpers in the backends, // but it is too much code to duplicate everywhere so we exceptionally expose them. // -// Your engine/app will likely _already_ have code to setup all that stuff (swap chain, render pass, frame buffers, etc.). -// You may read this code to learn about Vulkan, but it is recommended you use you own custom tailored code to do equivalent work. -// (The ImGui_ImplVulkanH_XXX functions do not interact with any of the state used by the regular ImGui_ImplVulkan_XXX functions) +// Your engine/app will likely _already_ have code to setup all that stuff (swap chain, +// render pass, frame buffers, etc.). You may read this code if you are curious, but +// it is recommended you use you own custom tailored code to do equivalent work. +// +// We don't provide a strong guarantee that we won't change those functions API. +// +// The ImGui_ImplVulkanH_XXX functions should NOT interact with any of the state used +// by the regular ImGui_ImplVulkan_XXX functions). //------------------------------------------------------------------------- typedef struct ImGui_ImplVulkanH_Frame_t ImGui_ImplVulkanH_Frame; @@ -150,12 +180,14 @@ CIMGUI_IMPL_API void cImGui_ImplVulkanH_CreateOrResizeWindow(VkInstance CIMGUI_IMPL_API void cImGui_ImplVulkanH_DestroyWindow(VkInstance instance, VkDevice device, ImGui_ImplVulkanH_Window* wd, const VkAllocationCallbacks* allocator); CIMGUI_IMPL_API VkSurfaceFormatKHR cImGui_ImplVulkanH_SelectSurfaceFormat(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkFormat* request_formats, int request_formats_count, VkColorSpaceKHR request_color_space); CIMGUI_IMPL_API VkPresentModeKHR cImGui_ImplVulkanH_SelectPresentMode(VkPhysicalDevice physical_device, VkSurfaceKHR surface, const VkPresentModeKHR* request_modes, int request_modes_count); +CIMGUI_IMPL_API VkPhysicalDevice cImGui_ImplVulkanH_SelectPhysicalDevice(VkInstance instance); +CIMGUI_IMPL_API uint32_t cImGui_ImplVulkanH_SelectQueueFamilyIndex(VkPhysicalDevice physical_device); CIMGUI_IMPL_API int cImGui_ImplVulkanH_GetMinImageCountFromPresentMode(VkPresentModeKHR present_mode); // Helper structure to hold the data needed by one rendering frame // (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.) // [Please zero-clear before use!] -typedef struct ImGui_ImplVulkanH_Frame_t +struct ImGui_ImplVulkanH_Frame_t { VkCommandPool CommandPool; VkCommandBuffer CommandBuffer; @@ -163,35 +195,35 @@ typedef struct ImGui_ImplVulkanH_Frame_t VkImage Backbuffer; VkImageView BackbufferView; VkFramebuffer Framebuffer; -} ImGui_ImplVulkanH_Frame; +}; -typedef struct ImGui_ImplVulkanH_FrameSemaphores_t +struct ImGui_ImplVulkanH_FrameSemaphores_t { VkSemaphore ImageAcquiredSemaphore; VkSemaphore RenderCompleteSemaphore; -} ImGui_ImplVulkanH_FrameSemaphores; +}; // Helper structure to hold the data needed by one rendering context into one OS window // (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.) -typedef struct ImGui_ImplVulkanH_Window_t +struct ImGui_ImplVulkanH_Window_t { - int Width; - int Height; - VkSwapchainKHR Swapchain; - VkSurfaceKHR Surface; - VkSurfaceFormatKHR SurfaceFormat; - VkPresentModeKHR PresentMode; - VkRenderPass RenderPass; - bool UseDynamicRendering; - bool ClearEnable; - VkClearValue ClearValue; - uint32_t FrameIndex; // Current frame being rendered to (0 <= FrameIndex < FrameInFlightCount) - uint32_t ImageCount; // Number of simultaneous in-flight frames (returned by vkGetSwapchainImagesKHR, usually derived from min_image_count) - uint32_t SemaphoreCount; // Number of simultaneous in-flight frames + 1, to be able to use it in vkAcquireNextImageKHR - uint32_t SemaphoreIndex; // Current set of swapchain wait semaphores we're using (needs to be distinct from per frame data) - ImGui_ImplVulkanH_Frame* Frames; - ImGui_ImplVulkanH_FrameSemaphores* FrameSemaphores; -} ImGui_ImplVulkanH_Window; + int Width; + int Height; + VkSwapchainKHR Swapchain; + VkSurfaceKHR Surface; + VkSurfaceFormatKHR SurfaceFormat; + VkPresentModeKHR PresentMode; + VkRenderPass RenderPass; + bool UseDynamicRendering; + bool ClearEnable; + VkClearValue ClearValue; + uint32_t FrameIndex; // Current frame being rendered to (0 <= FrameIndex < FrameInFlightCount) + uint32_t ImageCount; // Number of simultaneous in-flight frames (returned by vkGetSwapchainImagesKHR, usually derived from min_image_count) + uint32_t SemaphoreCount; // Number of simultaneous in-flight frames + 1, to be able to use it in vkAcquireNextImageKHR + uint32_t SemaphoreIndex; // Current set of swapchain wait semaphores we're using (needs to be distinct from per frame data) + ImVector Frames; + ImVector FrameSemaphores; +}; #endif// #ifndef IMGUI_DISABLE #ifdef __cplusplus } // End of extern "C" block diff --git a/src/cached/cimgui_impl_vulkan.json b/src/cached/dcimgui_impl_vulkan.json similarity index 86% rename from src/cached/cimgui_impl_vulkan.json rename to src/cached/dcimgui_impl_vulkan.json index d841188..647915d 100644 --- a/src/cached/cimgui_impl_vulkan.json +++ b/src/cached/dcimgui_impl_vulkan.json @@ -11,7 +11,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 51 + "line": 50 } }, { @@ -25,7 +25,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 54 + "line": 53 } }, { @@ -39,7 +39,19 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 64 + "line": 63 + } + }, + { + "name": "IMGUI_IMPL_VULKAN_MINIMUM_IMAGE_SAMPLER_POOL_SIZE", + "content": "8", + "comments": { + "attached": "// Minimum per atlas" + }, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 67 } } ], @@ -54,6 +66,26 @@ "forward_declaration": false, "is_anonymous": false, "fields": [ + { + "name": "ApiVersion", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "uint32_t", + "description": { + "kind": "User", + "name": "uint32_t" + } + }, + "comments": { + "attached": "// Fill with API version of Instance, e.g. VK_API_VERSION_1_3 or your value of VkApplicationInfo::apiVersion. May be lower than header version (VK_HEADER_VERSION_COMPLETE)" + }, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 79 + } + }, { "name": "Instance", "is_array": false, @@ -68,7 +100,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 74 + "line": 80 } }, { @@ -85,7 +117,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 75 + "line": 81 } }, { @@ -102,7 +134,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 76 + "line": 82 } }, { @@ -119,7 +151,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 77 + "line": 83 } }, { @@ -136,7 +168,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 78 + "line": 84 } }, { @@ -151,12 +183,12 @@ } }, "comments": { - "attached": "// See requirements in note above" + "attached": "// See requirements in note above; ignored if using DescriptorPoolSize > 0" }, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 79 + "line": 85 } }, { @@ -176,7 +208,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 80 + "line": 86 } }, { @@ -196,7 +228,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 81 + "line": 87 } }, { @@ -216,7 +248,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 82 + "line": 88 } }, { @@ -236,7 +268,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 83 + "line": 89 } }, { @@ -258,7 +290,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 86 + "line": 92 } }, { @@ -275,7 +307,29 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 87 + "line": 93 + } + }, + { + "name": "DescriptorPoolSize", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "uint32_t", + "description": { + "kind": "User", + "name": "uint32_t" + } + }, + "comments": { + "preceding": [ + "// (Optional) Set to create internal descriptor pool instead of using DescriptorPool" + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 96 } }, { @@ -298,7 +352,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 91 + "line": 100 } }, { @@ -321,7 +375,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 93 + "line": 102 } }, { @@ -349,7 +403,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 97 + "line": 106 } }, { @@ -430,23 +484,26 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 99 + "line": 108 } } ], "comments": { "preceding": [ "// Initialization data, for ImGui_ImplVulkan_Init()", - "// - VkDescriptorPool should be created with VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT,", - "// and must contain a pool size large enough to hold an ImGui VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER descriptor.", - "// - When using dynamic rendering, set UseDynamicRendering=true and fill PipelineRenderingCreateInfo structure.", - "// [Please zero-clear before use!]" + "// [Please zero-clear before use!]", + "// - About descriptor pool:", + "// - A VkDescriptorPool should be created with VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT,", + "// and must contain a pool size large enough to hold a small number of VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER descriptors.", + "// - As an convenience, by setting DescriptorPoolSize > 0 the backend will create one for you.", + "// - About dynamic rendering:", + "// - When using dynamic rendering, set UseDynamicRendering=true and fill PipelineRenderingCreateInfo structure." ] }, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 72 + "line": 77 } }, { @@ -463,6 +520,79 @@ "line": 1 } }, + { + "name": "ImGui_ImplVulkan_RenderState", + "original_fully_qualified_name": "ImGui_ImplVulkan_RenderState", + "kind": "struct", + "by_value": false, + "forward_declaration": false, + "is_anonymous": false, + "fields": [ + { + "name": "CommandBuffer", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "VkCommandBuffer", + "description": { + "kind": "User", + "name": "VkCommandBuffer" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 136 + } + }, + { + "name": "Pipeline", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "VkPipeline", + "description": { + "kind": "User", + "name": "VkPipeline" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 137 + } + }, + { + "name": "PipelineLayout", + "is_array": false, + "is_anonymous": false, + "type": { + "declaration": "VkPipelineLayout", + "description": { + "kind": "User", + "name": "VkPipelineLayout" + } + }, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 138 + } + } + ], + "comments": { + "preceding": [ + "// [BETA] Selected render state data shared with callbacks.", + "// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplVulkan_RenderDrawData() call.", + "// (Please open an issue if you feel you need access to more data)" + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 134 + } + }, { "name": "ImGui_ImplVulkanH_Frame", "original_fully_qualified_name": "ImGui_ImplVulkanH_Frame", @@ -485,7 +615,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 152 + "line": 180 } }, { @@ -502,7 +632,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 153 + "line": 181 } }, { @@ -519,7 +649,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 154 + "line": 182 } }, { @@ -536,7 +666,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 155 + "line": 183 } }, { @@ -553,7 +683,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 156 + "line": 184 } }, { @@ -570,7 +700,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 157 + "line": 185 } } ], @@ -584,7 +714,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 150 + "line": 178 } }, { @@ -609,7 +739,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 162 + "line": 190 } }, { @@ -626,14 +756,14 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 163 + "line": 191 } } ], "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 160 + "line": 188 } }, { @@ -658,7 +788,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 170 + "line": 198 } }, { @@ -675,7 +805,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 171 + "line": 199 } }, { @@ -692,7 +822,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 172 + "line": 200 } }, { @@ -709,7 +839,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 173 + "line": 201 } }, { @@ -726,7 +856,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 174 + "line": 202 } }, { @@ -743,7 +873,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 175 + "line": 203 } }, { @@ -760,7 +890,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 176 + "line": 204 } }, { @@ -777,7 +907,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 177 + "line": 205 } }, { @@ -794,7 +924,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 178 + "line": 206 } }, { @@ -811,7 +941,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 179 + "line": 207 } }, { @@ -831,7 +961,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 180 + "line": 208 } }, { @@ -851,7 +981,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 181 + "line": 209 } }, { @@ -871,7 +1001,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 182 + "line": 210 } }, { @@ -891,7 +1021,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 183 + "line": 211 } }, { @@ -899,19 +1029,16 @@ "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImGui_ImplVulkanH_Frame*", + "declaration": "ImVector", "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGui_ImplVulkanH_Frame" - } + "kind": "User", + "name": "ImVector" } }, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 184 + "line": 212 } }, { @@ -919,19 +1046,16 @@ "is_array": false, "is_anonymous": false, "type": { - "declaration": "ImGui_ImplVulkanH_FrameSemaphores*", + "declaration": "ImVector", "description": { - "kind": "Pointer", - "inner_type": { - "kind": "User", - "name": "ImGui_ImplVulkanH_FrameSemaphores" - } + "kind": "User", + "name": "ImVector" } }, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 185 + "line": 213 } } ], @@ -944,7 +1068,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 168 + "line": 196 } } ], @@ -982,6 +1106,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Follow \"Getting Started\" link and check examples/ folder to learn about using backends!" @@ -990,7 +1115,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 103 + "line": 112 } }, { @@ -1009,10 +1134,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 104 + "line": 113 } }, { @@ -1031,10 +1157,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 105 + "line": 114 } }, { @@ -1083,13 +1210,14 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// Implied pipeline = VK_NULL_HANDLE" }, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 106 + "line": 115 } }, { @@ -1152,54 +1280,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 106 - } - }, - { - "name": "cImGui_ImplVulkan_CreateFontsTexture", - "original_fully_qualified_name": "ImGui_ImplVulkan_CreateFontsTexture", - "return_type": { - "declaration": "bool", - "description": { - "kind": "Builtin", - "builtin_type": "bool" - } - }, - "arguments": [], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "is_internal": false, - "source_location": { - "filename": "imgui_impl_vulkan.h", - "line": 107 - } - }, - { - "name": "cImGui_ImplVulkan_DestroyFontsTexture", - "original_fully_qualified_name": "ImGui_ImplVulkan_DestroyFontsTexture", - "return_type": { - "declaration": "void", - "description": { - "kind": "Builtin", - "builtin_type": "void" - } - }, - "arguments": [], - "is_default_argument_helper": false, - "is_manual_helper": false, - "is_imstr_helper": false, - "has_imstr_helper": false, - "is_unformatted_helper": false, - "is_internal": false, - "source_location": { - "filename": "imgui_impl_vulkan.h", - "line": 108 + "line": 115 } }, { @@ -1232,13 +1317,59 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "attached": "// To override MinImageCount after initialization (e.g. if swap chain is recreated)" }, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 109 + "line": 116 + } + }, + { + "name": "cImGui_ImplVulkan_UpdateTexture", + "original_fully_qualified_name": "ImGui_ImplVulkan_UpdateTexture", + "return_type": { + "declaration": "void", + "description": { + "kind": "Builtin", + "builtin_type": "void" + } + }, + "arguments": [ + { + "name": "tex", + "type": { + "declaration": "ImTextureData*", + "description": { + "kind": "Pointer", + "inner_type": { + "kind": "User", + "name": "ImTextureData" + } + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "comments": { + "preceding": [ + "// (Advanced) Use e.g. if you need to precisely control the timing of texture updates (e.g. for staged rendering), by setting ImDrawData::Textures = NULL to handle this manually." + ] + }, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 119 } }, { @@ -1297,6 +1428,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Register a texture (VkDescriptorSet == ImTextureID)", @@ -1307,7 +1439,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 114 + "line": 124 } }, { @@ -1340,10 +1472,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 115 + "line": 125 } }, { @@ -1357,6 +1490,19 @@ } }, "arguments": [ + { + "name": "api_version", + "type": { + "declaration": "uint32_t", + "description": { + "kind": "User", + "name": "uint32_t" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, { "name": "loader_func", "type": { @@ -1460,6 +1606,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Optional: load Vulkan functions with a custom function loader", @@ -1470,7 +1617,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 119 + "line": 129 } }, { @@ -1484,6 +1631,19 @@ } }, "arguments": [ + { + "name": "api_version", + "type": { + "declaration": "uint32_t", + "description": { + "kind": "User", + "name": "uint32_t" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + }, { "name": "loader_func", "type": { @@ -1604,10 +1764,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 119 + "line": 129 } }, { @@ -1753,6 +1914,7 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "comments": { "preceding": [ "// Helpers" @@ -1761,7 +1923,7 @@ "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 141 + "line": 167 } }, { @@ -1842,10 +2004,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 142 + "line": 168 } }, { @@ -1936,10 +2099,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 143 + "line": 169 } }, { @@ -2017,10 +2181,85 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 144 + "line": 170 + } + }, + { + "name": "cImGui_ImplVulkanH_SelectPhysicalDevice", + "original_fully_qualified_name": "ImGui_ImplVulkanH_SelectPhysicalDevice", + "return_type": { + "declaration": "VkPhysicalDevice", + "description": { + "kind": "User", + "name": "VkPhysicalDevice" + } + }, + "arguments": [ + { + "name": "instance", + "type": { + "declaration": "VkInstance", + "description": { + "kind": "User", + "name": "VkInstance" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 171 + } + }, + { + "name": "cImGui_ImplVulkanH_SelectQueueFamilyIndex", + "original_fully_qualified_name": "ImGui_ImplVulkanH_SelectQueueFamilyIndex", + "return_type": { + "declaration": "uint32_t", + "description": { + "kind": "User", + "name": "uint32_t" + } + }, + "arguments": [ + { + "name": "physical_device", + "type": { + "declaration": "VkPhysicalDevice", + "description": { + "kind": "User", + "name": "VkPhysicalDevice" + } + }, + "is_array": false, + "is_varargs": false, + "is_instance_pointer": false + } + ], + "is_default_argument_helper": false, + "is_manual_helper": false, + "is_imstr_helper": false, + "has_imstr_helper": false, + "is_unformatted_helper": false, + "is_static": false, + "is_internal": false, + "source_location": { + "filename": "imgui_impl_vulkan.h", + "line": 172 } }, { @@ -2053,10 +2292,11 @@ "is_imstr_helper": false, "has_imstr_helper": false, "is_unformatted_helper": false, + "is_static": false, "is_internal": false, "source_location": { "filename": "imgui_impl_vulkan.h", - "line": 145 + "line": 173 } } ] diff --git a/src/cached/dcimgui_impl_vulkan_imconfig.json b/src/cached/dcimgui_impl_vulkan_imconfig.json new file mode 100644 index 0000000..c284c5c --- /dev/null +++ b/src/cached/dcimgui_impl_vulkan_imconfig.json @@ -0,0 +1,7 @@ +{ + "defines": [], + "enums": [], + "typedefs": [], + "structs": [], + "functions": [] +} \ No newline at end of file