parent
8e34c987ea
commit
88ca3dc6e9
16 changed files with 2305 additions and 2038 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,53 @@ |
||||
using System; |
||||
using System.Numerics; |
||||
using System.Runtime.CompilerServices; |
||||
using System.Text; |
||||
|
||||
namespace ImGuiNET |
||||
{ |
||||
public unsafe partial struct ImDrawListSplitter |
||||
{ |
||||
public int _Current; |
||||
public int _Count; |
||||
public ImVector _Channels; |
||||
} |
||||
public unsafe partial struct ImDrawListSplitterPtr |
||||
{ |
||||
public ImDrawListSplitter* NativePtr { get; } |
||||
public ImDrawListSplitterPtr(ImDrawListSplitter* nativePtr) => NativePtr = nativePtr; |
||||
public ImDrawListSplitterPtr(IntPtr nativePtr) => NativePtr = (ImDrawListSplitter*)nativePtr; |
||||
public static implicit operator ImDrawListSplitterPtr(ImDrawListSplitter* nativePtr) => new ImDrawListSplitterPtr(nativePtr); |
||||
public static implicit operator ImDrawListSplitter* (ImDrawListSplitterPtr wrappedPtr) => wrappedPtr.NativePtr; |
||||
public static implicit operator ImDrawListSplitterPtr(IntPtr nativePtr) => new ImDrawListSplitterPtr(nativePtr); |
||||
public ref int _Current => ref Unsafe.AsRef<int>(&NativePtr->_Current); |
||||
public ref int _Count => ref Unsafe.AsRef<int>(&NativePtr->_Count); |
||||
public ImPtrVector<ImDrawChannelPtr> _Channels => new ImPtrVector<ImDrawChannelPtr>(NativePtr->_Channels, Unsafe.SizeOf<ImDrawChannel>()); |
||||
public void Clear() |
||||
{ |
||||
ImGuiNative.ImDrawListSplitter_Clear(NativePtr); |
||||
} |
||||
public void ClearFreeMemory() |
||||
{ |
||||
ImGuiNative.ImDrawListSplitter_ClearFreeMemory(NativePtr); |
||||
} |
||||
public void Destroy() |
||||
{ |
||||
ImGuiNative.ImDrawListSplitter_destroy(NativePtr); |
||||
} |
||||
public void Merge(ImDrawListPtr draw_list) |
||||
{ |
||||
ImDrawList* native_draw_list = draw_list.NativePtr; |
||||
ImGuiNative.ImDrawListSplitter_Merge(NativePtr, native_draw_list); |
||||
} |
||||
public void SetCurrentChannel(ImDrawListPtr draw_list, int channel_idx) |
||||
{ |
||||
ImDrawList* native_draw_list = draw_list.NativePtr; |
||||
ImGuiNative.ImDrawListSplitter_SetCurrentChannel(NativePtr, native_draw_list, channel_idx); |
||||
} |
||||
public void Split(ImDrawListPtr draw_list, int count) |
||||
{ |
||||
ImDrawList* native_draw_list = draw_list.NativePtr; |
||||
ImGuiNative.ImDrawListSplitter_Split(NativePtr, native_draw_list, count); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue