//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Runtime data for a single font within a parent ImFontAtlas
///
///
/// C++:
/// imgui.h:181
///
struct ImFont
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 96)]
public partial struct ImFont
{
///
///
/// 4-8 // Cache last bound baked. NEVER USE DIRECTLY. Use GetFontBaked().
///
///
/// C++:
/// imgui.h:3922
///
ImFontBaked* LastBaked
///
///
///
///
/// [Internal] Members: Hot ~12-20 bytes
///
///
[FieldOffset(0)]
public ImFontBakedPtr LastBaked;
///
///
/// 4-8 // What we have been loaded into.
///
///
/// C++:
/// imgui.h:3923
///
ImFontAtlas* ContainerAtlas
///
///
///
///
/// [Internal] Members: Hot ~12-20 bytes
///
///
[FieldOffset(8)]
public ImFontAtlasPtr ContainerAtlas;
///
///
/// 4 // Font flags.
///
///
/// C++:
/// imgui.h:3924
///
ImFontFlags Flags
///
///
///
///
/// [Internal] Members: Hot ~12-20 bytes
///
///
[FieldOffset(16)]
public ImFontFlags Flags;
///
///
/// Current rasterizer density. This is a varying state of the font.
///
///
/// C++:
/// imgui.h:3925
///
float CurrentRasterizerDensity
///
///
///
///
/// [Internal] Members: Hot ~12-20 bytes
///
///
[FieldOffset(20)]
public float CurrentRasterizerDensity;
///
///
/// Unique identifier for the font
///
///
/// C++:
/// imgui.h:3929
///
ImGuiID FontId
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
[FieldOffset(24)]
public ImGuiID FontId;
///
///
/// 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).
///
///
/// C++:
/// imgui.h:3930
///
float LegacySize
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
[FieldOffset(28)]
public float LegacySize;
///
///
/// 16 // in // List of sources. Pointers within ContainerAtlas->Sources[]
///
///
/// C++:
/// imgui.h:3931
///
ImVector<ImFontConfig*> Sources
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
[FieldOffset(32)]
public ImVector Sources;
///
///
/// 2-4 // out // Character used for ellipsis rendering ('...').
///
///
/// C++:
/// imgui.h:3932
///
ImWchar EllipsisChar
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
[FieldOffset(48)]
public uint EllipsisChar;
///
///
/// 2-4 // out // Character used if a glyph isn't found (U+FFFD, '?')
///
///
/// C++:
/// imgui.h:3933
///
ImWchar FallbackChar
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
[FieldOffset(52)]
public uint FallbackChar;
///
///
/// 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.
///
///
/// C++:
/// imgui.h:3934
///
ImU8 Used8kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/8192/8]
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
[FieldOffset(56)]
public byte_17 Used8kPagesMap;
///
///
/// 1 // // Mark when the "..." glyph needs to be generated.
///
///
/// C++:
/// imgui.h:3935
///
bool EllipsisAutoBake
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
[FieldOffset(73)]
public Bool8 EllipsisAutoBake;
///
///
/// 16 // // Remapping pairs when using AddRemapChar(), otherwise empty.
///
///
/// C++:
/// imgui.h:3936
///
ImGuiStorage RemapPairs
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
[FieldOffset(80)]
public ImGuiStorage RemapPairs;
}
///
///
/// Runtime data for a single font within a parent ImFontAtlas
///
///
/// C++:
/// imgui.h:181
///
struct ImFont
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
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;
///
///
/// 4-8 // Cache last bound baked. NEVER USE DIRECTLY. Use GetFontBaked().
///
///
/// C++:
/// imgui.h:3922
///
ImFontBaked* LastBaked
///
///
///
///
/// [Internal] Members: Hot ~12-20 bytes
///
///
public ref ImFontBakedPtr LastBaked => ref Unsafe.AsRef(&_ptr->LastBaked);
///
///
/// 4-8 // What we have been loaded into.
///
///
/// C++:
/// imgui.h:3923
///
ImFontAtlas* ContainerAtlas
///
///
///
///
/// [Internal] Members: Hot ~12-20 bytes
///
///
public ref ImFontAtlasPtr ContainerAtlas => ref Unsafe.AsRef(&_ptr->ContainerAtlas);
///
///
/// 4 // Font flags.
///
///
/// C++:
/// imgui.h:3924
///
ImFontFlags Flags
///
///
///
///
/// [Internal] Members: Hot ~12-20 bytes
///
///
public ref ImFontFlags Flags => ref Unsafe.AsRef(&_ptr->Flags);
///
///
/// Current rasterizer density. This is a varying state of the font.
///
///
/// C++:
/// imgui.h:3925
///
float CurrentRasterizerDensity
///
///
///
///
/// [Internal] Members: Hot ~12-20 bytes
///
///
public ref float CurrentRasterizerDensity => ref Unsafe.AsRef(&_ptr->CurrentRasterizerDensity);
///
///
/// Unique identifier for the font
///
///
/// C++:
/// imgui.h:3929
///
ImGuiID FontId
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
public ref ImGuiID FontId => ref Unsafe.AsRef(&_ptr->FontId);
///
///
/// 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).
///
///
/// C++:
/// imgui.h:3930
///
float LegacySize
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
public ref float LegacySize => ref Unsafe.AsRef(&_ptr->LegacySize);
///
///
/// 16 // in // List of sources. Pointers within ContainerAtlas->Sources[]
///
///
/// C++:
/// imgui.h:3931
///
ImVector<ImFontConfig*> Sources
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
public ref ImVector Sources => ref Unsafe.AsRef>(&_ptr->Sources);
///
///
/// 2-4 // out // Character used for ellipsis rendering ('...').
///
///
/// C++:
/// imgui.h:3932
///
ImWchar EllipsisChar
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
public ref uint EllipsisChar => ref Unsafe.AsRef(&_ptr->EllipsisChar);
///
///
/// 2-4 // out // Character used if a glyph isn't found (U+FFFD, '?')
///
///
/// C++:
/// imgui.h:3933
///
ImWchar FallbackChar
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
public ref uint FallbackChar => ref Unsafe.AsRef(&_ptr->FallbackChar);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:3934
///
ImU8 Used8kPagesMap[(IM_UNICODE_CODEPOINT_MAX+1)/8192/8]
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
public ref byte_17 Used8kPagesMap => ref Unsafe.AsRef(&_ptr->Used8kPagesMap);
///
///
/// 1 // // Mark when the "..." glyph needs to be generated.
///
///
/// C++:
/// imgui.h:3935
///
bool EllipsisAutoBake
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
public ref bool EllipsisAutoBake => ref Unsafe.AsRef(&_ptr->EllipsisAutoBake);
///
///
/// 16 // // Remapping pairs when using AddRemapChar(), otherwise empty.
///
///
/// C++:
/// imgui.h:3936
///
ImGuiStorage RemapPairs
///
///
///
///
/// [Internal] Members: Cold ~24-52 bytes
/// Conceptually Sources[] is the list of font sources merged to create this font.
///
///
public ref ImGuiStorage RemapPairs => ref Unsafe.AsRef(&_ptr->RemapPairs);
}
}