//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader
///
///
/// C++:
/// imgui.h:182
///
struct ImFontAtlas
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 736)]
public partial struct ImFontAtlas
{
///
///
/// Build flags (see ImFontAtlasFlags_)
///
///
/// C++:
/// imgui.h:3811
///
ImFontAtlasFlags Flags
///
///
///
///
/// Input
///
///
[FieldOffset(0)]
public ImFontAtlasFlags Flags;
///
///
/// Desired texture format (default to ImTextureFormat_RGBA32 but may be changed to ImTextureFormat_Alpha8).
///
///
/// C++:
/// imgui.h:3812
///
ImTextureFormat TexDesiredFormat
///
///
///
///
/// Input
///
///
[FieldOffset(4)]
public ImTextureFormat TexDesiredFormat;
///
///
/// FIXME: Should be called "TexPackPadding". Padding between glyphs within texture in pixels. Defaults to
/// 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to
/// set AntiAliasedLinesUseTex = false).
///
///
/// C++:
/// imgui.h:3813
///
int TexGlyphPadding
///
///
///
///
/// Input
///
///
[FieldOffset(8)]
public int TexGlyphPadding;
///
///
/// Minimum desired texture width. Must be a power of two. Default to 512.
///
///
/// C++:
/// imgui.h:3814
///
int TexMinWidth
///
///
///
///
/// Input
///
///
[FieldOffset(12)]
public int TexMinWidth;
///
///
/// Minimum desired texture height. Must be a power of two. Default to 128.
///
///
/// C++:
/// imgui.h:3815
///
int TexMinHeight
///
///
///
///
/// Input
///
///
[FieldOffset(16)]
public int TexMinHeight;
///
///
/// Maximum desired texture width. Must be a power of two. Default to 8192.
///
///
/// C++:
/// imgui.h:3816
///
int TexMaxWidth
///
///
///
///
/// Input
///
///
[FieldOffset(20)]
public int TexMaxWidth;
///
///
/// Maximum desired texture height. Must be a power of two. Default to 8192.
///
///
/// C++:
/// imgui.h:3817
///
int TexMaxHeight
///
///
///
///
/// Input
///
///
[FieldOffset(24)]
public int TexMaxHeight;
///
///
/// Store your own atlas related user-data (if e.g. you have multiple font atlas).
///
///
/// C++:
/// imgui.h:3818
///
void* UserData
///
///
///
///
/// Input
///
///
[FieldOffset(32)]
public nint UserData;
///
///
/// Latest texture identifier == TexData->GetTexRef().
///
///
/// C++:
/// imgui.h:3824
///
ImTextureRef TexRef
///
///
///
///
/// Output
/// - Because textures are dynamically created/resized, the current texture identifier may changed at *ANY TIME* during the frame.
/// - This should not affect you as you can always use the latest value. But note that any precomputed UV coordinates are only valid for the current TexRef.
///
///
[FieldOffset(40)]
public ImTextureRef TexRef;
///
///
/// Latest texture.
///
///
/// C++:
/// imgui.h:3828
///
ImTextureData* TexData
///
///
///
///
/// Output
/// - Because textures are dynamically created/resized, the current texture identifier may changed at *ANY TIME* during the frame.
/// - This should not affect you as you can always use the latest value. But note that any precomputed UV coordinates are only valid for the current TexRef.
///
///
[FieldOffset(56)]
public ImTextureDataPtr TexData;
///
///
/// Texture list (most often TexList.Size == 1). TexData is always == TexList.back(). DO NOT USE DIRECTLY,
/// USE GetDrawData().Textures[]/GetPlatformIO().Textures[] instead!
///
///
/// C++:
/// imgui.h:3831
///
ImVector<ImTextureData*> TexList
///
///
///
///
/// [Internal]
///
///
[FieldOffset(64)]
public ImVector TexList;
///
///
/// Marked as locked during ImGui::NewFrame()..EndFrame() scope if TexUpdates are not supported. Any attempt
/// to modify the atlas will assert.
///
///
/// C++:
/// imgui.h:3832
///
bool Locked
///
///
///
///
/// [Internal]
///
///
[FieldOffset(80)]
public Bool8 Locked;
///
///
/// Copy of (BackendFlags & ImGuiBackendFlags_RendererHasTextures) from supporting context.
///
///
/// C++:
/// imgui.h:3833
///
bool RendererHasTextures
///
///
///
///
/// [Internal]
///
///
[FieldOffset(81)]
public Bool8 RendererHasTextures;
///
///
/// Set when texture was built matching current font input. Mostly useful for legacy IsBuilt() call.
///
///
/// C++:
/// imgui.h:3834
///
bool TexIsBuilt
///
///
///
///
/// [Internal]
///
///
[FieldOffset(82)]
public Bool8 TexIsBuilt;
///
///
/// Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help
/// backend select a format or conversion process.
///
///
/// C++:
/// imgui.h:3835
///
bool TexPixelsUseColors
///
///
///
///
/// [Internal]
///
///
[FieldOffset(83)]
public Bool8 TexPixelsUseColors;
///
///
/// = (1.0f/TexData->TexWidth, 1.0f/TexData->TexHeight). May change as new texture gets created.
///
///
/// C++:
/// imgui.h:3836
///
ImVec2 TexUvScale
///
///
///
///
/// [Internal]
///
///
[FieldOffset(84)]
public float2 TexUvScale;
///
///
/// Texture coordinates to a white pixel. May change as new texture gets created.
///
///
/// C++:
/// imgui.h:3837
///
ImVec2 TexUvWhitePixel
///
///
///
///
/// [Internal]
///
///
[FieldOffset(92)]
public float2 TexUvWhitePixel;
///
///
/// Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(),
/// use ImGui::PushFont()/PopFont() to change the current font.
///
///
/// C++:
/// imgui.h:3838
///
ImVector<ImFont*> Fonts
///
///
///
///
/// [Internal]
///
///
[FieldOffset(104)]
public ImVector Fonts;
///
///
/// Source/configuration data
///
///
/// C++:
/// imgui.h:3839
///
ImVector<ImFontConfig> Sources
///
///
///
///
/// [Internal]
///
///
[FieldOffset(120)]
public ImVector Sources;
///
///
/// UVs for baked anti-aliased lines
///
///
/// C++:
/// imgui.h:3840
///
ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]
///
///
///
///
/// [Internal]
///
///
[FieldOffset(136)]
public float4_33 TexUvLines;
///
///
/// Next value to be stored in TexData->UniqueID
///
///
/// C++:
/// imgui.h:3841
///
int TexNextUniqueID
///
///
///
///
/// [Internal]
///
///
[FieldOffset(664)]
public int TexNextUniqueID;
///
///
/// Next value to be stored in ImFont->FontID
///
///
/// C++:
/// imgui.h:3842
///
int FontNextUniqueID
///
///
///
///
/// [Internal]
///
///
[FieldOffset(668)]
public int FontNextUniqueID;
///
///
/// List of users for this atlas. Typically one per Dear ImGui context.
///
///
/// C++:
/// imgui.h:3843
///
ImVector<ImDrawListSharedData*> DrawListSharedDatas
///
///
///
///
/// [Internal]
///
///
[FieldOffset(672)]
public ImVector DrawListSharedDatas;
///
///
/// Opaque interface to our data that doesn't need to be public and may be discarded when rebuilding.
///
///
/// C++:
/// imgui.h:3844
///
ImFontAtlasBuilder* Builder
///
///
///
///
/// [Internal]
///
///
[FieldOffset(688)]
public ImFontAtlasBuilderPtr Builder;
///
///
/// Font loader opaque interface (default to use FreeType when IMGUI_ENABLE_FREETYPE is defined, otherwise
/// default to use stb_truetype). Use SetFontLoader() to change this at runtime.
///
///
/// C++:
/// imgui.h:3845
///
const ImFontLoader* FontLoader
///
///
///
///
/// [Internal]
///
///
[FieldOffset(696)]
public Ptr FontLoader;
///
///
/// Font loader name (for display e.g. in About box) == FontLoader->Name
///
///
/// C++:
/// imgui.h:3846
///
const char* FontLoaderName
///
///
///
///
/// [Internal]
///
///
[FieldOffset(704)]
public Ptr FontLoaderName;
///
///
/// Font backend opaque storage
///
///
/// C++:
/// imgui.h:3847
///
void* FontLoaderData
///
///
///
///
/// [Internal]
///
///
[FieldOffset(712)]
public nint FontLoaderData;
///
///
/// Shared flags (for all fonts) for font loader. THIS IS BUILD IMPLEMENTATION DEPENDENT (e.g. Per-font
/// override is also available in ImFontConfig).
///
///
/// C++:
/// imgui.h:3848
///
unsigned int FontLoaderFlags
///
///
///
///
/// [Internal]
///
///
[FieldOffset(720)]
public uint FontLoaderFlags;
///
///
/// Number of contexts using this atlas
///
///
/// C++:
/// imgui.h:3849
///
int RefCount
///
///
///
///
/// [Internal]
///
///
[FieldOffset(724)]
public int RefCount;
///
///
/// Context which own the atlas will be in charge of updating and destroying it.
///
///
/// C++:
/// imgui.h:3850
///
ImGuiContext* OwnerContext
///
///
///
///
/// [Internal]
///
///
[FieldOffset(728)]
public ImGuiContextPtr OwnerContext;
}
///
///
/// Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader
///
///
/// C++:
/// imgui.h:182
///
struct ImFontAtlas
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
public unsafe partial struct ImFontAtlasPtr(ImFontAtlas* ptr) : INullable
{
private ImFontAtlas* _ptr = ptr;
public ImFontAtlas* Ptr => _ptr;
public bool IsNull() => _ptr is null;
public static implicit operator ImFontAtlasPtr(ImFontAtlas* ptr) => new(ptr);
public static implicit operator ImFontAtlas*(ImFontAtlasPtr wrapper) => wrapper.Ptr;
///
///
/// Build flags (see ImFontAtlasFlags_)
///
///
/// C++:
/// imgui.h:3811
///
ImFontAtlasFlags Flags
///
///
///
///
/// Input
///
///
public ref ImFontAtlasFlags Flags => ref Unsafe.AsRef(&_ptr->Flags);
///
///
/// Desired texture format (default to ImTextureFormat_RGBA32 but may be changed to ImTextureFormat_Alpha8).
///
///
/// C++:
/// imgui.h:3812
///
ImTextureFormat TexDesiredFormat
///
///
///
///
/// Input
///
///
public ref ImTextureFormat TexDesiredFormat => ref Unsafe.AsRef(&_ptr->TexDesiredFormat);
///
///
/// FIXME: Should be called "TexPackPadding". Padding between glyphs within texture in pixels. Defaults to
/// 1. If your rendering method doesn't rely on bilinear filtering you may set this to 0 (will also need to
/// set AntiAliasedLinesUseTex = false).
///
///
/// C++:
/// imgui.h:3813
///
int TexGlyphPadding
///
///
///
///
/// Input
///
///
public ref int TexGlyphPadding => ref Unsafe.AsRef(&_ptr->TexGlyphPadding);
///
///
/// Minimum desired texture width. Must be a power of two. Default to 512.
///
///
/// C++:
/// imgui.h:3814
///
int TexMinWidth
///
///
///
///
/// Input
///
///
public ref int TexMinWidth => ref Unsafe.AsRef(&_ptr->TexMinWidth);
///
///
/// Minimum desired texture height. Must be a power of two. Default to 128.
///
///
/// C++:
/// imgui.h:3815
///
int TexMinHeight
///
///
///
///
/// Input
///
///
public ref int TexMinHeight => ref Unsafe.AsRef(&_ptr->TexMinHeight);
///
///
/// Maximum desired texture width. Must be a power of two. Default to 8192.
///
///
/// C++:
/// imgui.h:3816
///
int TexMaxWidth
///
///
///
///
/// Input
///
///
public ref int TexMaxWidth => ref Unsafe.AsRef(&_ptr->TexMaxWidth);
///
///
/// Maximum desired texture height. Must be a power of two. Default to 8192.
///
///
/// C++:
/// imgui.h:3817
///
int TexMaxHeight
///
///
///
///
/// Input
///
///
public ref int TexMaxHeight => ref Unsafe.AsRef(&_ptr->TexMaxHeight);
///
///
/// Store your own atlas related user-data (if e.g. you have multiple font atlas).
///
///
/// C++:
/// imgui.h:3818
///
void* UserData
///
///
///
///
/// Input
///
///
public ref nint UserData => ref Unsafe.AsRef(&_ptr->UserData);
///
///
/// Latest texture identifier == TexData->GetTexRef().
///
///
/// C++:
/// imgui.h:3824
///
ImTextureRef TexRef
///
///
///
///
/// Output
/// - Because textures are dynamically created/resized, the current texture identifier may changed at *ANY TIME* during the frame.
/// - This should not affect you as you can always use the latest value. But note that any precomputed UV coordinates are only valid for the current TexRef.
///
///
public ref ImTextureRef TexRef => ref Unsafe.AsRef(&_ptr->TexRef);
///
///
/// Latest texture.
///
///
/// C++:
/// imgui.h:3828
///
ImTextureData* TexData
///
///
///
///
/// Output
/// - Because textures are dynamically created/resized, the current texture identifier may changed at *ANY TIME* during the frame.
/// - This should not affect you as you can always use the latest value. But note that any precomputed UV coordinates are only valid for the current TexRef.
///
///
public ref ImTextureDataPtr TexData => ref Unsafe.AsRef(&_ptr->TexData);
///
///
/// Texture list (most often TexList.Size == 1). TexData is always == TexList.back(). DO NOT USE DIRECTLY,
/// USE GetDrawData().Textures[]/GetPlatformIO().Textures[] instead!
///
///
/// C++:
/// imgui.h:3831
///
ImVector<ImTextureData*> TexList
///
///
///
///
/// [Internal]
///
///
public ref ImVector TexList => ref Unsafe.AsRef>(&_ptr->TexList);
///
///
/// Marked as locked during ImGui::NewFrame()..EndFrame() scope if TexUpdates are not supported. Any attempt
/// to modify the atlas will assert.
///
///
/// C++:
/// imgui.h:3832
///
bool Locked
///
///
///
///
/// [Internal]
///
///
public ref bool Locked => ref Unsafe.AsRef(&_ptr->Locked);
///
///
/// Copy of (BackendFlags & ImGuiBackendFlags_RendererHasTextures) from supporting context.
///
///
/// C++:
/// imgui.h:3833
///
bool RendererHasTextures
///
///
///
///
/// [Internal]
///
///
public ref bool RendererHasTextures => ref Unsafe.AsRef(&_ptr->RendererHasTextures);
///
///
/// Set when texture was built matching current font input. Mostly useful for legacy IsBuilt() call.
///
///
/// C++:
/// imgui.h:3834
///
bool TexIsBuilt
///
///
///
///
/// [Internal]
///
///
public ref bool TexIsBuilt => ref Unsafe.AsRef(&_ptr->TexIsBuilt);
///
///
/// Tell whether our texture data is known to use colors (rather than just alpha channel), in order to help
/// backend select a format or conversion process.
///
///
/// C++:
/// imgui.h:3835
///
bool TexPixelsUseColors
///
///
///
///
/// [Internal]
///
///
public ref bool TexPixelsUseColors => ref Unsafe.AsRef(&_ptr->TexPixelsUseColors);
///
///
/// = (1.0f/TexData->TexWidth, 1.0f/TexData->TexHeight). May change as new texture gets created.
///
///
/// C++:
/// imgui.h:3836
///
ImVec2 TexUvScale
///
///
///
///
/// [Internal]
///
///
public ref float2 TexUvScale => ref Unsafe.AsRef(&_ptr->TexUvScale);
///
///
/// Texture coordinates to a white pixel. May change as new texture gets created.
///
///
/// C++:
/// imgui.h:3837
///
ImVec2 TexUvWhitePixel
///
///
///
///
/// [Internal]
///
///
public ref float2 TexUvWhitePixel => ref Unsafe.AsRef(&_ptr->TexUvWhitePixel);
///
///
/// Hold all the fonts returned by AddFont*. Fonts[0] is the default font upon calling ImGui::NewFrame(),
/// use ImGui::PushFont()/PopFont() to change the current font.
///
///
/// C++:
/// imgui.h:3838
///
ImVector<ImFont*> Fonts
///
///
///
///
/// [Internal]
///
///
public ref ImVector Fonts => ref Unsafe.AsRef>(&_ptr->Fonts);
///
///
/// Source/configuration data
///
///
/// C++:
/// imgui.h:3839
///
ImVector<ImFontConfig> Sources
///
///
///
///
/// [Internal]
///
///
public ref ImVector Sources => ref Unsafe.AsRef>(&_ptr->Sources);
///
///
/// UVs for baked anti-aliased lines
///
///
/// C++:
/// imgui.h:3840
///
ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]
///
///
///
///
/// [Internal]
///
///
public ref float4_33 TexUvLines => ref Unsafe.AsRef(&_ptr->TexUvLines);
///
///
/// Next value to be stored in TexData->UniqueID
///
///
/// C++:
/// imgui.h:3841
///
int TexNextUniqueID
///
///
///
///
/// [Internal]
///
///
public ref int TexNextUniqueID => ref Unsafe.AsRef(&_ptr->TexNextUniqueID);
///
///
/// Next value to be stored in ImFont->FontID
///
///
/// C++:
/// imgui.h:3842
///
int FontNextUniqueID
///
///
///
///
/// [Internal]
///
///
public ref int FontNextUniqueID => ref Unsafe.AsRef(&_ptr->FontNextUniqueID);
///
///
/// List of users for this atlas. Typically one per Dear ImGui context.
///
///
/// C++:
/// imgui.h:3843
///
ImVector<ImDrawListSharedData*> DrawListSharedDatas
///
///
///
///
/// [Internal]
///
///
public ref ImVector DrawListSharedDatas =>
ref Unsafe.AsRef>(&_ptr->DrawListSharedDatas);
///
///
/// Opaque interface to our data that doesn't need to be public and may be discarded when rebuilding.
///
///
/// C++:
/// imgui.h:3844
///
ImFontAtlasBuilder* Builder
///
///
///
///
/// [Internal]
///
///
public ref ImFontAtlasBuilderPtr Builder => ref Unsafe.AsRef(&_ptr->Builder);
///
///
/// Font loader opaque interface (default to use FreeType when IMGUI_ENABLE_FREETYPE is defined, otherwise
/// default to use stb_truetype). Use SetFontLoader() to change this at runtime.
///
///
/// C++:
/// imgui.h:3845
///
const ImFontLoader* FontLoader
///
///
///
///
/// [Internal]
///
///
public ref Ptr FontLoader => ref Unsafe.AsRef>(&_ptr->FontLoader);
///
///
/// Font loader name (for display e.g. in About box) == FontLoader->Name
///
///
/// C++:
/// imgui.h:3846
///
const char* FontLoaderName
///
///
///
///
/// [Internal]
///
///
public ref Ptr FontLoaderName => ref Unsafe.AsRef>(&_ptr->FontLoaderName);
///
///
/// Font backend opaque storage
///
///
/// C++:
/// imgui.h:3847
///
void* FontLoaderData
///
///
///
///
/// [Internal]
///
///
public ref nint FontLoaderData => ref Unsafe.AsRef(&_ptr->FontLoaderData);
///
///
/// Shared flags (for all fonts) for font loader. THIS IS BUILD IMPLEMENTATION DEPENDENT (e.g. Per-font
/// override is also available in ImFontConfig).
///
///
/// C++:
/// imgui.h:3848
///
unsigned int FontLoaderFlags
///
///
///
///
/// [Internal]
///
///
public ref uint FontLoaderFlags => ref Unsafe.AsRef(&_ptr->FontLoaderFlags);
///
///
/// Number of contexts using this atlas
///
///
/// C++:
/// imgui.h:3849
///
int RefCount
///
///
///
///
/// [Internal]
///
///
public ref int RefCount => ref Unsafe.AsRef(&_ptr->RefCount);
///
///
/// Context which own the atlas will be in charge of updating and destroying it.
///
///
/// C++:
/// imgui.h:3850
///
ImGuiContext* OwnerContext
///
///
///
///
/// [Internal]
///
///
public ref ImGuiContextPtr OwnerContext => ref Unsafe.AsRef(&_ptr->OwnerContext);
}
}