Pre-submission Checklist
Hexa.NET.ImGui Version
1.91.9b
Bug Description
References to STB_TexteditState result in an empty struct. The actual compiled DLL has a full STB_TexteditState struct that isn't exported.
Steps to Reproduce
- Try to use
ImGuiInputTextStatePtr or ImGuiInputTextState* where you try to access Stb.SelectStart (offset 0x4 from struct start of STB_TexteditState)
Expected Behavior
Stb.SelectStart, Stb.SelectEnd, Stb.Cursor is accessible.
Code Sample
public static void SanitizeSelectionRange(this ImGuiInputTextStatePtr self)
{
ref var s = ref self.Stb.SelectStart;
ref var e = ref self.Stb.SelectEnd;
ref var c = ref self.Stb.Cursor;
s = Math.Clamp(s, 0, self.TextLen);
e = Math.Clamp(e, 0, self.TextLen);
c = Math.Clamp(c, 0, self.TextLen);
if (s == e)
s = e = c;
if (s > e)
(s, e) = (e, s);
}
Platform
Windows
.NET Version
.net 10
Additional Context
https://github.com/ocornut/imgui/blob/v1.91.9b-docking/imstb_textedit.h#L329-L365 is not exported to https://github.com/JunaMeinhold/cimgui/blob/docking_inter/cimgui.h#L2119-L2120
Possbily an upstream issue due to fork: https://github.com/cimgui/cimgui/blob/docking_inter/cimgui.h#L2129-L2130
Pre-submission Checklist
Hexa.NET.ImGui Version
1.91.9b
Bug Description
References to
STB_TexteditStateresult in an empty struct. The actual compiled DLL has a fullSTB_TexteditStatestruct that isn't exported.Steps to Reproduce
ImGuiInputTextStatePtrorImGuiInputTextState*where you try to accessStb.SelectStart(offset 0x4 from struct start ofSTB_TexteditState)Expected Behavior
Stb.SelectStart,Stb.SelectEnd,Stb.Cursoris accessible.Code Sample
Platform
Windows
.NET Version
.net 10
Additional Context
https://github.com/ocornut/imgui/blob/v1.91.9b-docking/imstb_textedit.h#L329-L365 is not exported to https://github.com/JunaMeinhold/cimgui/blob/docking_inter/cimgui.h#L2119-L2120
Possbily an upstream issue due to fork: https://github.com/cimgui/cimgui/blob/docking_inter/cimgui.h#L2129-L2130