mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
388 lines
17 KiB
C#
388 lines
17 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>
|
|
/// Opaque interface to a font loading backend (stb_truetype, FreeType etc.).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L189">imgui.h:189</see>
|
|
/// <br/><c>struct ImFontLoader</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 80)]
|
|
public partial struct ImFontLoader
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3995">imgui_internal.h:3995</see>
|
|
/// <br/><c>const char* Name</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public Ptr<byte> Name;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3996">imgui_internal.h:3996</see>
|
|
/// <br/><c>bool (*LoaderInit)(ImFontAtlas* atlas)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public nint LoaderInit;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3997">imgui_internal.h:3997</see>
|
|
/// <br/><c>void (*LoaderShutdown)(ImFontAtlas* atlas)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public nint LoaderShutdown;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3998">imgui_internal.h:3998</see>
|
|
/// <br/><c>bool (*FontSrcInit)(ImFontAtlas* atlas, ImFontConfig* src)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public nint FontSrcInit;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3999">imgui_internal.h:3999</see>
|
|
/// <br/><c>void (*FontSrcDestroy)(ImFontAtlas* atlas, ImFontConfig* src)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public nint FontSrcDestroy;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4000">imgui_internal.h:4000</see>
|
|
/// <br/><c>bool (*FontSrcContainsGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImWchar codepoint)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(40)]
|
|
public nint FontSrcContainsGlyph;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4001">imgui_internal.h:4001</see>
|
|
/// <br/>
|
|
/// <c>bool (*FontBakedInit)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(48)]
|
|
public nint FontBakedInit;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4002">imgui_internal.h:4002</see>
|
|
/// <br/>
|
|
/// <c>void (*FontBakedDestroy)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(56)]
|
|
public nint FontBakedDestroy;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4003">imgui_internal.h:4003</see>
|
|
/// <br/>
|
|
/// <c>bool (*FontBakedLoadGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph* out_glyph, float* out_advance_x)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(64)]
|
|
public nint FontBakedLoadGlyph;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4007">imgui_internal.h:4007</see>
|
|
/// <br/><c>size_t FontBakedSrcLoaderDataSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Size of backend data, Per Baked * Per Source. Buffers are managed by core to avoid excessive allocations.
|
|
/// FIXME: At this point the two other types of buffers may be managed by core to be consistent?
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(72)]
|
|
public nuint FontBakedSrcLoaderDataSize;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Opaque interface to a font loading backend (stb_truetype, FreeType etc.).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L189">imgui.h:189</see>
|
|
/// <br/><c>struct ImFontLoader</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImFontLoaderPtr(ImFontLoader* ptr) : INullable
|
|
{
|
|
private ImFontLoader* _ptr = ptr;
|
|
public ImFontLoader* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImFontLoaderPtr(ImFontLoader* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImFontLoader*(ImFontLoaderPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3995">imgui_internal.h:3995</see>
|
|
/// <br/><c>const char* Name</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref Ptr<byte> Name => ref Unsafe.AsRef<Ptr<byte>>(&_ptr->Name);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3996">imgui_internal.h:3996</see>
|
|
/// <br/><c>bool (*LoaderInit)(ImFontAtlas* atlas)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint LoaderInit => ref Unsafe.AsRef<nint>(&_ptr->LoaderInit);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3997">imgui_internal.h:3997</see>
|
|
/// <br/><c>void (*LoaderShutdown)(ImFontAtlas* atlas)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint LoaderShutdown => ref Unsafe.AsRef<nint>(&_ptr->LoaderShutdown);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3998">imgui_internal.h:3998</see>
|
|
/// <br/><c>bool (*FontSrcInit)(ImFontAtlas* atlas, ImFontConfig* src)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint FontSrcInit => ref Unsafe.AsRef<nint>(&_ptr->FontSrcInit);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L3999">imgui_internal.h:3999</see>
|
|
/// <br/><c>void (*FontSrcDestroy)(ImFontAtlas* atlas, ImFontConfig* src)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint FontSrcDestroy => ref Unsafe.AsRef<nint>(&_ptr->FontSrcDestroy);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4000">imgui_internal.h:4000</see>
|
|
/// <br/><c>bool (*FontSrcContainsGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImWchar codepoint)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint FontSrcContainsGlyph => ref Unsafe.AsRef<nint>(&_ptr->FontSrcContainsGlyph);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4001">imgui_internal.h:4001</see>
|
|
/// <br/>
|
|
/// <c>bool (*FontBakedInit)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint FontBakedInit => ref Unsafe.AsRef<nint>(&_ptr->FontBakedInit);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4002">imgui_internal.h:4002</see>
|
|
/// <br/>
|
|
/// <c>void (*FontBakedDestroy)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint FontBakedDestroy => ref Unsafe.AsRef<nint>(&_ptr->FontBakedDestroy);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4003">imgui_internal.h:4003</see>
|
|
/// <br/>
|
|
/// <c>bool (*FontBakedLoadGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph* out_glyph, float* out_advance_x)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Hooks and storage for a given font backend.
|
|
/// This structure is likely to evolve as we add support for incremental atlas updates.
|
|
/// Conceptually this could be public, but API is still going to be evolve.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint FontBakedLoadGlyph => ref Unsafe.AsRef<nint>(&_ptr->FontBakedLoadGlyph);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui_internal.h#L4007">imgui_internal.h:4007</see>
|
|
/// <br/><c>size_t FontBakedSrcLoaderDataSize</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Size of backend data, Per Baked * Per Source. Buffers are managed by core to avoid excessive allocations.
|
|
/// FIXME: At this point the two other types of buffers may be managed by core to be consistent?
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nuint FontBakedSrcLoaderDataSize => ref Unsafe.AsRef<nuint>(&_ptr->FontBakedSrcLoaderDataSize);
|
|
}
|
|
}
|