Skip to content

Commit 0ea06bb

Browse files
authored
Merge pull request #419 from ImGuiNET/f/upgrade
Upgrade to 1.89.7
2 parents 159dd28 + 6e3a80a commit 0ea06bb

File tree

15 files changed

+47752
-47502
lines changed

15 files changed

+47752
-47502
lines changed

deps/cimgui/linux-x64/cimgui.so

4.48 KB
Binary file not shown.

deps/cimgui/osx/cimgui.dylib

640 Bytes
Binary file not shown.

deps/cimgui/win-arm64/cimgui.dll

2 KB
Binary file not shown.

deps/cimgui/win-x64/cimgui.dll

0 Bytes
Binary file not shown.

deps/cimgui/win-x86/cimgui.dll

512 Bytes
Binary file not shown.

src/CodeGenerator/definitions/cimgui/definitions.json

Lines changed: 36980 additions & 36889 deletions
Large diffs are not rendered by default.

src/CodeGenerator/definitions/cimgui/structs_and_enums.json

Lines changed: 10690 additions & 10583 deletions
Large diffs are not rendered by default.

src/ImGui.NET/Generated/ImGui.gen.cs

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,11 @@ public static void BeginGroup()
515515
{
516516
ImGuiNative.igBeginGroup();
517517
}
518+
public static bool BeginItemTooltip()
519+
{
520+
byte ret = ImGuiNative.igBeginItemTooltip();
521+
return ret != 0;
522+
}
518523
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP2_1_OR_GREATER
519524
public static bool BeginListBox(ReadOnlySpan<char> label)
520525
#else
@@ -11855,14 +11860,40 @@ public static bool SetDragDropPayload(string type, IntPtr data, uint sz, ImGuiCo
1185511860
}
1185611861
return ret != 0;
1185711862
}
11858-
public static void SetItemAllowOverlap()
11859-
{
11860-
ImGuiNative.igSetItemAllowOverlap();
11861-
}
1186211863
public static void SetItemDefaultFocus()
1186311864
{
1186411865
ImGuiNative.igSetItemDefaultFocus();
1186511866
}
11867+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP2_1_OR_GREATER
11868+
public static void SetItemTooltip(ReadOnlySpan<char> fmt)
11869+
#else
11870+
public static void SetItemTooltip(string fmt)
11871+
#endif
11872+
{
11873+
byte* native_fmt;
11874+
int fmt_byteCount = 0;
11875+
if (fmt != null)
11876+
{
11877+
fmt_byteCount = Encoding.UTF8.GetByteCount(fmt);
11878+
if (fmt_byteCount > Util.StackAllocationSizeLimit)
11879+
{
11880+
native_fmt = Util.Allocate(fmt_byteCount + 1);
11881+
}
11882+
else
11883+
{
11884+
byte* native_fmt_stackBytes = stackalloc byte[fmt_byteCount + 1];
11885+
native_fmt = native_fmt_stackBytes;
11886+
}
11887+
int native_fmt_offset = Util.GetUtf8(fmt, native_fmt, fmt_byteCount);
11888+
native_fmt[native_fmt_offset] = 0;
11889+
}
11890+
else { native_fmt = null; }
11891+
ImGuiNative.igSetItemTooltip(native_fmt);
11892+
if (fmt_byteCount > Util.StackAllocationSizeLimit)
11893+
{
11894+
Util.Free(native_fmt);
11895+
}
11896+
}
1186611897
public static void SetKeyboardFocusHere()
1186711898
{
1186811899
int offset = 0;
@@ -11886,6 +11917,10 @@ public static void SetNextFrameWantCaptureMouse(bool want_capture_mouse)
1188611917
byte native_want_capture_mouse = want_capture_mouse ? (byte)1 : (byte)0;
1188711918
ImGuiNative.igSetNextFrameWantCaptureMouse(native_want_capture_mouse);
1188811919
}
11920+
public static void SetNextItemAllowOverlap()
11921+
{
11922+
ImGuiNative.igSetNextItemAllowOverlap();
11923+
}
1188911924
public static void SetNextItemOpen(bool is_open)
1189011925
{
1189111926
byte native_is_open = is_open ? (byte)1 : (byte)0;

src/ImGui.NET/Generated/ImGuiHoveredFlags.gen.cs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ public enum ImGuiHoveredFlags
1111
DockHierarchy = 16,
1212
AllowWhenBlockedByPopup = 32,
1313
AllowWhenBlockedByActiveItem = 128,
14-
AllowWhenOverlapped = 256,
15-
AllowWhenDisabled = 512,
16-
NoNavOverride = 1024,
17-
RectOnly = 416,
14+
AllowWhenOverlappedByItem = 256,
15+
AllowWhenOverlappedByWindow = 512,
16+
AllowWhenDisabled = 1024,
17+
NoNavOverride = 2048,
18+
AllowWhenOverlapped = 768,
19+
RectOnly = 928,
1820
RootAndChildWindows = 3,
19-
DelayNormal = 2048,
20-
DelayShort = 4096,
21-
NoSharedDelay = 8192,
21+
ForTooltip = 2048,
22+
Stationary = 4096,
23+
DelayNone = 8192,
24+
DelayShort = 16384,
25+
DelayNormal = 32768,
26+
NoSharedDelay = 65536,
2227
}
2328
}

