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.
53 lines
2.3 KiB
53 lines
2.3 KiB
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); |
|
} |
|
} |
|
}
|
|
|