mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
42 changed files with 768360 additions and 0 deletions
114
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawChannel.gen.cs
Normal file
114
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawChannel.gen.cs
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Temporary storage to output draw commands out of order, used by ImDrawListSplitter and
|
||||
/// ImDrawList::ChannelsSplit()
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L174">imgui.h:174</see>
|
||||
/// <br/><c>struct ImDrawChannel</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32)]
|
||||
public partial struct ImDrawChannel
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3281">imgui.h:3281</see>
|
||||
/// <br/><c>ImVector<ImDrawCmd> _CmdBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawListSplitter
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public ImVector<ImDrawCmd> _CmdBuffer;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3282">imgui.h:3282</see>
|
||||
/// <br/><c>ImVector<ImDrawIdx> _IdxBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawListSplitter
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public ImVector<ushort> _IdxBuffer;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Temporary storage to output draw commands out of order, used by ImDrawListSplitter and
|
||||
/// ImDrawList::ChannelsSplit()
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L174">imgui.h:174</see>
|
||||
/// <br/><c>struct ImDrawChannel</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3281">imgui.h:3281</see>
|
||||
/// <br/><c>ImVector<ImDrawCmd> _CmdBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawListSplitter
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImDrawCmd> _CmdBuffer => ref Unsafe.AsRef<ImVector<ImDrawCmd>>(&_ptr->_CmdBuffer);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3282">imgui.h:3282</see>
|
||||
/// <br/><c>ImVector<ImDrawIdx> _IdxBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawListSplitter
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ushort> _IdxBuffer => ref Unsafe.AsRef<ImVector<ushort>>(&_ptr->_IdxBuffer);
|
||||
}
|
||||
}
|
||||
457
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawCmd.gen.cs
Normal file
457
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawCmd.gen.cs
Normal file
|
|
@ -0,0 +1,457 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a
|
||||
/// callback)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L175">imgui.h:175</see>
|
||||
/// <br/><c>struct ImDrawCmd</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 72)]
|
||||
public partial struct ImDrawCmd
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping
|
||||
/// rectangle in "viewport" coordinates
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3237">imgui.h:3237</see>
|
||||
/// <br/><c>ImVec4 ClipRect</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public float4 ClipRect;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 16 // Reference to a font/texture atlas (where backend called ImTextureData::SetTexID()) or to a
|
||||
/// user-provided texture ID (via e.g. ImGui::Image() calls). Both will lead to a ImTextureID value.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3238">imgui.h:3238</see>
|
||||
/// <br/><c>ImTextureRef TexRef</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public ImTextureRef TexRef;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may
|
||||
/// be >0 to support meshes larger than 64K vertices with 16-bit indices.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3239">imgui.h:3239</see>
|
||||
/// <br/><c>unsigned int VtxOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public uint VtxOffset;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Start offset in index buffer.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3240">imgui.h:3240</see>
|
||||
/// <br/><c>unsigned int IdxOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(36)]
|
||||
public uint IdxOffset;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee
|
||||
/// ImDrawList's vtx_buffer[] array, indices in idx_buffer[].
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3241">imgui.h:3241</see>
|
||||
/// <br/><c>unsigned int ElemCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(40)]
|
||||
public uint ElemCount;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will
|
||||
/// be set normally.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3242">imgui.h:3242</see>
|
||||
/// <br/><c>ImDrawCallback UserCallback</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(48)]
|
||||
public nint UserCallback;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // Callback user data (when UserCallback != NULL). If called AddCallback() with size == 0, this is
|
||||
/// a copy of the AddCallback() argument. If called AddCallback() with size > 0, this is pointing to a
|
||||
/// buffer where data is stored.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3243">imgui.h:3243</see>
|
||||
/// <br/><c>void* UserCallbackData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(56)]
|
||||
public nint UserCallbackData;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Size of callback user data when using storage, otherwise 0.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3244">imgui.h:3244</see>
|
||||
/// <br/><c>int UserCallbackDataSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(64)]
|
||||
public int UserCallbackDataSize;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // [Internal] Offset of callback user data when using storage, otherwise -1.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3245">imgui.h:3245</see>
|
||||
/// <br/><c>int UserCallbackDataOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(68)]
|
||||
public int UserCallbackDataOffset;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A single draw command within a parent ImDrawList (generally maps to 1 GPU draw call, unless it is a
|
||||
/// callback)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L175">imgui.h:175</see>
|
||||
/// <br/><c>struct ImDrawCmd</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImDrawCmdPtr(ImDrawCmd* ptr) : INullable
|
||||
{
|
||||
private ImDrawCmd* _ptr = ptr;
|
||||
public ImDrawCmd* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImDrawCmdPtr(ImDrawCmd* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImDrawCmd*(ImDrawCmdPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4*4 // Clipping rectangle (x1, y1, x2, y2). Subtract ImDrawData->DisplayPos to get clipping
|
||||
/// rectangle in "viewport" coordinates
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3237">imgui.h:3237</see>
|
||||
/// <br/><c>ImVec4 ClipRect</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float4 ClipRect => ref Unsafe.AsRef<float4>(&_ptr->ClipRect);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 16 // Reference to a font/texture atlas (where backend called ImTextureData::SetTexID()) or to a
|
||||
/// user-provided texture ID (via e.g. ImGui::Image() calls). Both will lead to a ImTextureID value.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3238">imgui.h:3238</see>
|
||||
/// <br/><c>ImTextureRef TexRef</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImTextureRef TexRef => ref Unsafe.AsRef<ImTextureRef>(&_ptr->TexRef);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Start offset in vertex buffer. ImGuiBackendFlags_RendererHasVtxOffset: always 0, otherwise may
|
||||
/// be >0 to support meshes larger than 64K vertices with 16-bit indices.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3239">imgui.h:3239</see>
|
||||
/// <br/><c>unsigned int VtxOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint VtxOffset => ref Unsafe.AsRef<uint>(&_ptr->VtxOffset);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Start offset in index buffer.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3240">imgui.h:3240</see>
|
||||
/// <br/><c>unsigned int IdxOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint IdxOffset => ref Unsafe.AsRef<uint>(&_ptr->IdxOffset);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Number of indices (multiple of 3) to be rendered as triangles. Vertices are stored in the callee
|
||||
/// ImDrawList's vtx_buffer[] array, indices in idx_buffer[].
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3241">imgui.h:3241</see>
|
||||
/// <br/><c>unsigned int ElemCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint ElemCount => ref Unsafe.AsRef<uint>(&_ptr->ElemCount);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // If != NULL, call the function instead of rendering the vertices. clip_rect and texture_id will
|
||||
/// be set normally.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3242">imgui.h:3242</see>
|
||||
/// <br/><c>ImDrawCallback UserCallback</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint UserCallback => ref Unsafe.AsRef<nint>(&_ptr->UserCallback);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // Callback user data (when UserCallback != NULL). If called AddCallback() with size == 0, this is
|
||||
/// a copy of the AddCallback() argument. If called AddCallback() with size > 0, this is pointing to a
|
||||
/// buffer where data is stored.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3243">imgui.h:3243</see>
|
||||
/// <br/><c>void* UserCallbackData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint UserCallbackData => ref Unsafe.AsRef<nint>(&_ptr->UserCallbackData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Size of callback user data when using storage, otherwise 0.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3244">imgui.h:3244</see>
|
||||
/// <br/><c>int UserCallbackDataSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int UserCallbackDataSize => ref Unsafe.AsRef<int>(&_ptr->UserCallbackDataSize);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // [Internal] Offset of callback user data when using storage, otherwise -1.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3245">imgui.h:3245</see>
|
||||
/// <br/><c>int UserCallbackDataOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Typically, 1 command = 1 GPU draw call (unless command is a callback)
|
||||
/// - VtxOffset: When 'io.BackendFlags & ImGuiBackendFlags_RendererHasVtxOffset' is enabled,
|
||||
/// this fields allow us to render meshes larger than 64K vertices while keeping 16-bit indices.
|
||||
/// Backends made for <1.71. will typically ignore the VtxOffset fields.
|
||||
/// - The ClipRect/TexRef/VtxOffset fields must be contiguous as we memcmp() them together (this is asserted for).
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int UserCallbackDataOffset => ref Unsafe.AsRef<int>(&_ptr->UserCallbackDataOffset);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,135 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3271">imgui.h:3271</see>
|
||||
/// <br/><c>struct ImDrawCmdHeader</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawList
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 40)]
|
||||
public partial struct ImDrawCmdHeader
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3273">imgui.h:3273</see>
|
||||
/// <br/><c>ImVec4 ClipRect</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawList
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public float4 ClipRect;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3274">imgui.h:3274</see>
|
||||
/// <br/><c>ImTextureRef TexRef</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawList
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public ImTextureRef TexRef;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3275">imgui.h:3275</see>
|
||||
/// <br/><c>unsigned int VtxOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawList
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public uint VtxOffset;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3271">imgui.h:3271</see>
|
||||
/// <br/><c>struct ImDrawCmdHeader</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawList
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImDrawCmdHeaderPtr(ImDrawCmdHeader* ptr) : INullable
|
||||
{
|
||||
private ImDrawCmdHeader* _ptr = ptr;
|
||||
public ImDrawCmdHeader* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImDrawCmdHeaderPtr(ImDrawCmdHeader* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImDrawCmdHeader*(ImDrawCmdHeaderPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3273">imgui.h:3273</see>
|
||||
/// <br/><c>ImVec4 ClipRect</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawList
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float4 ClipRect => ref Unsafe.AsRef<float4>(&_ptr->ClipRect);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3274">imgui.h:3274</see>
|
||||
/// <br/><c>ImTextureRef TexRef</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawList
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImTextureRef TexRef => ref Unsafe.AsRef<ImTextureRef>(&_ptr->TexRef);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3275">imgui.h:3275</see>
|
||||
/// <br/><c>unsigned int VtxOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] For use by ImDrawList
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint VtxOffset => ref Unsafe.AsRef<uint>(&_ptr->VtxOffset);
|
||||
}
|
||||
}
|
||||
457
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawData.gen.cs
Normal file
457
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawData.gen.cs
Normal file
|
|
@ -0,0 +1,457 @@
|
|||
// <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);
|
||||
}
|
||||
}
|
||||
627
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawList.gen.cs
Normal file
627
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawList.gen.cs
Normal file
|
|
@ -0,0 +1,627 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh"
|
||||
/// builder)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L177">imgui.h:177</see>
|
||||
/// <br/><c>struct ImDrawList</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 224)]
|
||||
public partial struct ImDrawList
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3345">imgui.h:3345</see>
|
||||
/// <br/><c>ImVector<ImDrawCmd> CmdBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This is what you have to render
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public ImVector<ImDrawCmd> CmdBuffer;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Index buffer. Each command consume ImDrawCmd::ElemCount of those
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3346">imgui.h:3346</see>
|
||||
/// <br/><c>ImVector<ImDrawIdx> IdxBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This is what you have to render
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public ImVector<ushort> IdxBuffer;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Vertex buffer.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3347">imgui.h:3347</see>
|
||||
/// <br/><c>ImVector<ImDrawVert> VtxBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This is what you have to render
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public ImVector<ImDrawVert> VtxBuffer;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Flags, you may poke into these to adjust anti-aliasing settings per-primitive.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3348">imgui.h:3348</see>
|
||||
/// <br/><c>ImDrawListFlags Flags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This is what you have to render
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(48)]
|
||||
public ImDrawListFlags Flags;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to
|
||||
/// 0.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3351">imgui.h:3351</see>
|
||||
/// <br/><c>unsigned int _VtxCurrentIdx</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(52)]
|
||||
public uint _VtxCurrentIdx;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current
|
||||
/// ImGui context)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3352">imgui.h:3352</see>
|
||||
/// <br/><c>ImDrawListSharedData* _Data</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(56)]
|
||||
public ImDrawListSharedDataPtr _Data;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<>
|
||||
/// operators too much)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3353">imgui.h:3353</see>
|
||||
/// <br/><c>ImDrawVert* _VtxWritePtr</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(64)]
|
||||
public ImDrawVertPtr _VtxWritePtr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<>
|
||||
/// operators too much)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3354">imgui.h:3354</see>
|
||||
/// <br/><c>ImDrawIdx* _IdxWritePtr</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(72)]
|
||||
public Ptr<ushort> _IdxWritePtr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] current path building
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3355">imgui.h:3355</see>
|
||||
/// <br/><c>ImVector<ImVec2> _Path</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(80)]
|
||||
public ImVector<float2> _Path;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] template of active commands. Fields should match those of CmdBuffer.back().
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3356">imgui.h:3356</see>
|
||||
/// <br/><c>ImDrawCmdHeader _CmdHeader</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(96)]
|
||||
public ImDrawCmdHeader _CmdHeader;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3357">imgui.h:3357</see>
|
||||
/// <br/><c>ImDrawListSplitter _Splitter</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(136)]
|
||||
public ImDrawListSplitter _Splitter;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3358">imgui.h:3358</see>
|
||||
/// <br/><c>ImVector<ImVec4> _ClipRectStack</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(160)]
|
||||
public ImVector<float4> _ClipRectStack;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3359">imgui.h:3359</see>
|
||||
/// <br/><c>ImVector<ImTextureRef> _TextureStack</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(176)]
|
||||
public ImVector<ImTextureRef> _TextureStack;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3360">imgui.h:3360</see>
|
||||
/// <br/><c>ImVector<ImU8> _CallbacksDataBuf</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(192)]
|
||||
public ImVector<byte> _CallbacksDataBuf;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at
|
||||
/// vertex buffer content
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3361">imgui.h:3361</see>
|
||||
/// <br/><c>float _FringeScale</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(208)]
|
||||
public float _FringeScale;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Pointer to owner window's name for debugging
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3362">imgui.h:3362</see>
|
||||
/// <br/><c>const char* _OwnerName</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(216)]
|
||||
public Ptr<byte> _OwnerName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A single draw command list (generally one per window, conceptually you may see this as a dynamic "mesh"
|
||||
/// builder)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L177">imgui.h:177</see>
|
||||
/// <br/><c>struct ImDrawList</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
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;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw commands. Typically 1 command = 1 GPU draw call, unless the command is a callback.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3345">imgui.h:3345</see>
|
||||
/// <br/><c>ImVector<ImDrawCmd> CmdBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This is what you have to render
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImDrawCmd> CmdBuffer => ref Unsafe.AsRef<ImVector<ImDrawCmd>>(&_ptr->CmdBuffer);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Index buffer. Each command consume ImDrawCmd::ElemCount of those
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3346">imgui.h:3346</see>
|
||||
/// <br/><c>ImVector<ImDrawIdx> IdxBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This is what you have to render
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ushort> IdxBuffer => ref Unsafe.AsRef<ImVector<ushort>>(&_ptr->IdxBuffer);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Vertex buffer.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3347">imgui.h:3347</see>
|
||||
/// <br/><c>ImVector<ImDrawVert> VtxBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This is what you have to render
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImDrawVert> VtxBuffer => ref Unsafe.AsRef<ImVector<ImDrawVert>>(&_ptr->VtxBuffer);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Flags, you may poke into these to adjust anti-aliasing settings per-primitive.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3348">imgui.h:3348</see>
|
||||
/// <br/><c>ImDrawListFlags Flags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// This is what you have to render
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImDrawListFlags Flags => ref Unsafe.AsRef<ImDrawListFlags>(&_ptr->Flags);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] generally == VtxBuffer.Size unless we are past 64K vertices, in which case this gets reset to
|
||||
/// 0.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3351">imgui.h:3351</see>
|
||||
/// <br/><c>unsigned int _VtxCurrentIdx</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint _VtxCurrentIdx => ref Unsafe.AsRef<uint>(&_ptr->_VtxCurrentIdx);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Pointer to shared draw data (you can use ImGui::GetDrawListSharedData() to get the one from current
|
||||
/// ImGui context)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3352">imgui.h:3352</see>
|
||||
/// <br/><c>ImDrawListSharedData* _Data</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImDrawListSharedDataPtr _Data => ref Unsafe.AsRef<ImDrawListSharedDataPtr>(&_ptr->_Data);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] point within VtxBuffer.Data after each add command (to avoid using the ImVector<>
|
||||
/// operators too much)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3353">imgui.h:3353</see>
|
||||
/// <br/><c>ImDrawVert* _VtxWritePtr</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImDrawVertPtr _VtxWritePtr => ref Unsafe.AsRef<ImDrawVertPtr>(&_ptr->_VtxWritePtr);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] point within IdxBuffer.Data after each add command (to avoid using the ImVector<>
|
||||
/// operators too much)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3354">imgui.h:3354</see>
|
||||
/// <br/><c>ImDrawIdx* _IdxWritePtr</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref Ptr<ushort> _IdxWritePtr => ref Unsafe.AsRef<Ptr<ushort>>(&_ptr->_IdxWritePtr);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] current path building
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3355">imgui.h:3355</see>
|
||||
/// <br/><c>ImVector<ImVec2> _Path</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<float2> _Path => ref Unsafe.AsRef<ImVector<float2>>(&_ptr->_Path);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] template of active commands. Fields should match those of CmdBuffer.back().
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3356">imgui.h:3356</see>
|
||||
/// <br/><c>ImDrawCmdHeader _CmdHeader</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImDrawCmdHeader _CmdHeader => ref Unsafe.AsRef<ImDrawCmdHeader>(&_ptr->_CmdHeader);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] for channels api (note: prefer using your own persistent instance of ImDrawListSplitter!)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3357">imgui.h:3357</see>
|
||||
/// <br/><c>ImDrawListSplitter _Splitter</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImDrawListSplitter _Splitter => ref Unsafe.AsRef<ImDrawListSplitter>(&_ptr->_Splitter);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3358">imgui.h:3358</see>
|
||||
/// <br/><c>ImVector<ImVec4> _ClipRectStack</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<float4> _ClipRectStack => ref Unsafe.AsRef<ImVector<float4>>(&_ptr->_ClipRectStack);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3359">imgui.h:3359</see>
|
||||
/// <br/><c>ImVector<ImTextureRef> _TextureStack</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImTextureRef> _TextureStack =>
|
||||
ref Unsafe.AsRef<ImVector<ImTextureRef>>(&_ptr->_TextureStack);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3360">imgui.h:3360</see>
|
||||
/// <br/><c>ImVector<ImU8> _CallbacksDataBuf</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<byte> _CallbacksDataBuf => ref Unsafe.AsRef<ImVector<byte>>(&_ptr->_CallbacksDataBuf);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] anti-alias fringe is scaled by this value, this helps to keep things sharp while zooming at
|
||||
/// vertex buffer content
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3361">imgui.h:3361</see>
|
||||
/// <br/><c>float _FringeScale</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float _FringeScale => ref Unsafe.AsRef<float>(&_ptr->_FringeScale);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Pointer to owner window's name for debugging
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3362">imgui.h:3362</see>
|
||||
/// <br/><c>const char* _OwnerName</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal, used while building lists]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref Ptr<byte> _OwnerName => ref Unsafe.AsRef<Ptr<byte>>(&_ptr->_OwnerName);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,165 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Helper to split a draw list into different layers which can be drawn into out of order, then flattened back.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L179">imgui.h:179</see>
|
||||
/// <br/><c>struct ImDrawListSplitter</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24)]
|
||||
public partial struct ImDrawListSplitter
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Current channel number (0)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3289">imgui.h:3289</see>
|
||||
/// <br/><c>int _Current</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
||||
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public int _Current;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of active channels (1+)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3290">imgui.h:3290</see>
|
||||
/// <br/><c>int _Count</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
||||
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(4)]
|
||||
public int _Count;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw channels (not resized down so _Count might be < Channels.Size)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3291">imgui.h:3291</see>
|
||||
/// <br/><c>ImVector<ImDrawChannel> _Channels</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
||||
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public ImVector<ImDrawChannel> _Channels;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Helper to split a draw list into different layers which can be drawn into out of order, then flattened back.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L179">imgui.h:179</see>
|
||||
/// <br/><c>struct ImDrawListSplitter</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImDrawListSplitterPtr(ImDrawListSplitter* ptr) : INullable
|
||||
{
|
||||
private ImDrawListSplitter* _ptr = ptr;
|
||||
public ImDrawListSplitter* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImDrawListSplitterPtr(ImDrawListSplitter* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImDrawListSplitter*(ImDrawListSplitterPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Current channel number (0)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3289">imgui.h:3289</see>
|
||||
/// <br/><c>int _Current</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
||||
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int _Current => ref Unsafe.AsRef<int>(&_ptr->_Current);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of active channels (1+)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3290">imgui.h:3290</see>
|
||||
/// <br/><c>int _Count</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
||||
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int _Count => ref Unsafe.AsRef<int>(&_ptr->_Count);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Draw channels (not resized down so _Count might be < Channels.Size)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3291">imgui.h:3291</see>
|
||||
/// <br/><c>ImVector<ImDrawChannel> _Channels</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Split/Merge functions are used to split the draw list into different layers which can be drawn into out of order.
|
||||
/// This is used by the Columns/Tables API, so items of each column can be batched together in a same draw call.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImDrawChannel> _Channels => ref Unsafe.AsRef<ImVector<ImDrawChannel>>(&_ptr->_Channels);
|
||||
}
|
||||
}
|
||||
143
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawVert.gen.cs
Normal file
143
brutal.imgui/Brutal.ImGui/Generated/Structs/ImDrawVert.gen.cs
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A single vertex (pos + uv + col = 20 bytes by default. Override layout with
|
||||
/// IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L180">imgui.h:180</see>
|
||||
/// <br/><c>struct ImDrawVert</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 20)]
|
||||
public partial struct ImDrawVert
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3258">imgui.h:3258</see>
|
||||
/// <br/><c>ImVec2 pos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Vertex layout
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public float2 pos;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3259">imgui.h:3259</see>
|
||||
/// <br/><c>ImVec2 uv</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Vertex layout
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public float2 uv;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3260">imgui.h:3260</see>
|
||||
/// <br/><c>ImU32 col</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Vertex layout
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public uint col;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A single vertex (pos + uv + col = 20 bytes by default. Override layout with
|
||||
/// IMGUI_OVERRIDE_DRAWVERT_STRUCT_LAYOUT)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L180">imgui.h:180</see>
|
||||
/// <br/><c>struct ImDrawVert</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImDrawVertPtr(ImDrawVert* ptr) : INullable
|
||||
{
|
||||
private ImDrawVert* _ptr = ptr;
|
||||
public ImDrawVert* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImDrawVertPtr(ImDrawVert* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImDrawVert*(ImDrawVertPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3258">imgui.h:3258</see>
|
||||
/// <br/><c>ImVec2 pos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Vertex layout
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float2 pos => ref Unsafe.AsRef<float2>(&_ptr->pos);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3259">imgui.h:3259</see>
|
||||
/// <br/><c>ImVec2 uv</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Vertex layout
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float2 uv => ref Unsafe.AsRef<float2>(&_ptr->uv);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3260">imgui.h:3260</see>
|
||||
/// <br/><c>ImU32 col</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Vertex layout
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint col => ref Unsafe.AsRef<uint>(&_ptr->col);
|
||||
}
|
||||
}
|
||||
496
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFont.gen.cs
Normal file
496
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFont.gen.cs
Normal file
|
|
@ -0,0 +1,496 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Runtime data for a single font within a parent ImFontAtlas
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L181">imgui.h:181</see>
|
||||
/// <br/><c>struct ImFont</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 96)]
|
||||
public partial struct ImFont
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // Cache last bound baked. NEVER USE DIRECTLY. Use GetFontBaked().
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3922">imgui.h:3922</see>
|
||||
/// <br/><c>ImFontBaked* LastBaked</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~12-20 bytes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public ImFontBakedPtr LastBaked;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // What we have been loaded into.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3923">imgui.h:3923</see>
|
||||
/// <br/><c>ImFontAtlas* ContainerAtlas</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~12-20 bytes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public ImFontAtlasPtr ContainerAtlas;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Font flags.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3924">imgui.h:3924</see>
|
||||
/// <br/><c>ImFontFlags Flags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~12-20 bytes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public ImFontFlags Flags;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Current rasterizer density. This is a varying state of the font.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3925">imgui.h:3925</see>
|
||||
/// <br/><c>float CurrentRasterizerDensity</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~12-20 bytes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(20)]
|
||||
public float CurrentRasterizerDensity;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Unique identifier for the font
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3929">imgui.h:3929</see>
|
||||
/// <br/><c>ImGuiID FontId</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(24)]
|
||||
public ImGuiID FontId;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // in // Font size passed to AddFont(). Use for old code calling PushFont() expecting to use that
|
||||
/// size. (use ImGui::GetFontBaked() to get font baked at current bound size).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3930">imgui.h:3930</see>
|
||||
/// <br/><c>float LegacySize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(28)]
|
||||
public float LegacySize;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 16 // in // List of sources. Pointers within ContainerAtlas->Sources[]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3931">imgui.h:3931</see>
|
||||
/// <br/><c>ImVector<ImFontConfig*> Sources</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public ImVector<ImFontConfigPtr> Sources;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 2-4 // out // Character used for ellipsis rendering ('...').
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3932">imgui.h:3932</see>
|
||||
/// <br/><c>ImWchar EllipsisChar</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(48)]
|
||||
public uint EllipsisChar;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 2-4 // out // Character used if a glyph isn't found (U+FFFD, '?')
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3933">imgui.h:3933</see>
|
||||
/// <br/><c>ImWchar FallbackChar</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(52)]
|
||||
public uint FallbackChar;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1 bytes if ImWchar=ImWchar16, 16 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K
|
||||
/// codepoints that has one active glyph. This is mainly used to facilitate iterations across all used
|
||||
/// codepoints.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3934">imgui.h:3934</see>
|
||||
/// <br/><c>ImU8 Used8kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/8192/8]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(56)]
|
||||
public byte_17 Used8kPagesMap;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1 // // Mark when the "..." glyph needs to be generated.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3935">imgui.h:3935</see>
|
||||
/// <br/><c>bool EllipsisAutoBake</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(73)]
|
||||
public Bool8 EllipsisAutoBake;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 16 // // Remapping pairs when using AddRemapChar(), otherwise empty.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3936">imgui.h:3936</see>
|
||||
/// <br/><c>ImGuiStorage RemapPairs</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(80)]
|
||||
public ImGuiStorage RemapPairs;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Runtime data for a single font within a parent ImFontAtlas
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L181">imgui.h:181</see>
|
||||
/// <br/><c>struct ImFont</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImFontPtr(ImFont* ptr) : INullable
|
||||
{
|
||||
private ImFont* _ptr = ptr;
|
||||
public ImFont* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImFontPtr(ImFont* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImFont*(ImFontPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // Cache last bound baked. NEVER USE DIRECTLY. Use GetFontBaked().
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3922">imgui.h:3922</see>
|
||||
/// <br/><c>ImFontBaked* LastBaked</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~12-20 bytes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImFontBakedPtr LastBaked => ref Unsafe.AsRef<ImFontBakedPtr>(&_ptr->LastBaked);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // What we have been loaded into.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3923">imgui.h:3923</see>
|
||||
/// <br/><c>ImFontAtlas* ContainerAtlas</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~12-20 bytes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImFontAtlasPtr ContainerAtlas => ref Unsafe.AsRef<ImFontAtlasPtr>(&_ptr->ContainerAtlas);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // Font flags.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3924">imgui.h:3924</see>
|
||||
/// <br/><c>ImFontFlags Flags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~12-20 bytes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImFontFlags Flags => ref Unsafe.AsRef<ImFontFlags>(&_ptr->Flags);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Current rasterizer density. This is a varying state of the font.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3925">imgui.h:3925</see>
|
||||
/// <br/><c>float CurrentRasterizerDensity</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~12-20 bytes
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float CurrentRasterizerDensity => ref Unsafe.AsRef<float>(&_ptr->CurrentRasterizerDensity);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Unique identifier for the font
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3929">imgui.h:3929</see>
|
||||
/// <br/><c>ImGuiID FontId</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImGuiID FontId => ref Unsafe.AsRef<ImGuiID>(&_ptr->FontId);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // in // Font size passed to AddFont(). Use for old code calling PushFont() expecting to use that
|
||||
/// size. (use ImGui::GetFontBaked() to get font baked at current bound size).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3930">imgui.h:3930</see>
|
||||
/// <br/><c>float LegacySize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float LegacySize => ref Unsafe.AsRef<float>(&_ptr->LegacySize);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 16 // in // List of sources. Pointers within ContainerAtlas->Sources[]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3931">imgui.h:3931</see>
|
||||
/// <br/><c>ImVector<ImFontConfig*> Sources</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImFontConfigPtr> Sources => ref Unsafe.AsRef<ImVector<ImFontConfigPtr>>(&_ptr->Sources);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 2-4 // out // Character used for ellipsis rendering ('...').
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3932">imgui.h:3932</see>
|
||||
/// <br/><c>ImWchar EllipsisChar</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint EllipsisChar => ref Unsafe.AsRef<uint>(&_ptr->EllipsisChar);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 2-4 // out // Character used if a glyph isn't found (U+FFFD, '?')
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3933">imgui.h:3933</see>
|
||||
/// <br/><c>ImWchar FallbackChar</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint FallbackChar => ref Unsafe.AsRef<uint>(&_ptr->FallbackChar);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1 bytes if ImWchar=ImWchar16, 16 bytes if ImWchar==ImWchar32. Store 1-bit for each block of 4K
|
||||
/// codepoints that has one active glyph. This is mainly used to facilitate iterations across all used
|
||||
/// codepoints.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3934">imgui.h:3934</see>
|
||||
/// <br/><c>ImU8 Used8kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/8192/8]</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref byte_17 Used8kPagesMap => ref Unsafe.AsRef<byte_17>(&_ptr->Used8kPagesMap);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1 // // Mark when the "..." glyph needs to be generated.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3935">imgui.h:3935</see>
|
||||
/// <br/><c>bool EllipsisAutoBake</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref bool EllipsisAutoBake => ref Unsafe.AsRef<bool>(&_ptr->EllipsisAutoBake);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 16 // // Remapping pairs when using AddRemapChar(), otherwise empty.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3936">imgui.h:3936</see>
|
||||
/// <br/><c>ImGuiStorage RemapPairs</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Members: Cold ~24-52 bytes
|
||||
/// Conceptually Sources[] is the list of font sources merged to create this font.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImGuiStorage RemapPairs => ref Unsafe.AsRef<ImGuiStorage>(&_ptr->RemapPairs);
|
||||
}
|
||||
}
|
||||
1129
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontAtlas.gen.cs
Normal file
1129
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontAtlas.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,716 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Opaque storage for building a ImFontAtlas
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L183">imgui.h:183</see>
|
||||
/// <br/><c>struct ImFontAtlasBuilder</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 248)]
|
||||
public partial struct ImFontAtlasBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Actually 'stbrp_context' but we don't want to define this in the header file.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4081">imgui_internal.h:4081</see>
|
||||
/// <br/><c>stbrp_context_opaque PackContext</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public stbrp_context_opaque PackContext;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4082">imgui_internal.h:4082</see>
|
||||
/// <br/><c>ImVector<stbrp_node_im> PackNodes</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(80)]
|
||||
public ImVector<stbrp_node> PackNodes;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4083">imgui_internal.h:4083</see>
|
||||
/// <br/><c>ImVector<ImTextureRect> Rects</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(96)]
|
||||
public ImVector<ImTextureRect> Rects;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// ImFontAtlasRectId -> index into Rects[]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4084">imgui_internal.h:4084</see>
|
||||
/// <br/><c>ImVector<ImFontAtlasRectEntry> RectsIndex</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(112)]
|
||||
public ImVector<ImFontAtlasRectEntry> RectsIndex;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Misc scratch buffer
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4085">imgui_internal.h:4085</see>
|
||||
/// <br/><c>ImVector<unsigned char> TempBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(128)]
|
||||
public ImVector<byte> TempBuffer;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// First unused entry
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4086">imgui_internal.h:4086</see>
|
||||
/// <br/><c>int RectsIndexFreeListStart</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(144)]
|
||||
public int RectsIndexFreeListStart;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of packed rectangles.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4087">imgui_internal.h:4087</see>
|
||||
/// <br/><c>int RectsPackedCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(148)]
|
||||
public int RectsPackedCount;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of packed pixels. Used when compacting to heuristically find the ideal texture size.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4088">imgui_internal.h:4088</see>
|
||||
/// <br/><c>int RectsPackedSurface</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(152)]
|
||||
public int RectsPackedSurface;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4089">imgui_internal.h:4089</see>
|
||||
/// <br/><c>int RectsDiscardedCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(156)]
|
||||
public int RectsDiscardedCount;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4090">imgui_internal.h:4090</see>
|
||||
/// <br/><c>int RectsDiscardedSurface</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(160)]
|
||||
public int RectsDiscardedSurface;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Current frame count
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4091">imgui_internal.h:4091</see>
|
||||
/// <br/><c>int FrameCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(164)]
|
||||
public int FrameCount;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Largest rectangle to pack (de-facto used as a "minimum texture size")
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4092">imgui_internal.h:4092</see>
|
||||
/// <br/><c>ImVec2i MaxRectSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(168)]
|
||||
public int2 MaxRectSize;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Bottom-right most used pixels
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4093">imgui_internal.h:4093</see>
|
||||
/// <br/><c>ImVec2i MaxRectBounds</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(176)]
|
||||
public int2 MaxRectBounds;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Disable resizing texture
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4094">imgui_internal.h:4094</see>
|
||||
/// <br/><c>bool LockDisableResize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(184)]
|
||||
public Bool8 LockDisableResize;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set when missing ImGuiBackendFlags_RendererHasTextures features forces atlas to preload everything.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4095">imgui_internal.h:4095</see>
|
||||
/// <br/><c>bool PreloadedAllGlyphsRanges</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(185)]
|
||||
public Bool8 PreloadedAllGlyphsRanges;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4098">imgui_internal.h:4098</see>
|
||||
/// <br/><c>ImStableVector<ImFontBaked,32> BakedPool</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cache of all ImFontBaked
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(192)]
|
||||
public ImStableVector<ImFontBaked> BakedPool;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// BakedId --> ImFontBaked*
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4099">imgui_internal.h:4099</see>
|
||||
/// <br/><c>ImGuiStorage BakedMap</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cache of all ImFontBaked
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(216)]
|
||||
public ImGuiStorage BakedMap;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4100">imgui_internal.h:4100</see>
|
||||
/// <br/><c>int BakedDiscardedCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cache of all ImFontBaked
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(232)]
|
||||
public int BakedDiscardedCount;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// White pixel + mouse cursors. Also happen to be fallback in case of packing failure.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4103">imgui_internal.h:4103</see>
|
||||
/// <br/><c>ImFontAtlasRectId PackIdMouseCursors</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Custom rectangle identifiers
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(236)]
|
||||
public ImFontAtlasRectId PackIdMouseCursors;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4104">imgui_internal.h:4104</see>
|
||||
/// <br/><c>ImFontAtlasRectId PackIdLinesTexData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Custom rectangle identifiers
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(240)]
|
||||
public ImFontAtlasRectId PackIdLinesTexData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Opaque storage for building a ImFontAtlas
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L183">imgui.h:183</see>
|
||||
/// <br/><c>struct ImFontAtlasBuilder</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImFontAtlasBuilderPtr(ImFontAtlasBuilder* ptr) : INullable
|
||||
{
|
||||
private ImFontAtlasBuilder* _ptr = ptr;
|
||||
public ImFontAtlasBuilder* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImFontAtlasBuilderPtr(ImFontAtlasBuilder* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImFontAtlasBuilder*(ImFontAtlasBuilderPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Actually 'stbrp_context' but we don't want to define this in the header file.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4081">imgui_internal.h:4081</see>
|
||||
/// <br/><c>stbrp_context_opaque PackContext</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref stbrp_context_opaque PackContext => ref Unsafe.AsRef<stbrp_context_opaque>(&_ptr->PackContext);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4082">imgui_internal.h:4082</see>
|
||||
/// <br/><c>ImVector<stbrp_node_im> PackNodes</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<stbrp_node> PackNodes => ref Unsafe.AsRef<ImVector<stbrp_node>>(&_ptr->PackNodes);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4083">imgui_internal.h:4083</see>
|
||||
/// <br/><c>ImVector<ImTextureRect> Rects</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImTextureRect> Rects => ref Unsafe.AsRef<ImVector<ImTextureRect>>(&_ptr->Rects);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// ImFontAtlasRectId -> index into Rects[]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4084">imgui_internal.h:4084</see>
|
||||
/// <br/><c>ImVector<ImFontAtlasRectEntry> RectsIndex</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImFontAtlasRectEntry> RectsIndex =>
|
||||
ref Unsafe.AsRef<ImVector<ImFontAtlasRectEntry>>(&_ptr->RectsIndex);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Misc scratch buffer
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4085">imgui_internal.h:4085</see>
|
||||
/// <br/><c>ImVector<unsigned char> TempBuffer</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<byte> TempBuffer => ref Unsafe.AsRef<ImVector<byte>>(&_ptr->TempBuffer);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// First unused entry
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4086">imgui_internal.h:4086</see>
|
||||
/// <br/><c>int RectsIndexFreeListStart</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int RectsIndexFreeListStart => ref Unsafe.AsRef<int>(&_ptr->RectsIndexFreeListStart);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of packed rectangles.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4087">imgui_internal.h:4087</see>
|
||||
/// <br/><c>int RectsPackedCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int RectsPackedCount => ref Unsafe.AsRef<int>(&_ptr->RectsPackedCount);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Number of packed pixels. Used when compacting to heuristically find the ideal texture size.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4088">imgui_internal.h:4088</see>
|
||||
/// <br/><c>int RectsPackedSurface</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int RectsPackedSurface => ref Unsafe.AsRef<int>(&_ptr->RectsPackedSurface);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4089">imgui_internal.h:4089</see>
|
||||
/// <br/><c>int RectsDiscardedCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int RectsDiscardedCount => ref Unsafe.AsRef<int>(&_ptr->RectsDiscardedCount);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4090">imgui_internal.h:4090</see>
|
||||
/// <br/><c>int RectsDiscardedSurface</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int RectsDiscardedSurface => ref Unsafe.AsRef<int>(&_ptr->RectsDiscardedSurface);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Current frame count
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4091">imgui_internal.h:4091</see>
|
||||
/// <br/><c>int FrameCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int FrameCount => ref Unsafe.AsRef<int>(&_ptr->FrameCount);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Largest rectangle to pack (de-facto used as a "minimum texture size")
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4092">imgui_internal.h:4092</see>
|
||||
/// <br/><c>ImVec2i MaxRectSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int2 MaxRectSize => ref Unsafe.AsRef<int2>(&_ptr->MaxRectSize);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Bottom-right most used pixels
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4093">imgui_internal.h:4093</see>
|
||||
/// <br/><c>ImVec2i MaxRectBounds</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int2 MaxRectBounds => ref Unsafe.AsRef<int2>(&_ptr->MaxRectBounds);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Disable resizing texture
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4094">imgui_internal.h:4094</see>
|
||||
/// <br/><c>bool LockDisableResize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref bool LockDisableResize => ref Unsafe.AsRef<bool>(&_ptr->LockDisableResize);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set when missing ImGuiBackendFlags_RendererHasTextures features forces atlas to preload everything.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4095">imgui_internal.h:4095</see>
|
||||
/// <br/><c>bool PreloadedAllGlyphsRanges</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Internal storage for incrementally packing and building a ImFontAtlas
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref bool PreloadedAllGlyphsRanges => ref Unsafe.AsRef<bool>(&_ptr->PreloadedAllGlyphsRanges);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4098">imgui_internal.h:4098</see>
|
||||
/// <br/><c>ImStableVector<ImFontBaked,32> BakedPool</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cache of all ImFontBaked
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImStableVector<ImFontBaked> BakedPool =>
|
||||
ref Unsafe.AsRef<ImStableVector<ImFontBaked>>(&_ptr->BakedPool);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// BakedId --> ImFontBaked*
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4099">imgui_internal.h:4099</see>
|
||||
/// <br/><c>ImGuiStorage BakedMap</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cache of all ImFontBaked
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImGuiStorage BakedMap => ref Unsafe.AsRef<ImGuiStorage>(&_ptr->BakedMap);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4100">imgui_internal.h:4100</see>
|
||||
/// <br/><c>int BakedDiscardedCount</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Cache of all ImFontBaked
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int BakedDiscardedCount => ref Unsafe.AsRef<int>(&_ptr->BakedDiscardedCount);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// White pixel + mouse cursors. Also happen to be fallback in case of packing failure.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4103">imgui_internal.h:4103</see>
|
||||
/// <br/><c>ImFontAtlasRectId PackIdMouseCursors</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Custom rectangle identifiers
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImFontAtlasRectId PackIdMouseCursors =>
|
||||
ref Unsafe.AsRef<ImFontAtlasRectId>(&_ptr->PackIdMouseCursors);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4104">imgui_internal.h:4104</see>
|
||||
/// <br/><c>ImFontAtlasRectId PackIdLinesTexData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Custom rectangle identifiers
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImFontAtlasRectId PackIdLinesTexData =>
|
||||
ref Unsafe.AsRef<ImFontAtlasRectId>(&_ptr->PackIdLinesTexData);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,288 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L184">imgui.h:184</see>
|
||||
/// <br/><c>struct ImFontAtlasRect</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 24)]
|
||||
public partial struct ImFontAtlasRect
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position (in current texture)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3687">imgui.h:3687</see>
|
||||
/// <br/><c>unsigned short x</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public ushort x;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position (in current texture)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3687">imgui.h:3687</see>
|
||||
/// <br/><c>unsigned short x, y</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(2)]
|
||||
public ushort y;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Size
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3688">imgui.h:3688</see>
|
||||
/// <br/><c>unsigned short w</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(4)]
|
||||
public ushort w;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Size
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3688">imgui.h:3688</see>
|
||||
/// <br/><c>unsigned short w, h</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(6)]
|
||||
public ushort h;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// UV coordinates (in current texture)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3689">imgui.h:3689</see>
|
||||
/// <br/><c>ImVec2 uv0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public float2 uv0;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// UV coordinates (in current texture)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3689">imgui.h:3689</see>
|
||||
/// <br/><c>ImVec2 uv0, uv1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public float2 uv1;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L184">imgui.h:184</see>
|
||||
/// <br/><c>struct ImFontAtlasRect</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImFontAtlasRectPtr(ImFontAtlasRect* ptr) : INullable
|
||||
{
|
||||
private ImFontAtlasRect* _ptr = ptr;
|
||||
public ImFontAtlasRect* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImFontAtlasRectPtr(ImFontAtlasRect* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImFontAtlasRect*(ImFontAtlasRectPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position (in current texture)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3687">imgui.h:3687</see>
|
||||
/// <br/><c>unsigned short x</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ushort x => ref Unsafe.AsRef<ushort>(&_ptr->x);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Position (in current texture)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3687">imgui.h:3687</see>
|
||||
/// <br/><c>unsigned short x, y</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ushort y => ref Unsafe.AsRef<ushort>(&_ptr->y);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Size
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3688">imgui.h:3688</see>
|
||||
/// <br/><c>unsigned short w</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ushort w => ref Unsafe.AsRef<ushort>(&_ptr->w);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Size
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3688">imgui.h:3688</see>
|
||||
/// <br/><c>unsigned short w, h</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ushort h => ref Unsafe.AsRef<ushort>(&_ptr->h);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// UV coordinates (in current texture)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3689">imgui.h:3689</see>
|
||||
/// <br/><c>ImVec2 uv0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float2 uv0 => ref Unsafe.AsRef<float2>(&_ptr->uv0);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// UV coordinates (in current texture)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3689">imgui.h:3689</see>
|
||||
/// <br/><c>ImVec2 uv0, uv1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Output of ImFontAtlas::GetCustomRect() when using custom rectangles.
|
||||
/// Those values may not be cached/stored as they are only valid for the current value of atlas->TexRef
|
||||
/// (this is in theory derived from ImTextureRect but we use separate structures for reasons)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float2 uv1 => ref Unsafe.AsRef<float2>(&_ptr->uv1);
|
||||
}
|
||||
}
|
||||
661
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontBaked.gen.cs
Normal file
661
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontBaked.gen.cs
Normal file
|
|
@ -0,0 +1,661 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Baked data for a ImFont at a given size.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L185">imgui.h:185</see>
|
||||
/// <br/><c>struct ImFontBaked</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 104)]
|
||||
public partial struct ImFontBaked
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 12-16 // out // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize
|
||||
/// functions which only this info, and are often bottleneck in large UI).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3874">imgui.h:3874</see>
|
||||
/// <br/><c>ImVector<float> IndexAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public ImVector<float> IndexAdvanceX;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // out // FindGlyph(FallbackChar)->AdvanceX
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3875">imgui.h:3875</see>
|
||||
/// <br/><c>float FallbackAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public float FallbackAdvanceX;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // in // Height of characters/line, set during loading (doesn't change after loading)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3876">imgui.h:3876</see>
|
||||
/// <br/><c>float Size</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(20)]
|
||||
public float Size;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // in // Density this is baked at
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3877">imgui.h:3877</see>
|
||||
/// <br/><c>float RasterizerDensity</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(24)]
|
||||
public float RasterizerDensity;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 12-16 // out // Sparse. Index glyphs by Unicode code-point.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3880">imgui.h:3880</see>
|
||||
/// <br/><c>ImVector<ImU16> IndexLookup</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~28/36 bytes (for RenderText loop)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public ImVector<ushort> IndexLookup;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 12-16 // out // All glyphs.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3881">imgui.h:3881</see>
|
||||
/// <br/><c>ImVector<ImFontGlyph> Glyphs</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~28/36 bytes (for RenderText loop)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(48)]
|
||||
public ImVector<ImFontGlyph> Glyphs;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // out // Index of FontFallbackChar
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3882">imgui.h:3882</see>
|
||||
/// <br/><c>int FallbackGlyphIndex</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~28/36 bytes (for RenderText loop)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(64)]
|
||||
public int FallbackGlyphIndex;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4+4 // out // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3885">imgui.h:3885</see>
|
||||
/// <br/><c>float Ascent</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(68)]
|
||||
public float Ascent;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4+4 // out // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3885">imgui.h:3885</see>
|
||||
/// <br/><c>float Ascent, Descent</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(72)]
|
||||
public float Descent;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 3 // out // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact,
|
||||
/// we approximate the cost of padding between glyphs)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3886">imgui.h:3886</see>
|
||||
/// <br/><c>unsigned int MetricsTotalSurface:26</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(76)]
|
||||
public uint MetricsTotalSurface;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // // Queued for destroy
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3887">imgui.h:3887</see>
|
||||
/// <br/><c>unsigned int WantDestroy:1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(79)]
|
||||
public uint WantDestroy;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // // Disable loading fallback in lower-level calls.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3888">imgui.h:3888</see>
|
||||
/// <br/><c>unsigned int LoadNoFallback:1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(79)]
|
||||
public uint LoadNoFallback;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // // Enable a two-steps mode where CalcTextSize() calls will load AdvanceX *without*
|
||||
/// rendering/packing glyphs. Only advantagous if you know that the glyph is unlikely to actually be
|
||||
/// rendered, otherwise it is slower because we'd do one query on the first CalcTextSize and one query on
|
||||
/// the first Draw.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3889">imgui.h:3889</see>
|
||||
/// <br/><c>unsigned int LoadNoRenderOnLayout:1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(79)]
|
||||
public uint LoadNoRenderOnLayout;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // // Record of that time this was bounds
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3890">imgui.h:3890</see>
|
||||
/// <br/><c>int LastUsedFrame</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(80)]
|
||||
public int LastUsedFrame;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // // Unique ID for this baked storage
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3891">imgui.h:3891</see>
|
||||
/// <br/><c>ImGuiID BakedId</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(84)]
|
||||
public ImGuiID BakedId;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // in // Parent font
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3892">imgui.h:3892</see>
|
||||
/// <br/><c>ImFont* ContainerFont</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(88)]
|
||||
public ImFontPtr ContainerFont;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // // Font loader opaque storage (per baked font * sources): single contiguous buffer
|
||||
/// allocated by imgui, passed to loader.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3893">imgui.h:3893</see>
|
||||
/// <br/><c>void* FontLoaderDatas</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(96)]
|
||||
public nint FontLoaderDatas;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Baked data for a ImFont at a given size.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L185">imgui.h:185</see>
|
||||
/// <br/><c>struct ImFontBaked</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImFontBakedPtr(ImFontBaked* ptr) : INullable
|
||||
{
|
||||
private ImFontBaked* _ptr = ptr;
|
||||
public ImFontBaked* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImFontBakedPtr(ImFontBaked* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImFontBaked*(ImFontBakedPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 12-16 // out // Sparse. Glyphs->AdvanceX in a directly indexable way (cache-friendly for CalcTextSize
|
||||
/// functions which only this info, and are often bottleneck in large UI).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3874">imgui.h:3874</see>
|
||||
/// <br/><c>ImVector<float> IndexAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<float> IndexAdvanceX => ref Unsafe.AsRef<ImVector<float>>(&_ptr->IndexAdvanceX);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // out // FindGlyph(FallbackChar)->AdvanceX
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3875">imgui.h:3875</see>
|
||||
/// <br/><c>float FallbackAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float FallbackAdvanceX => ref Unsafe.AsRef<float>(&_ptr->FallbackAdvanceX);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // in // Height of characters/line, set during loading (doesn't change after loading)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3876">imgui.h:3876</see>
|
||||
/// <br/><c>float Size</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float Size => ref Unsafe.AsRef<float>(&_ptr->Size);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // in // Density this is baked at
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3877">imgui.h:3877</see>
|
||||
/// <br/><c>float RasterizerDensity</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~20/24 bytes (for CalcTextSize)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float RasterizerDensity => ref Unsafe.AsRef<float>(&_ptr->RasterizerDensity);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 12-16 // out // Sparse. Index glyphs by Unicode code-point.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3880">imgui.h:3880</see>
|
||||
/// <br/><c>ImVector<ImU16> IndexLookup</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~28/36 bytes (for RenderText loop)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ushort> IndexLookup => ref Unsafe.AsRef<ImVector<ushort>>(&_ptr->IndexLookup);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 12-16 // out // All glyphs.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3881">imgui.h:3881</see>
|
||||
/// <br/><c>ImVector<ImFontGlyph> Glyphs</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~28/36 bytes (for RenderText loop)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImVector<ImFontGlyph> Glyphs => ref Unsafe.AsRef<ImVector<ImFontGlyph>>(&_ptr->Glyphs);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // out // Index of FontFallbackChar
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3882">imgui.h:3882</see>
|
||||
/// <br/><c>int FallbackGlyphIndex</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Hot ~28/36 bytes (for RenderText loop)
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int FallbackGlyphIndex => ref Unsafe.AsRef<int>(&_ptr->FallbackGlyphIndex);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4+4 // out // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3885">imgui.h:3885</see>
|
||||
/// <br/><c>float Ascent</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float Ascent => ref Unsafe.AsRef<float>(&_ptr->Ascent);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4+4 // out // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize] (unscaled)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3885">imgui.h:3885</see>
|
||||
/// <br/><c>float Ascent, Descent</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float Descent => ref Unsafe.AsRef<float>(&_ptr->Descent);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 3 // out // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact,
|
||||
/// we approximate the cost of padding between glyphs)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3886">imgui.h:3886</see>
|
||||
/// <br/><c>unsigned int MetricsTotalSurface:26</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint MetricsTotalSurface => ref Unsafe.AsRef<uint>(&_ptr->MetricsTotalSurface);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // // Queued for destroy
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3887">imgui.h:3887</see>
|
||||
/// <br/><c>unsigned int WantDestroy:1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint WantDestroy => ref Unsafe.AsRef<uint>(&_ptr->WantDestroy);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // // Disable loading fallback in lower-level calls.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3888">imgui.h:3888</see>
|
||||
/// <br/><c>unsigned int LoadNoFallback:1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint LoadNoFallback => ref Unsafe.AsRef<uint>(&_ptr->LoadNoFallback);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // // Enable a two-steps mode where CalcTextSize() calls will load AdvanceX *without*
|
||||
/// rendering/packing glyphs. Only advantagous if you know that the glyph is unlikely to actually be
|
||||
/// rendered, otherwise it is slower because we'd do one query on the first CalcTextSize and one query on
|
||||
/// the first Draw.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3889">imgui.h:3889</see>
|
||||
/// <br/><c>unsigned int LoadNoRenderOnLayout:1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint LoadNoRenderOnLayout => ref Unsafe.AsRef<uint>(&_ptr->LoadNoRenderOnLayout);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // // Record of that time this was bounds
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3890">imgui.h:3890</see>
|
||||
/// <br/><c>int LastUsedFrame</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int LastUsedFrame => ref Unsafe.AsRef<int>(&_ptr->LastUsedFrame);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4 // // Unique ID for this baked storage
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3891">imgui.h:3891</see>
|
||||
/// <br/><c>ImGuiID BakedId</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImGuiID BakedId => ref Unsafe.AsRef<ImGuiID>(&_ptr->BakedId);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // in // Parent font
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3892">imgui.h:3892</see>
|
||||
/// <br/><c>ImFont* ContainerFont</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImFontPtr ContainerFont => ref Unsafe.AsRef<ImFontPtr>(&_ptr->ContainerFont);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 4-8 // // Font loader opaque storage (per baked font * sources): single contiguous buffer
|
||||
/// allocated by imgui, passed to loader.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3893">imgui.h:3893</see>
|
||||
/// <br/><c>void* FontLoaderDatas</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal] Members: Cold
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref nint FontLoaderDatas => ref Unsafe.AsRef<nint>(&_ptr->FontLoaderDatas);
|
||||
}
|
||||
}
|
||||
945
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontConfig.gen.cs
Normal file
945
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontConfig.gen.cs
Normal file
|
|
@ -0,0 +1,945 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Configuration data when adding a font or merging fonts
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L186">imgui.h:186</see>
|
||||
/// <br/><c>struct ImFontConfig</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 152)]
|
||||
public unsafe partial struct ImFontConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// <auto> // Name (strictly to ease debugging, hence limited size buffer)
|
||||
/// </summary>
|
||||
[FieldOffset(0)]
|
||||
public fixed byte Name[40];
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // TTF/OTF data
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3611">imgui.h:3611</see>
|
||||
/// <br/><c>void* FontData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Data Source
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(40)]
|
||||
public nint FontData;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // TTF/OTF data size
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3612">imgui.h:3612</see>
|
||||
/// <br/><c>int FontDataSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Data Source
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(48)]
|
||||
public int FontDataSize;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3613">imgui.h:3613</see>
|
||||
/// <br/><c>bool FontDataOwnedByAtlas</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Data Source
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(52)]
|
||||
public Bool8 FontDataOwnedByAtlas;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g.
|
||||
/// ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different
|
||||
/// heights.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3616">imgui.h:3616</see>
|
||||
/// <br/><c>bool MergeMode</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(53)]
|
||||
public Bool8 MergeMode;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// false // Align every glyph AdvanceX to pixel boundaries. Useful e.g. if you are merging a non-pixel
|
||||
/// aligned font with the default font. If enabled, you can set OversampleH/V to 1.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3617">imgui.h:3617</see>
|
||||
/// <br/><c>bool PixelSnapH</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(54)]
|
||||
public Bool8 PixelSnapH;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// true // Align Scaled GlyphOffset.y to pixel boundaries.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3618">imgui.h:3618</see>
|
||||
/// <br/><c>bool PixelSnapV</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(55)]
|
||||
public Bool8 PixelSnapV;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 (2) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1 or 2 depending on
|
||||
/// size. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save
|
||||
/// memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3619">imgui.h:3619</see>
|
||||
/// <br/><c>ImS8 OversampleH</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(56)]
|
||||
public sbyte OversampleH;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 (1) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1. This is not really
|
||||
/// useful as we don't use sub-pixel positions on the Y axis.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3620">imgui.h:3620</see>
|
||||
/// <br/><c>ImS8 OversampleV</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(57)]
|
||||
public sbyte OversampleV;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Explicitly specify Unicode codepoint of ellipsis character. When fonts are being merged
|
||||
/// first specified ellipsis will be used.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3621">imgui.h:3621</see>
|
||||
/// <br/><c>ImWchar EllipsisChar</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(60)]
|
||||
public uint EllipsisChar;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // Size in pixels for rasterizer (more or less maps to the resulting font height).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3622">imgui.h:3622</see>
|
||||
/// <br/><c>float SizePixels</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(64)]
|
||||
public float SizePixels;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// NULL // *LEGACY* THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a
|
||||
/// user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3623">imgui.h:3623</see>
|
||||
/// <br/><c>const ImWchar* GlyphRanges</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(72)]
|
||||
public Ptr<uint> GlyphRanges;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// NULL // Pointer to a small user-provided list of Unicode ranges (2 value per range, values are
|
||||
/// inclusive, zero-terminated list). This is very close to GlyphRanges[] but designed to exclude ranges
|
||||
/// from a font source, when merging fonts with overlapping glyphs. Use "Input Glyphs Overlap Detection
|
||||
/// Tool" to find about your overlapping ranges.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3624">imgui.h:3624</see>
|
||||
/// <br/><c>const ImWchar* GlyphExcludeRanges</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(80)]
|
||||
public Ptr<uint> GlyphExcludeRanges;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0, 0 // Offset (in pixels) all glyphs from this font input. Absolute value for default size, other
|
||||
/// sizes will scale this value.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3626">imgui.h:3626</see>
|
||||
/// <br/><c>ImVec2 GlyphOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(88)]
|
||||
public float2 GlyphOffset;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce
|
||||
/// mono-space font. Absolute value for default size, other sizes will scale this value.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3627">imgui.h:3627</see>
|
||||
/// <br/><c>float GlyphMinAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(96)]
|
||||
public float GlyphMinAdvanceX;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// FLT_MAX // Maximum AdvanceX for glyphs
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3628">imgui.h:3628</see>
|
||||
/// <br/><c>float GlyphMaxAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(100)]
|
||||
public float GlyphMaxAdvanceX;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Extra spacing (in pixels) between glyphs. Please contact us if you are using this. //
|
||||
/// FIXME-NEWATLAS: Intentionally unscaled
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3629">imgui.h:3629</see>
|
||||
/// <br/><c>float GlyphExtraAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(104)]
|
||||
public float GlyphExtraAdvanceX;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Index of font within TTF/OTF file
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3630">imgui.h:3630</see>
|
||||
/// <br/><c>ImU32 FontNo</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(108)]
|
||||
public uint FontNo;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if
|
||||
/// unsure.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3631">imgui.h:3631</see>
|
||||
/// <br/><c>unsigned int FontLoaderFlags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(112)]
|
||||
public uint FontLoaderFlags;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1.0f // Linearly brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may
|
||||
/// be a good workaround to make them more readable. This is a silly thing we may remove in the future.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3633">imgui.h:3633</see>
|
||||
/// <br/><c>float RasterizerMultiply</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(116)]
|
||||
public float RasterizerMultiply;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1.0f // [LEGACY: this only makes sense when ImGuiBackendFlags_RendererHasTextures is not supported]
|
||||
/// DPI scale multiplier for rasterization. Not altering other font metrics: makes it easy to swap between
|
||||
/// e.g. a 100% and a 400% fonts for a zooming display, or handle Retina screen. IMPORTANT: If you change
|
||||
/// this it is expected that you increase/decrease font scale roughly to the inverse of this, otherwise
|
||||
/// quality may look lowered.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3634">imgui.h:3634</see>
|
||||
/// <br/><c>float RasterizerDensity</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(120)]
|
||||
public float RasterizerDensity;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Font flags (don't use just yet, will be exposed in upcoming 1.92.X updates)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3637">imgui.h:3637</see>
|
||||
/// <br/><c>ImFontFlags Flags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(124)]
|
||||
public ImFontFlags Flags;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Target font (as we merging fonts, multiple ImFontConfig may target the same font)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3638">imgui.h:3638</see>
|
||||
/// <br/><c>ImFont* DstFont</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(128)]
|
||||
public ImFontPtr DstFont;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Custom font backend for this source (default source is the one stored in ImFontAtlas)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3639">imgui.h:3639</see>
|
||||
/// <br/><c>const ImFontLoader* FontLoader</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(136)]
|
||||
public Ptr<ImFontLoader> FontLoader;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Font loader opaque storage (per font config)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3640">imgui.h:3640</see>
|
||||
/// <br/><c>void* FontLoaderData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[FieldOffset(144)]
|
||||
public nint FontLoaderData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Configuration data when adding a font or merging fonts
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L186">imgui.h:186</see>
|
||||
/// <br/><c>struct ImFontConfig</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImFontConfigPtr(ImFontConfig* ptr) : INullable
|
||||
{
|
||||
private ImFontConfig* _ptr = ptr;
|
||||
public ImFontConfig* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImFontConfigPtr(ImFontConfig* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImFontConfig*(ImFontConfigPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <auto> // Name (strictly to ease debugging, hence limited size buffer)
|
||||
/// </summary>
|
||||
public Span<byte> Name => MemoryMarshal.CreateSpan(ref _ptr->Name[0], 40);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // TTF/OTF data
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3611">imgui.h:3611</see>
|
||||
/// <br/><c>void* FontData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Data Source
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref nint FontData => ref Unsafe.AsRef<nint>(&_ptr->FontData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // TTF/OTF data size
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3612">imgui.h:3612</see>
|
||||
/// <br/><c>int FontDataSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Data Source
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref int FontDataSize => ref Unsafe.AsRef<int>(&_ptr->FontDataSize);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// true // TTF/OTF data ownership taken by the container ImFontAtlas (will delete memory itself).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3613">imgui.h:3613</see>
|
||||
/// <br/><c>bool FontDataOwnedByAtlas</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Data Source
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref bool FontDataOwnedByAtlas => ref Unsafe.AsRef<bool>(&_ptr->FontDataOwnedByAtlas);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// false // Merge into previous ImFont, so you can combine multiple inputs font into one ImFont (e.g.
|
||||
/// ASCII font + icons + Japanese glyphs). You may want to use GlyphOffset.y when merge font of different
|
||||
/// heights.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3616">imgui.h:3616</see>
|
||||
/// <br/><c>bool MergeMode</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref bool MergeMode => ref Unsafe.AsRef<bool>(&_ptr->MergeMode);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// false // Align every glyph AdvanceX to pixel boundaries. Useful e.g. if you are merging a non-pixel
|
||||
/// aligned font with the default font. If enabled, you can set OversampleH/V to 1.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3617">imgui.h:3617</see>
|
||||
/// <br/><c>bool PixelSnapH</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref bool PixelSnapH => ref Unsafe.AsRef<bool>(&_ptr->PixelSnapH);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// true // Align Scaled GlyphOffset.y to pixel boundaries.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3618">imgui.h:3618</see>
|
||||
/// <br/><c>bool PixelSnapV</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref bool PixelSnapV => ref Unsafe.AsRef<bool>(&_ptr->PixelSnapV);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 (2) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1 or 2 depending on
|
||||
/// size. Note the difference between 2 and 3 is minimal. You can reduce this to 1 for large glyphs save
|
||||
/// memory. Read https://github.com/nothings/stb/blob/master/tests/oversample/README.md for details.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3619">imgui.h:3619</see>
|
||||
/// <br/><c>ImS8 OversampleH</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref sbyte OversampleH => ref Unsafe.AsRef<sbyte>(&_ptr->OversampleH);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 (1) // Rasterize at higher quality for sub-pixel positioning. 0 == auto == 1. This is not really
|
||||
/// useful as we don't use sub-pixel positions on the Y axis.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3620">imgui.h:3620</see>
|
||||
/// <br/><c>ImS8 OversampleV</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref sbyte OversampleV => ref Unsafe.AsRef<sbyte>(&_ptr->OversampleV);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Explicitly specify Unicode codepoint of ellipsis character. When fonts are being merged
|
||||
/// first specified ellipsis will be used.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3621">imgui.h:3621</see>
|
||||
/// <br/><c>ImWchar EllipsisChar</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint EllipsisChar => ref Unsafe.AsRef<uint>(&_ptr->EllipsisChar);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // Size in pixels for rasterizer (more or less maps to the resulting font height).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3622">imgui.h:3622</see>
|
||||
/// <br/><c>float SizePixels</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float SizePixels => ref Unsafe.AsRef<float>(&_ptr->SizePixels);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// NULL // *LEGACY* THE ARRAY DATA NEEDS TO PERSIST AS LONG AS THE FONT IS ALIVE. Pointer to a
|
||||
/// user-provided list of Unicode range (2 value per range, values are inclusive, zero-terminated list).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3623">imgui.h:3623</see>
|
||||
/// <br/><c>const ImWchar* GlyphRanges</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref Ptr<uint> GlyphRanges => ref Unsafe.AsRef<Ptr<uint>>(&_ptr->GlyphRanges);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// NULL // Pointer to a small user-provided list of Unicode ranges (2 value per range, values are
|
||||
/// inclusive, zero-terminated list). This is very close to GlyphRanges[] but designed to exclude ranges
|
||||
/// from a font source, when merging fonts with overlapping glyphs. Use "Input Glyphs Overlap Detection
|
||||
/// Tool" to find about your overlapping ranges.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3624">imgui.h:3624</see>
|
||||
/// <br/><c>const ImWchar* GlyphExcludeRanges</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref Ptr<uint> GlyphExcludeRanges => ref Unsafe.AsRef<Ptr<uint>>(&_ptr->GlyphExcludeRanges);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0, 0 // Offset (in pixels) all glyphs from this font input. Absolute value for default size, other
|
||||
/// sizes will scale this value.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3626">imgui.h:3626</see>
|
||||
/// <br/><c>ImVec2 GlyphOffset</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float2 GlyphOffset => ref Unsafe.AsRef<float2>(&_ptr->GlyphOffset);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Minimum AdvanceX for glyphs, set Min to align font icons, set both Min/Max to enforce
|
||||
/// mono-space font. Absolute value for default size, other sizes will scale this value.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3627">imgui.h:3627</see>
|
||||
/// <br/><c>float GlyphMinAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float GlyphMinAdvanceX => ref Unsafe.AsRef<float>(&_ptr->GlyphMinAdvanceX);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// FLT_MAX // Maximum AdvanceX for glyphs
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3628">imgui.h:3628</see>
|
||||
/// <br/><c>float GlyphMaxAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float GlyphMaxAdvanceX => ref Unsafe.AsRef<float>(&_ptr->GlyphMaxAdvanceX);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Extra spacing (in pixels) between glyphs. Please contact us if you are using this. //
|
||||
/// FIXME-NEWATLAS: Intentionally unscaled
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3629">imgui.h:3629</see>
|
||||
/// <br/><c>float GlyphExtraAdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float GlyphExtraAdvanceX => ref Unsafe.AsRef<float>(&_ptr->GlyphExtraAdvanceX);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Index of font within TTF/OTF file
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3630">imgui.h:3630</see>
|
||||
/// <br/><c>ImU32 FontNo</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint FontNo => ref Unsafe.AsRef<uint>(&_ptr->FontNo);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0 // Settings for custom font builder. THIS IS BUILDER IMPLEMENTATION DEPENDENT. Leave as zero if
|
||||
/// unsure.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3631">imgui.h:3631</see>
|
||||
/// <br/><c>unsigned int FontLoaderFlags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref uint FontLoaderFlags => ref Unsafe.AsRef<uint>(&_ptr->FontLoaderFlags);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1.0f // Linearly brighten (>1.0f) or darken (<1.0f) font output. Brightening small fonts may
|
||||
/// be a good workaround to make them more readable. This is a silly thing we may remove in the future.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3633">imgui.h:3633</see>
|
||||
/// <br/><c>float RasterizerMultiply</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float RasterizerMultiply => ref Unsafe.AsRef<float>(&_ptr->RasterizerMultiply);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 1.0f // [LEGACY: this only makes sense when ImGuiBackendFlags_RendererHasTextures is not supported]
|
||||
/// DPI scale multiplier for rasterization. Not altering other font metrics: makes it easy to swap between
|
||||
/// e.g. a 100% and a 400% fonts for a zooming display, or handle Retina screen. IMPORTANT: If you change
|
||||
/// this it is expected that you increase/decrease font scale roughly to the inverse of this, otherwise
|
||||
/// quality may look lowered.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3634">imgui.h:3634</see>
|
||||
/// <br/><c>float RasterizerDensity</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Options
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref float RasterizerDensity => ref Unsafe.AsRef<float>(&_ptr->RasterizerDensity);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Font flags (don't use just yet, will be exposed in upcoming 1.92.X updates)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3637">imgui.h:3637</see>
|
||||
/// <br/><c>ImFontFlags Flags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImFontFlags Flags => ref Unsafe.AsRef<ImFontFlags>(&_ptr->Flags);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Target font (as we merging fonts, multiple ImFontConfig may target the same font)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3638">imgui.h:3638</see>
|
||||
/// <br/><c>ImFont* DstFont</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref ImFontPtr DstFont => ref Unsafe.AsRef<ImFontPtr>(&_ptr->DstFont);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Custom font backend for this source (default source is the one stored in ImFontAtlas)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3639">imgui.h:3639</see>
|
||||
/// <br/><c>const ImFontLoader* FontLoader</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref Ptr<ImFontLoader> FontLoader => ref Unsafe.AsRef<Ptr<ImFontLoader>>(&_ptr->FontLoader);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Font loader opaque storage (per font config)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3640">imgui.h:3640</see>
|
||||
/// <br/><c>void* FontLoaderData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// [Internal]
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public ref nint FontLoaderData => ref Unsafe.AsRef<nint>(&_ptr->FontLoaderData);
|
||||
}
|
||||
}
|
||||
582
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontGlyph.gen.cs
Normal file
582
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontGlyph.gen.cs
Normal file
|
|
@ -0,0 +1,582 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A single font glyph (code point + coordinates within in ImFontAtlas + offset)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L187">imgui.h:187</see>
|
||||
/// <br/><c>struct ImFontGlyph</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 44)]
|
||||
public partial struct ImFontGlyph
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on
|
||||
/// little-endian as this is used in loops)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3649">imgui.h:3649</see>
|
||||
/// <br/><c>unsigned int Colored : 1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public uint Colored;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3650">imgui.h:3650</see>
|
||||
/// <br/><c>unsigned int Visible : 1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public uint Visible;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Index of source in parent font
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3651">imgui.h:3651</see>
|
||||
/// <br/><c>unsigned int SourceIdx : 4</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public uint SourceIdx;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0x0000..0x10FFFF
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3652">imgui.h:3652</see>
|
||||
/// <br/><c>unsigned int Codepoint : 26</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public uint Codepoint;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Horizontal distance to advance cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3653">imgui.h:3653</see>
|
||||
/// <br/><c>float AdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(4)]
|
||||
public float AdvanceX;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Glyph corners. Offsets from current cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3654">imgui.h:3654</see>
|
||||
/// <br/><c>float X0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public float X0;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Glyph corners. Offsets from current cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3654">imgui.h:3654</see>
|
||||
/// <br/><c>float X0, Y0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(12)]
|
||||
public float Y0;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Glyph corners. Offsets from current cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3654">imgui.h:3654</see>
|
||||
/// <br/><c>float X0, Y0, X1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public float X1;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Glyph corners. Offsets from current cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3654">imgui.h:3654</see>
|
||||
/// <br/><c>float X0, Y0, X1, Y1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(20)]
|
||||
public float Y1;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
|
||||
/// GetCustomRect() with PackId.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3655">imgui.h:3655</see>
|
||||
/// <br/><c>float U0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(24)]
|
||||
public float U0;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
|
||||
/// GetCustomRect() with PackId.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3655">imgui.h:3655</see>
|
||||
/// <br/><c>float U0, V0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(28)]
|
||||
public float V0;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
|
||||
/// GetCustomRect() with PackId.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3655">imgui.h:3655</see>
|
||||
/// <br/><c>float U0, V0, U1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public float U1;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
|
||||
/// GetCustomRect() with PackId.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3655">imgui.h:3655</see>
|
||||
/// <br/><c>float U0, V0, U1, V1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(36)]
|
||||
public float V1;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] ImFontAtlasRectId value (FIXME: Cold data, could be moved elsewhere?)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3656">imgui.h:3656</see>
|
||||
/// <br/><c>int PackId</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(40)]
|
||||
public int PackId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// A single font glyph (code point + coordinates within in ImFontAtlas + offset)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L187">imgui.h:187</see>
|
||||
/// <br/><c>struct ImFontGlyph</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImFontGlyphPtr(ImFontGlyph* ptr) : INullable
|
||||
{
|
||||
private ImFontGlyph* _ptr = ptr;
|
||||
public ImFontGlyph* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImFontGlyphPtr(ImFontGlyph* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImFontGlyph*(ImFontGlyphPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Flag to indicate glyph is colored and should generally ignore tinting (make it usable with no shift on
|
||||
/// little-endian as this is used in loops)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3649">imgui.h:3649</see>
|
||||
/// <br/><c>unsigned int Colored : 1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint Colored => ref Unsafe.AsRef<uint>(&_ptr->Colored);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Flag to indicate glyph has no visible pixels (e.g. space). Allow early out when rendering.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3650">imgui.h:3650</see>
|
||||
/// <br/><c>unsigned int Visible : 1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint Visible => ref Unsafe.AsRef<uint>(&_ptr->Visible);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Index of source in parent font
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3651">imgui.h:3651</see>
|
||||
/// <br/><c>unsigned int SourceIdx : 4</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint SourceIdx => ref Unsafe.AsRef<uint>(&_ptr->SourceIdx);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0x0000..0x10FFFF
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3652">imgui.h:3652</see>
|
||||
/// <br/><c>unsigned int Codepoint : 26</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint Codepoint => ref Unsafe.AsRef<uint>(&_ptr->Codepoint);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Horizontal distance to advance cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3653">imgui.h:3653</see>
|
||||
/// <br/><c>float AdvanceX</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float AdvanceX => ref Unsafe.AsRef<float>(&_ptr->AdvanceX);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Glyph corners. Offsets from current cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3654">imgui.h:3654</see>
|
||||
/// <br/><c>float X0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float X0 => ref Unsafe.AsRef<float>(&_ptr->X0);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Glyph corners. Offsets from current cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3654">imgui.h:3654</see>
|
||||
/// <br/><c>float X0, Y0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float Y0 => ref Unsafe.AsRef<float>(&_ptr->Y0);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Glyph corners. Offsets from current cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3654">imgui.h:3654</see>
|
||||
/// <br/><c>float X0, Y0, X1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float X1 => ref Unsafe.AsRef<float>(&_ptr->X1);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Glyph corners. Offsets from current cursor/layout position.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3654">imgui.h:3654</see>
|
||||
/// <br/><c>float X0, Y0, X1, Y1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float Y1 => ref Unsafe.AsRef<float>(&_ptr->Y1);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
|
||||
/// GetCustomRect() with PackId.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3655">imgui.h:3655</see>
|
||||
/// <br/><c>float U0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float U0 => ref Unsafe.AsRef<float>(&_ptr->U0);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
|
||||
/// GetCustomRect() with PackId.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3655">imgui.h:3655</see>
|
||||
/// <br/><c>float U0, V0</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float V0 => ref Unsafe.AsRef<float>(&_ptr->V0);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
|
||||
/// GetCustomRect() with PackId.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3655">imgui.h:3655</see>
|
||||
/// <br/><c>float U0, V0, U1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float U1 => ref Unsafe.AsRef<float>(&_ptr->U1);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Texture coordinates for the current value of ImFontAtlas->TexRef. Cached equivalent of calling
|
||||
/// GetCustomRect() with PackId.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3655">imgui.h:3655</see>
|
||||
/// <br/><c>float U0, V0, U1, V1</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float V1 => ref Unsafe.AsRef<float>(&_ptr->V1);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// [Internal] ImFontAtlasRectId value (FIXME: Cold data, could be moved elsewhere?)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3656">imgui.h:3656</see>
|
||||
/// <br/><c>int PackId</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hold rendering data for one glyph.
|
||||
/// (Note: some language parsers may fail to convert the bitfield members, in this case maybe drop store a single u32 or we can rework this)
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int PackId => ref Unsafe.AsRef<int>(&_ptr->PackId);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Helper to build glyph ranges from text/string data
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L188">imgui.h:188</see>
|
||||
/// <br/><c>struct ImFontGlyphRangesBuilder</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
||||
public partial struct ImFontGlyphRangesBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Store 1-bit per Unicode code point (0=unused, 1=used)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3665">imgui.h:3665</see>
|
||||
/// <br/><c>ImVector<ImU32> UsedChars</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges().
|
||||
/// This is essentially a tightly packed of vector of 64k booleans = 8KB storage.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public ImVector<uint> UsedChars;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Helper to build glyph ranges from text/string data
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L188">imgui.h:188</see>
|
||||
/// <br/><c>struct ImFontGlyphRangesBuilder</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* ptr) : INullable
|
||||
{
|
||||
private ImFontGlyphRangesBuilder* _ptr = ptr;
|
||||
public ImFontGlyphRangesBuilder* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImFontGlyphRangesBuilderPtr(ImFontGlyphRangesBuilder* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImFontGlyphRangesBuilder*(ImFontGlyphRangesBuilderPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Store 1-bit per Unicode code point (0=unused, 1=used)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3665">imgui.h:3665</see>
|
||||
/// <br/><c>ImVector<ImU32> UsedChars</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Helper to build glyph ranges from text/string data. Feed your application strings/characters to it then call BuildRanges().
|
||||
/// This is essentially a tightly packed of vector of 64k booleans = 8KB storage.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImVector<uint> UsedChars => ref Unsafe.AsRef<ImVector<uint>>(&_ptr->UsedChars);
|
||||
}
|
||||
}
|
||||
388
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontLoader.gen.cs
Normal file
388
brutal.imgui/Brutal.ImGui/Generated/Structs/ImFontLoader.gen.cs
Normal file
|
|
@ -0,0 +1,388 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Opaque interface to a font loading backend (stb_truetype, FreeType etc.).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L189">imgui.h:189</see>
|
||||
/// <br/><c>struct ImFontLoader</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 80)]
|
||||
public partial struct ImFontLoader
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3995">imgui_internal.h:3995</see>
|
||||
/// <br/><c>const char* Name</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public Ptr<byte> Name;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3996">imgui_internal.h:3996</see>
|
||||
/// <br/><c>bool (*LoaderInit)(ImFontAtlas* atlas)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public nint LoaderInit;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3997">imgui_internal.h:3997</see>
|
||||
/// <br/><c>void (*LoaderShutdown)(ImFontAtlas* atlas)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public nint LoaderShutdown;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3998">imgui_internal.h:3998</see>
|
||||
/// <br/><c>bool (*FontSrcInit)(ImFontAtlas* atlas, ImFontConfig* src)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(24)]
|
||||
public nint FontSrcInit;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3999">imgui_internal.h:3999</see>
|
||||
/// <br/><c>void (*FontSrcDestroy)(ImFontAtlas* atlas, ImFontConfig* src)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public nint FontSrcDestroy;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4000">imgui_internal.h:4000</see>
|
||||
/// <br/><c>bool (*FontSrcContainsGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImWchar codepoint)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(40)]
|
||||
public nint FontSrcContainsGlyph;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4001">imgui_internal.h:4001</see>
|
||||
/// <br/>
|
||||
/// <c>bool (*FontBakedInit)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(48)]
|
||||
public nint FontBakedInit;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4002">imgui_internal.h:4002</see>
|
||||
/// <br/>
|
||||
/// <c>void (*FontBakedDestroy)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(56)]
|
||||
public nint FontBakedDestroy;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4003">imgui_internal.h:4003</see>
|
||||
/// <br/>
|
||||
/// <c>bool (*FontBakedLoadGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph* out_glyph, float* out_advance_x)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(64)]
|
||||
public nint FontBakedLoadGlyph;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4007">imgui_internal.h:4007</see>
|
||||
/// <br/><c>size_t FontBakedSrcLoaderDataSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Size of backend data, Per Baked * Per Source. Buffers are managed by core to avoid excessive allocations.
|
||||
/// FIXME: At this point the two other types of buffers may be managed by core to be consistent?
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(72)]
|
||||
public nuint FontBakedSrcLoaderDataSize;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Opaque interface to a font loading backend (stb_truetype, FreeType etc.).
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L189">imgui.h:189</see>
|
||||
/// <br/><c>struct ImFontLoader</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImFontLoaderPtr(ImFontLoader* ptr) : INullable
|
||||
{
|
||||
private ImFontLoader* _ptr = ptr;
|
||||
public ImFontLoader* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImFontLoaderPtr(ImFontLoader* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImFontLoader*(ImFontLoaderPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3995">imgui_internal.h:3995</see>
|
||||
/// <br/><c>const char* Name</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref Ptr<byte> Name => ref Unsafe.AsRef<Ptr<byte>>(&_ptr->Name);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3996">imgui_internal.h:3996</see>
|
||||
/// <br/><c>bool (*LoaderInit)(ImFontAtlas* atlas)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint LoaderInit => ref Unsafe.AsRef<nint>(&_ptr->LoaderInit);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3997">imgui_internal.h:3997</see>
|
||||
/// <br/><c>void (*LoaderShutdown)(ImFontAtlas* atlas)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint LoaderShutdown => ref Unsafe.AsRef<nint>(&_ptr->LoaderShutdown);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3998">imgui_internal.h:3998</see>
|
||||
/// <br/><c>bool (*FontSrcInit)(ImFontAtlas* atlas, ImFontConfig* src)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint FontSrcInit => ref Unsafe.AsRef<nint>(&_ptr->FontSrcInit);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3999">imgui_internal.h:3999</see>
|
||||
/// <br/><c>void (*FontSrcDestroy)(ImFontAtlas* atlas, ImFontConfig* src)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint FontSrcDestroy => ref Unsafe.AsRef<nint>(&_ptr->FontSrcDestroy);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4000">imgui_internal.h:4000</see>
|
||||
/// <br/><c>bool (*FontSrcContainsGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImWchar codepoint)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint FontSrcContainsGlyph => ref Unsafe.AsRef<nint>(&_ptr->FontSrcContainsGlyph);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4001">imgui_internal.h:4001</see>
|
||||
/// <br/>
|
||||
/// <c>bool (*FontBakedInit)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint FontBakedInit => ref Unsafe.AsRef<nint>(&_ptr->FontBakedInit);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4002">imgui_internal.h:4002</see>
|
||||
/// <br/>
|
||||
/// <c>void (*FontBakedDestroy)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint FontBakedDestroy => ref Unsafe.AsRef<nint>(&_ptr->FontBakedDestroy);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4003">imgui_internal.h:4003</see>
|
||||
/// <br/>
|
||||
/// <c>bool (*FontBakedLoadGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph* out_glyph, float* out_advance_x)</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Hooks and storage for a given font backend.
|
||||
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
||||
/// Conceptually this could be public, but API is still going to be evolve.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint FontBakedLoadGlyph => ref Unsafe.AsRef<nint>(&_ptr->FontBakedLoadGlyph);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4007">imgui_internal.h:4007</see>
|
||||
/// <br/><c>size_t FontBakedSrcLoaderDataSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Size of backend data, Per Baked * Per Source. Buffers are managed by core to avoid excessive allocations.
|
||||
/// FIXME: At this point the two other types of buffers may be managed by core to be consistent?
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nuint FontBakedSrcLoaderDataSize => ref Unsafe.AsRef<nuint>(&_ptr->FontBakedSrcLoaderDataSize);
|
||||
}
|
||||
}
|
||||
10417
brutal.imgui/Brutal.ImGui/Generated/Structs/ImGuiContext.gen.cs
Normal file
10417
brutal.imgui/Brutal.ImGui/Generated/Structs/ImGuiContext.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
3997
brutal.imgui/Brutal.ImGui/Generated/Structs/ImGuiIO.gen.cs
Normal file
3997
brutal.imgui/Brutal.ImGui/Generated/Structs/ImGuiIO.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,654 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L197">imgui.h:197</see>
|
||||
/// <br/><c>struct ImGuiInputTextCallbackData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImGui layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 64)]
|
||||
public partial struct ImGuiInputTextCallbackData
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Parent UI context
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2703">imgui.h:2703</see>
|
||||
/// <br/><c>ImGuiContext* Ctx</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
|
||||
/// The callback function should return 0 by default.
|
||||
/// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
|
||||
/// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
|
||||
/// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
|
||||
/// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
|
||||
/// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
|
||||
/// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
|
||||
/// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public ImGuiContextPtr Ctx;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// One ImGuiInputTextFlags_Callback* // Read-only
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2704">imgui.h:2704</see>
|
||||
/// <br/><c>ImGuiInputTextFlags EventFlag</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
|
||||
/// The callback function should return 0 by default.
|
||||
/// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
|
||||
/// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
|
||||
/// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
|
||||
/// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
|
||||
/// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
|
||||
/// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
|
||||
/// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public ImGuiInputTextFlags EventFlag;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// What user passed to InputText() // Read-only
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2705">imgui.h:2705</see>
|
||||
/// <br/><c>ImGuiInputTextFlags Flags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
|
||||
/// The callback function should return 0 by default.
|
||||
/// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
|
||||
/// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
|
||||
/// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
|
||||
/// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
|
||||
/// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
|
||||
/// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
|
||||
/// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(12)]
|
||||
public ImGuiInputTextFlags Flags;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// What user passed to InputText() // Read-only
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2706">imgui.h:2706</see>
|
||||
/// <br/><c>void* UserData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
|
||||
/// The callback function should return 0 by default.
|
||||
/// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
|
||||
/// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
|
||||
/// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
|
||||
/// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
|
||||
/// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
|
||||
/// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
|
||||
/// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(16)]
|
||||
public nint UserData;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Character input // Read-write // [CharFilter] Replace character with another one,
|
||||
/// or set to zero to drop. return 1 is equivalent to setting EventChar=0;
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2713">imgui.h:2713</see>
|
||||
/// <br/><c>ImWchar EventChar</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(24)]
|
||||
public uint EventChar;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Key pressed (Up/Down/TAB) // Read-only // [Completion,History]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2714">imgui.h:2714</see>
|
||||
/// <br/><c>ImGuiKey EventKey</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(28)]
|
||||
public ImGuiKey EventKey;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Text buffer // Read-write // [Resize] Can replace pointer /
|
||||
/// [Completion,History,Always] Only write to pointed data, don't replace the actual pointer!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2715">imgui.h:2715</see>
|
||||
/// <br/><c>char* Buf</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(32)]
|
||||
public Ptr<byte> Buf;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude
|
||||
/// zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length()
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2716">imgui.h:2716</see>
|
||||
/// <br/><c>int BufTextLen</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(40)]
|
||||
public int BufTextLen;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include
|
||||
/// zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2717">imgui.h:2717</see>
|
||||
/// <br/><c>int BufSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(44)]
|
||||
public int BufSize;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2718">imgui.h:2718</see>
|
||||
/// <br/><c>bool BufDirty</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(48)]
|
||||
public Bool8 BufDirty;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // Read-write // [Completion,History,Always]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2719">imgui.h:2719</see>
|
||||
/// <br/><c>int CursorPos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(52)]
|
||||
public int CursorPos;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // Read-write // [Completion,History,Always] == to SelectionEnd when no selection)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2720">imgui.h:2720</see>
|
||||
/// <br/><c>int SelectionStart</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(56)]
|
||||
public int SelectionStart;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // Read-write // [Completion,History,Always]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2721">imgui.h:2721</see>
|
||||
/// <br/><c>int SelectionEnd</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(60)]
|
||||
public int SelectionEnd;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Shared state of InputText() when using custom ImGuiInputTextCallback (rare/advanced use)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L197">imgui.h:197</see>
|
||||
/// <br/><c>struct ImGuiInputTextCallbackData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImGui layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* ptr) : INullable
|
||||
{
|
||||
private ImGuiInputTextCallbackData* _ptr = ptr;
|
||||
public ImGuiInputTextCallbackData* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImGuiInputTextCallbackDataPtr(ImGuiInputTextCallbackData* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImGuiInputTextCallbackData*(ImGuiInputTextCallbackDataPtr wrapper) =>
|
||||
wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Parent UI context
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2703">imgui.h:2703</see>
|
||||
/// <br/><c>ImGuiContext* Ctx</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
|
||||
/// The callback function should return 0 by default.
|
||||
/// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
|
||||
/// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
|
||||
/// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
|
||||
/// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
|
||||
/// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
|
||||
/// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
|
||||
/// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImGuiContextPtr Ctx => ref Unsafe.AsRef<ImGuiContextPtr>(&_ptr->Ctx);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// One ImGuiInputTextFlags_Callback* // Read-only
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2704">imgui.h:2704</see>
|
||||
/// <br/><c>ImGuiInputTextFlags EventFlag</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
|
||||
/// The callback function should return 0 by default.
|
||||
/// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
|
||||
/// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
|
||||
/// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
|
||||
/// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
|
||||
/// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
|
||||
/// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
|
||||
/// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImGuiInputTextFlags EventFlag => ref Unsafe.AsRef<ImGuiInputTextFlags>(&_ptr->EventFlag);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// What user passed to InputText() // Read-only
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2705">imgui.h:2705</see>
|
||||
/// <br/><c>ImGuiInputTextFlags Flags</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
|
||||
/// The callback function should return 0 by default.
|
||||
/// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
|
||||
/// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
|
||||
/// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
|
||||
/// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
|
||||
/// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
|
||||
/// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
|
||||
/// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImGuiInputTextFlags Flags => ref Unsafe.AsRef<ImGuiInputTextFlags>(&_ptr->Flags);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// What user passed to InputText() // Read-only
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2706">imgui.h:2706</see>
|
||||
/// <br/><c>void* UserData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Shared state of InputText(), passed as an argument to your callback when a ImGuiInputTextFlags_Callback* flag is used.
|
||||
/// The callback function should return 0 by default.
|
||||
/// Callbacks (follow a flag name and see comments in ImGuiInputTextFlags_ declarations for more details)
|
||||
/// - ImGuiInputTextFlags_CallbackEdit: Callback on buffer edit. Note that InputText() already returns true on edit + you can always use IsItemEdited(). The callback is useful to manipulate the underlying buffer while focus is active.
|
||||
/// - ImGuiInputTextFlags_CallbackAlways: Callback on each iteration
|
||||
/// - ImGuiInputTextFlags_CallbackCompletion: Callback on pressing TAB
|
||||
/// - ImGuiInputTextFlags_CallbackHistory: Callback on pressing Up/Down arrows
|
||||
/// - ImGuiInputTextFlags_CallbackCharFilter: Callback on character inputs to replace or discard them. Modify 'EventChar' to replace or discard, or return 1 in callback to discard.
|
||||
/// - ImGuiInputTextFlags_CallbackResize: Callback on buffer capacity changes request (beyond 'buf_size' parameter value), allowing the string to grow.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref nint UserData => ref Unsafe.AsRef<nint>(&_ptr->UserData);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Character input // Read-write // [CharFilter] Replace character with another one,
|
||||
/// or set to zero to drop. return 1 is equivalent to setting EventChar=0;
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2713">imgui.h:2713</see>
|
||||
/// <br/><c>ImWchar EventChar</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref uint EventChar => ref Unsafe.AsRef<uint>(&_ptr->EventChar);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Key pressed (Up/Down/TAB) // Read-only // [Completion,History]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2714">imgui.h:2714</see>
|
||||
/// <br/><c>ImGuiKey EventKey</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref ImGuiKey EventKey => ref Unsafe.AsRef<ImGuiKey>(&_ptr->EventKey);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Text buffer // Read-write // [Resize] Can replace pointer /
|
||||
/// [Completion,History,Always] Only write to pointed data, don't replace the actual pointer!
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2715">imgui.h:2715</see>
|
||||
/// <br/><c>char* Buf</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref Ptr<byte> Buf => ref Unsafe.AsRef<Ptr<byte>>(&_ptr->Buf);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Text length (in bytes) // Read-write // [Resize,Completion,History,Always] Exclude
|
||||
/// zero-terminator storage. In C land: == strlen(some_text), in C++ land: string.length()
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2716">imgui.h:2716</see>
|
||||
/// <br/><c>int BufTextLen</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int BufTextLen => ref Unsafe.AsRef<int>(&_ptr->BufTextLen);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Buffer size (in bytes) = capacity+1 // Read-only // [Resize,Completion,History,Always] Include
|
||||
/// zero-terminator storage. In C land == ARRAYSIZE(my_char_array), in C++ land: string.capacity()+1
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2717">imgui.h:2717</see>
|
||||
/// <br/><c>int BufSize</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int BufSize => ref Unsafe.AsRef<int>(&_ptr->BufSize);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Set if you modify Buf/BufTextLen! // Write // [Completion,History,Always]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2718">imgui.h:2718</see>
|
||||
/// <br/><c>bool BufDirty</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref bool BufDirty => ref Unsafe.AsRef<bool>(&_ptr->BufDirty);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // Read-write // [Completion,History,Always]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2719">imgui.h:2719</see>
|
||||
/// <br/><c>int CursorPos</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int CursorPos => ref Unsafe.AsRef<int>(&_ptr->CursorPos);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // Read-write // [Completion,History,Always] == to SelectionEnd when no selection)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2720">imgui.h:2720</see>
|
||||
/// <br/><c>int SelectionStart</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int SelectionStart => ref Unsafe.AsRef<int>(&_ptr->SelectionStart);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// // Read-write // [Completion,History,Always]
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2721">imgui.h:2721</see>
|
||||
/// <br/><c>int SelectionEnd</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// Arguments for the different callback events
|
||||
/// - During Resize callback, Buf will be same as your input buffer.
|
||||
/// - However, during Completion/History/Always callback, Buf always points to our own internal data (it is not the same as your buffer)! Changes to it will be reflected into your own buffer shortly after the callback.
|
||||
/// - To modify the text buffer in a callback, prefer using the InsertChars() / DeleteChars() function. InsertChars() will take care of calling the resize callback if necessary.
|
||||
/// - If you know your edits are not going to resize the underlying buffer allocation, you may modify the contents of 'Buf[]' directly. You need to update 'BufTextLen' accordingly (0 <= BufTextLen < BufSize) and set 'BufDirty'' to true so InputText can update its internal state.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref int SelectionEnd => ref Unsafe.AsRef<int>(&_ptr->SelectionEnd);
|
||||
}
|
||||
}
|
||||
202
brutal.imgui/Brutal.ImGui/Generated/Structs/ImGuiKeyData.gen.cs
Normal file
202
brutal.imgui/Brutal.ImGui/Generated/Structs/ImGuiKeyData.gen.cs
Normal file
|
|
@ -0,0 +1,202 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Brutal.ImGuiApi
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L198">imgui.h:198</see>
|
||||
/// <br/><c>struct ImGuiKeyData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImGui layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
[StructLayout(LayoutKind.Explicit, Size = 16)]
|
||||
public partial struct ImGuiKeyData
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// True for if key is down
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2432">imgui.h:2432</see>
|
||||
/// <br/><c>bool Down</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(0)]
|
||||
public Bool8 Down;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2433">imgui.h:2433</see>
|
||||
/// <br/><c>float DownDuration</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(4)]
|
||||
public float DownDuration;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Last frame duration the key has been down
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2434">imgui.h:2434</see>
|
||||
/// <br/><c>float DownDurationPrev</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(8)]
|
||||
public float DownDurationPrev;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0.0f..1.0f for gamepad values
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2435">imgui.h:2435</see>
|
||||
/// <br/><c>float AnalogValue</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
[FieldOffset(12)]
|
||||
public float AnalogValue;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Storage for ImGuiIO and IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L198">imgui.h:198</see>
|
||||
/// <br/><c>struct ImGuiKeyData</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// Forward declarations: ImGui layer
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public unsafe partial struct ImGuiKeyDataPtr(ImGuiKeyData* ptr) : INullable
|
||||
{
|
||||
private ImGuiKeyData* _ptr = ptr;
|
||||
public ImGuiKeyData* Ptr => _ptr;
|
||||
|
||||
public bool IsNull() => _ptr is null;
|
||||
|
||||
public static implicit operator ImGuiKeyDataPtr(ImGuiKeyData* ptr) => new(ptr);
|
||||
|
||||
public static implicit operator ImGuiKeyData*(ImGuiKeyDataPtr wrapper) => wrapper.Ptr;
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// True for if key is down
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2432">imgui.h:2432</see>
|
||||
/// <br/><c>bool Down</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref bool Down => ref Unsafe.AsRef<bool>(&_ptr->Down);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Duration the key has been down (<0.0f: not pressed, 0.0f: just pressed, >0.0f: time held)
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2433">imgui.h:2433</see>
|
||||
/// <br/><c>float DownDuration</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float DownDuration => ref Unsafe.AsRef<float>(&_ptr->DownDuration);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// Last frame duration the key has been down
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2434">imgui.h:2434</see>
|
||||
/// <br/><c>float DownDurationPrev</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float DownDurationPrev => ref Unsafe.AsRef<float>(&_ptr->DownDurationPrev);
|
||||
|
||||
/// <summary>
|
||||
/// <para>
|
||||
/// 0.0f..1.0f for gamepad values
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// C++:
|
||||
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L2435">imgui.h:2435</see>
|
||||
/// <br/><c>float AnalogValue</c>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <code>
|
||||
/// [Internal] Storage used by IsKeyDown(), IsKeyPressed() etc functions.
|
||||
/// If prior to 1.87 you used io.KeysDownDuration[] (which was marked as internal), you should use GetKeyData(key)->DownDuration and *NOT* io.KeysData[key]->DownDuration.
|
||||
/// </code>
|
||||
/// </remarks>
|
||||
public ref float AnalogValue => ref Unsafe.AsRef<float>(&_ptr->AnalogValue);
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue