restructure

This commit is contained in:
Soreepeong 2025-07-26 22:33:38 +09:00
parent 3381ac1c7d
commit b53a97408b
263 changed files with 2221 additions and 1191 deletions

View file

@ -6,7 +6,7 @@ namespace Dalamud.Bindings.ImGui;
[SuppressMessage("ReSharper", "InconsistentNaming")]
public static unsafe partial class ImGui
{
public static bool Begin(Utf8Buffer name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
public static bool Begin(ImU8String name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
{
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
fixed (bool* openPtr = &open)
@ -17,7 +17,7 @@ public static unsafe partial class ImGui
}
}
public static bool Begin(Utf8Buffer name, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
public static bool Begin(ImU8String name, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
{
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
{
@ -27,7 +27,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginChild(Utf8Buffer strId, Vector2 size = default, bool border = false, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
public static bool BeginChild(ImU8String strId, Vector2 size = default, bool border = false, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
{
@ -40,7 +40,7 @@ public static unsafe partial class ImGui
public static bool BeginChild(uint id, Vector2 size = default, bool border = false, ImGuiWindowFlags flags = ImGuiWindowFlags.None) =>
ImGuiNative.BeginChild(id, size, border ? (byte)1 : (byte)0, flags) != 0;
public static bool BeginCombo(Utf8Buffer label, Utf8Buffer previewValue, ImGuiComboFlags flags = ImGuiComboFlags.None)
public static bool BeginCombo(ImU8String label, ImU8String previewValue, ImGuiComboFlags flags = ImGuiComboFlags.None)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
fixed (byte* previewValuePtr = &previewValue.GetPinnableNullTerminatedReference())
@ -52,7 +52,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginListBox(Utf8Buffer label, Vector2 size = default)
public static bool BeginListBox(ImU8String label, Vector2 size = default)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -62,7 +62,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginMenu(Utf8Buffer label, bool enabled = true)
public static bool BeginMenu(ImU8String label, bool enabled = true)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -72,7 +72,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginPopup(Utf8Buffer strId, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
public static bool BeginPopup(ImU8String strId, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
{
@ -82,7 +82,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginPopupContextItem(Utf8Buffer strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault)
public static bool BeginPopupContextItem(ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
{
@ -92,7 +92,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginPopupContextWindow(Utf8Buffer strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault)
public static bool BeginPopupContextWindow(ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
{
@ -102,7 +102,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginPopupContextVoid(Utf8Buffer strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault)
public static bool BeginPopupContextVoid(ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
{
@ -113,7 +113,7 @@ public static unsafe partial class ImGui
}
public static bool BeginPopupModal(
Utf8Buffer name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
ImU8String name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
{
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
fixed (bool* openPtr = &open)
@ -124,7 +124,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginPopupModal(Utf8Buffer name, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
public static bool BeginPopupModal(ImU8String name, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
{
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
{
@ -134,7 +134,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginTabBar(Utf8Buffer strId, ImGuiTabBarFlags flags = ImGuiTabBarFlags.None)
public static bool BeginTabBar(ImU8String strId, ImGuiTabBarFlags flags = ImGuiTabBarFlags.None)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
{
@ -145,7 +145,7 @@ public static unsafe partial class ImGui
}
public static bool BeginTabItem(
Utf8Buffer label, ref bool pOpen, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None)
ImU8String label, ref bool pOpen, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
fixed (bool* pOpenPtr = &pOpen)
@ -156,7 +156,7 @@ public static unsafe partial class ImGui
}
}
public static bool BeginTabItem(Utf8Buffer label, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None)
public static bool BeginTabItem(ImU8String label, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -167,7 +167,7 @@ public static unsafe partial class ImGui
}
public static bool BeginTable(
Utf8Buffer strId, int column, ImGuiTableFlags flags = ImGuiTableFlags.None, Vector2 outerSize = default,
ImU8String strId, int column, ImGuiTableFlags flags = ImGuiTableFlags.None, Vector2 outerSize = default,
float innerWidth = 0.0f)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
@ -178,7 +178,7 @@ public static unsafe partial class ImGui
}
}
public static bool Button(Utf8Buffer label, Vector2 size = default)
public static bool Button(ImU8String label, Vector2 size = default)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -188,7 +188,7 @@ public static unsafe partial class ImGui
}
}
public static bool Checkbox(Utf8Buffer label, ref bool v)
public static bool Checkbox(ImU8String label, ref bool v)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
fixed (bool* vPtr = &v)
@ -199,7 +199,7 @@ public static unsafe partial class ImGui
}
}
public static bool CheckboxFlags<T>(Utf8Buffer label, ref T flags, T flagsValue)
public static bool CheckboxFlags<T>(ImU8String label, ref T flags, T flagsValue)
where T : IBinaryInteger<T>
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
@ -234,7 +234,7 @@ public static unsafe partial class ImGui
}
public static bool CollapsingHeader(
Utf8Buffer label, ref bool visible, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None)
ImU8String label, ref bool visible, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
fixed (bool* visiblePtr = &visible)
@ -245,7 +245,7 @@ public static unsafe partial class ImGui
}
}
public static bool CollapsingHeader(Utf8Buffer label, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None)
public static bool CollapsingHeader(ImU8String label, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -256,7 +256,7 @@ public static unsafe partial class ImGui
}
public static bool ColorButton(
Utf8Buffer descId, in Vector4 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None,
ImU8String descId, in Vector4 col, ImGuiColorEditFlags flags = ImGuiColorEditFlags.None,
Vector2 size = default)
{
fixed (byte* descIdPtr = &descId.GetPinnableNullTerminatedReference())
@ -267,7 +267,7 @@ public static unsafe partial class ImGui
}
}
public static void Columns(int count = 1, Utf8Buffer id = default, bool border = true)
public static void Columns(int count = 1, ImU8String id = default, bool border = true)
{
fixed (byte* idPtr = &id.GetPinnableNullTerminatedReference())
ImGuiNative.Columns(count, idPtr, border ? (byte)1 : (byte)0);
@ -275,7 +275,7 @@ public static unsafe partial class ImGui
}
public static bool DebugCheckVersionAndDataLayout(
Utf8Buffer versionStr, nuint szIo, nuint szStyle, nuint szVec2, nuint szVec4, nuint szDrawVert,
ImU8String versionStr, nuint szIo, nuint szStyle, nuint szVec2, nuint szVec4, nuint szDrawVert,
nuint szDrawIdx)
{
fixed (byte* versionPtr = &versionStr.GetPinnableNullTerminatedReference())
@ -286,7 +286,7 @@ public static unsafe partial class ImGui
}
}
public static void DebugTextEncoding(Utf8Buffer text)
public static void DebugTextEncoding(ImU8String text)
{
fixed (byte* textPtr = &text.GetPinnableNullTerminatedReference())
{
@ -295,7 +295,7 @@ public static unsafe partial class ImGui
}
}
public static bool Draw(ImGuiTextFilterPtr self, Utf8Buffer label = default, float width = 0.0f)
public static bool Draw(ImGuiTextFilterPtr self, ImU8String label = default, float width = 0.0f)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference("Filter (inc,-exc)"u8))
{
@ -305,7 +305,7 @@ public static unsafe partial class ImGui
}
}
public static ImGuiTextFilterPtr ImGuiTextFilter(Utf8Buffer defaultFilter = default)
public static ImGuiTextFilterPtr ImGuiTextFilter(ImU8String defaultFilter = default)
{
fixed (byte* defaultFilterPtr = &defaultFilter.GetPinnableNullTerminatedReference("\0"u8))
{
@ -324,7 +324,7 @@ public static unsafe partial class ImGui
}
public static bool InvisibleButton(
Utf8Buffer strId, Vector2 size, ImGuiButtonFlags flags = ImGuiButtonFlags.None)
ImU8String strId, Vector2 size, ImGuiButtonFlags flags = ImGuiButtonFlags.None)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
{
@ -334,7 +334,7 @@ public static unsafe partial class ImGui
}
}
public static bool IsDataType(ImGuiPayloadPtr self, Utf8Buffer type)
public static bool IsDataType(ImGuiPayloadPtr self, ImU8String type)
{
fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference())
{
@ -344,7 +344,7 @@ public static unsafe partial class ImGui
}
}
public static bool IsPopupOpen(Utf8Buffer strId, ImGuiPopupFlags flags = ImGuiPopupFlags.None)
public static bool IsPopupOpen(ImU8String strId, ImGuiPopupFlags flags = ImGuiPopupFlags.None)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
{
@ -354,21 +354,21 @@ public static unsafe partial class ImGui
}
}
public static void LoadIniSettingsFromDisk(Utf8Buffer iniFilename)
public static void LoadIniSettingsFromDisk(ImU8String iniFilename)
{
fixed (byte* iniFilenamePtr = &iniFilename.GetPinnableNullTerminatedReference())
ImGuiNative.LoadIniSettingsFromDisk(iniFilenamePtr);
iniFilename.Dispose();
}
public static void LoadIniSettingsFromMemory(Utf8Buffer iniData)
public static void LoadIniSettingsFromMemory(ImU8String iniData)
{
fixed (byte* iniDataPtr = iniData.Span)
ImGuiNative.LoadIniSettingsFromMemory(iniDataPtr, (nuint)iniData.Length);
iniData.Dispose();
}
public static void LogToFile(int autoOpenDepth = -1, Utf8Buffer filename = default)
public static void LogToFile(int autoOpenDepth = -1, ImU8String filename = default)
{
fixed (byte* filenamePtr = &filename.GetPinnableNullTerminatedReference())
ImGuiNative.LogToFile(autoOpenDepth, filenamePtr);
@ -376,7 +376,7 @@ public static unsafe partial class ImGui
}
public static bool MenuItem(
Utf8Buffer label, Utf8Buffer shortcut, bool selected = false, bool enabled = true)
ImU8String label, ImU8String shortcut, bool selected = false, bool enabled = true)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
fixed (byte* shortcutPtr = &shortcut.GetPinnableNullTerminatedReference())
@ -388,7 +388,7 @@ public static unsafe partial class ImGui
}
}
public static bool MenuItem(Utf8Buffer label, Utf8Buffer shortcut, ref bool selected, bool enabled = true)
public static bool MenuItem(ImU8String label, ImU8String shortcut, ref bool selected, bool enabled = true)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
fixed (byte* shortcutPtr = &shortcut.GetPinnableNullTerminatedReference())
@ -401,7 +401,7 @@ public static unsafe partial class ImGui
}
}
public static bool MenuItem(Utf8Buffer label, ref bool selected, bool enabled = true)
public static bool MenuItem(ImU8String label, ref bool selected, bool enabled = true)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
fixed (bool* selectedPtr = &selected)
@ -412,7 +412,7 @@ public static unsafe partial class ImGui
}
}
public static bool MenuItem(Utf8Buffer label, bool enabled = true)
public static bool MenuItem(ImU8String label, bool enabled = true)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -422,7 +422,7 @@ public static unsafe partial class ImGui
}
}
public static void OpenPopup(Utf8Buffer strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.None)
public static void OpenPopup(ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.None)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
ImGuiNative.OpenPopup(strIdPtr, popupFlags);
@ -432,28 +432,28 @@ public static unsafe partial class ImGui
public static void OpenPopup(uint id, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.None) => ImGuiNative.OpenPopup(id, popupFlags);
public static void OpenPopupOnItemClick(
Utf8Buffer strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault)
ImU8String strId, ImGuiPopupFlags popupFlags = ImGuiPopupFlags.MouseButtonDefault)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
ImGuiNative.OpenPopupOnItemClick(strIdPtr, popupFlags);
strId.Dispose();
}
public static void ProgressBar(float fraction, Vector2 sizeArg, Utf8Buffer overlay = default)
public static void ProgressBar(float fraction, Vector2 sizeArg, ImU8String overlay = default)
{
fixed (byte* overlayPtr = &overlay.GetPinnableNullTerminatedReference())
ImGuiNative.ProgressBar(fraction, sizeArg, overlayPtr);
overlay.Dispose();
}
public static void ProgressBar(float fraction, Utf8Buffer overlay = default)
public static void ProgressBar(float fraction, ImU8String overlay = default)
{
fixed (byte* overlayPtr = &overlay.GetPinnableNullTerminatedReference())
ImGuiNative.ProgressBar(fraction, new(-float.MinValue, 0), overlayPtr);
overlay.Dispose();
}
public static bool RadioButton(Utf8Buffer label, bool active)
public static bool RadioButton(ImU8String label, bool active)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -463,7 +463,7 @@ public static unsafe partial class ImGui
}
}
public static bool RadioButton<T>(Utf8Buffer label, ref T v, T vButton)
public static bool RadioButton<T>(ImU8String label, ref T v, T vButton)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -476,14 +476,14 @@ public static unsafe partial class ImGui
}
}
public static void SaveIniSettingsToDisk(Utf8Buffer iniFilename)
public static void SaveIniSettingsToDisk(ImU8String iniFilename)
{
fixed (byte* iniPtr = &iniFilename.GetPinnableNullTerminatedReference())
ImGuiNative.SaveIniSettingsToDisk(iniPtr);
}
public static bool Selectable(
Utf8Buffer label, bool selected = false, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None, Vector2 size = default)
ImU8String label, bool selected = false, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None, Vector2 size = default)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -493,7 +493,7 @@ public static unsafe partial class ImGui
}
}
public static bool Selectable(Utf8Buffer label, ref bool selected, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None, Vector2 size = default)
public static bool Selectable(ImU8String label, ref bool selected, ImGuiSelectableFlags flags = ImGuiSelectableFlags.None, Vector2 size = default)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
fixed (bool* selectedPtr = &selected)
@ -504,14 +504,14 @@ public static unsafe partial class ImGui
}
}
public static void SetClipboardText(Utf8Buffer text)
public static void SetClipboardText(ImU8String text)
{
fixed (byte* textPtr = &text.GetPinnableNullTerminatedReference())
ImGuiNative.SetClipboardText(textPtr);
text.Dispose();
}
public static bool SetDragDropPayload(Utf8Buffer type, ReadOnlySpan<byte> data, ImGuiCond cond)
public static bool SetDragDropPayload(ImU8String type, ReadOnlySpan<byte> data, ImGuiCond cond)
{
fixed (byte* typePtr = &type.GetPinnableNullTerminatedReference())
fixed (byte* dataPtr = data)
@ -522,7 +522,7 @@ public static unsafe partial class ImGui
}
}
public static void SetTabItemClosed(Utf8Buffer tabOrDockedWindowLabel)
public static void SetTabItemClosed(ImU8String tabOrDockedWindowLabel)
{
fixed (byte* tabItemPtr = &tabOrDockedWindowLabel.GetPinnableNullTerminatedReference())
ImGuiNative.SetTabItemClosed(tabItemPtr);
@ -531,7 +531,7 @@ public static unsafe partial class ImGui
public static void SetWindowCollapsed(bool collapsed, ImGuiCond cond = ImGuiCond.None) => ImGuiNative.SetWindowCollapsed(collapsed ? (byte)1 : (byte)0, cond);
public static void SetWindowCollapsed(Utf8Buffer name, bool collapsed, ImGuiCond cond = ImGuiCond.None)
public static void SetWindowCollapsed(ImU8String name, bool collapsed, ImGuiCond cond = ImGuiCond.None)
{
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
ImGuiNative.SetWindowCollapsed(namePtr, collapsed ? (byte)1 : (byte)0, cond);
@ -540,7 +540,7 @@ public static unsafe partial class ImGui
public static void SetWindowFocus() => ImGuiNative.SetWindowFocus();
public static void SetWindowFocus(Utf8Buffer name)
public static void SetWindowFocus(ImU8String name)
{
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
ImGuiNative.SetWindowFocus(namePtr);
@ -549,7 +549,7 @@ public static unsafe partial class ImGui
public static void SetWindowPos(Vector2 pos, ImGuiCond cond = ImGuiCond.None) => ImGuiNative.SetWindowPos(pos, cond);
public static void SetWindowPos(Utf8Buffer name, Vector2 pos, ImGuiCond cond = ImGuiCond.None)
public static void SetWindowPos(ImU8String name, Vector2 pos, ImGuiCond cond = ImGuiCond.None)
{
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
ImGuiNative.SetWindowPos(namePtr, pos, cond);
@ -558,21 +558,21 @@ public static unsafe partial class ImGui
public static void SetWindowSize(Vector2 size, ImGuiCond cond = ImGuiCond.None) => ImGuiNative.SetWindowSize(size, cond);
public static void SetWindowSize(Utf8Buffer name, Vector2 size, ImGuiCond cond = ImGuiCond.None)
public static void SetWindowSize(ImU8String name, Vector2 size, ImGuiCond cond = ImGuiCond.None)
{
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
ImGuiNative.SetWindowSize(namePtr, size, cond);
name.Dispose();
}
public static void ShowFontSelector(Utf8Buffer label)
public static void ShowFontSelector(ImU8String label)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
ImGuiNative.ShowFontSelector(labelPtr);
label.Dispose();
}
public static bool ShowStyleSelector(Utf8Buffer label)
public static bool ShowStyleSelector(ImU8String label)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -582,7 +582,7 @@ public static unsafe partial class ImGui
}
}
public static bool SmallButton(Utf8Buffer label)
public static bool SmallButton(ImU8String label)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -592,7 +592,7 @@ public static unsafe partial class ImGui
}
}
public static bool TabItemButton(Utf8Buffer label, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None)
public static bool TabItemButton(ImU8String label, ImGuiTabItemFlags flags = ImGuiTabItemFlags.None)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
{
@ -602,7 +602,7 @@ public static unsafe partial class ImGui
}
}
public static void TableHeader(Utf8Buffer label)
public static void TableHeader(ImU8String label)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
ImGuiNative.TableHeader(labelPtr);
@ -610,7 +610,7 @@ public static unsafe partial class ImGui
}
public static void TableSetupColumn(
Utf8Buffer label, ImGuiTableColumnFlags flags = ImGuiTableColumnFlags.None, float initWidthOrWeight = 0.0f,
ImU8String label, ImGuiTableColumnFlags flags = ImGuiTableColumnFlags.None, float initWidthOrWeight = 0.0f,
uint userId = 0)
{
fixed (byte* labelPtr = &label.GetPinnableNullTerminatedReference())
@ -618,7 +618,7 @@ public static unsafe partial class ImGui
label.Dispose();
}
public static void TreePush(Utf8Buffer strId)
public static void TreePush(ImU8String strId)
{
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
ImGuiNative.TreePush(strIdPtr);
@ -628,7 +628,7 @@ public static unsafe partial class ImGui
public static void TreePush(nint ptrId) => ImGuiNative.TreePush((void*)ptrId);
public static void TreePush(void* ptrId) => ImGuiNative.TreePush(ptrId);
public static void Value<T>(Utf8Buffer prefix, in T value)
public static void Value<T>(ImU8String prefix, in T value)
{
prefix.AppendLiteral(": ");
prefix.AppendFormatted(value);
@ -641,7 +641,7 @@ public static unsafe partial class ImGui
// public static void Value(AutoUtf8Buffer prefix, float value) => Value(prefix, value, default);
public static void Value(Utf8Buffer prefix, float value, Utf8Buffer floatFormat = default)
public static void Value(ImU8String prefix, float value, ImU8String floatFormat = default)
{
fixed (byte* prefixPtr = &prefix.GetPinnableNullTerminatedReference())
fixed (byte* floatPtr = &floatFormat.GetPinnableNullTerminatedReference())