You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
using System; |
|
using System.Numerics; |
|
using System.Runtime.CompilerServices; |
|
using System.Text; |
|
using ImGuiNET; |
|
|
|
namespace imnodesNET |
|
{ |
|
public unsafe partial struct IO |
|
{ |
|
public EmulateThreeButtonMouse emulate_three_button_mouse; |
|
public LinkDetachWithModifierClick link_detach_with_modifier_click; |
|
} |
|
public unsafe partial struct IOPtr |
|
{ |
|
public IO* NativePtr { get; } |
|
public IOPtr(IO* nativePtr) => NativePtr = nativePtr; |
|
public IOPtr(IntPtr nativePtr) => NativePtr = (IO*)nativePtr; |
|
public static implicit operator IOPtr(IO* nativePtr) => new IOPtr(nativePtr); |
|
public static implicit operator IO* (IOPtr wrappedPtr) => wrappedPtr.NativePtr; |
|
public static implicit operator IOPtr(IntPtr nativePtr) => new IOPtr(nativePtr); |
|
public ref EmulateThreeButtonMouse emulate_three_button_mouse => ref Unsafe.AsRef<EmulateThreeButtonMouse>(&NativePtr->emulate_three_button_mouse); |
|
public ref LinkDetachWithModifierClick link_detach_with_modifier_click => ref Unsafe.AsRef<LinkDetachWithModifierClick>(&NativePtr->link_detach_with_modifier_click); |
|
public void Destroy() |
|
{ |
|
imnodesNative.IO_destroy((IO*)(NativePtr)); |
|
} |
|
} |
|
}
|
|
|