src/ImGui.NET/Generated/ImGuiIO.gen.cs

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ public unsafe partial struct ImGuiIO
1414
public float IniSavingRate;
1515
public byte* IniFilename;
1616
public byte* LogFilename;
17-
public float MouseDoubleClickTime;
18-
public float MouseDoubleClickMaxDist;
19-
public float MouseDragThreshold;
20-
public float KeyRepeatDelay;
21-
public float KeyRepeatRate;
22-
public float HoverDelayNormal;
23-
public float HoverDelayShort;
2417
public void* UserData;
2518
public ImFontAtlas* Fonts;
2619
public float FontGlobalScale;
@@ -44,9 +37,15 @@ public unsafe partial struct ImGuiIO
4437
public byte ConfigWindowsResizeFromEdges;
4538
public byte ConfigWindowsMoveFromTitleBarOnly;
4639
public float ConfigMemoryCompactTimer;
40+
public float MouseDoubleClickTime;
41+
public float MouseDoubleClickMaxDist;
42+
public float MouseDragThreshold;
43+
public float KeyRepeatDelay;
44+
public float KeyRepeatRate;
4745
public byte ConfigDebugBeginReturnValueOnce;
4846
public byte ConfigDebugBeginReturnValueLoop;
4947
public byte ConfigDebugIgnoreFocusLoss;
48+
public byte ConfigDebugIniSettings;
5049
public byte* BackendPlatformName;
5150
public byte* BackendRendererName;
5251
public void* BackendPlatformUserData;
@@ -785,13 +784,6 @@ public unsafe partial struct ImGuiIOPtr
785784
public ref float IniSavingRate => ref Unsafe.AsRef<float>(&NativePtr->IniSavingRate);
786785
public NullTerminatedString IniFilename => new NullTerminatedString(NativePtr->IniFilename);
787786
public NullTerminatedString LogFilename => new NullTerminatedString(NativePtr->LogFilename);
788-
public ref float MouseDoubleClickTime => ref Unsafe.AsRef<float>(&NativePtr->MouseDoubleClickTime);
789-
public ref float MouseDoubleClickMaxDist => ref Unsafe.AsRef<float>(&NativePtr->MouseDoubleClickMaxDist);
790-
public ref float MouseDragThreshold => ref Unsafe.AsRef<float>(&NativePtr->MouseDragThreshold);
791-
public ref float KeyRepeatDelay => ref Unsafe.AsRef<float>(&NativePtr->KeyRepeatDelay);
792-
public ref float KeyRepeatRate => ref Unsafe.AsRef<float>(&NativePtr->KeyRepeatRate);
793-
public ref float HoverDelayNormal => ref Unsafe.AsRef<float>(&NativePtr->HoverDelayNormal);
794-
public ref float HoverDelayShort => ref Unsafe.AsRef<float>(&NativePtr->HoverDelayShort);
795787
public IntPtr UserData { get => (IntPtr)NativePtr->UserData; set => NativePtr->UserData = (void*)value; }
796788
public ImFontAtlasPtr Fonts => new ImFontAtlasPtr(NativePtr->Fonts);
797789
public ref float FontGlobalScale => ref Unsafe.AsRef<float>(&NativePtr->FontGlobalScale);
@@ -815,9 +807,15 @@ public unsafe partial struct ImGuiIOPtr
815807
public ref bool ConfigWindowsResizeFromEdges => ref Unsafe.AsRef<bool>(&NativePtr->ConfigWindowsResizeFromEdges);
816808
public ref bool ConfigWindowsMoveFromTitleBarOnly => ref Unsafe.AsRef<bool>(&NativePtr->ConfigWindowsMoveFromTitleBarOnly);
817809
public ref float ConfigMemoryCompactTimer => ref Unsafe.AsRef<float>(&NativePtr->ConfigMemoryCompactTimer);
810+
public ref float MouseDoubleClickTime => ref Unsafe.AsRef<float>(&NativePtr->MouseDoubleClickTime);
811+
public ref float MouseDoubleClickMaxDist => ref Unsafe.AsRef<float>(&NativePtr->MouseDoubleClickMaxDist);
812+
public ref float MouseDragThreshold => ref Unsafe.AsRef<float>(&NativePtr->MouseDragThreshold);
813+
public ref float KeyRepeatDelay => ref Unsafe.AsRef<float>(&NativePtr->KeyRepeatDelay);
814+
public ref float KeyRepeatRate => ref Unsafe.AsRef<float>(&NativePtr->KeyRepeatRate);
818815
public ref bool ConfigDebugBeginReturnValueOnce => ref Unsafe.AsRef<bool>(&NativePtr->ConfigDebugBeginReturnValueOnce);
819816
public ref bool ConfigDebugBeginReturnValueLoop => ref Unsafe.AsRef<bool>(&NativePtr->ConfigDebugBeginReturnValueLoop);
820817
public ref bool ConfigDebugIgnoreFocusLoss => ref Unsafe.AsRef<bool>(&NativePtr->ConfigDebugIgnoreFocusLoss);
818+
public ref bool ConfigDebugIniSettings => ref Unsafe.AsRef<bool>(&NativePtr->ConfigDebugIniSettings);
821819
public NullTerminatedString BackendPlatformName => new NullTerminatedString(NativePtr->BackendPlatformName);
822820
public NullTerminatedString BackendRendererName => new NullTerminatedString(NativePtr->BackendRendererName);
823821
public IntPtr BackendPlatformUserData { get => (IntPtr)NativePtr->BackendPlatformUserData; set => NativePtr->BackendPlatformUserData = (void*)value; }

0 commit comments

Comments
 (0)