mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
1129 lines
41 KiB
C#
1129 lines
41 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 multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L182">imgui.h:182</see>
|
|
/// <br/><c>struct ImFontAtlas</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 736)]
|
|
public partial struct ImFontAtlas
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Build flags (see ImFontAtlasFlags_)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3811">imgui.h:3811</see>
|
|
/// <br/><c>ImFontAtlasFlags Flags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImFontAtlasFlags Flags;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Desired texture format (default to ImTextureFormat_RGBA32 but may be changed to ImTextureFormat_Alpha8).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3812">imgui.h:3812</see>
|
|
/// <br/><c>ImTextureFormat TexDesiredFormat</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public ImTextureFormat TexDesiredFormat;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3813">imgui.h:3813</see>
|
|
/// <br/><c>int TexGlyphPadding</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public int TexGlyphPadding;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Minimum desired texture width. Must be a power of two. Default to 512.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3814">imgui.h:3814</see>
|
|
/// <br/><c>int TexMinWidth</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(12)]
|
|
public int TexMinWidth;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Minimum desired texture height. Must be a power of two. Default to 128.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3815">imgui.h:3815</see>
|
|
/// <br/><c>int TexMinHeight</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public int TexMinHeight;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum desired texture width. Must be a power of two. Default to 8192.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3816">imgui.h:3816</see>
|
|
/// <br/><c>int TexMaxWidth</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(20)]
|
|
public int TexMaxWidth;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum desired texture height. Must be a power of two. Default to 8192.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3817">imgui.h:3817</see>
|
|
/// <br/><c>int TexMaxHeight</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public int TexMaxHeight;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Store your own atlas related user-data (if e.g. you have multiple font atlas).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3818">imgui.h:3818</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public nint UserData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Latest texture identifier == TexData->GetTexRef().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3824">imgui.h:3824</see>
|
|
/// <br/><c>ImTextureRef TexRef</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(40)]
|
|
public ImTextureRef TexRef;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Latest texture.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3828">imgui.h:3828</see>
|
|
/// <br/><c>ImTextureData* TexData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(56)]
|
|
public ImTextureDataPtr TexData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Texture list (most often TexList.Size == 1). TexData is always == TexList.back(). DO NOT USE DIRECTLY,
|
|
/// USE GetDrawData().Textures[]/GetPlatformIO().Textures[] instead!
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3831">imgui.h:3831</see>
|
|
/// <br/><c>ImVector<ImTextureData*> TexList</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(64)]
|
|
public ImVector<ImTextureDataPtr> TexList;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Marked as locked during ImGui::NewFrame()..EndFrame() scope if TexUpdates are not supported. Any attempt
|
|
/// to modify the atlas will assert.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3832">imgui.h:3832</see>
|
|
/// <br/><c>bool Locked</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(80)]
|
|
public Bool8 Locked;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Copy of (BackendFlags & ImGuiBackendFlags_RendererHasTextures) from supporting context.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3833">imgui.h:3833</see>
|
|
/// <br/><c>bool RendererHasTextures</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(81)]
|
|
public Bool8 RendererHasTextures;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set when texture was built matching current font input. Mostly useful for legacy IsBuilt() call.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3834">imgui.h:3834</see>
|
|
/// <br/><c>bool TexIsBuilt</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(82)]
|
|
public Bool8 TexIsBuilt;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3835">imgui.h:3835</see>
|
|
/// <br/><c>bool TexPixelsUseColors</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(83)]
|
|
public Bool8 TexPixelsUseColors;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// = (1.0f/TexData->TexWidth, 1.0f/TexData->TexHeight). May change as new texture gets created.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3836">imgui.h:3836</see>
|
|
/// <br/><c>ImVec2 TexUvScale</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(84)]
|
|
public float2 TexUvScale;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Texture coordinates to a white pixel. May change as new texture gets created.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3837">imgui.h:3837</see>
|
|
/// <br/><c>ImVec2 TexUvWhitePixel</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(92)]
|
|
public float2 TexUvWhitePixel;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3838">imgui.h:3838</see>
|
|
/// <br/><c>ImVector<ImFont*> Fonts</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(104)]
|
|
public ImVector<ImFontPtr> Fonts;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Source/configuration data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3839">imgui.h:3839</see>
|
|
/// <br/><c>ImVector<ImFontConfig> Sources</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(120)]
|
|
public ImVector<ImFontConfig> Sources;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// UVs for baked anti-aliased lines
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3840">imgui.h:3840</see>
|
|
/// <br/><c>ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(136)]
|
|
public float4_33 TexUvLines;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Next value to be stored in TexData->UniqueID
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3841">imgui.h:3841</see>
|
|
/// <br/><c>int TexNextUniqueID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(664)]
|
|
public int TexNextUniqueID;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Next value to be stored in ImFont->FontID
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3842">imgui.h:3842</see>
|
|
/// <br/><c>int FontNextUniqueID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(668)]
|
|
public int FontNextUniqueID;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// List of users for this atlas. Typically one per Dear ImGui context.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3843">imgui.h:3843</see>
|
|
/// <br/><c>ImVector<ImDrawListSharedData*> DrawListSharedDatas</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(672)]
|
|
public ImVector<ImDrawListSharedDataPtr> DrawListSharedDatas;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Opaque interface to our data that doesn't need to be public and may be discarded when rebuilding.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3844">imgui.h:3844</see>
|
|
/// <br/><c>ImFontAtlasBuilder* Builder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(688)]
|
|
public ImFontAtlasBuilderPtr Builder;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3845">imgui.h:3845</see>
|
|
/// <br/><c>const ImFontLoader* FontLoader</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(696)]
|
|
public Ptr<ImFontLoader> FontLoader;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Font loader name (for display e.g. in About box) == FontLoader->Name
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3846">imgui.h:3846</see>
|
|
/// <br/><c>const char* FontLoaderName</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(704)]
|
|
public Ptr<byte> FontLoaderName;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Font backend opaque storage
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3847">imgui.h:3847</see>
|
|
/// <br/><c>void* FontLoaderData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(712)]
|
|
public nint FontLoaderData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Shared flags (for all fonts) for font loader. THIS IS BUILD IMPLEMENTATION DEPENDENT (e.g. Per-font
|
|
/// override is also available in ImFontConfig).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3848">imgui.h:3848</see>
|
|
/// <br/><c>unsigned int FontLoaderFlags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(720)]
|
|
public uint FontLoaderFlags;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of contexts using this atlas
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3849">imgui.h:3849</see>
|
|
/// <br/><c>int RefCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(724)]
|
|
public int RefCount;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Context which own the atlas will be in charge of updating and destroying it.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3850">imgui.h:3850</see>
|
|
/// <br/><c>ImGuiContext* OwnerContext</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(728)]
|
|
public ImGuiContextPtr OwnerContext;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Runtime data for multiple fonts, bake multiple fonts into a single texture, TTF/OTF font loader
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L182">imgui.h:182</see>
|
|
/// <br/><c>struct ImFontAtlas</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
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;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Build flags (see ImFontAtlasFlags_)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3811">imgui.h:3811</see>
|
|
/// <br/><c>ImFontAtlasFlags Flags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImFontAtlasFlags Flags => ref Unsafe.AsRef<ImFontAtlasFlags>(&_ptr->Flags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Desired texture format (default to ImTextureFormat_RGBA32 but may be changed to ImTextureFormat_Alpha8).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3812">imgui.h:3812</see>
|
|
/// <br/><c>ImTextureFormat TexDesiredFormat</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImTextureFormat TexDesiredFormat => ref Unsafe.AsRef<ImTextureFormat>(&_ptr->TexDesiredFormat);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3813">imgui.h:3813</see>
|
|
/// <br/><c>int TexGlyphPadding</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int TexGlyphPadding => ref Unsafe.AsRef<int>(&_ptr->TexGlyphPadding);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Minimum desired texture width. Must be a power of two. Default to 512.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3814">imgui.h:3814</see>
|
|
/// <br/><c>int TexMinWidth</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int TexMinWidth => ref Unsafe.AsRef<int>(&_ptr->TexMinWidth);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Minimum desired texture height. Must be a power of two. Default to 128.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3815">imgui.h:3815</see>
|
|
/// <br/><c>int TexMinHeight</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int TexMinHeight => ref Unsafe.AsRef<int>(&_ptr->TexMinHeight);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum desired texture width. Must be a power of two. Default to 8192.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3816">imgui.h:3816</see>
|
|
/// <br/><c>int TexMaxWidth</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int TexMaxWidth => ref Unsafe.AsRef<int>(&_ptr->TexMaxWidth);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Maximum desired texture height. Must be a power of two. Default to 8192.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3817">imgui.h:3817</see>
|
|
/// <br/><c>int TexMaxHeight</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int TexMaxHeight => ref Unsafe.AsRef<int>(&_ptr->TexMaxHeight);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Store your own atlas related user-data (if e.g. you have multiple font atlas).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3818">imgui.h:3818</see>
|
|
/// <br/><c>void* UserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint UserData => ref Unsafe.AsRef<nint>(&_ptr->UserData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Latest texture identifier == TexData->GetTexRef().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3824">imgui.h:3824</see>
|
|
/// <br/><c>ImTextureRef TexRef</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImTextureRef TexRef => ref Unsafe.AsRef<ImTextureRef>(&_ptr->TexRef);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Latest texture.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3828">imgui.h:3828</see>
|
|
/// <br/><c>ImTextureData* TexData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// 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.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImTextureDataPtr TexData => ref Unsafe.AsRef<ImTextureDataPtr>(&_ptr->TexData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Texture list (most often TexList.Size == 1). TexData is always == TexList.back(). DO NOT USE DIRECTLY,
|
|
/// USE GetDrawData().Textures[]/GetPlatformIO().Textures[] instead!
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3831">imgui.h:3831</see>
|
|
/// <br/><c>ImVector<ImTextureData*> TexList</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImVector<ImTextureDataPtr> TexList => ref Unsafe.AsRef<ImVector<ImTextureDataPtr>>(&_ptr->TexList);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Marked as locked during ImGui::NewFrame()..EndFrame() scope if TexUpdates are not supported. Any attempt
|
|
/// to modify the atlas will assert.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3832">imgui.h:3832</see>
|
|
/// <br/><c>bool Locked</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool Locked => ref Unsafe.AsRef<bool>(&_ptr->Locked);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Copy of (BackendFlags & ImGuiBackendFlags_RendererHasTextures) from supporting context.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3833">imgui.h:3833</see>
|
|
/// <br/><c>bool RendererHasTextures</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool RendererHasTextures => ref Unsafe.AsRef<bool>(&_ptr->RendererHasTextures);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Set when texture was built matching current font input. Mostly useful for legacy IsBuilt() call.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3834">imgui.h:3834</see>
|
|
/// <br/><c>bool TexIsBuilt</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool TexIsBuilt => ref Unsafe.AsRef<bool>(&_ptr->TexIsBuilt);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3835">imgui.h:3835</see>
|
|
/// <br/><c>bool TexPixelsUseColors</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref bool TexPixelsUseColors => ref Unsafe.AsRef<bool>(&_ptr->TexPixelsUseColors);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// = (1.0f/TexData->TexWidth, 1.0f/TexData->TexHeight). May change as new texture gets created.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3836">imgui.h:3836</see>
|
|
/// <br/><c>ImVec2 TexUvScale</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float2 TexUvScale => ref Unsafe.AsRef<float2>(&_ptr->TexUvScale);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Texture coordinates to a white pixel. May change as new texture gets created.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3837">imgui.h:3837</see>
|
|
/// <br/><c>ImVec2 TexUvWhitePixel</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float2 TexUvWhitePixel => ref Unsafe.AsRef<float2>(&_ptr->TexUvWhitePixel);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3838">imgui.h:3838</see>
|
|
/// <br/><c>ImVector<ImFont*> Fonts</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImVector<ImFontPtr> Fonts => ref Unsafe.AsRef<ImVector<ImFontPtr>>(&_ptr->Fonts);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Source/configuration data
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3839">imgui.h:3839</see>
|
|
/// <br/><c>ImVector<ImFontConfig> Sources</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImVector<ImFontConfig> Sources => ref Unsafe.AsRef<ImVector<ImFontConfig>>(&_ptr->Sources);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// UVs for baked anti-aliased lines
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3840">imgui.h:3840</see>
|
|
/// <br/><c>ImVec4 TexUvLines[IM_DRAWLIST_TEX_LINES_WIDTH_MAX + 1]</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float4_33 TexUvLines => ref Unsafe.AsRef<float4_33>(&_ptr->TexUvLines);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Next value to be stored in TexData->UniqueID
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3841">imgui.h:3841</see>
|
|
/// <br/><c>int TexNextUniqueID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int TexNextUniqueID => ref Unsafe.AsRef<int>(&_ptr->TexNextUniqueID);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Next value to be stored in ImFont->FontID
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3842">imgui.h:3842</see>
|
|
/// <br/><c>int FontNextUniqueID</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int FontNextUniqueID => ref Unsafe.AsRef<int>(&_ptr->FontNextUniqueID);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// List of users for this atlas. Typically one per Dear ImGui context.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3843">imgui.h:3843</see>
|
|
/// <br/><c>ImVector<ImDrawListSharedData*> DrawListSharedDatas</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImVector<ImDrawListSharedDataPtr> DrawListSharedDatas =>
|
|
ref Unsafe.AsRef<ImVector<ImDrawListSharedDataPtr>>(&_ptr->DrawListSharedDatas);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Opaque interface to our data that doesn't need to be public and may be discarded when rebuilding.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3844">imgui.h:3844</see>
|
|
/// <br/><c>ImFontAtlasBuilder* Builder</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImFontAtlasBuilderPtr Builder => ref Unsafe.AsRef<ImFontAtlasBuilderPtr>(&_ptr->Builder);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 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.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3845">imgui.h:3845</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 name (for display e.g. in About box) == FontLoader->Name
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3846">imgui.h:3846</see>
|
|
/// <br/><c>const char* FontLoaderName</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref Ptr<byte> FontLoaderName => ref Unsafe.AsRef<Ptr<byte>>(&_ptr->FontLoaderName);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Font backend opaque storage
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3847">imgui.h:3847</see>
|
|
/// <br/><c>void* FontLoaderData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint FontLoaderData => ref Unsafe.AsRef<nint>(&_ptr->FontLoaderData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Shared flags (for all fonts) for font loader. THIS IS BUILD IMPLEMENTATION DEPENDENT (e.g. Per-font
|
|
/// override is also available in ImFontConfig).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3848">imgui.h:3848</see>
|
|
/// <br/><c>unsigned int FontLoaderFlags</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref uint FontLoaderFlags => ref Unsafe.AsRef<uint>(&_ptr->FontLoaderFlags);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Number of contexts using this atlas
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3849">imgui.h:3849</see>
|
|
/// <br/><c>int RefCount</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int RefCount => ref Unsafe.AsRef<int>(&_ptr->RefCount);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Context which own the atlas will be in charge of updating and destroying it.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3850">imgui.h:3850</see>
|
|
/// <br/><c>ImGuiContext* OwnerContext</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// [Internal]
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiContextPtr OwnerContext => ref Unsafe.AsRef<ImGuiContextPtr>(&_ptr->OwnerContext);
|
|
}
|
|
}
|