//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix.
///
///
/// C++:
/// imgui.h:176
///
struct ImDrawData
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 72)]
public partial struct ImDrawData
{
///
///
/// Only valid after Render() is called and before the next NewFrame() is called.
///
///
/// C++:
/// imgui.h:3502
///
bool Valid
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(0)]
public Bool8 Valid;
///
///
/// == CmdLists.Size. (OBSOLETE: exists for legacy reasons). Number of ImDrawList* to render.
///
///
/// C++:
/// imgui.h:3503
///
int CmdListsCount
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(4)]
public int CmdListsCount;
///
///
/// For convenience, sum of all ImDrawList's IdxBuffer.Size
///
///
/// C++:
/// imgui.h:3504
///
int TotalIdxCount
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(8)]
public int TotalIdxCount;
///
///
/// For convenience, sum of all ImDrawList's VtxBuffer.Size
///
///
/// C++:
/// imgui.h:3505
///
int TotalVtxCount
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(12)]
public int TotalVtxCount;
///
///
/// Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here.
///
///
/// C++:
/// imgui.h:3506
///
ImVector<ImDrawList*> CmdLists
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(16)]
public ImVector CmdLists;
///
///
/// Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (==
/// GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications)
///
///
/// C++:
/// imgui.h:3507
///
ImVec2 DisplayPos
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(32)]
public float2 DisplayPos;
///
///
/// Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize
/// in most single-viewport applications)
///
///
/// C++:
/// imgui.h:3508
///
ImVec2 DisplaySize
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(40)]
public float2 DisplaySize;
///
///
/// Amount of pixels for each unit of DisplaySize. Copied from viewport->FramebufferScale (==
/// io.DisplayFramebufferScale for main viewport). Generally (1,1) on normal display, (2,2) on OSX with
/// Retina display.
///
///
/// C++:
/// imgui.h:3509
///
ImVec2 FramebufferScale
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(48)]
public float2 FramebufferScale;
///
///
/// Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).
///
///
/// C++:
/// imgui.h:3510
///
ImGuiViewport* OwnerViewport
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(56)]
public ImGuiViewportPtr OwnerViewport;
///
///
/// List of textures to update. Most of the times the list is shared by all ImDrawData, has only 1 texture
/// and it doesn't need any update. This almost always points to ImGui::GetPlatformIO().Textures[]. May be
/// overriden or set to NULL if you want to manually update textures.
///
///
/// C++:
/// imgui.h:3511
///
ImVector<ImTextureData*>* Textures
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
[FieldOffset(64)]
public Ptr> Textures;
}
///
///
/// All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix.
///
///
/// C++:
/// imgui.h:176
///
struct ImDrawData
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
public unsafe partial struct ImDrawDataPtr(ImDrawData* ptr) : INullable
{
private ImDrawData* _ptr = ptr;
public ImDrawData* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImDrawDataPtr(ImDrawData* ptr) => new(ptr);
public static implicit operator ImDrawData*(ImDrawDataPtr wrapper) => wrapper.Ptr;
///
///
/// Only valid after Render() is called and before the next NewFrame() is called.
///
///
/// C++:
/// imgui.h:3502
///
bool Valid
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref bool Valid => ref Unsafe.AsRef(&_ptr->Valid);
///
///
/// == CmdLists.Size. (OBSOLETE: exists for legacy reasons). Number of ImDrawList* to render.
///
///
/// C++:
/// imgui.h:3503
///
int CmdListsCount
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref int CmdListsCount => ref Unsafe.AsRef(&_ptr->CmdListsCount);
///
///
/// For convenience, sum of all ImDrawList's IdxBuffer.Size
///
///
/// C++:
/// imgui.h:3504
///
int TotalIdxCount
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref int TotalIdxCount => ref Unsafe.AsRef(&_ptr->TotalIdxCount);
///
///
/// For convenience, sum of all ImDrawList's VtxBuffer.Size
///
///
/// C++:
/// imgui.h:3505
///
int TotalVtxCount
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref int TotalVtxCount => ref Unsafe.AsRef(&_ptr->TotalVtxCount);
///
///
/// Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here.
///
///
/// C++:
/// imgui.h:3506
///
ImVector<ImDrawList*> CmdLists
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref ImVector CmdLists => ref Unsafe.AsRef>(&_ptr->CmdLists);
///
///
/// Top-left position of the viewport to render (== top-left of the orthogonal projection matrix to use) (==
/// GetMainViewport()->Pos for the main viewport, == (0.0) in most single-viewport applications)
///
///
/// C++:
/// imgui.h:3507
///
ImVec2 DisplayPos
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref float2 DisplayPos => ref Unsafe.AsRef(&_ptr->DisplayPos);
///
///
/// Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize
/// in most single-viewport applications)
///
///
/// C++:
/// imgui.h:3508
///
ImVec2 DisplaySize
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref float2 DisplaySize => ref Unsafe.AsRef(&_ptr->DisplaySize);
///
///
/// Amount of pixels for each unit of DisplaySize. Copied from viewport->FramebufferScale (==
/// io.DisplayFramebufferScale for main viewport). Generally (1,1) on normal display, (2,2) on OSX with
/// Retina display.
///
///
/// C++:
/// imgui.h:3509
///
ImVec2 FramebufferScale
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref float2 FramebufferScale => ref Unsafe.AsRef(&_ptr->FramebufferScale);
///
///
/// Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).
///
///
/// C++:
/// imgui.h:3510
///
ImGuiViewport* OwnerViewport
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref ImGuiViewportPtr OwnerViewport => ref Unsafe.AsRef(&_ptr->OwnerViewport);
///
///
/// List of textures to update. Most of the times the list is shared by all ImDrawData, has only 1 texture
/// and it doesn't need any update. This almost always points to ImGui::GetPlatformIO().Textures[]. May be
/// overriden or set to NULL if you want to manually update textures.
///
///
/// C++:
/// imgui.h:3511
///
ImVector<ImTextureData*>* Textures
///
///
///
///
/// All draw data to render a Dear ImGui frame
/// (NB: the style and the naming convention here is a little inconsistent, we currently preserve them for backward compatibility purpose,
/// as this is one of the oldest structure exposed by the library! Basically, ImDrawList == CmdList)
///
///
public ref Ptr> Textures =>
ref Unsafe.AsRef>>(&_ptr->Textures);
}
}