Dalamud/imgui/Dalamud.Bindings.ImGui/Custom
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
..
Generated Work around ActiveIdUsingKeyInputMask having a wrong type 2025-08-09 08:23:37 +09:00
ImDrawCallbackEnum.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImDrawList.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImFont.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImFontAtlas.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImFontGlyphRangesBuilder.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGui.ColorEditPicker.cs Make ImU8String not IDisposable 2025-08-09 08:23:38 +09:00
ImGui.ComboAndList.cs Make ImU8String not IDisposable 2025-08-09 08:23:38 +09:00
ImGui.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGui.DragScalar.cs Fix NET14 Spans defaulting to ReadOnlySpan 2025-11-30 12:48:49 -08:00
ImGui.InputScalar.cs Fix NET14 Spans defaulting to ReadOnlySpan 2025-11-30 12:48:49 -08:00
ImGui.Manual.cs Prevent ImGui text box methods from cloning unchanged input every frame 2025-12-19 01:24:43 +01:00
ImGui.Misc.cs Make ImU8String not IDisposable 2025-08-09 08:23:38 +09:00
ImGui.Plot.cs Make ImU8String not IDisposable 2025-08-09 08:23:38 +09:00
ImGui.SliderScalar.cs Fix NET14 Spans defaulting to ReadOnlySpan 2025-11-30 12:48:49 -08:00
ImGui.StringReturns.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGui.Text.cs Make ImU8String not IDisposable 2025-08-09 08:23:38 +09:00
ImGui.Widgets.cs Add cond=0 default to SetDragDropPayload 2025-08-09 10:14:30 +09:00
ImGuiInputTextCallbackData.Custom.cs Use custom GetPinnableReference instead of deferring it to Span (#2345) 2025-08-06 09:03:50 -07:00
ImGuiIO.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGuiNative.Custom.cs Fix InputTextEx return type 2025-08-09 09:58:14 +09:00
ImGuiP.Misc.cs Make ImU8String not IDisposable 2025-08-09 08:23:38 +09:00
ImGuiP.Plot.cs Make ImU8String not IDisposable 2025-08-09 08:23:38 +09:00
ImGuiP.StringReturns.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGuiP.Text.cs Make ImU8String not IDisposable 2025-08-09 08:23:38 +09:00
ImGuiPayload.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGuiPNative.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGuiStorage.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGuiTextBuffer.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
ImGuiTextFilter.Custom.cs Fix ImGuiTextFilter function types 2025-08-09 08:23:37 +09:00
ImGuiWindow.Custom.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00
PointerTuple.cs Manual overloads for ImGui functions accepting text (#2319) 2025-08-04 11:14:00 -07:00