//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Opaque storage for building a ImFontAtlas
///
///
/// C++:
/// imgui.h:183
///
struct ImFontAtlasBuilder
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 248)]
public partial struct ImFontAtlasBuilder
{
///
///
/// Actually 'stbrp_context' but we don't want to define this in the header file.
///
///
/// C++:
/// imgui_internal.h:4081
///
stbrp_context_opaque PackContext
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(0)]
public stbrp_context_opaque PackContext;
///
///
/// C++:
/// imgui_internal.h:4082
///
ImVector<stbrp_node_im> PackNodes
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(80)]
public ImVector PackNodes;
///
///
/// C++:
/// imgui_internal.h:4083
///
ImVector<ImTextureRect> Rects
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(96)]
public ImVector Rects;
///
///
/// ImFontAtlasRectId -> index into Rects[]
///
///
/// C++:
/// imgui_internal.h:4084
///
ImVector<ImFontAtlasRectEntry> RectsIndex
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(112)]
public ImVector RectsIndex;
///
///
/// Misc scratch buffer
///
///
/// C++:
/// imgui_internal.h:4085
///
ImVector<unsigned char> TempBuffer
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(128)]
public ImVector TempBuffer;
///
///
/// First unused entry
///
///
/// C++:
/// imgui_internal.h:4086
///
int RectsIndexFreeListStart
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(144)]
public int RectsIndexFreeListStart;
///
///
/// Number of packed rectangles.
///
///
/// C++:
/// imgui_internal.h:4087
///
int RectsPackedCount
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(148)]
public int RectsPackedCount;
///
///
/// Number of packed pixels. Used when compacting to heuristically find the ideal texture size.
///
///
/// C++:
/// imgui_internal.h:4088
///
int RectsPackedSurface
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(152)]
public int RectsPackedSurface;
///
///
/// C++:
/// imgui_internal.h:4089
///
int RectsDiscardedCount
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(156)]
public int RectsDiscardedCount;
///
///
/// C++:
/// imgui_internal.h:4090
///
int RectsDiscardedSurface
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(160)]
public int RectsDiscardedSurface;
///
///
/// Current frame count
///
///
/// C++:
/// imgui_internal.h:4091
///
int FrameCount
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(164)]
public int FrameCount;
///
///
/// Largest rectangle to pack (de-facto used as a "minimum texture size")
///
///
/// C++:
/// imgui_internal.h:4092
///
ImVec2i MaxRectSize
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(168)]
public int2 MaxRectSize;
///
///
/// Bottom-right most used pixels
///
///
/// C++:
/// imgui_internal.h:4093
///
ImVec2i MaxRectBounds
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(176)]
public int2 MaxRectBounds;
///
///
/// Disable resizing texture
///
///
/// C++:
/// imgui_internal.h:4094
///
bool LockDisableResize
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(184)]
public Bool8 LockDisableResize;
///
///
/// Set when missing ImGuiBackendFlags_RendererHasTextures features forces atlas to preload everything.
///
///
/// C++:
/// imgui_internal.h:4095
///
bool PreloadedAllGlyphsRanges
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
[FieldOffset(185)]
public Bool8 PreloadedAllGlyphsRanges;
///
///
/// C++:
/// imgui_internal.h:4098
///
ImStableVector<ImFontBaked,32> BakedPool
///
///
///
///
/// Cache of all ImFontBaked
///
///
[FieldOffset(192)]
public ImStableVector BakedPool;
///
///
/// BakedId --> ImFontBaked*
///
///
/// C++:
/// imgui_internal.h:4099
///
ImGuiStorage BakedMap
///
///
///
///
/// Cache of all ImFontBaked
///
///
[FieldOffset(216)]
public ImGuiStorage BakedMap;
///
///
/// C++:
/// imgui_internal.h:4100
///
int BakedDiscardedCount
///
///
///
///
/// Cache of all ImFontBaked
///
///
[FieldOffset(232)]
public int BakedDiscardedCount;
///
///
/// White pixel + mouse cursors. Also happen to be fallback in case of packing failure.
///
///
/// C++:
/// imgui_internal.h:4103
///
ImFontAtlasRectId PackIdMouseCursors
///
///
///
///
/// Custom rectangle identifiers
///
///
[FieldOffset(236)]
public ImFontAtlasRectId PackIdMouseCursors;
///
///
/// C++:
/// imgui_internal.h:4104
///
ImFontAtlasRectId PackIdLinesTexData
///
///
///
///
/// Custom rectangle identifiers
///
///
[FieldOffset(240)]
public ImFontAtlasRectId PackIdLinesTexData;
}
///
///
/// Opaque storage for building a ImFontAtlas
///
///
/// C++:
/// imgui.h:183
///
struct ImFontAtlasBuilder
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
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;
///
///
/// Actually 'stbrp_context' but we don't want to define this in the header file.
///
///
/// C++:
/// imgui_internal.h:4081
///
stbrp_context_opaque PackContext
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref stbrp_context_opaque PackContext => ref Unsafe.AsRef(&_ptr->PackContext);
///
///
/// C++:
/// imgui_internal.h:4082
///
ImVector<stbrp_node_im> PackNodes
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref ImVector PackNodes => ref Unsafe.AsRef>(&_ptr->PackNodes);
///
///
/// C++:
/// imgui_internal.h:4083
///
ImVector<ImTextureRect> Rects
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref ImVector Rects => ref Unsafe.AsRef>(&_ptr->Rects);
///
///
/// ImFontAtlasRectId -> index into Rects[]
///
///
/// C++:
/// imgui_internal.h:4084
///
ImVector<ImFontAtlasRectEntry> RectsIndex
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref ImVector RectsIndex =>
ref Unsafe.AsRef>(&_ptr->RectsIndex);
///
///
/// Misc scratch buffer
///
///
/// C++:
/// imgui_internal.h:4085
///
ImVector<unsigned char> TempBuffer
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref ImVector TempBuffer => ref Unsafe.AsRef>(&_ptr->TempBuffer);
///
///
/// First unused entry
///
///
/// C++:
/// imgui_internal.h:4086
///
int RectsIndexFreeListStart
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref int RectsIndexFreeListStart => ref Unsafe.AsRef(&_ptr->RectsIndexFreeListStart);
///
///
/// Number of packed rectangles.
///
///
/// C++:
/// imgui_internal.h:4087
///
int RectsPackedCount
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref int RectsPackedCount => ref Unsafe.AsRef(&_ptr->RectsPackedCount);
///
///
/// Number of packed pixels. Used when compacting to heuristically find the ideal texture size.
///
///
/// C++:
/// imgui_internal.h:4088
///
int RectsPackedSurface
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref int RectsPackedSurface => ref Unsafe.AsRef(&_ptr->RectsPackedSurface);
///
///
/// C++:
/// imgui_internal.h:4089
///
int RectsDiscardedCount
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref int RectsDiscardedCount => ref Unsafe.AsRef(&_ptr->RectsDiscardedCount);
///
///
/// C++:
/// imgui_internal.h:4090
///
int RectsDiscardedSurface
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref int RectsDiscardedSurface => ref Unsafe.AsRef(&_ptr->RectsDiscardedSurface);
///
///
/// Current frame count
///
///
/// C++:
/// imgui_internal.h:4091
///
int FrameCount
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref int FrameCount => ref Unsafe.AsRef(&_ptr->FrameCount);
///
///
/// Largest rectangle to pack (de-facto used as a "minimum texture size")
///
///
/// C++:
/// imgui_internal.h:4092
///
ImVec2i MaxRectSize
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref int2 MaxRectSize => ref Unsafe.AsRef(&_ptr->MaxRectSize);
///
///
/// Bottom-right most used pixels
///
///
/// C++:
/// imgui_internal.h:4093
///
ImVec2i MaxRectBounds
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref int2 MaxRectBounds => ref Unsafe.AsRef(&_ptr->MaxRectBounds);
///
///
/// Disable resizing texture
///
///
/// C++:
/// imgui_internal.h:4094
///
bool LockDisableResize
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref bool LockDisableResize => ref Unsafe.AsRef(&_ptr->LockDisableResize);
///
///
/// Set when missing ImGuiBackendFlags_RendererHasTextures features forces atlas to preload everything.
///
///
/// C++:
/// imgui_internal.h:4095
///
bool PreloadedAllGlyphsRanges
///
///
///
///
/// Internal storage for incrementally packing and building a ImFontAtlas
///
///
public ref bool PreloadedAllGlyphsRanges => ref Unsafe.AsRef(&_ptr->PreloadedAllGlyphsRanges);
///
///
/// C++:
/// imgui_internal.h:4098
///
ImStableVector<ImFontBaked,32> BakedPool
///
///
///
///
/// Cache of all ImFontBaked
///
///
public ref ImStableVector BakedPool =>
ref Unsafe.AsRef>(&_ptr->BakedPool);
///
///
/// BakedId --> ImFontBaked*
///
///
/// C++:
/// imgui_internal.h:4099
///
ImGuiStorage BakedMap
///
///
///
///
/// Cache of all ImFontBaked
///
///
public ref ImGuiStorage BakedMap => ref Unsafe.AsRef(&_ptr->BakedMap);
///
///
/// C++:
/// imgui_internal.h:4100
///
int BakedDiscardedCount
///
///
///
///
/// Cache of all ImFontBaked
///
///
public ref int BakedDiscardedCount => ref Unsafe.AsRef(&_ptr->BakedDiscardedCount);
///
///
/// White pixel + mouse cursors. Also happen to be fallback in case of packing failure.
///
///
/// C++:
/// imgui_internal.h:4103
///
ImFontAtlasRectId PackIdMouseCursors
///
///
///
///
/// Custom rectangle identifiers
///
///
public ref ImFontAtlasRectId PackIdMouseCursors =>
ref Unsafe.AsRef(&_ptr->PackIdMouseCursors);
///
///
/// C++:
/// imgui_internal.h:4104
///
ImFontAtlasRectId PackIdLinesTexData
///
///
///
///
/// Custom rectangle identifiers
///
///
public ref ImFontAtlasRectId PackIdLinesTexData =>
ref Unsafe.AsRef(&_ptr->PackIdLinesTexData);
}
}