// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable using System.Runtime.CompilerServices; namespace Brutal.ImGuiApi { /// /// /// A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" /// builder) /// /// /// C++: /// imgui.h:177 ///
struct ImDrawList ///
///
/// /// /// Forward declarations: ImDrawList, ImFontAtlas layer /// /// [StructLayout(LayoutKind.Explicit, Size = 224)] public partial struct ImDrawList { /// /// /// Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. /// /// /// C++: /// imgui.h:3345 ///
ImVector<ImDrawCmd> CmdBuffer ///
///
/// /// /// This is what you have to render /// /// [FieldOffset(0)] public ImVector CmdBuffer; /// /// /// Index buffer. Each command consume ImDrawCmd::ElemCount of those /// /// /// C++: /// imgui.h:3346 ///
ImVector<ImDrawIdx> IdxBuffer ///
///
/// /// /// This is what you have to render /// /// [FieldOffset(16)] public ImVector IdxBuffer; /// /// /// Vertex buffer. /// /// /// C++: /// imgui.h:3347 ///
ImVector<ImDrawVert> VtxBuffer ///
///
/// /// /// This is what you have to render /// /// [FieldOffset(32)] public ImVector VtxBuffer; /// /// /// Flags, you may poke into these to adjust anti-aliasing settings per-primitive. /// /// /// C++: /// imgui.h:3348 ///
ImDrawListFlags Flags ///
///
/// /// /// This is what you have to render /// /// [FieldOffset(48)] public ImDrawListFlags Flags; /// /// /// [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to /// 0. /// /// /// C++: /// imgui.h:3351 ///
unsigned int _VtxCurrentIdx ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(52)] public uint _VtxCurrentIdx; /// /// /// Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current /// ImGui context) /// /// /// C++: /// imgui.h:3352 ///
ImDrawListSharedData* _Data ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(56)] public ImDrawListSharedDataPtr _Data; /// /// /// [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> /// operators too much) /// /// /// C++: /// imgui.h:3353 ///
ImDrawVert* _VtxWritePtr ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(64)] public ImDrawVertPtr _VtxWritePtr; /// /// /// [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> /// operators too much) /// /// /// C++: /// imgui.h:3354 ///
ImDrawIdx* _IdxWritePtr ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(72)] public Ptr _IdxWritePtr; /// /// /// [Internal] current path building /// /// /// C++: /// imgui.h:3355 ///
ImVector<ImVec2> _Path ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(80)] public ImVector _Path; /// /// /// [Internal] template of active commands. Fields should match those of CmdBuffer.back(). /// /// /// C++: /// imgui.h:3356 ///
ImDrawCmdHeader _CmdHeader ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(96)] public ImDrawCmdHeader _CmdHeader; /// /// /// [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) /// /// /// C++: /// imgui.h:3357 ///
ImDrawListSplitter _Splitter ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(136)] public ImDrawListSplitter _Splitter; /// /// /// [Internal] /// /// /// C++: /// imgui.h:3358 ///
ImVector<ImVec4> _ClipRectStack ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(160)] public ImVector _ClipRectStack; /// /// /// [Internal] /// /// /// C++: /// imgui.h:3359 ///
ImVector<ImTextureRef> _TextureStack ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(176)] public ImVector _TextureStack; /// /// /// [Internal] /// /// /// C++: /// imgui.h:3360 ///
ImVector<ImU8> _CallbacksDataBuf ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(192)] public ImVector _CallbacksDataBuf; /// /// /// [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at /// vertex buffer content /// /// /// C++: /// imgui.h:3361 ///
float _FringeScale ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(208)] public float _FringeScale; /// /// /// Pointer to owner window's name for debugging /// /// /// C++: /// imgui.h:3362 ///
const char* _OwnerName ///
///
/// /// /// [Internal, used while building lists] /// /// [FieldOffset(216)] public Ptr _OwnerName; } /// /// /// A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh" /// builder) /// /// /// C++: /// imgui.h:177 ///
struct ImDrawList ///
///
/// /// /// Forward declarations: ImDrawList, ImFontAtlas layer /// /// public unsafe partial struct ImDrawListPtr(ImDrawList* ptr) : INullable { private ImDrawList* _ptr = ptr; public ImDrawList* Ptr => _ptr; public bool IsNull() => _ptr is null; public static implicit operator ImDrawListPtr(ImDrawList* ptr) => new(ptr); public static implicit operator ImDrawList*(ImDrawListPtr wrapper) => wrapper.Ptr; /// /// /// Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback. /// /// /// C++: /// imgui.h:3345 ///
ImVector<ImDrawCmd> CmdBuffer ///
///
/// /// /// This is what you have to render /// /// public ref ImVector CmdBuffer => ref Unsafe.AsRef>(&_ptr->CmdBuffer); /// /// /// Index buffer. Each command consume ImDrawCmd::ElemCount of those /// /// /// C++: /// imgui.h:3346 ///
ImVector<ImDrawIdx> IdxBuffer ///
///
/// /// /// This is what you have to render /// /// public ref ImVector IdxBuffer => ref Unsafe.AsRef>(&_ptr->IdxBuffer); /// /// /// Vertex buffer. /// /// /// C++: /// imgui.h:3347 ///
ImVector<ImDrawVert> VtxBuffer ///
///
/// /// /// This is what you have to render /// /// public ref ImVector VtxBuffer => ref Unsafe.AsRef>(&_ptr->VtxBuffer); /// /// /// Flags, you may poke into these to adjust anti-aliasing settings per-primitive. /// /// /// C++: /// imgui.h:3348 ///
ImDrawListFlags Flags ///
///
/// /// /// This is what you have to render /// /// public ref ImDrawListFlags Flags => ref Unsafe.AsRef(&_ptr->Flags); /// /// /// [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to /// 0. /// /// /// C++: /// imgui.h:3351 ///
unsigned int _VtxCurrentIdx ///
///
/// /// /// [Internal, used while building lists] /// /// public ref uint _VtxCurrentIdx => ref Unsafe.AsRef(&_ptr->_VtxCurrentIdx); /// /// /// Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current /// ImGui context) /// /// /// C++: /// imgui.h:3352 ///
ImDrawListSharedData* _Data ///
///
/// /// /// [Internal, used while building lists] /// /// public ref ImDrawListSharedDataPtr _Data => ref Unsafe.AsRef(&_ptr->_Data); /// /// /// [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<> /// operators too much) /// /// /// C++: /// imgui.h:3353 ///
ImDrawVert* _VtxWritePtr ///
///
/// /// /// [Internal, used while building lists] /// /// public ref ImDrawVertPtr _VtxWritePtr => ref Unsafe.AsRef(&_ptr->_VtxWritePtr); /// /// /// [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<> /// operators too much) /// /// /// C++: /// imgui.h:3354 ///
ImDrawIdx* _IdxWritePtr ///
///
/// /// /// [Internal, used while building lists] /// /// public ref Ptr _IdxWritePtr => ref Unsafe.AsRef>(&_ptr->_IdxWritePtr); /// /// /// [Internal] current path building /// /// /// C++: /// imgui.h:3355 ///
ImVector<ImVec2> _Path ///
///
/// /// /// [Internal, used while building lists] /// /// public ref ImVector _Path => ref Unsafe.AsRef>(&_ptr->_Path); /// /// /// [Internal] template of active commands. Fields should match those of CmdBuffer.back(). /// /// /// C++: /// imgui.h:3356 ///
ImDrawCmdHeader _CmdHeader ///
///
/// /// /// [Internal, used while building lists] /// /// public ref ImDrawCmdHeader _CmdHeader => ref Unsafe.AsRef(&_ptr->_CmdHeader); /// /// /// [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!) /// /// /// C++: /// imgui.h:3357 ///
ImDrawListSplitter _Splitter ///
///
/// /// /// [Internal, used while building lists] /// /// public ref ImDrawListSplitter _Splitter => ref Unsafe.AsRef(&_ptr->_Splitter); /// /// /// [Internal] /// /// /// C++: /// imgui.h:3358 ///
ImVector<ImVec4> _ClipRectStack ///
///
/// /// /// [Internal, used while building lists] /// /// public ref ImVector _ClipRectStack => ref Unsafe.AsRef>(&_ptr->_ClipRectStack); /// /// /// [Internal] /// /// /// C++: /// imgui.h:3359 ///
ImVector<ImTextureRef> _TextureStack ///
///
/// /// /// [Internal, used while building lists] /// /// public ref ImVector _TextureStack => ref Unsafe.AsRef>(&_ptr->_TextureStack); /// /// /// [Internal] /// /// /// C++: /// imgui.h:3360 ///
ImVector<ImU8> _CallbacksDataBuf ///
///
/// /// /// [Internal, used while building lists] /// /// public ref ImVector _CallbacksDataBuf => ref Unsafe.AsRef>(&_ptr->_CallbacksDataBuf); /// /// /// [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at /// vertex buffer content /// /// /// C++: /// imgui.h:3361 ///
float _FringeScale ///
///
/// /// /// [Internal, used while building lists] /// /// public ref float _FringeScale => ref Unsafe.AsRef(&_ptr->_FringeScale); /// /// /// Pointer to owner window's name for debugging /// /// /// C++: /// imgui.h:3362 ///
const char* _OwnerName ///
///
/// /// /// [Internal, used while building lists] /// /// public ref Ptr _OwnerName => ref Unsafe.AsRef>(&_ptr->_OwnerName); } }