|
|
|
@ -206,7 +206,7 @@ namespace ImGuiNET |
|
|
|
|
Vector2 size = new Vector2(); |
|
|
|
|
byte border = 0; |
|
|
|
|
ImGuiWindowFlags flags = (ImGuiWindowFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igBeginChildStr(native_str_id, size, border, flags); |
|
|
|
|
byte ret = ImGuiNative.igBeginChild_Str(native_str_id, size, border, flags); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -235,7 +235,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
byte border = 0; |
|
|
|
|
ImGuiWindowFlags flags = (ImGuiWindowFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igBeginChildStr(native_str_id, size, border, flags); |
|
|
|
|
byte ret = ImGuiNative.igBeginChild_Str(native_str_id, size, border, flags); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -264,7 +264,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
byte native_border = border ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiWindowFlags flags = (ImGuiWindowFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igBeginChildStr(native_str_id, size, native_border, flags); |
|
|
|
|
byte ret = ImGuiNative.igBeginChild_Str(native_str_id, size, native_border, flags); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -292,7 +292,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
byte native_border = border ? (byte)1 : (byte)0; |
|
|
|
|
byte ret = ImGuiNative.igBeginChildStr(native_str_id, size, native_border, flags); |
|
|
|
|
byte ret = ImGuiNative.igBeginChild_Str(native_str_id, size, native_border, flags); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -304,27 +304,27 @@ namespace ImGuiNET |
|
|
|
|
Vector2 size = new Vector2(); |
|
|
|
|
byte border = 0; |
|
|
|
|
ImGuiWindowFlags flags = (ImGuiWindowFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igBeginChildID(id, size, border, flags); |
|
|
|
|
byte ret = ImGuiNative.igBeginChild_ID(id, size, border, flags); |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool BeginChild(uint id, Vector2 size) |
|
|
|
|
{ |
|
|
|
|
byte border = 0; |
|
|
|
|
ImGuiWindowFlags flags = (ImGuiWindowFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igBeginChildID(id, size, border, flags); |
|
|
|
|
byte ret = ImGuiNative.igBeginChild_ID(id, size, border, flags); |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool BeginChild(uint id, Vector2 size, bool border) |
|
|
|
|
{ |
|
|
|
|
byte native_border = border ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiWindowFlags flags = (ImGuiWindowFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igBeginChildID(id, size, native_border, flags); |
|
|
|
|
byte ret = ImGuiNative.igBeginChild_ID(id, size, native_border, flags); |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool BeginChild(uint id, Vector2 size, bool border, ImGuiWindowFlags flags) |
|
|
|
|
{ |
|
|
|
|
byte native_border = border ? (byte)1 : (byte)0; |
|
|
|
|
byte ret = ImGuiNative.igBeginChildID(id, size, native_border, flags); |
|
|
|
|
byte ret = ImGuiNative.igBeginChild_ID(id, size, native_border, flags); |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool BeginChildFrame(uint id, Vector2 size) |
|
|
|
@ -437,6 +437,16 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static void BeginDisabled() |
|
|
|
|
{ |
|
|
|
|
byte disabled = 1; |
|
|
|
|
ImGuiNative.igBeginDisabled(disabled); |
|
|
|
|
} |
|
|
|
|
public static void BeginDisabled(bool disabled) |
|
|
|
|
{ |
|
|
|
|
byte native_disabled = disabled ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiNative.igBeginDisabled(native_disabled); |
|
|
|
|
} |
|
|
|
|
public static bool BeginDragDropSource() |
|
|
|
|
{ |
|
|
|
|
ImGuiDragDropFlags flags = (ImGuiDragDropFlags)0; |
|
|
|
@ -1334,7 +1344,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_label = null; } |
|
|
|
|
fixed (int* native_flags = &flags) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igCheckboxFlagsIntPtr(native_label, native_flags, flags_value); |
|
|
|
|
byte ret = ImGuiNative.igCheckboxFlags_IntPtr(native_label, native_flags, flags_value); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -1364,7 +1374,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_label = null; } |
|
|
|
|
fixed (uint* native_flags = &flags) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igCheckboxFlagsUintPtr(native_label, native_flags, flags_value); |
|
|
|
|
byte ret = ImGuiNative.igCheckboxFlags_UintPtr(native_label, native_flags, flags_value); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -1397,7 +1407,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igCollapsingHeaderTreeNodeFlags(native_label, flags); |
|
|
|
|
byte ret = ImGuiNative.igCollapsingHeader_TreeNodeFlags(native_label, flags); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -1424,7 +1434,7 @@ namespace ImGuiNET |
|
|
|
|
native_label[native_label_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
byte ret = ImGuiNative.igCollapsingHeaderTreeNodeFlags(native_label, flags); |
|
|
|
|
byte ret = ImGuiNative.igCollapsingHeader_TreeNodeFlags(native_label, flags); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -1454,7 +1464,7 @@ namespace ImGuiNET |
|
|
|
|
byte native_p_visible_val = p_visible ? (byte)1 : (byte)0; |
|
|
|
|
byte* native_p_visible = &native_p_visible_val; |
|
|
|
|
ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igCollapsingHeaderBoolPtr(native_label, native_p_visible, flags); |
|
|
|
|
byte ret = ImGuiNative.igCollapsingHeader_BoolPtr(native_label, native_p_visible, flags); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -1484,7 +1494,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_label = null; } |
|
|
|
|
byte native_p_visible_val = p_visible ? (byte)1 : (byte)0; |
|
|
|
|
byte* native_p_visible = &native_p_visible_val; |
|
|
|
|
byte ret = ImGuiNative.igCollapsingHeaderBoolPtr(native_label, native_p_visible, flags); |
|
|
|
|
byte ret = ImGuiNative.igCollapsingHeader_BoolPtr(native_label, native_p_visible, flags); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -2009,7 +2019,7 @@ namespace ImGuiNET |
|
|
|
|
int popup_max_height_in_items = -1; |
|
|
|
|
fixed (int* native_current_item = ¤t_item) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igComboStr_arr(native_label, native_current_item, native_items, items_count, popup_max_height_in_items); |
|
|
|
|
byte ret = ImGuiNative.igCombo_Str_arr(native_label, native_current_item, native_items, items_count, popup_max_height_in_items); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -2066,7 +2076,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
fixed (int* native_current_item = ¤t_item) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igComboStr_arr(native_label, native_current_item, native_items, items_count, popup_max_height_in_items); |
|
|
|
|
byte ret = ImGuiNative.igCombo_Str_arr(native_label, native_current_item, native_items, items_count, popup_max_height_in_items); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -2115,7 +2125,7 @@ namespace ImGuiNET |
|
|
|
|
int popup_max_height_in_items = -1; |
|
|
|
|
fixed (int* native_current_item = ¤t_item) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igComboStr(native_label, native_current_item, native_items_separated_by_zeros, popup_max_height_in_items); |
|
|
|
|
byte ret = ImGuiNative.igCombo_Str(native_label, native_current_item, native_items_separated_by_zeros, popup_max_height_in_items); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -2167,7 +2177,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_items_separated_by_zeros = null; } |
|
|
|
|
fixed (int* native_current_item = ¤t_item) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igComboStr(native_label, native_current_item, native_items_separated_by_zeros, popup_max_height_in_items); |
|
|
|
|
byte ret = ImGuiNative.igCombo_Str(native_label, native_current_item, native_items_separated_by_zeros, popup_max_height_in_items); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -2231,28 +2241,32 @@ namespace ImGuiNET |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igDestroyPlatformWindows(); |
|
|
|
|
} |
|
|
|
|
public static void DockSpace(uint id) |
|
|
|
|
public static uint DockSpace(uint id) |
|
|
|
|
{ |
|
|
|
|
Vector2 size = new Vector2(); |
|
|
|
|
ImGuiDockNodeFlags flags = (ImGuiDockNodeFlags)0; |
|
|
|
|
ImGuiWindowClass* window_class = null; |
|
|
|
|
ImGuiNative.igDockSpace(id, size, flags, window_class); |
|
|
|
|
uint ret = ImGuiNative.igDockSpace(id, size, flags, window_class); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static void DockSpace(uint id, Vector2 size) |
|
|
|
|
public static uint DockSpace(uint id, Vector2 size) |
|
|
|
|
{ |
|
|
|
|
ImGuiDockNodeFlags flags = (ImGuiDockNodeFlags)0; |
|
|
|
|
ImGuiWindowClass* window_class = null; |
|
|
|
|
ImGuiNative.igDockSpace(id, size, flags, window_class); |
|
|
|
|
uint ret = ImGuiNative.igDockSpace(id, size, flags, window_class); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static void DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags) |
|
|
|
|
public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags) |
|
|
|
|
{ |
|
|
|
|
ImGuiWindowClass* window_class = null; |
|
|
|
|
ImGuiNative.igDockSpace(id, size, flags, window_class); |
|
|
|
|
uint ret = ImGuiNative.igDockSpace(id, size, flags, window_class); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static void DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr window_class) |
|
|
|
|
public static uint DockSpace(uint id, Vector2 size, ImGuiDockNodeFlags flags, ImGuiWindowClassPtr window_class) |
|
|
|
|
{ |
|
|
|
|
ImGuiWindowClass* native_window_class = window_class.NativePtr; |
|
|
|
|
ImGuiNative.igDockSpace(id, size, flags, native_window_class); |
|
|
|
|
uint ret = ImGuiNative.igDockSpace(id, size, flags, native_window_class); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static uint DockSpaceOverViewport() |
|
|
|
|
{ |
|
|
|
@ -5600,6 +5614,39 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public static bool DragScalar(string label, ImGuiDataType data_type, IntPtr p_data) |
|
|
|
|
{ |
|
|
|
|
byte* native_label; |
|
|
|
|
int label_byteCount = 0; |
|
|
|
|
if (label != null) |
|
|
|
|
{ |
|
|
|
|
label_byteCount = Encoding.UTF8.GetByteCount(label); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
native_label = Util.Allocate(label_byteCount + 1); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
byte* native_label_stackBytes = stackalloc byte[label_byteCount + 1]; |
|
|
|
|
native_label = native_label_stackBytes; |
|
|
|
|
} |
|
|
|
|
int native_label_offset = Util.GetUtf8(label, native_label, label_byteCount); |
|
|
|
|
native_label[native_label_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
void* native_p_data = (void*)p_data.ToPointer(); |
|
|
|
|
float v_speed = 1.0f; |
|
|
|
|
void* p_min = null; |
|
|
|
|
void* p_max = null; |
|
|
|
|
byte* native_format = null; |
|
|
|
|
ImGuiSliderFlags flags = (ImGuiSliderFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igDragScalar(native_label, data_type, native_p_data, v_speed, p_min, p_max, native_format, flags); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
|
} |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool DragScalar(string label, ImGuiDataType data_type, IntPtr p_data, float v_speed) |
|
|
|
|
{ |
|
|
|
|
byte* native_label; |
|
|
|
@ -5801,6 +5848,39 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool DragScalarN(string label, ImGuiDataType data_type, IntPtr p_data, int components) |
|
|
|
|
{ |
|
|
|
|
byte* native_label; |
|
|
|
|
int label_byteCount = 0; |
|
|
|
|
if (label != null) |
|
|
|
|
{ |
|
|
|
|
label_byteCount = Encoding.UTF8.GetByteCount(label); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
native_label = Util.Allocate(label_byteCount + 1); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
byte* native_label_stackBytes = stackalloc byte[label_byteCount + 1]; |
|
|
|
|
native_label = native_label_stackBytes; |
|
|
|
|
} |
|
|
|
|
int native_label_offset = Util.GetUtf8(label, native_label, label_byteCount); |
|
|
|
|
native_label[native_label_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
void* native_p_data = (void*)p_data.ToPointer(); |
|
|
|
|
float v_speed = 1.0f; |
|
|
|
|
void* p_min = null; |
|
|
|
|
void* p_max = null; |
|
|
|
|
byte* native_format = null; |
|
|
|
|
ImGuiSliderFlags flags = (ImGuiSliderFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igDragScalarN(native_label, data_type, native_p_data, components, v_speed, p_min, p_max, native_format, flags); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
|
} |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool DragScalarN(string label, ImGuiDataType data_type, IntPtr p_data, int components, float v_speed) |
|
|
|
|
{ |
|
|
|
|
byte* native_label; |
|
|
|
@ -6022,6 +6102,10 @@ namespace ImGuiNET |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igEndCombo(); |
|
|
|
|
} |
|
|
|
|
public static void EndDisabled() |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igEndDisabled(); |
|
|
|
|
} |
|
|
|
|
public static void EndDragDropSource() |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igEndDragDropSource(); |
|
|
|
@ -6100,13 +6184,13 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
public static ImDrawListPtr GetBackgroundDrawList() |
|
|
|
|
{ |
|
|
|
|
ImDrawList* ret = ImGuiNative.igGetBackgroundDrawListNil(); |
|
|
|
|
ImDrawList* ret = ImGuiNative.igGetBackgroundDrawList_Nil(); |
|
|
|
|
return new ImDrawListPtr(ret); |
|
|
|
|
} |
|
|
|
|
public static ImDrawListPtr GetBackgroundDrawList(ImGuiViewportPtr viewport) |
|
|
|
|
{ |
|
|
|
|
ImGuiViewport* native_viewport = viewport.NativePtr; |
|
|
|
|
ImDrawList* ret = ImGuiNative.igGetBackgroundDrawListViewportPtr(native_viewport); |
|
|
|
|
ImDrawList* ret = ImGuiNative.igGetBackgroundDrawList_ViewportPtr(native_viewport); |
|
|
|
|
return new ImDrawListPtr(ret); |
|
|
|
|
} |
|
|
|
|
public static string GetClipboardText() |
|
|
|
@ -6117,22 +6201,22 @@ namespace ImGuiNET |
|
|
|
|
public static uint GetColorU32(ImGuiCol idx) |
|
|
|
|
{ |
|
|
|
|
float alpha_mul = 1.0f; |
|
|
|
|
uint ret = ImGuiNative.igGetColorU32Col(idx, alpha_mul); |
|
|
|
|
uint ret = ImGuiNative.igGetColorU32_Col(idx, alpha_mul); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static uint GetColorU32(ImGuiCol idx, float alpha_mul) |
|
|
|
|
{ |
|
|
|
|
uint ret = ImGuiNative.igGetColorU32Col(idx, alpha_mul); |
|
|
|
|
uint ret = ImGuiNative.igGetColorU32_Col(idx, alpha_mul); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static uint GetColorU32(Vector4 col) |
|
|
|
|
{ |
|
|
|
|
uint ret = ImGuiNative.igGetColorU32Vec4(col); |
|
|
|
|
uint ret = ImGuiNative.igGetColorU32_Vec4(col); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static uint GetColorU32(uint col) |
|
|
|
|
{ |
|
|
|
|
uint ret = ImGuiNative.igGetColorU32U32(col); |
|
|
|
|
uint ret = ImGuiNative.igGetColorU32_U32(col); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static int GetColumnIndex() |
|
|
|
@ -6245,13 +6329,13 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
public static ImDrawListPtr GetForegroundDrawList() |
|
|
|
|
{ |
|
|
|
|
ImDrawList* ret = ImGuiNative.igGetForegroundDrawListNil(); |
|
|
|
|
ImDrawList* ret = ImGuiNative.igGetForegroundDrawList_Nil(); |
|
|
|
|
return new ImDrawListPtr(ret); |
|
|
|
|
} |
|
|
|
|
public static ImDrawListPtr GetForegroundDrawList(ImGuiViewportPtr viewport) |
|
|
|
|
{ |
|
|
|
|
ImGuiViewport* native_viewport = viewport.NativePtr; |
|
|
|
|
ImDrawList* ret = ImGuiNative.igGetForegroundDrawListViewportPtr(native_viewport); |
|
|
|
|
ImDrawList* ret = ImGuiNative.igGetForegroundDrawList_ViewportPtr(native_viewport); |
|
|
|
|
return new ImDrawListPtr(ret); |
|
|
|
|
} |
|
|
|
|
public static int GetFrameCount() |
|
|
|
@ -6289,7 +6373,7 @@ namespace ImGuiNET |
|
|
|
|
native_str_id[native_str_id_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
uint ret = ImGuiNative.igGetIDStr(native_str_id); |
|
|
|
|
uint ret = ImGuiNative.igGetID_Str(native_str_id); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -6299,7 +6383,7 @@ namespace ImGuiNET |
|
|
|
|
public static uint GetID(IntPtr ptr_id) |
|
|
|
|
{ |
|
|
|
|
void* native_ptr_id = (void*)ptr_id.ToPointer(); |
|
|
|
|
uint ret = ImGuiNative.igGetIDPtr(native_ptr_id); |
|
|
|
|
uint ret = ImGuiNative.igGetID_Ptr(native_ptr_id); |
|
|
|
|
return ret; |
|
|
|
|
} |
|
|
|
|
public static ImGuiIOPtr GetIO() |
|
|
|
@ -8518,7 +8602,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
ImGuiPopupFlags flags = (ImGuiPopupFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igIsPopupOpenStr(native_str_id, flags); |
|
|
|
|
byte ret = ImGuiNative.igIsPopupOpen_Str(native_str_id, flags); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -8545,7 +8629,7 @@ namespace ImGuiNET |
|
|
|
|
native_str_id[native_str_id_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
byte ret = ImGuiNative.igIsPopupOpenStr(native_str_id, flags); |
|
|
|
|
byte ret = ImGuiNative.igIsPopupOpen_Str(native_str_id, flags); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -8554,12 +8638,12 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
public static bool IsRectVisible(Vector2 size) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igIsRectVisibleNil(size); |
|
|
|
|
byte ret = ImGuiNative.igIsRectVisible_Nil(size); |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool IsRectVisible(Vector2 rect_min, Vector2 rect_max) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igIsRectVisibleVec2(rect_min, rect_max); |
|
|
|
|
byte ret = ImGuiNative.igIsRectVisible_Vec2(rect_min, rect_max); |
|
|
|
|
return ret != 0; |
|
|
|
|
} |
|
|
|
|
public static bool IsWindowAppearing() |
|
|
|
@ -8697,7 +8781,7 @@ namespace ImGuiNET |
|
|
|
|
int height_in_items = -1; |
|
|
|
|
fixed (int* native_current_item = ¤t_item) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igListBoxStr_arr(native_label, native_current_item, native_items, items_count, height_in_items); |
|
|
|
|
byte ret = ImGuiNative.igListBox_Str_arr(native_label, native_current_item, native_items, items_count, height_in_items); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -8754,7 +8838,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
fixed (int* native_current_item = ¤t_item) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igListBoxStr_arr(native_label, native_current_item, native_items, items_count, height_in_items); |
|
|
|
|
byte ret = ImGuiNative.igListBox_Str_arr(native_label, native_current_item, native_items, items_count, height_in_items); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -8963,7 +9047,7 @@ namespace ImGuiNET |
|
|
|
|
byte* native_shortcut = null; |
|
|
|
|
byte selected = 0; |
|
|
|
|
byte enabled = 1; |
|
|
|
|
byte ret = ImGuiNative.igMenuItemBool(native_label, native_shortcut, selected, enabled); |
|
|
|
|
byte ret = ImGuiNative.igMenuItem_Bool(native_label, native_shortcut, selected, enabled); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9010,7 +9094,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_shortcut = null; } |
|
|
|
|
byte selected = 0; |
|
|
|
|
byte enabled = 1; |
|
|
|
|
byte ret = ImGuiNative.igMenuItemBool(native_label, native_shortcut, selected, enabled); |
|
|
|
|
byte ret = ImGuiNative.igMenuItem_Bool(native_label, native_shortcut, selected, enabled); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9061,7 +9145,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_shortcut = null; } |
|
|
|
|
byte native_selected = selected ? (byte)1 : (byte)0; |
|
|
|
|
byte enabled = 1; |
|
|
|
|
byte ret = ImGuiNative.igMenuItemBool(native_label, native_shortcut, native_selected, enabled); |
|
|
|
|
byte ret = ImGuiNative.igMenuItem_Bool(native_label, native_shortcut, native_selected, enabled); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9112,7 +9196,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_shortcut = null; } |
|
|
|
|
byte native_selected = selected ? (byte)1 : (byte)0; |
|
|
|
|
byte native_enabled = enabled ? (byte)1 : (byte)0; |
|
|
|
|
byte ret = ImGuiNative.igMenuItemBool(native_label, native_shortcut, native_selected, native_enabled); |
|
|
|
|
byte ret = ImGuiNative.igMenuItem_Bool(native_label, native_shortcut, native_selected, native_enabled); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9164,7 +9248,7 @@ namespace ImGuiNET |
|
|
|
|
byte native_p_selected_val = p_selected ? (byte)1 : (byte)0; |
|
|
|
|
byte* native_p_selected = &native_p_selected_val; |
|
|
|
|
byte enabled = 1; |
|
|
|
|
byte ret = ImGuiNative.igMenuItemBoolPtr(native_label, native_shortcut, native_p_selected, enabled); |
|
|
|
|
byte ret = ImGuiNative.igMenuItem_BoolPtr(native_label, native_shortcut, native_p_selected, enabled); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9217,7 +9301,7 @@ namespace ImGuiNET |
|
|
|
|
byte native_p_selected_val = p_selected ? (byte)1 : (byte)0; |
|
|
|
|
byte* native_p_selected = &native_p_selected_val; |
|
|
|
|
byte native_enabled = enabled ? (byte)1 : (byte)0; |
|
|
|
|
byte ret = ImGuiNative.igMenuItemBoolPtr(native_label, native_shortcut, native_p_selected, native_enabled); |
|
|
|
|
byte ret = ImGuiNative.igMenuItem_BoolPtr(native_label, native_shortcut, native_p_selected, native_enabled); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9262,7 +9346,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
ImGuiPopupFlags popup_flags = (ImGuiPopupFlags)0; |
|
|
|
|
ImGuiNative.igOpenPopup(native_str_id, popup_flags); |
|
|
|
|
ImGuiNative.igOpenPopup_Str(native_str_id, popup_flags); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -9288,12 +9372,21 @@ namespace ImGuiNET |
|
|
|
|
native_str_id[native_str_id_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
ImGuiNative.igOpenPopup(native_str_id, popup_flags); |
|
|
|
|
ImGuiNative.igOpenPopup_Str(native_str_id, popup_flags); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public static void OpenPopup(uint id) |
|
|
|
|
{ |
|
|
|
|
ImGuiPopupFlags popup_flags = (ImGuiPopupFlags)0; |
|
|
|
|
ImGuiNative.igOpenPopup_ID(id, popup_flags); |
|
|
|
|
} |
|
|
|
|
public static void OpenPopup(uint id, ImGuiPopupFlags popup_flags) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igOpenPopup_ID(id, popup_flags); |
|
|
|
|
} |
|
|
|
|
public static void OpenPopupOnItemClick() |
|
|
|
|
{ |
|
|
|
|
byte* native_str_id = null; |
|
|
|
@ -9381,7 +9474,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9415,7 +9508,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9466,7 +9559,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9520,7 +9613,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9573,7 +9666,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9625,7 +9718,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9676,7 +9769,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_overlay_text = null; } |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotHistogramFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotHistogram_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9715,7 +9808,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9749,7 +9842,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9800,7 +9893,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9854,7 +9947,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9907,7 +10000,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -9959,7 +10052,7 @@ namespace ImGuiNET |
|
|
|
|
int stride = sizeof(float); |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10010,7 +10103,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_overlay_text = null; } |
|
|
|
|
fixed (float* native_values = &values) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPlotLinesFloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
ImGuiNative.igPlotLines_FloatPtr(native_label, native_values, values_count, values_offset, native_overlay_text, scale_min, scale_max, graph_size, stride); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10144,7 +10237,7 @@ namespace ImGuiNET |
|
|
|
|
native_str_id[native_str_id_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
ImGuiNative.igPushIDStr(native_str_id); |
|
|
|
|
ImGuiNative.igPushID_Str(native_str_id); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -10153,11 +10246,11 @@ namespace ImGuiNET |
|
|
|
|
public static void PushID(IntPtr ptr_id) |
|
|
|
|
{ |
|
|
|
|
void* native_ptr_id = (void*)ptr_id.ToPointer(); |
|
|
|
|
ImGuiNative.igPushIDPtr(native_ptr_id); |
|
|
|
|
ImGuiNative.igPushID_Ptr(native_ptr_id); |
|
|
|
|
} |
|
|
|
|
public static void PushID(int int_id) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPushIDInt(int_id); |
|
|
|
|
ImGuiNative.igPushID_Int(int_id); |
|
|
|
|
} |
|
|
|
|
public static void PushItemWidth(float item_width) |
|
|
|
|
{ |
|
|
|
@ -10165,19 +10258,19 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
public static void PushStyleColor(ImGuiCol idx, uint col) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPushStyleColorU32(idx, col); |
|
|
|
|
ImGuiNative.igPushStyleColor_U32(idx, col); |
|
|
|
|
} |
|
|
|
|
public static void PushStyleColor(ImGuiCol idx, Vector4 col) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPushStyleColorVec4(idx, col); |
|
|
|
|
ImGuiNative.igPushStyleColor_Vec4(idx, col); |
|
|
|
|
} |
|
|
|
|
public static void PushStyleVar(ImGuiStyleVar idx, float val) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPushStyleVarFloat(idx, val); |
|
|
|
|
ImGuiNative.igPushStyleVar_Float(idx, val); |
|
|
|
|
} |
|
|
|
|
public static void PushStyleVar(ImGuiStyleVar idx, Vector2 val) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igPushStyleVarVec2(idx, val); |
|
|
|
|
ImGuiNative.igPushStyleVar_Vec2(idx, val); |
|
|
|
|
} |
|
|
|
|
public static void PushTextWrapPos() |
|
|
|
|
{ |
|
|
|
@ -10209,7 +10302,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
byte native_active = active ? (byte)1 : (byte)0; |
|
|
|
|
byte ret = ImGuiNative.igRadioButtonBool(native_label, native_active); |
|
|
|
|
byte ret = ImGuiNative.igRadioButton_Bool(native_label, native_active); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10238,7 +10331,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_label = null; } |
|
|
|
|
fixed (int* native_v = &v) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igRadioButtonIntPtr(native_label, native_v, v_button); |
|
|
|
|
byte ret = ImGuiNative.igRadioButton_IntPtr(native_label, native_v, v_button); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10355,7 +10448,7 @@ namespace ImGuiNET |
|
|
|
|
byte selected = 0; |
|
|
|
|
ImGuiSelectableFlags flags = (ImGuiSelectableFlags)0; |
|
|
|
|
Vector2 size = new Vector2(); |
|
|
|
|
byte ret = ImGuiNative.igSelectableBool(native_label, selected, flags, size); |
|
|
|
|
byte ret = ImGuiNative.igSelectable_Bool(native_label, selected, flags, size); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10385,7 +10478,7 @@ namespace ImGuiNET |
|
|
|
|
byte native_selected = selected ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiSelectableFlags flags = (ImGuiSelectableFlags)0; |
|
|
|
|
Vector2 size = new Vector2(); |
|
|
|
|
byte ret = ImGuiNative.igSelectableBool(native_label, native_selected, flags, size); |
|
|
|
|
byte ret = ImGuiNative.igSelectable_Bool(native_label, native_selected, flags, size); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10414,7 +10507,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_label = null; } |
|
|
|
|
byte native_selected = selected ? (byte)1 : (byte)0; |
|
|
|
|
Vector2 size = new Vector2(); |
|
|
|
|
byte ret = ImGuiNative.igSelectableBool(native_label, native_selected, flags, size); |
|
|
|
|
byte ret = ImGuiNative.igSelectable_Bool(native_label, native_selected, flags, size); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10442,7 +10535,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
byte native_selected = selected ? (byte)1 : (byte)0; |
|
|
|
|
byte ret = ImGuiNative.igSelectableBool(native_label, native_selected, flags, size); |
|
|
|
|
byte ret = ImGuiNative.igSelectable_Bool(native_label, native_selected, flags, size); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10473,7 +10566,7 @@ namespace ImGuiNET |
|
|
|
|
byte* native_p_selected = &native_p_selected_val; |
|
|
|
|
ImGuiSelectableFlags flags = (ImGuiSelectableFlags)0; |
|
|
|
|
Vector2 size = new Vector2(); |
|
|
|
|
byte ret = ImGuiNative.igSelectableBoolPtr(native_label, native_p_selected, flags, size); |
|
|
|
|
byte ret = ImGuiNative.igSelectable_BoolPtr(native_label, native_p_selected, flags, size); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10504,7 +10597,7 @@ namespace ImGuiNET |
|
|
|
|
byte native_p_selected_val = p_selected ? (byte)1 : (byte)0; |
|
|
|
|
byte* native_p_selected = &native_p_selected_val; |
|
|
|
|
Vector2 size = new Vector2(); |
|
|
|
|
byte ret = ImGuiNative.igSelectableBoolPtr(native_label, native_p_selected, flags, size); |
|
|
|
|
byte ret = ImGuiNative.igSelectable_BoolPtr(native_label, native_p_selected, flags, size); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10534,7 +10627,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_label = null; } |
|
|
|
|
byte native_p_selected_val = p_selected ? (byte)1 : (byte)0; |
|
|
|
|
byte* native_p_selected = &native_p_selected_val; |
|
|
|
|
byte ret = ImGuiNative.igSelectableBoolPtr(native_label, native_p_selected, flags, size); |
|
|
|
|
byte ret = ImGuiNative.igSelectable_BoolPtr(native_label, native_p_selected, flags, size); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -10791,20 +10884,20 @@ namespace ImGuiNET |
|
|
|
|
public static void SetScrollFromPosX(float local_x) |
|
|
|
|
{ |
|
|
|
|
float center_x_ratio = 0.5f; |
|
|
|
|
ImGuiNative.igSetScrollFromPosXFloat(local_x, center_x_ratio); |
|
|
|
|
ImGuiNative.igSetScrollFromPosX_Float(local_x, center_x_ratio); |
|
|
|
|
} |
|
|
|
|
public static void SetScrollFromPosX(float local_x, float center_x_ratio) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igSetScrollFromPosXFloat(local_x, center_x_ratio); |
|
|
|
|
ImGuiNative.igSetScrollFromPosX_Float(local_x, center_x_ratio); |
|
|
|
|
} |
|
|
|
|
public static void SetScrollFromPosY(float local_y) |
|
|
|
|
{ |
|
|
|
|
float center_y_ratio = 0.5f; |
|
|
|
|
ImGuiNative.igSetScrollFromPosYFloat(local_y, center_y_ratio); |
|
|
|
|
ImGuiNative.igSetScrollFromPosY_Float(local_y, center_y_ratio); |
|
|
|
|
} |
|
|
|
|
public static void SetScrollFromPosY(float local_y, float center_y_ratio) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igSetScrollFromPosYFloat(local_y, center_y_ratio); |
|
|
|
|
ImGuiNative.igSetScrollFromPosY_Float(local_y, center_y_ratio); |
|
|
|
|
} |
|
|
|
|
public static void SetScrollHereX() |
|
|
|
|
{ |
|
|
|
@ -10826,11 +10919,11 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
public static void SetScrollX(float scroll_x) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igSetScrollXFloat(scroll_x); |
|
|
|
|
ImGuiNative.igSetScrollX_Float(scroll_x); |
|
|
|
|
} |
|
|
|
|
public static void SetScrollY(float scroll_y) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igSetScrollYFloat(scroll_y); |
|
|
|
|
ImGuiNative.igSetScrollY_Float(scroll_y); |
|
|
|
|
} |
|
|
|
|
public static void SetStateStorage(ImGuiStoragePtr storage) |
|
|
|
|
{ |
|
|
|
@ -10893,12 +10986,12 @@ namespace ImGuiNET |
|
|
|
|
{ |
|
|
|
|
byte native_collapsed = collapsed ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiCond cond = (ImGuiCond)0; |
|
|
|
|
ImGuiNative.igSetWindowCollapsedBool(native_collapsed, cond); |
|
|
|
|
ImGuiNative.igSetWindowCollapsed_Bool(native_collapsed, cond); |
|
|
|
|
} |
|
|
|
|
public static void SetWindowCollapsed(bool collapsed, ImGuiCond cond) |
|
|
|
|
{ |
|
|
|
|
byte native_collapsed = collapsed ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiNative.igSetWindowCollapsedBool(native_collapsed, cond); |
|
|
|
|
ImGuiNative.igSetWindowCollapsed_Bool(native_collapsed, cond); |
|
|
|
|
} |
|
|
|
|
public static void SetWindowCollapsed(string name, bool collapsed) |
|
|
|
|
{ |
|
|
|
@ -10922,7 +11015,7 @@ namespace ImGuiNET |
|
|
|
|
else { native_name = null; } |
|
|
|
|
byte native_collapsed = collapsed ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiCond cond = (ImGuiCond)0; |
|
|
|
|
ImGuiNative.igSetWindowCollapsedStr(native_name, native_collapsed, cond); |
|
|
|
|
ImGuiNative.igSetWindowCollapsed_Str(native_name, native_collapsed, cond); |
|
|
|
|
if (name_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_name); |
|
|
|
@ -10949,7 +11042,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_name = null; } |
|
|
|
|
byte native_collapsed = collapsed ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiNative.igSetWindowCollapsedStr(native_name, native_collapsed, cond); |
|
|
|
|
ImGuiNative.igSetWindowCollapsed_Str(native_name, native_collapsed, cond); |
|
|
|
|
if (name_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_name); |
|
|
|
@ -10957,7 +11050,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
public static void SetWindowFocus() |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igSetWindowFocusNil(); |
|
|
|
|
ImGuiNative.igSetWindowFocus_Nil(); |
|
|
|
|
} |
|
|
|
|
public static void SetWindowFocus(string name) |
|
|
|
|
{ |
|
|
|
@ -10979,7 +11072,7 @@ namespace ImGuiNET |
|
|
|
|
native_name[native_name_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_name = null; } |
|
|
|
|
ImGuiNative.igSetWindowFocusStr(native_name); |
|
|
|
|
ImGuiNative.igSetWindowFocus_Str(native_name); |
|
|
|
|
if (name_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_name); |
|
|
|
@ -10992,11 +11085,11 @@ namespace ImGuiNET |
|
|
|
|
public static void SetWindowPos(Vector2 pos) |
|
|
|
|
{ |
|
|
|
|
ImGuiCond cond = (ImGuiCond)0; |
|
|
|
|
ImGuiNative.igSetWindowPosVec2(pos, cond); |
|
|
|
|
ImGuiNative.igSetWindowPos_Vec2(pos, cond); |
|
|
|
|
} |
|
|
|
|
public static void SetWindowPos(Vector2 pos, ImGuiCond cond) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igSetWindowPosVec2(pos, cond); |
|
|
|
|
ImGuiNative.igSetWindowPos_Vec2(pos, cond); |
|
|
|
|
} |
|
|
|
|
public static void SetWindowPos(string name, Vector2 pos) |
|
|
|
|
{ |
|
|
|
@ -11019,7 +11112,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_name = null; } |
|
|
|
|
ImGuiCond cond = (ImGuiCond)0; |
|
|
|
|
ImGuiNative.igSetWindowPosStr(native_name, pos, cond); |
|
|
|
|
ImGuiNative.igSetWindowPos_Str(native_name, pos, cond); |
|
|
|
|
if (name_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_name); |
|
|
|
@ -11045,7 +11138,7 @@ namespace ImGuiNET |
|
|
|
|
native_name[native_name_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_name = null; } |
|
|
|
|
ImGuiNative.igSetWindowPosStr(native_name, pos, cond); |
|
|
|
|
ImGuiNative.igSetWindowPos_Str(native_name, pos, cond); |
|
|
|
|
if (name_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_name); |
|
|
|
@ -11054,11 +11147,11 @@ namespace ImGuiNET |
|
|
|
|
public static void SetWindowSize(Vector2 size) |
|
|
|
|
{ |
|
|
|
|
ImGuiCond cond = (ImGuiCond)0; |
|
|
|
|
ImGuiNative.igSetWindowSizeVec2(size, cond); |
|
|
|
|
ImGuiNative.igSetWindowSize_Vec2(size, cond); |
|
|
|
|
} |
|
|
|
|
public static void SetWindowSize(Vector2 size, ImGuiCond cond) |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igSetWindowSizeVec2(size, cond); |
|
|
|
|
ImGuiNative.igSetWindowSize_Vec2(size, cond); |
|
|
|
|
} |
|
|
|
|
public static void SetWindowSize(string name, Vector2 size) |
|
|
|
|
{ |
|
|
|
@ -11081,7 +11174,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_name = null; } |
|
|
|
|
ImGuiCond cond = (ImGuiCond)0; |
|
|
|
|
ImGuiNative.igSetWindowSizeStr(native_name, size, cond); |
|
|
|
|
ImGuiNative.igSetWindowSize_Str(native_name, size, cond); |
|
|
|
|
if (name_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_name); |
|
|
|
@ -11107,7 +11200,7 @@ namespace ImGuiNET |
|
|
|
|
native_name[native_name_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_name = null; } |
|
|
|
|
ImGuiNative.igSetWindowSizeStr(native_name, size, cond); |
|
|
|
|
ImGuiNative.igSetWindowSize_Str(native_name, size, cond); |
|
|
|
|
if (name_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_name); |
|
|
|
@ -13117,12 +13210,12 @@ namespace ImGuiNET |
|
|
|
|
public static string TableGetColumnName() |
|
|
|
|
{ |
|
|
|
|
int column_n = -1; |
|
|
|
|
byte* ret = ImGuiNative.igTableGetColumnNameInt(column_n); |
|
|
|
|
byte* ret = ImGuiNative.igTableGetColumnName_Int(column_n); |
|
|
|
|
return Util.StringFromPtr(ret); |
|
|
|
|
} |
|
|
|
|
public static string TableGetColumnName(int column_n) |
|
|
|
|
{ |
|
|
|
|
byte* ret = ImGuiNative.igTableGetColumnNameInt(column_n); |
|
|
|
|
byte* ret = ImGuiNative.igTableGetColumnName_Int(column_n); |
|
|
|
|
return Util.StringFromPtr(ret); |
|
|
|
|
} |
|
|
|
|
public static int TableGetRowIndex() |
|
|
|
@ -13194,6 +13287,11 @@ namespace ImGuiNET |
|
|
|
|
{ |
|
|
|
|
ImGuiNative.igTableSetBgColor(target, color, column_n); |
|
|
|
|
} |
|
|
|
|
public static void TableSetColumnEnabled(int column_n, bool v) |
|
|
|
|
{ |
|
|
|
|
byte native_v = v ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiNative.igTableSetColumnEnabled(column_n, native_v); |
|
|
|
|
} |
|
|
|
|
public static bool TableSetColumnIndex(int column_n) |
|
|
|
|
{ |
|
|
|
|
byte ret = ImGuiNative.igTableSetColumnIndex(column_n); |
|
|
|
@ -13464,7 +13562,7 @@ namespace ImGuiNET |
|
|
|
|
native_label[native_label_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeStr(native_label); |
|
|
|
|
byte ret = ImGuiNative.igTreeNode_Str(native_label); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -13509,7 +13607,7 @@ namespace ImGuiNET |
|
|
|
|
native_fmt[native_fmt_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_fmt = null; } |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeStrStr(native_str_id, native_fmt); |
|
|
|
|
byte ret = ImGuiNative.igTreeNode_StrStr(native_str_id, native_fmt); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -13541,7 +13639,7 @@ namespace ImGuiNET |
|
|
|
|
native_fmt[native_fmt_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_fmt = null; } |
|
|
|
|
byte ret = ImGuiNative.igTreeNodePtr(native_ptr_id, native_fmt); |
|
|
|
|
byte ret = ImGuiNative.igTreeNode_Ptr(native_ptr_id, native_fmt); |
|
|
|
|
if (fmt_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_fmt); |
|
|
|
@ -13569,7 +13667,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
ImGuiTreeNodeFlags flags = (ImGuiTreeNodeFlags)0; |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeExStr(native_label, flags); |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeEx_Str(native_label, flags); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -13596,7 +13694,7 @@ namespace ImGuiNET |
|
|
|
|
native_label[native_label_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_label = null; } |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeExStr(native_label, flags); |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeEx_Str(native_label, flags); |
|
|
|
|
if (label_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_label); |
|
|
|
@ -13641,7 +13739,7 @@ namespace ImGuiNET |
|
|
|
|
native_fmt[native_fmt_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_fmt = null; } |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeExStrStr(native_str_id, flags, native_fmt); |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeEx_StrStr(native_str_id, flags, native_fmt); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -13673,7 +13771,7 @@ namespace ImGuiNET |
|
|
|
|
native_fmt[native_fmt_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_fmt = null; } |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeExPtr(native_ptr_id, flags, native_fmt); |
|
|
|
|
byte ret = ImGuiNative.igTreeNodeEx_Ptr(native_ptr_id, flags, native_fmt); |
|
|
|
|
if (fmt_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_fmt); |
|
|
|
@ -13704,7 +13802,7 @@ namespace ImGuiNET |
|
|
|
|
native_str_id[native_str_id_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_str_id = null; } |
|
|
|
|
ImGuiNative.igTreePushStr(native_str_id); |
|
|
|
|
ImGuiNative.igTreePush_Str(native_str_id); |
|
|
|
|
if (str_id_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_str_id); |
|
|
|
@ -13713,12 +13811,12 @@ namespace ImGuiNET |
|
|
|
|
public static void TreePush() |
|
|
|
|
{ |
|
|
|
|
void* ptr_id = null; |
|
|
|
|
ImGuiNative.igTreePushPtr(ptr_id); |
|
|
|
|
ImGuiNative.igTreePush_Ptr(ptr_id); |
|
|
|
|
} |
|
|
|
|
public static void TreePush(IntPtr ptr_id) |
|
|
|
|
{ |
|
|
|
|
void* native_ptr_id = (void*)ptr_id.ToPointer(); |
|
|
|
|
ImGuiNative.igTreePushPtr(native_ptr_id); |
|
|
|
|
ImGuiNative.igTreePush_Ptr(native_ptr_id); |
|
|
|
|
} |
|
|
|
|
public static void Unindent() |
|
|
|
|
{ |
|
|
|
@ -13754,7 +13852,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_prefix = null; } |
|
|
|
|
byte native_b = b ? (byte)1 : (byte)0; |
|
|
|
|
ImGuiNative.igValueBool(native_prefix, native_b); |
|
|
|
|
ImGuiNative.igValue_Bool(native_prefix, native_b); |
|
|
|
|
if (prefix_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_prefix); |
|
|
|
@ -13780,7 +13878,7 @@ namespace ImGuiNET |
|
|
|
|
native_prefix[native_prefix_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_prefix = null; } |
|
|
|
|
ImGuiNative.igValueInt(native_prefix, v); |
|
|
|
|
ImGuiNative.igValue_Int(native_prefix, v); |
|
|
|
|
if (prefix_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_prefix); |
|
|
|
@ -13806,7 +13904,7 @@ namespace ImGuiNET |
|
|
|
|
native_prefix[native_prefix_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_prefix = null; } |
|
|
|
|
ImGuiNative.igValueUint(native_prefix, v); |
|
|
|
|
ImGuiNative.igValue_Uint(native_prefix, v); |
|
|
|
|
if (prefix_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_prefix); |
|
|
|
@ -13833,7 +13931,7 @@ namespace ImGuiNET |
|
|
|
|
} |
|
|
|
|
else { native_prefix = null; } |
|
|
|
|
byte* native_float_format = null; |
|
|
|
|
ImGuiNative.igValueFloat(native_prefix, v, native_float_format); |
|
|
|
|
ImGuiNative.igValue_Float(native_prefix, v, native_float_format); |
|
|
|
|
if (prefix_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_prefix); |
|
|
|
@ -13877,7 +13975,7 @@ namespace ImGuiNET |
|
|
|
|
native_float_format[native_float_format_offset] = 0; |
|
|
|
|
} |
|
|
|
|
else { native_float_format = null; } |
|
|
|
|
ImGuiNative.igValueFloat(native_prefix, v, native_float_format); |
|
|
|
|
ImGuiNative.igValue_Float(native_prefix, v, native_float_format); |
|
|
|
|
if (prefix_byteCount > Util.StackAllocationSizeLimit) |
|
|
|
|
{ |
|
|
|
|
Util.Free(native_prefix); |
|
|
|
|