diff --git a/NuGet.Config b/NuGet.Config
deleted file mode 100644
index eba6f65..0000000
--- a/NuGet.Config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/src/CodeGenerator/ImguiDefinitions.cs b/src/CodeGenerator/ImguiDefinitions.cs
index 67be575..92e7d74 100644
--- a/src/CodeGenerator/ImguiDefinitions.cs
+++ b/src/CodeGenerator/ImguiDefinitions.cs
@@ -268,6 +268,10 @@ namespace CodeGenerator
if (memberName.StartsWith(Name))
{
ret = memberName.Substring(Name.Length);
+ if (ret.StartsWith("_"))
+ {
+ ret = ret.Substring(1);
+ }
}
if (ret.EndsWith('_'))
diff --git a/src/CodeGenerator/Program.cs b/src/CodeGenerator/Program.cs
index 5ed289d..aca9c05 100644
--- a/src/CodeGenerator/Program.cs
+++ b/src/CodeGenerator/Program.cs
@@ -39,9 +39,9 @@ namespace CodeGenerator
{
"cimgui" => "ImGuiNET",
"cimplot" => "ImPlotNET",
- "cimnodes" => "ImNodesNET",
+ "cimnodes" => "imnodesNET",
"cimguizmo" => "ImGuizmoNET",
- _ => throw new NotImplementedException()
+ _ => throw new NotImplementedException($"Library \"{libraryName}\" is not supported.")
};
bool referencesImGui = libraryName switch
@@ -50,16 +50,16 @@ namespace CodeGenerator
"cimplot" => true,
"cimnodes" => true,
"cimguizmo" => true,
- _ => throw new NotImplementedException()
+ _ => throw new NotImplementedException($"Library \"{libraryName}\" is not supported.")
};
string classPrefix = libraryName switch
{
"cimgui" => "ImGui",
"cimplot" => "ImPlot",
- "cimnodes" => "ImNodes",
+ "cimnodes" => "imnodes",
"cimguizmo" => "ImGuizmo",
- _ => throw new NotImplementedException()
+ _ => throw new NotImplementedException($"Library \"{libraryName}\" is not supported.")
};
string dllName = libraryName switch
diff --git a/src/ImGui.NET.SampleProgram/ImGuiController.cs b/src/ImGui.NET.SampleProgram/ImGuiController.cs
index 1b7a203..3c600ad 100644
--- a/src/ImGui.NET.SampleProgram/ImGuiController.cs
+++ b/src/ImGui.NET.SampleProgram/ImGuiController.cs
@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Numerics;
using System.Reflection;
using System.IO;
-using ImPlotNET;
using Veldrid;
using System.Runtime.CompilerServices;
@@ -62,9 +61,6 @@ namespace ImGuiNET
IntPtr context = ImGui.CreateContext();
ImGui.SetCurrentContext(context);
- IntPtr implotContext = ImPlot.CreateContext();
- ImPlot.SetCurrentContext(implotContext);
- ImPlot.SetImGuiContext(context);
var fonts = ImGui.GetIO().Fonts;
ImGui.GetIO().Fonts.AddFontDefault();
diff --git a/src/ImGui.NET.sln b/src/ImGui.NET.sln
index 3f507de..4ab8cef 100644
--- a/src/ImGui.NET.sln
+++ b/src/ImGui.NET.sln
@@ -12,7 +12,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeGenerator", "CodeGenera
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImPlot.NET", "ImPlot.NET\ImPlot.NET.csproj", "{817A9820-E750-43AB-B89E-FD51E58ACBF4}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImNodes.NET", "ImNodes.NET\ImNodes.NET.csproj", "{2786BF48-AE57-44EE-9E28-401AE88E972D}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "imnodes.NET", "imnodes.NET\imnodes.NET.csproj", "{2786BF48-AE57-44EE-9E28-401AE88E972D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImGuizmo.NET", "ImGuizmo.NET\ImGuizmo.NET.csproj", "{760568AB-DCC9-443E-ADFA-2B06B2E2B421}"
EndProject
diff --git a/src/ImNodes.NET/Generated/AttributeFlags.gen.cs b/src/ImNodes.NET/Generated/AttributeFlags.gen.cs
index feaa67c..fdb4b96 100644
--- a/src/ImNodes.NET/Generated/AttributeFlags.gen.cs
+++ b/src/ImNodes.NET/Generated/AttributeFlags.gen.cs
@@ -1,10 +1,10 @@
-namespace ImNodesNET
+namespace imnodesNET
{
[System.Flags]
public enum AttributeFlags
{
- _None = 0,
- _EnableLinkDetachWithDragClick = 1,
- _EnableLinkCreationOnSnap = 2,
+ None = 0,
+ EnableLinkDetachWithDragClick = 1,
+ EnableLinkCreationOnSnap = 2,
}
}
diff --git a/src/ImNodes.NET/Generated/ColorStyle.gen.cs b/src/ImNodes.NET/Generated/ColorStyle.gen.cs
index d24228d..c9ef51d 100644
--- a/src/ImNodes.NET/Generated/ColorStyle.gen.cs
+++ b/src/ImNodes.NET/Generated/ColorStyle.gen.cs
@@ -1,23 +1,23 @@
-namespace ImNodesNET
+namespace imnodesNET
{
public enum ColorStyle
{
- _NodeBackground = 0,
- _NodeBackgroundHovered = 1,
- _NodeBackgroundSelected = 2,
- _NodeOutline = 3,
- _TitleBar = 4,
- _TitleBarHovered = 5,
- _TitleBarSelected = 6,
- _Link = 7,
- _LinkHovered = 8,
- _LinkSelected = 9,
- _Pin = 10,
- _PinHovered = 11,
- _BoxSelector = 12,
- _BoxSelectorOutline = 13,
- _GridBackground = 14,
- _GridLine = 15,
- _Count = 16,
+ NodeBackground = 0,
+ NodeBackgroundHovered = 1,
+ NodeBackgroundSelected = 2,
+ NodeOutline = 3,
+ TitleBar = 4,
+ TitleBarHovered = 5,
+ TitleBarSelected = 6,
+ Link = 7,
+ LinkHovered = 8,
+ LinkSelected = 9,
+ Pin = 10,
+ PinHovered = 11,
+ BoxSelector = 12,
+ BoxSelectorOutline = 13,
+ GridBackground = 14,
+ GridLine = 15,
+ Count = 16,
}
}
diff --git a/src/ImNodes.NET/Generated/EmulateThreeButtonMouse.gen.cs b/src/ImNodes.NET/Generated/EmulateThreeButtonMouse.gen.cs
index fee4db9..0a213a4 100644
--- a/src/ImNodes.NET/Generated/EmulateThreeButtonMouse.gen.cs
+++ b/src/ImNodes.NET/Generated/EmulateThreeButtonMouse.gen.cs
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
-namespace ImNodesNET
+namespace imnodesNET
{
public unsafe partial struct EmulateThreeButtonMouse
{
@@ -23,7 +23,7 @@ namespace ImNodesNET
public IntPtr modifier { get => (IntPtr)NativePtr->modifier; set => NativePtr->modifier = (byte*)value; }
public void Destroy()
{
- ImNodesNative.EmulateThreeButtonMouse_destroy((EmulateThreeButtonMouse*)(NativePtr));
+ imnodesNative.EmulateThreeButtonMouse_destroy((EmulateThreeButtonMouse*)(NativePtr));
}
}
}
diff --git a/src/ImNodes.NET/Generated/IO.gen.cs b/src/ImNodes.NET/Generated/IO.gen.cs
index 56f736f..9c0b774 100644
--- a/src/ImNodes.NET/Generated/IO.gen.cs
+++ b/src/ImNodes.NET/Generated/IO.gen.cs
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
-namespace ImNodesNET
+namespace imnodesNET
{
public unsafe partial struct IO
{
@@ -23,7 +23,7 @@ namespace ImNodesNET
public ref LinkDetachWithModifierClick link_detach_with_modifier_click => ref Unsafe.AsRef(&NativePtr->link_detach_with_modifier_click);
public void Destroy()
{
- ImNodesNative.IO_destroy((IO*)(NativePtr));
+ imnodesNative.IO_destroy((IO*)(NativePtr));
}
}
}
diff --git a/src/ImNodes.NET/Generated/ImNodes.gen.cs b/src/ImNodes.NET/Generated/ImNodes.gen.cs
index 8ce1625..837bdeb 100644
--- a/src/ImNodes.NET/Generated/ImNodes.gen.cs
+++ b/src/ImNodes.NET/Generated/ImNodes.gen.cs
@@ -4,177 +4,177 @@ using System.Runtime.InteropServices;
using System.Text;
using ImGuiNET;
-namespace ImNodesNET
+namespace imnodesNET
{
- public static unsafe partial class ImNodes
+ public static unsafe partial class imnodes
{
public static void BeginInputAttribute(int id)
{
PinShape shape = PinShape._CircleFilled;
- ImNodesNative.imnodes_BeginInputAttribute(id, shape);
+ imnodesNative.imnodes_BeginInputAttribute(id, shape);
}
public static void BeginInputAttribute(int id, PinShape shape)
{
- ImNodesNative.imnodes_BeginInputAttribute(id, shape);
+ imnodesNative.imnodes_BeginInputAttribute(id, shape);
}
public static void BeginNode(int id)
{
- ImNodesNative.imnodes_BeginNode(id);
+ imnodesNative.imnodes_BeginNode(id);
}
public static void BeginNodeEditor()
{
- ImNodesNative.imnodes_BeginNodeEditor();
+ imnodesNative.imnodes_BeginNodeEditor();
}
public static void BeginNodeTitleBar()
{
- ImNodesNative.imnodes_BeginNodeTitleBar();
+ imnodesNative.imnodes_BeginNodeTitleBar();
}
public static void BeginOutputAttribute(int id)
{
PinShape shape = PinShape._CircleFilled;
- ImNodesNative.imnodes_BeginOutputAttribute(id, shape);
+ imnodesNative.imnodes_BeginOutputAttribute(id, shape);
}
public static void BeginOutputAttribute(int id, PinShape shape)
{
- ImNodesNative.imnodes_BeginOutputAttribute(id, shape);
+ imnodesNative.imnodes_BeginOutputAttribute(id, shape);
}
public static void BeginStaticAttribute(int id)
{
- ImNodesNative.imnodes_BeginStaticAttribute(id);
+ imnodesNative.imnodes_BeginStaticAttribute(id);
}
public static void ClearLinkSelection()
{
- ImNodesNative.imnodes_ClearLinkSelection();
+ imnodesNative.imnodes_ClearLinkSelection();
}
public static void ClearNodeSelection()
{
- ImNodesNative.imnodes_ClearNodeSelection();
+ imnodesNative.imnodes_ClearNodeSelection();
}
public static IntPtr EditorContextCreate()
{
- IntPtr ret = ImNodesNative.imnodes_EditorContextCreate();
+ IntPtr ret = imnodesNative.imnodes_EditorContextCreate();
return ret;
}
public static void EditorContextFree(IntPtr noname1)
{
- ImNodesNative.imnodes_EditorContextFree(noname1);
+ imnodesNative.imnodes_EditorContextFree(noname1);
}
public static Vector2 EditorContextGetPanning()
{
Vector2 __retval;
- ImNodesNative.imnodes_EditorContextGetPanning(&__retval);
+ imnodesNative.imnodes_EditorContextGetPanning(&__retval);
return __retval;
}
public static void EditorContextMoveToNode(int node_id)
{
- ImNodesNative.imnodes_EditorContextMoveToNode(node_id);
+ imnodesNative.imnodes_EditorContextMoveToNode(node_id);
}
public static void EditorContextResetPanning(Vector2 pos)
{
- ImNodesNative.imnodes_EditorContextResetPanning(pos);
+ imnodesNative.imnodes_EditorContextResetPanning(pos);
}
public static void EditorContextSet(IntPtr noname1)
{
- ImNodesNative.imnodes_EditorContextSet(noname1);
+ imnodesNative.imnodes_EditorContextSet(noname1);
}
public static void EndInputAttribute()
{
- ImNodesNative.imnodes_EndInputAttribute();
+ imnodesNative.imnodes_EndInputAttribute();
}
public static void EndNode()
{
- ImNodesNative.imnodes_EndNode();
+ imnodesNative.imnodes_EndNode();
}
public static void EndNodeEditor()
{
- ImNodesNative.imnodes_EndNodeEditor();
+ imnodesNative.imnodes_EndNodeEditor();
}
public static void EndNodeTitleBar()
{
- ImNodesNative.imnodes_EndNodeTitleBar();
+ imnodesNative.imnodes_EndNodeTitleBar();
}
public static void EndOutputAttribute()
{
- ImNodesNative.imnodes_EndOutputAttribute();
+ imnodesNative.imnodes_EndOutputAttribute();
}
public static void EndStaticAttribute()
{
- ImNodesNative.imnodes_EndStaticAttribute();
+ imnodesNative.imnodes_EndStaticAttribute();
}
public static IO* GetIO()
{
- IO* ret = ImNodesNative.imnodes_GetIO();
+ IO* ret = imnodesNative.imnodes_GetIO();
return ret;
}
public static Vector2 GetNodeDimensions(int id)
{
Vector2 __retval;
- ImNodesNative.imnodes_GetNodeDimensions(&__retval, id);
+ imnodesNative.imnodes_GetNodeDimensions(&__retval, id);
return __retval;
}
public static Vector2 GetNodeEditorSpacePos(int node_id)
{
Vector2 __retval;
- ImNodesNative.imnodes_GetNodeEditorSpacePos(&__retval, node_id);
+ imnodesNative.imnodes_GetNodeEditorSpacePos(&__retval, node_id);
return __retval;
}
public static Vector2 GetNodeGridSpacePos(int node_id)
{
Vector2 __retval;
- ImNodesNative.imnodes_GetNodeGridSpacePos(&__retval, node_id);
+ imnodesNative.imnodes_GetNodeGridSpacePos(&__retval, node_id);
return __retval;
}
public static Vector2 GetNodeScreenSpacePos(int node_id)
{
Vector2 __retval;
- ImNodesNative.imnodes_GetNodeScreenSpacePos(&__retval, node_id);
+ imnodesNative.imnodes_GetNodeScreenSpacePos(&__retval, node_id);
return __retval;
}
public static void GetSelectedLinks(ref int link_ids)
{
fixed (int* native_link_ids = &link_ids)
{
- ImNodesNative.imnodes_GetSelectedLinks(native_link_ids);
+ imnodesNative.imnodes_GetSelectedLinks(native_link_ids);
}
}
public static void GetSelectedNodes(ref int node_ids)
{
fixed (int* native_node_ids = &node_ids)
{
- ImNodesNative.imnodes_GetSelectedNodes(native_node_ids);
+ imnodesNative.imnodes_GetSelectedNodes(native_node_ids);
}
}
public static Style* GetStyle()
{
- Style* ret = ImNodesNative.imnodes_GetStyle();
+ Style* ret = imnodesNative.imnodes_GetStyle();
return ret;
}
public static void Initialize()
{
- ImNodesNative.imnodes_Initialize();
+ imnodesNative.imnodes_Initialize();
}
public static bool IsAnyAttributeActive()
{
int* attribute_id = null;
- byte ret = ImNodesNative.imnodes_IsAnyAttributeActive(attribute_id);
+ byte ret = imnodesNative.imnodes_IsAnyAttributeActive(attribute_id);
return ret != 0;
}
public static bool IsAnyAttributeActive(ref int attribute_id)
{
fixed (int* native_attribute_id = &attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsAnyAttributeActive(native_attribute_id);
+ byte ret = imnodesNative.imnodes_IsAnyAttributeActive(native_attribute_id);
return ret != 0;
}
}
public static bool IsAttributeActive()
{
- byte ret = ImNodesNative.imnodes_IsAttributeActive();
+ byte ret = imnodesNative.imnodes_IsAttributeActive();
return ret != 0;
}
public static bool IsEditorHovered()
{
- byte ret = ImNodesNative.imnodes_IsEditorHovered();
+ byte ret = imnodesNative.imnodes_IsEditorHovered();
return ret != 0;
}
public static bool IsLinkCreated(ref int started_at_attribute_id, ref int ended_at_attribute_id)
@@ -184,7 +184,7 @@ namespace ImNodesNET
{
fixed (int* native_ended_at_attribute_id = &ended_at_attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkCreatedBoolPtr(native_started_at_attribute_id, native_ended_at_attribute_id, created_from_snap);
+ byte ret = imnodesNative.imnodes_IsLinkCreatedBoolPtr(native_started_at_attribute_id, native_ended_at_attribute_id, created_from_snap);
return ret != 0;
}
}
@@ -197,7 +197,7 @@ namespace ImNodesNET
{
fixed (int* native_ended_at_attribute_id = &ended_at_attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkCreatedBoolPtr(native_started_at_attribute_id, native_ended_at_attribute_id, native_created_from_snap);
+ byte ret = imnodesNative.imnodes_IsLinkCreatedBoolPtr(native_started_at_attribute_id, native_ended_at_attribute_id, native_created_from_snap);
created_from_snap = native_created_from_snap_val != 0;
return ret != 0;
}
@@ -214,7 +214,7 @@ namespace ImNodesNET
{
fixed (int* native_ended_at_attribute_id = &ended_at_attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkCreatedIntPtr(native_started_at_node_id, native_started_at_attribute_id, native_ended_at_node_id, native_ended_at_attribute_id, created_from_snap);
+ byte ret = imnodesNative.imnodes_IsLinkCreatedIntPtr(native_started_at_node_id, native_started_at_attribute_id, native_ended_at_node_id, native_ended_at_attribute_id, created_from_snap);
return ret != 0;
}
}
@@ -233,7 +233,7 @@ namespace ImNodesNET
{
fixed (int* native_ended_at_attribute_id = &ended_at_attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkCreatedIntPtr(native_started_at_node_id, native_started_at_attribute_id, native_ended_at_node_id, native_ended_at_attribute_id, native_created_from_snap);
+ byte ret = imnodesNative.imnodes_IsLinkCreatedIntPtr(native_started_at_node_id, native_started_at_attribute_id, native_ended_at_node_id, native_ended_at_attribute_id, native_created_from_snap);
created_from_snap = native_created_from_snap_val != 0;
return ret != 0;
}
@@ -245,7 +245,7 @@ namespace ImNodesNET
{
fixed (int* native_link_id = &link_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkDestroyed(native_link_id);
+ byte ret = imnodesNative.imnodes_IsLinkDestroyed(native_link_id);
return ret != 0;
}
}
@@ -253,7 +253,7 @@ namespace ImNodesNET
{
int* started_at_attribute_id = null;
byte including_detached_links = 1;
- byte ret = ImNodesNative.imnodes_IsLinkDropped(started_at_attribute_id, including_detached_links);
+ byte ret = imnodesNative.imnodes_IsLinkDropped(started_at_attribute_id, including_detached_links);
return ret != 0;
}
public static bool IsLinkDropped(ref int started_at_attribute_id)
@@ -261,7 +261,7 @@ namespace ImNodesNET
byte including_detached_links = 1;
fixed (int* native_started_at_attribute_id = &started_at_attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkDropped(native_started_at_attribute_id, including_detached_links);
+ byte ret = imnodesNative.imnodes_IsLinkDropped(native_started_at_attribute_id, including_detached_links);
return ret != 0;
}
}
@@ -270,7 +270,7 @@ namespace ImNodesNET
byte native_including_detached_links = including_detached_links ? (byte)1 : (byte)0;
fixed (int* native_started_at_attribute_id = &started_at_attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkDropped(native_started_at_attribute_id, native_including_detached_links);
+ byte ret = imnodesNative.imnodes_IsLinkDropped(native_started_at_attribute_id, native_including_detached_links);
return ret != 0;
}
}
@@ -278,7 +278,7 @@ namespace ImNodesNET
{
fixed (int* native_link_id = &link_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkHovered(native_link_id);
+ byte ret = imnodesNative.imnodes_IsLinkHovered(native_link_id);
return ret != 0;
}
}
@@ -286,7 +286,7 @@ namespace ImNodesNET
{
fixed (int* native_started_at_attribute_id = &started_at_attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsLinkStarted(native_started_at_attribute_id);
+ byte ret = imnodesNative.imnodes_IsLinkStarted(native_started_at_attribute_id);
return ret != 0;
}
}
@@ -294,7 +294,7 @@ namespace ImNodesNET
{
fixed (int* native_node_id = &node_id)
{
- byte ret = ImNodesNative.imnodes_IsNodeHovered(native_node_id);
+ byte ret = imnodesNative.imnodes_IsNodeHovered(native_node_id);
return ret != 0;
}
}
@@ -302,13 +302,13 @@ namespace ImNodesNET
{
fixed (int* native_attribute_id = &attribute_id)
{
- byte ret = ImNodesNative.imnodes_IsPinHovered(native_attribute_id);
+ byte ret = imnodesNative.imnodes_IsPinHovered(native_attribute_id);
return ret != 0;
}
}
public static void Link(int id, int start_attribute_id, int end_attribute_id)
{
- ImNodesNative.imnodes_Link(id, start_attribute_id, end_attribute_id);
+ imnodesNative.imnodes_Link(id, start_attribute_id, end_attribute_id);
}
public static void LoadCurrentEditorStateFromIniFile(string file_name)
{
@@ -330,7 +330,7 @@ namespace ImNodesNET
native_file_name[native_file_name_offset] = 0;
}
else { native_file_name = null; }
- ImNodesNative.imnodes_LoadCurrentEditorStateFromIniFile(native_file_name);
+ imnodesNative.imnodes_LoadCurrentEditorStateFromIniFile(native_file_name);
if (file_name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_file_name);
@@ -356,7 +356,7 @@ namespace ImNodesNET
native_data[native_data_offset] = 0;
}
else { native_data = null; }
- ImNodesNative.imnodes_LoadCurrentEditorStateFromIniString(native_data, data_size);
+ imnodesNative.imnodes_LoadCurrentEditorStateFromIniString(native_data, data_size);
if (data_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_data);
@@ -382,7 +382,7 @@ namespace ImNodesNET
native_file_name[native_file_name_offset] = 0;
}
else { native_file_name = null; }
- ImNodesNative.imnodes_LoadEditorStateFromIniFile(editor, native_file_name);
+ imnodesNative.imnodes_LoadEditorStateFromIniFile(editor, native_file_name);
if (file_name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_file_name);
@@ -408,7 +408,7 @@ namespace ImNodesNET
native_data[native_data_offset] = 0;
}
else { native_data = null; }
- ImNodesNative.imnodes_LoadEditorStateFromIniString(editor, native_data, data_size);
+ imnodesNative.imnodes_LoadEditorStateFromIniString(editor, native_data, data_size);
if (data_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_data);
@@ -416,37 +416,37 @@ namespace ImNodesNET
}
public static int NumSelectedLinks()
{
- int ret = ImNodesNative.imnodes_NumSelectedLinks();
+ int ret = imnodesNative.imnodes_NumSelectedLinks();
return ret;
}
public static int NumSelectedNodes()
{
- int ret = ImNodesNative.imnodes_NumSelectedNodes();
+ int ret = imnodesNative.imnodes_NumSelectedNodes();
return ret;
}
public static void PopAttributeFlag()
{
- ImNodesNative.imnodes_PopAttributeFlag();
+ imnodesNative.imnodes_PopAttributeFlag();
}
public static void PopColorStyle()
{
- ImNodesNative.imnodes_PopColorStyle();
+ imnodesNative.imnodes_PopColorStyle();
}
public static void PopStyleVar()
{
- ImNodesNative.imnodes_PopStyleVar();
+ imnodesNative.imnodes_PopStyleVar();
}
public static void PushAttributeFlag(AttributeFlags flag)
{
- ImNodesNative.imnodes_PushAttributeFlag(flag);
+ imnodesNative.imnodes_PushAttributeFlag(flag);
}
public static void PushColorStyle(ColorStyle item, uint color)
{
- ImNodesNative.imnodes_PushColorStyle(item, color);
+ imnodesNative.imnodes_PushColorStyle(item, color);
}
public static void PushStyleVar(StyleVar style_item, float value)
{
- ImNodesNative.imnodes_PushStyleVar(style_item, value);
+ imnodesNative.imnodes_PushStyleVar(style_item, value);
}
public static void SaveCurrentEditorStateToIniFile(string file_name)
{
@@ -468,7 +468,7 @@ namespace ImNodesNET
native_file_name[native_file_name_offset] = 0;
}
else { native_file_name = null; }
- ImNodesNative.imnodes_SaveCurrentEditorStateToIniFile(native_file_name);
+ imnodesNative.imnodes_SaveCurrentEditorStateToIniFile(native_file_name);
if (file_name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_file_name);
@@ -477,14 +477,14 @@ namespace ImNodesNET
public static string SaveCurrentEditorStateToIniString()
{
uint* data_size = null;
- byte* ret = ImNodesNative.imnodes_SaveCurrentEditorStateToIniString(data_size);
+ byte* ret = imnodesNative.imnodes_SaveCurrentEditorStateToIniString(data_size);
return Util.StringFromPtr(ret);
}
public static string SaveCurrentEditorStateToIniString(ref uint data_size)
{
fixed (uint* native_data_size = &data_size)
{
- byte* ret = ImNodesNative.imnodes_SaveCurrentEditorStateToIniString(native_data_size);
+ byte* ret = imnodesNative.imnodes_SaveCurrentEditorStateToIniString(native_data_size);
return Util.StringFromPtr(ret);
}
}
@@ -508,7 +508,7 @@ namespace ImNodesNET
native_file_name[native_file_name_offset] = 0;
}
else { native_file_name = null; }
- ImNodesNative.imnodes_SaveEditorStateToIniFile(editor, native_file_name);
+ imnodesNative.imnodes_SaveEditorStateToIniFile(editor, native_file_name);
if (file_name_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_file_name);
@@ -517,53 +517,53 @@ namespace ImNodesNET
public static string SaveEditorStateToIniString(IntPtr editor)
{
uint* data_size = null;
- byte* ret = ImNodesNative.imnodes_SaveEditorStateToIniString(editor, data_size);
+ byte* ret = imnodesNative.imnodes_SaveEditorStateToIniString(editor, data_size);
return Util.StringFromPtr(ret);
}
public static string SaveEditorStateToIniString(IntPtr editor, ref uint data_size)
{
fixed (uint* native_data_size = &data_size)
{
- byte* ret = ImNodesNative.imnodes_SaveEditorStateToIniString(editor, native_data_size);
+ byte* ret = imnodesNative.imnodes_SaveEditorStateToIniString(editor, native_data_size);
return Util.StringFromPtr(ret);
}
}
public static void SetImGuiContext(IntPtr ctx)
{
- ImNodesNative.imnodes_SetImGuiContext(ctx);
+ imnodesNative.imnodes_SetImGuiContext(ctx);
}
public static void SetNodeDraggable(int node_id, bool draggable)
{
byte native_draggable = draggable ? (byte)1 : (byte)0;
- ImNodesNative.imnodes_SetNodeDraggable(node_id, native_draggable);
+ imnodesNative.imnodes_SetNodeDraggable(node_id, native_draggable);
}
public static void SetNodeEditorSpacePos(int node_id, Vector2 editor_space_pos)
{
- ImNodesNative.imnodes_SetNodeEditorSpacePos(node_id, editor_space_pos);
+ imnodesNative.imnodes_SetNodeEditorSpacePos(node_id, editor_space_pos);
}
public static void SetNodeGridSpacePos(int node_id, Vector2 grid_pos)
{
- ImNodesNative.imnodes_SetNodeGridSpacePos(node_id, grid_pos);
+ imnodesNative.imnodes_SetNodeGridSpacePos(node_id, grid_pos);
}
public static void SetNodeScreenSpacePos(int node_id, Vector2 screen_space_pos)
{
- ImNodesNative.imnodes_SetNodeScreenSpacePos(node_id, screen_space_pos);
+ imnodesNative.imnodes_SetNodeScreenSpacePos(node_id, screen_space_pos);
}
public static void Shutdown()
{
- ImNodesNative.imnodes_Shutdown();
+ imnodesNative.imnodes_Shutdown();
}
public static void StyleColorsClassic()
{
- ImNodesNative.imnodes_StyleColorsClassic();
+ imnodesNative.imnodes_StyleColorsClassic();
}
public static void StyleColorsDark()
{
- ImNodesNative.imnodes_StyleColorsDark();
+ imnodesNative.imnodes_StyleColorsDark();
}
public static void StyleColorsLight()
{
- ImNodesNative.imnodes_StyleColorsLight();
+ imnodesNative.imnodes_StyleColorsLight();
}
}
}
diff --git a/src/ImNodes.NET/Generated/ImNodesNative.gen.cs b/src/ImNodes.NET/Generated/ImNodesNative.gen.cs
index 64318a2..d2e6552 100644
--- a/src/ImNodes.NET/Generated/ImNodesNative.gen.cs
+++ b/src/ImNodes.NET/Generated/ImNodesNative.gen.cs
@@ -3,9 +3,9 @@ using System.Numerics;
using System.Runtime.InteropServices;
using ImGuiNET;
-namespace ImNodesNET
+namespace imnodesNET
{
- public static unsafe partial class ImNodesNative
+ public static unsafe partial class imnodesNative
{
[DllImport("cimnodes", CallingConvention = CallingConvention.Cdecl)]
public static extern void EmulateThreeButtonMouse_destroy(EmulateThreeButtonMouse* self);
diff --git a/src/ImNodes.NET/Generated/LinkDetachWithModifierClick.gen.cs b/src/ImNodes.NET/Generated/LinkDetachWithModifierClick.gen.cs
index 4a854ef..0424b41 100644
--- a/src/ImNodes.NET/Generated/LinkDetachWithModifierClick.gen.cs
+++ b/src/ImNodes.NET/Generated/LinkDetachWithModifierClick.gen.cs
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
-namespace ImNodesNET
+namespace imnodesNET
{
public unsafe partial struct LinkDetachWithModifierClick
{
@@ -21,7 +21,7 @@ namespace ImNodesNET
public IntPtr modifier { get => (IntPtr)NativePtr->modifier; set => NativePtr->modifier = (byte*)value; }
public void Destroy()
{
- ImNodesNative.LinkDetachWithModifierClick_destroy((LinkDetachWithModifierClick*)(NativePtr));
+ imnodesNative.LinkDetachWithModifierClick_destroy((LinkDetachWithModifierClick*)(NativePtr));
}
}
}
diff --git a/src/ImNodes.NET/Generated/PinShape.gen.cs b/src/ImNodes.NET/Generated/PinShape.gen.cs
index cfde99e..fd0fd0d 100644
--- a/src/ImNodes.NET/Generated/PinShape.gen.cs
+++ b/src/ImNodes.NET/Generated/PinShape.gen.cs
@@ -1,12 +1,12 @@
-namespace ImNodesNET
+namespace imnodesNET
{
public enum PinShape
{
- _Circle = 0,
- _CircleFilled = 1,
- _Triangle = 2,
- _TriangleFilled = 3,
- _Quad = 4,
- _QuadFilled = 5,
+ Circle = 0,
+ CircleFilled = 1,
+ Triangle = 2,
+ TriangleFilled = 3,
+ Quad = 4,
+ QuadFilled = 5,
}
}
diff --git a/src/ImNodes.NET/Generated/Style.gen.cs b/src/ImNodes.NET/Generated/Style.gen.cs
index 43f69da..81ea16b 100644
--- a/src/ImNodes.NET/Generated/Style.gen.cs
+++ b/src/ImNodes.NET/Generated/Style.gen.cs
@@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
-namespace ImNodesNET
+namespace imnodesNET
{
public unsafe partial struct Style
{
@@ -51,7 +51,7 @@ namespace ImNodesNET
public RangeAccessor colors => new RangeAccessor(NativePtr->colors, 16);
public void Destroy()
{
- ImNodesNative.Style_destroy((Style*)(NativePtr));
+ imnodesNative.Style_destroy((Style*)(NativePtr));
}
}
}
diff --git a/src/ImNodes.NET/Generated/StyleFlags.gen.cs b/src/ImNodes.NET/Generated/StyleFlags.gen.cs
index 1809ce2..ec6644e 100644
--- a/src/ImNodes.NET/Generated/StyleFlags.gen.cs
+++ b/src/ImNodes.NET/Generated/StyleFlags.gen.cs
@@ -1,10 +1,10 @@
-namespace ImNodesNET
+namespace imnodesNET
{
[System.Flags]
public enum StyleFlags
{
- _None = 0,
- _NodeOutline = 1,
- _GridLines = 4,
+ None = 0,
+ NodeOutline = 1,
+ GridLines = 4,
}
}
diff --git a/src/ImNodes.NET/Generated/StyleVar.gen.cs b/src/ImNodes.NET/Generated/StyleVar.gen.cs
index a54c0dc..cb5df3c 100644
--- a/src/ImNodes.NET/Generated/StyleVar.gen.cs
+++ b/src/ImNodes.NET/Generated/StyleVar.gen.cs
@@ -1,20 +1,20 @@
-namespace ImNodesNET
+namespace imnodesNET
{
public enum StyleVar
{
- _GridSpacing = 0,
- _NodeCornerRounding = 1,
- _NodePaddingHorizontal = 2,
- _NodePaddingVertical = 3,
- _NodeBorderThickness = 4,
- _LinkThickness = 5,
- _LinkLineSegmentsPerLength = 6,
- _LinkHoverDistance = 7,
- _PinCircleRadius = 8,
- _PinQuadSideLength = 9,
- _PinTriangleSideLength = 10,
- _PinLineThickness = 11,
- _PinHoverRadius = 12,
- _PinOffset = 13,
+ GridSpacing = 0,
+ NodeCornerRounding = 1,
+ NodePaddingHorizontal = 2,
+ NodePaddingVertical = 3,
+ NodeBorderThickness = 4,
+ LinkThickness = 5,
+ LinkLineSegmentsPerLength = 6,
+ LinkHoverDistance = 7,
+ PinCircleRadius = 8,
+ PinQuadSideLength = 9,
+ PinTriangleSideLength = 10,
+ PinLineThickness = 11,
+ PinHoverRadius = 12,
+ PinOffset = 13,
}
}
diff --git a/src/ImNodes.NET/ImNodes.NET.csproj b/src/ImNodes.NET/ImNodes.NET.csproj
index 8371cfc..6b6ee80 100644
--- a/src/ImNodes.NET/ImNodes.NET.csproj
+++ b/src/ImNodes.NET/ImNodes.NET.csproj
@@ -1,6 +1,6 @@
- A .NET wrapper for the ImNodes library.
+ A .NET wrapper for the imnodes library.
0.3.0
Eric Mellino
netstandard2.0
@@ -10,10 +10,10 @@
ImNodes.NET
$(AssemblyVersion)$(PackagePrereleaseIdentifier)
- ImNodes ImGui ImGui.NET Immediate Mode GUI
+ imnodes ImGui ImGui.NET Immediate Mode GUI
https://github.com/mellinoe/imgui.net
- $(OutputPath)\ImNodes.NET.xml
- ImNodesNET
+ $(OutputPath)\imnodes.NET.xml
+ imnodesNET