mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
457 lines
21 KiB
C#
457 lines
21 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L176">imgui.h:176</see>
|
|
/// <br/><c>struct ImDrawData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 72)]
|
|
public partial struct ImDrawData
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Only valid after Render() is called and before the next NewFrame() is called.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3502">imgui.h:3502</see>
|
|
/// <br/><c>bool Valid</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public Bool8 Valid;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// == CmdLists.Size. (OBSOLETE: exists for legacy reasons). Number of ImDrawList* to render.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3503">imgui.h:3503</see>
|
|
/// <br/><c>int CmdListsCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public int CmdListsCount;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// For convenience, sum of all ImDrawList's IdxBuffer.Size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3504">imgui.h:3504</see>
|
|
/// <br/><c>int TotalIdxCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public int TotalIdxCount;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// For convenience, sum of all ImDrawList's VtxBuffer.Size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3505">imgui.h:3505</see>
|
|
/// <br/><c>int TotalVtxCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(12)]
|
|
public int TotalVtxCount;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3506">imgui.h:3506</see>
|
|
/// <br/><c>ImVector<ImDrawList*> CmdLists</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public ImVector<ImDrawListPtr> CmdLists;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3507">imgui.h:3507</see>
|
|
/// <br/><c>ImVec2 DisplayPos</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public float2 DisplayPos;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize
|
|
/// in most single-viewport applications)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3508">imgui.h:3508</see>
|
|
/// <br/><c>ImVec2 DisplaySize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(40)]
|
|
public float2 DisplaySize;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3509">imgui.h:3509</see>
|
|
/// <br/><c>ImVec2 FramebufferScale</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(48)]
|
|
public float2 FramebufferScale;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3510">imgui.h:3510</see>
|
|
/// <br/><c>ImGuiViewport* OwnerViewport</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(56)]
|
|
public ImGuiViewportPtr OwnerViewport;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3511">imgui.h:3511</see>
|
|
/// <br/><c>ImVector<ImTextureData*>* Textures</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(64)]
|
|
public Ptr<ImVector<ImTextureDataPtr>> Textures;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// All draw command lists required to render the frame + pos/size coordinates to use for the projection matrix.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L176">imgui.h:176</see>
|
|
/// <br/><c>struct ImDrawData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
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;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Only valid after Render() is called and before the next NewFrame() is called.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3502">imgui.h:3502</see>
|
|
/// <br/><c>bool Valid</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref bool Valid => ref Unsafe.AsRef<bool>(&_ptr->Valid);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// == CmdLists.Size. (OBSOLETE: exists for legacy reasons). Number of ImDrawList* to render.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3503">imgui.h:3503</see>
|
|
/// <br/><c>int CmdListsCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref int CmdListsCount => ref Unsafe.AsRef<int>(&_ptr->CmdListsCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// For convenience, sum of all ImDrawList's IdxBuffer.Size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3504">imgui.h:3504</see>
|
|
/// <br/><c>int TotalIdxCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref int TotalIdxCount => ref Unsafe.AsRef<int>(&_ptr->TotalIdxCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// For convenience, sum of all ImDrawList's VtxBuffer.Size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3505">imgui.h:3505</see>
|
|
/// <br/><c>int TotalVtxCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref int TotalVtxCount => ref Unsafe.AsRef<int>(&_ptr->TotalVtxCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Array of ImDrawList* to render. The ImDrawLists are owned by ImGuiContext and only pointed to from here.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3506">imgui.h:3506</see>
|
|
/// <br/><c>ImVector<ImDrawList*> CmdLists</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImVector<ImDrawListPtr> CmdLists => ref Unsafe.AsRef<ImVector<ImDrawListPtr>>(&_ptr->CmdLists);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3507">imgui.h:3507</see>
|
|
/// <br/><c>ImVec2 DisplayPos</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref float2 DisplayPos => ref Unsafe.AsRef<float2>(&_ptr->DisplayPos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Size of the viewport to render (== GetMainViewport()->Size for the main viewport, == io.DisplaySize
|
|
/// in most single-viewport applications)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3508">imgui.h:3508</see>
|
|
/// <br/><c>ImVec2 DisplaySize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref float2 DisplaySize => ref Unsafe.AsRef<float2>(&_ptr->DisplaySize);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3509">imgui.h:3509</see>
|
|
/// <br/><c>ImVec2 FramebufferScale</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref float2 FramebufferScale => ref Unsafe.AsRef<float2>(&_ptr->FramebufferScale);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Viewport carrying the ImDrawData instance, might be of use to the renderer (generally not).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3510">imgui.h:3510</see>
|
|
/// <br/><c>ImGuiViewport* OwnerViewport</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImGuiViewportPtr OwnerViewport => ref Unsafe.AsRef<ImGuiViewportPtr>(&_ptr->OwnerViewport);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3511">imgui.h:3511</see>
|
|
/// <br/><c>ImVector<ImTextureData*>* Textures</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref Ptr<ImVector<ImTextureDataPtr>> Textures =>
|
|
ref Unsafe.AsRef<Ptr<ImVector<ImTextureDataPtr>>>(&_ptr->Textures);
|
|
}
|
|
}
|