//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Opaque interface to a font loading backend (stb_truetype, FreeType etc.).
///
///
/// C++:
/// imgui.h:189
///
struct ImFontLoader
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 80)]
public partial struct ImFontLoader
{
///
///
/// C++:
/// imgui_internal.h:3995
///
const char* Name
///
///
///
///
/// 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.
///
///
[FieldOffset(0)]
public Ptr Name;
///
///
/// C++:
/// imgui_internal.h:3996
///
bool (*LoaderInit)(ImFontAtlas* atlas)
///
///
///
///
/// 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.
///
///
[FieldOffset(8)]
public nint LoaderInit;
///
///
/// C++:
/// imgui_internal.h:3997
///
void (*LoaderShutdown)(ImFontAtlas* atlas)
///
///
///
///
/// 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.
///
///
[FieldOffset(16)]
public nint LoaderShutdown;
///
///
/// C++:
/// imgui_internal.h:3998
///
bool (*FontSrcInit)(ImFontAtlas* atlas, ImFontConfig* src)
///
///
///
///
/// 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.
///
///
[FieldOffset(24)]
public nint FontSrcInit;
///
///
/// C++:
/// imgui_internal.h:3999
///
void (*FontSrcDestroy)(ImFontAtlas* atlas, ImFontConfig* src)
///
///
///
///
/// 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.
///
///
[FieldOffset(32)]
public nint FontSrcDestroy;
///
///
/// C++:
/// imgui_internal.h:4000
///
bool (*FontSrcContainsGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImWchar codepoint)
///
///
///
///
/// 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.
///
///
[FieldOffset(40)]
public nint FontSrcContainsGlyph;
///
///
/// C++:
/// imgui_internal.h:4001
///
/// bool (*FontBakedInit)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)
///
///
///
///
/// 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.
///
///
[FieldOffset(48)]
public nint FontBakedInit;
///
///
/// C++:
/// imgui_internal.h:4002
///
/// void (*FontBakedDestroy)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)
///
///
///
///
/// 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.
///
///
[FieldOffset(56)]
public nint FontBakedDestroy;
///
///
/// C++:
/// imgui_internal.h:4003
///
/// bool (*FontBakedLoadGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph* out_glyph, float* out_advance_x)
///
///
///
///
/// 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.
///
///
[FieldOffset(64)]
public nint FontBakedLoadGlyph;
///
///
/// C++:
/// imgui_internal.h:4007
///
size_t FontBakedSrcLoaderDataSize
///
///
///
///
/// 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?
///
///
[FieldOffset(72)]
public nuint FontBakedSrcLoaderDataSize;
}
///
///
/// Opaque interface to a font loading backend (stb_truetype, FreeType etc.).
///
///
/// C++:
/// imgui.h:189
///
struct ImFontLoader
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
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;
///
///
/// C++:
/// imgui_internal.h:3995
///
const char* Name
///
///
///
///
/// 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.
///
///
public ref Ptr Name => ref Unsafe.AsRef>(&_ptr->Name);
///
///
/// C++:
/// imgui_internal.h:3996
///
bool (*LoaderInit)(ImFontAtlas* atlas)
///
///
///
///
/// 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.
///
///
public ref nint LoaderInit => ref Unsafe.AsRef(&_ptr->LoaderInit);
///
///
/// C++:
/// imgui_internal.h:3997
///
void (*LoaderShutdown)(ImFontAtlas* atlas)
///
///
///
///
/// 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.
///
///
public ref nint LoaderShutdown => ref Unsafe.AsRef(&_ptr->LoaderShutdown);
///
///
/// C++:
/// imgui_internal.h:3998
///
bool (*FontSrcInit)(ImFontAtlas* atlas, ImFontConfig* src)
///
///
///
///
/// 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.
///
///
public ref nint FontSrcInit => ref Unsafe.AsRef(&_ptr->FontSrcInit);
///
///
/// C++:
/// imgui_internal.h:3999
///
void (*FontSrcDestroy)(ImFontAtlas* atlas, ImFontConfig* src)
///
///
///
///
/// 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.
///
///
public ref nint FontSrcDestroy => ref Unsafe.AsRef(&_ptr->FontSrcDestroy);
///
///
/// C++:
/// imgui_internal.h:4000
///
bool (*FontSrcContainsGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImWchar codepoint)
///
///
///
///
/// 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.
///
///
public ref nint FontSrcContainsGlyph => ref Unsafe.AsRef(&_ptr->FontSrcContainsGlyph);
///
///
/// C++:
/// imgui_internal.h:4001
///
/// bool (*FontBakedInit)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)
///
///
///
///
/// 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.
///
///
public ref nint FontBakedInit => ref Unsafe.AsRef(&_ptr->FontBakedInit);
///
///
/// C++:
/// imgui_internal.h:4002
///
/// void (*FontBakedDestroy)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src)
///
///
///
///
/// 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.
///
///
public ref nint FontBakedDestroy => ref Unsafe.AsRef(&_ptr->FontBakedDestroy);
///
///
/// C++:
/// imgui_internal.h:4003
///
/// bool (*FontBakedLoadGlyph)(ImFontAtlas* atlas, ImFontConfig* src, ImFontBaked* baked, void* loader_data_for_baked_src, ImWchar codepoint, ImFontGlyph* out_glyph, float* out_advance_x)
///
///
///
///
/// 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.
///
///
public ref nint FontBakedLoadGlyph => ref Unsafe.AsRef(&_ptr->FontBakedLoadGlyph);
///
///
/// C++:
/// imgui_internal.h:4007
///
size_t FontBakedSrcLoaderDataSize
///
///
///
///
/// 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?
///
///
public ref nuint FontBakedSrcLoaderDataSize => ref Unsafe.AsRef(&_ptr->FontBakedSrcLoaderDataSize);
}
}