//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Temporary storage to output draw commands out of order, used by ImDrawListSplitter and
/// ImDrawList::ChannelsSplit()
///
///
/// C++:
/// imgui.h:174
///
struct ImDrawChannel
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 32)]
public partial struct ImDrawChannel
{
///
///
/// C++:
/// imgui.h:3281
///
ImVector<ImDrawCmd> _CmdBuffer
///
///
///
///
/// [Internal] For use by ImDrawListSplitter
///
///
[FieldOffset(0)]
public ImVector _CmdBuffer;
///
///
/// C++:
/// imgui.h:3282
///
ImVector<ImDrawIdx> _IdxBuffer
///
///
///
///
/// [Internal] For use by ImDrawListSplitter
///
///
[FieldOffset(16)]
public ImVector _IdxBuffer;
}
///
///
/// Temporary storage to output draw commands out of order, used by ImDrawListSplitter and
/// ImDrawList::ChannelsSplit()
///
///
/// C++:
/// imgui.h:174
///
struct ImDrawChannel
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
public unsafe partial struct ImDrawChannelPtr(ImDrawChannel* ptr) : INullable
{
private ImDrawChannel* _ptr = ptr;
public ImDrawChannel* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImDrawChannelPtr(ImDrawChannel* ptr) => new(ptr);
public static implicit operator ImDrawChannel*(ImDrawChannelPtr wrapper) => wrapper.Ptr;
///
///
/// C++:
/// imgui.h:3281
///
ImVector<ImDrawCmd> _CmdBuffer
///
///
///
///
/// [Internal] For use by ImDrawListSplitter
///
///
public ref ImVector _CmdBuffer => ref Unsafe.AsRef>(&_ptr->_CmdBuffer);
///
///
/// C++:
/// imgui.h:3282
///
ImVector<ImDrawIdx> _IdxBuffer
///
///
///
///
/// [Internal] For use by ImDrawListSplitter
///
///
public ref ImVector _IdxBuffer => ref Unsafe.AsRef>(&_ptr->_IdxBuffer);
}
}