mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
496 lines
19 KiB
C#
496 lines
19 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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);
|
|
}
|
|
}
|