Dalamud/imgui/Dalamud.Bindings.ImGui
CMDRNuffin db5f27518f Prevent ImGui text box methods from cloning unchanged input every frame
The overloads taking a string by ref for the input text of the various
ways to display a text box would all take the input string, copy it into
a buffer for imgui and then unconditionally produce a new string once
the imgui call returned. Now we only create a new string when the return
value of the native function actually indicates that the text changed.

This makes the GC happy, and also users like me who like to make the GC
happy.

Other side effects: The assumption that the reference doesn't change if
the method returns false, which is very reasonable IMO, is now correct.
2025-12-19 01:24:43 +01:00
..
Custom Prevent ImGui text box methods from cloning unchanged input every frame 2025-12-19 01:24:43 +01:00
Generated Regenerate bindings 2025-07-20 01:24:17 +02:00
Internals/Functions Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
Manual/Functions Regenerate bindings 2025-07-20 01:24:17 +02:00
Dalamud.Bindings.ImGui.csproj Use NuGet CPM to ensure consistent package versions 2025-10-15 22:58:26 +02:00
Dalamud.Bindings.ImGui.csproj.DotSettings Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGui.cs Load imgui.so if available for external tools running imgui on native (#2331) 2025-08-03 18:25:30 -07:00
ImGuiP.cs move bindings around 2025-04-06 21:08:34 +02:00
ImTextureID.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImU8String.cs Fix NET14 Spans defaulting to ReadOnlySpan 2025-11-30 12:48:49 -08:00
ImVector.cs Update InputHandler to match changes in imgui_impl_win32.cpp 2025-08-12 16:18:49 +09:00
LICENSE.txt move bindings around 2025-04-06 21:08:34 +02:00
STBTexteditStatePtr.cs move bindings around 2025-04-06 21:08:34 +02:00